Skip to content

Commit

Permalink
Update icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrause committed Dec 10, 2024
1 parent 1fd791f commit 1dbd577
Show file tree
Hide file tree
Showing 65 changed files with 99 additions and 172 deletions.
34 changes: 7 additions & 27 deletions scripts/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,35 +156,15 @@ const runImportIcons = async (args: ScriptArgs) => {
'ai-guardrails', // Same as "send"?
'complete', // Same as "success"?
'table-settings', // Same as "edit-params"?
'cross-large',
'cross-small',
];
const renamedIcons: Record<string, string> = {
'ki': 'fortanix-ki',
'security-objects': 'security-object', // Should be singular
'users': 'user', // Should be singular
'apps': 'app', // Should be singular
'groups': 'group', // Should be singular
'workflows': 'workflow', // Should be singular
'integrations': 'integration', // Should be singular
'scripts': 'script', // Should be singular
'plugins': 'plugin', // Should be singular
'page-fwd': 'page-forward', // Do not abbreviate
'user-account': 'user-profile', // "User account" is a misleading term considering our information architecture
'alert-01': 'bell',
'alert-02': 'warning',
'assessment': 'badge-assessment', // Depicts a security badge specifically
'gen-ai': 'badge-dashboard', // Does not specifically depict anything to do with GenAI
'authentication': 'user-authentication', // Depicts a user specifically (as opposed to e.g. app automation)
'cancel': 'status-cancelled', // Visually related
'success': 'status-success', // Visually related
'failed': 'status-failed', // Visually related
'ellipsis': 'ellipsis-vertical',
'filter': 'filter-closed', // Make consistent with `filter-open`
'eye': 'eye-open', // Visually related
'hide': 'eye-closed', // Visually related
'infrastructure': 'compute-node',
'log-out': 'logout', // Make consistent with `login`
'new-tab': 'link-external',
'new-query': 'conversation-new', // Note: 'query' is already used for a different concept/icon
'integrations': 'integration',
'zctivity': 'activity',
'hallucination-policy': 'hallucination',
'status-cancel': 'status-cancelled',
'cross-medium': 'cross',
};

const pathIconsSource = path.join(process.cwd(), './src/assets/icons_source');
Expand Down
4 changes: 2 additions & 2 deletions src/assets/icons/_icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ export const icons = {
'file': {},
'filter-closed': {},
'filter-open': {},
'graph': {},
'group': {},
'hallucination': {},
'help': {},
'home': {},
'info': {},
'install': {},
'integration': {},
'integrations': {},
'key-link': {},
'key': {},
'knowledge-base': {},
Expand Down
2 changes: 1 addition & 1 deletion src/assets/icons/activity.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/icons/caret-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/assets/icons/check.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions src/assets/icons/cross.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/assets/icons/documentation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 3 additions & 10 deletions src/assets/icons/ellipsis-vertical.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/assets/icons/email.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions src/assets/icons/graph.svg

This file was deleted.

4 changes: 4 additions & 0 deletions src/assets/icons/hallucination.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
13 changes: 3 additions & 10 deletions src/assets/icons/knowledge-base.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 2 additions & 7 deletions src/assets/icons/on-premises.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 1 addition & 8 deletions src/assets/icons/refresh.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 1dbd577

Please sign in to comment.