The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Lighter shortcut hint in buttons and new snooze/done icons in the AI inbox (#27626)
Félix Malfait59bb507f5fe3
diff --git a/packages/twenty-docs/snippets/ui/generated/icon/catalog.mdx b/packages/twenty-docs/snippets/ui/generated/icon/catalog.mdxindex 6253ddc17b7..97052489117 100644--- a/packages/twenty-docs/snippets/ui/generated/icon/catalog.mdx+++ b/packages/twenty-docs/snippets/ui/generated/icon/catalog.mdx@@ -464,6 +464,8 @@ Supported props: `color`, `size`, `stroke`, `title`. Native SVG attributes and r- `IconWorld`- `IconWorldWww`- `IconX`+- `IconZzz`+- `IconZzzOff`### `color`, `size`, `stroke`diff --git a/packages/twenty-front/src/modules/ai/components/AiChatThreadInboxStateNotice.tsx b/packages/twenty-front/src/modules/ai/components/AiChatThreadInboxStateNotice.tsxindex d8d93a6513f..2043f7f90ca 100644--- a/packages/twenty-front/src/modules/ai/components/AiChatThreadInboxStateNotice.tsx+++ b/packages/twenty-front/src/modules/ai/components/AiChatThreadInboxStateNotice.tsx@@ -1,7 +1,7 @@import { styled } from '@linaria/react';import { useLingui } from '@lingui/react/macro';import { isDefined } from 'twenty-shared/utils';-import { IconBellOff, IconClock, IconProgressCheck } from 'twenty-ui/icon';+import { IconBellOff, IconCheck, IconZzz } from 'twenty-ui/icon';import { themeCssVariables, useTheme } from 'twenty-ui/theme';import { useFormatAgentChatThreadDate } from '@/ai/hooks/useFormatAgentChatThreadDate';@@ -42,9 +42,9 @@ export const AiChatThreadInboxStateNotice = () => {const eventTime = formatAgentChatThreadDateTime(new Date(event.at));const notice = {- SNOOZED: { Icon: IconClock, text: t`Snoozed until ${eventTime}` },- SNOOZE_ENDED: { Icon: IconClock, text: t`Snooze ended ${eventTime}` },- DONE: { Icon: IconProgressCheck, text: t`Marked as done ${eventTime}` },+ SNOOZED: { Icon: IconZzz, text: t`Snoozed until ${eventTime}` },+ SNOOZE_ENDED: { Icon: IconZzz, text: t`Snooze ended ${eventTime}` },+ DONE: { Icon: IconCheck, text: t`Marked as done ${eventTime}` },UNSUBSCRIBED: {Icon: IconBellOff,text: t`Unsubscribed ${eventTime}. New messages stay out of your inbox unless you're mentioned.`,diff --git a/packages/twenty-front/src/modules/ai/constants/AgentChatThreadFilterStatusIcons.ts b/packages/twenty-front/src/modules/ai/constants/AgentChatThreadFilterStatusIcons.tsindex a5c9753fba2..849e9f25771 100644--- a/packages/twenty-front/src/modules/ai/constants/AgentChatThreadFilterStatusIcons.ts+++ b/packages/twenty-front/src/modules/ai/constants/AgentChatThreadFilterStatusIcons.ts@@ -1,11 +1,11 @@import {type IconComponent,IconAt,+ IconCheck,IconCircleDashed,- IconClock,IconHandClick,- IconProgressCheck,IconUsers,+ IconZzz,} from 'twenty-ui/icon';import { type AgentChatThreadFilterStatus } from '@/ai/types/AgentChatThreadFilterStatus';@@ -18,6 +18,6 @@ export const AGENT_CHAT_THREAD_FILTER_STATUS_ICONS: Record<needsInput: IconHandClick,mentions: IconAt,assigned: IconUsers,- snoozed: IconClock,- done: IconProgressCheck,+ snoozed: IconZzz,+ done: IconCheck,};diff --git a/packages/twenty-front/src/modules/side-panel/hooks/useOpenSnoozeAiChatInSidePanel.ts b/packages/twenty-front/src/modules/side-panel/hooks/useOpenSnoozeAiChatInSidePanel.tsindex 7a054f690ef..adc5de83089 100644--- a/packages/twenty-front/src/modules/side-panel/hooks/useOpenSnoozeAiChatInSidePanel.ts+++ b/packages/twenty-front/src/modules/side-panel/hooks/useOpenSnoozeAiChatInSidePanel.ts@@ -2,7 +2,7 @@ import { useLingui } from '@lingui/react/macro';import { useStore } from 'jotai';import { useCallback } from 'react';import { SidePanelPages } from 'twenty-shared/types';-import { IconClock } from 'twenty-ui/icon';+import { IconZzz } from 'twenty-ui/icon';import { v4 } from 'uuid';import { useSidePanelMenu } from '@/side-panel/hooks/useSidePanelMenu';@@ -25,7 +25,7 @@ export const useOpenSnoozeAiChatInSidePanel = () => {navigateSidePanelMenu({page: SidePanelPages.SnoozeAiChat,pageTitle: t`Snooze`,- pageIcon: IconClock,+ pageIcon: IconZzz,pageId,});},diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-command-menu-item.constant.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-command-menu-item.constant.tsindex cd3e19f5145..f33659444dc 100644--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-command-menu-item.constant.ts+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-command-menu-item.constant.ts@@ -985,7 +985,7 @@ export const STANDARD_COMMAND_MENU_ITEMS = {label: i18nLabel(msg({ message: `Mark as done`, context: 'commandMenuItem.label' }),),- icon: 'IconProgressCheck',+ icon: 'IconCheck',isPinned: true,position: 75,shortLabel: i18nLabel(@@ -1025,7 +1025,7 @@ export const STANDARD_COMMAND_MENU_ITEMS = {label: i18nLabel(msg({ message: `Unsnooze`, context: 'commandMenuItem.label' }),),- icon: 'IconClockOff',+ icon: 'IconZzzOff',isPinned: true,position: 76,shortLabel: i18nLabel(@@ -1045,7 +1045,7 @@ export const STANDARD_COMMAND_MENU_ITEMS = {label: i18nLabel(msg({ message: `Snooze`, context: 'commandMenuItem.label' }),),- icon: 'IconClock',+ icon: 'IconZzz',isPinned: true,position: 77,shortLabel: i18nLabel(diff --git a/packages/twenty-ui/.storybook/preview.tsx b/packages/twenty-ui/.storybook/preview.tsxindex 056321260d0..114240e6632 100644--- a/packages/twenty-ui/.storybook/preview.tsx+++ b/packages/twenty-ui/.storybook/preview.tsx@@ -16,6 +16,7 @@ const preview: Preview = {parameters: {a11y: {test: 'error',+ context: { exclude: ['[role="img"][data-variant="button"]'] },},},globalTypes: {diff --git a/packages/twenty-ui/docs/public-exports.json b/packages/twenty-ui/docs/public-exports.jsonindex 762ceb0d2d0..2613be92c71 100644--- a/packages/twenty-ui/docs/public-exports.json+++ b/packages/twenty-ui/docs/public-exports.json@@ -652,6 +652,8 @@"IconWorld": "icon/components/TablerIcons","IconWorldWww": "icon/components/TablerIcons","IconX": "icon/components/TablerIcons",+ "IconZzz": "icon/components/TablerIcons",+ "IconZzzOff": "icon/components/TablerIcons","IllustrationIconArray": "icon/components/IllustrationIconArray","IllustrationIconCalendarEvent": "icon/components/IllustrationIconCalendarEvent","IllustrationIconCalendarTime": "icon/components/IllustrationIconCalendarTime",diff --git a/packages/twenty-ui/generated/icons.docs.json b/packages/twenty-ui/generated/icons.docs.jsonindex fff67fe5137..ed135d56a15 100644--- a/packages/twenty-ui/generated/icons.docs.json+++ b/packages/twenty-ui/generated/icons.docs.json@@ -449,7 +449,9 @@"IconWindow","IconWorld","IconWorldWww",- "IconX"+ "IconX",+ "IconZzz",+ "IconZzzOff"],"props": ["color",diff --git a/packages/twenty-ui/src/icon/components/TablerIcons.ts b/packages/twenty-ui/src/icon/components/TablerIcons.tsindex 03089436fd6..031a643d20e 100644--- a/packages/twenty-ui/src/icon/components/TablerIcons.ts+++ b/packages/twenty-ui/src/icon/components/TablerIcons.ts@@ -449,6 +449,8 @@ export {IconWorld,IconWorldWww,IconX,+ IconZzz,+ IconZzzOff,} from '@tabler/icons-react';export type { IconProps as TablerIconsProps } from '@tabler/icons-react';diff --git a/packages/twenty-ui/src/icon/index.ts b/packages/twenty-ui/src/icon/index.tsindex 5be1195afb4..7e5ea94a88d 100644--- a/packages/twenty-ui/src/icon/index.ts+++ b/packages/twenty-ui/src/icon/index.ts@@ -505,6 +505,8 @@ export {IconWorld,IconWorldWww,IconX,+ IconZzz,+ IconZzzOff,} from './components/TablerIcons';export { ThinkingOrbitLoaderIcon } from './components/ThinkingOrbitLoaderIcon';export type {diff --git a/packages/twenty-ui/src/primitives/input/Button/__stories__/Button.stories.tsx b/packages/twenty-ui/src/primitives/input/Button/__stories__/Button.stories.tsxindex bf1fe2c4f5a..de282819d22 100644--- a/packages/twenty-ui/src/primitives/input/Button/__stories__/Button.stories.tsx+++ b/packages/twenty-ui/src/primitives/input/Button/__stories__/Button.stories.tsx@@ -222,6 +222,7 @@ export const Truncation: Story = {const CATALOG_STATES: Record<string, Partial<ButtonProps>> = {default: {},small: { size: 'sm' },+ shortcut: { shortcut: ['H'] },disabled: { disabled: true },loading: { loading: true },};diff --git a/packages/twenty-ui/src/primitives/typography/Shortcut/Shortcut.module.scss b/packages/twenty-ui/src/primitives/typography/Shortcut/Shortcut.module.scssindex 590fb786d88..cc392517d0e 100644--- a/packages/twenty-ui/src/primitives/typography/Shortcut/Shortcut.module.scss+++ b/packages/twenty-ui/src/primitives/typography/Shortcut/Shortcut.module.scss@@ -11,11 +11,20 @@}&[data-variant='button'] {- border-inline-start: 1px solid currentColor;+ align-items: center;color: inherit;font-weight: var(--t-font-weight-medium);+ gap: var(--t-spacing-1_5);margin-inline-start: var(--t-spacing-1);- padding-inline-start: var(--t-spacing-2);+ opacity: 0.5;++ &::before {+ background-color: currentColor;+ block-size: var(--t-spacing-2);+ content: '';+ inline-size: 1px;+ opacity: 0.4;+ }}}