fix(icons): deprecated swiss franc icons (#4799)

* fix(icons): deprecated swiss franc icons & refined icon deprecation reasons

* Update tools/build-icons/utils/deprecationReasonTemplate.ts

Co-authored-by: Jakob Guddas <github@jguddas.de>

* fix(icons): replace icon.obsolete => icon.use-case

---------

Co-authored-by: Jakob Guddas <github@jguddas.de>
This commit is contained in:
Karsa
2026-09-04 14:04:24 +02:00
committed by GitHub
co-authored by Jakob Guddas
parent f96d09cf3a
commit a87bc9b15b
8 changed files with 16 additions and 2 deletions
+1 -1
View File
@@ -141,7 +141,7 @@
"$defs": {
"iconDeprecationReasons": {
"type": "string",
"enum": ["icon.renamed"]
"enum": ["icon.design", "icon.use-case"]
},
"aliasDeprecationReasons": {
"type": "string",
+2
View File
@@ -3,6 +3,8 @@
"contributors": [
"danielbayley"
],
"deprecated": true,
"deprecationReason": "icon.use-case",
"use-cases": [],
"tags": [
"discount",
+2
View File
@@ -4,6 +4,8 @@
"danielbayley",
"karsa-mistmere"
],
"deprecated": true,
"deprecationReason": "icon.use-case",
"use-cases": [],
"tags": [
"bill",
+2
View File
@@ -4,6 +4,8 @@
"ericfennis",
"mittalyashu"
],
"deprecated": true,
"deprecationReason": "icon.use-case",
"use-cases": [],
"tags": [
"currency",
+2
View File
@@ -3,6 +3,8 @@
"contributors": [
"danielbayley"
],
"deprecated": true,
"deprecationReason": "icon.use-case",
"tags": [
"monetization",
"marketing",
+2
View File
@@ -3,6 +3,8 @@
"contributors": [
"danielbayley"
],
"deprecated": true,
"deprecationReason": "icon.use-case",
"tags": [
"monetization",
"marketing",
+1 -1
View File
@@ -32,7 +32,7 @@ export type AliasDeprecation = {
deprecationReason: AliasDeprecationReason;
};
export type IconDeprecationReason = 'icon.renamed' | '';
export type IconDeprecationReason = 'icon.design' | 'icon.use-case' | '';
export type IconMetadataBase = {
categories: string[];
@@ -16,6 +16,10 @@ export default function deprecationReasonTemplate(
return `The icon was combined with another icon that shares the same use case, use {@link ${componentName}} instead.`;
case 'alias.name':
return `The name of this icon was changed because it didn't meet our guidelines anymore, use {@link ${componentName}} instead.`;
case 'icon.design':
return `Removed because the icon didn't meet our design guidelines.`;
case 'icon.use-case':
return `Removed because the depicted concept became obsolete and no longer had relevant use cases.`;
default:
throw new Error(`Unknown deprecation reason: ${deprecationReason}`);
}