From 226d0db11cb42468a0f78654818d3b199bc84381 Mon Sep 17 00:00:00 2001 From: Pranav Date: Wed, 20 Nov 2024 18:31:24 -0800 Subject: [PATCH] Update design --- .../dashboard/assets/scss/widgets/_tabs.scss | 22 +- .../components/widgets/BackButton.vue | 6 +- .../components/widgets/ChatTypeTabs.vue | 12 +- .../dashboard/settings/SettingsHeader.vue | 6 +- .../dashboard/settings/SettingsLayout.vue | 2 +- .../dashboard/settings/agentBots/Index.vue | 2 +- .../dashboard/settings/agents/Index.vue | 16 +- .../settings/attributes/AddAttribute.vue | 234 +++++++++--------- .../dashboard/settings/attributes/Index.vue | 13 +- .../dashboard/settings/auditlogs/Index.vue | 4 +- .../dashboard/settings/automation/Index.vue | 17 +- .../dashboard/settings/canned/AddCanned.vue | 98 ++++---- .../dashboard/settings/canned/Index.vue | 19 +- .../components/BaseSettingsHeader.vue | 37 +-- .../dashboard/settings/customRoles/Index.vue | 14 +- .../component/CustomRoleTableBody.vue | 2 +- .../routes/dashboard/settings/inbox/Index.vue | 24 +- .../integrations/DashboardApps/Index.vue | 35 ++- .../integrations/IntegrationHooks.vue | 4 +- .../integrations/SingleIntegrationHooks.vue | 10 +- .../dashboard/settings/integrations/Slack.vue | 6 +- .../Slack/SelectChannelWarning.vue | 38 ++- .../Slack/SlackIntegrationHelpText.vue | 21 +- .../settings/integrations/Webhooks/Index.vue | 13 +- .../dashboard/settings/labels/Index.vue | 14 +- .../dashboard/settings/macros/Index.vue | 26 +- .../dashboard/settings/macros/MacroNodes.vue | 15 +- .../settings/sla/components/SLAHeader.vue | 13 +- .../settings/sla/components/SLAListItem.vue | 2 +- .../routes/dashboard/settings/teams/Index.vue | 29 +-- 30 files changed, 350 insertions(+), 404 deletions(-) diff --git a/app/javascript/dashboard/assets/scss/widgets/_tabs.scss b/app/javascript/dashboard/assets/scss/widgets/_tabs.scss index b9999fac9..3ef0e59b7 100644 --- a/app/javascript/dashboard/assets/scss/widgets/_tabs.scss +++ b/app/javascript/dashboard/assets/scss/widgets/_tabs.scss @@ -3,7 +3,7 @@ } .tabs--container--with-border { - @apply border-b border-slate-50 dark:border-slate-800/50; + @apply border-b border-n-weak; } .tabs { @@ -19,22 +19,12 @@ @apply items-center rounded-none cursor-pointer flex h-auto justify-center min-w-[2rem]; } -// Tab chat type -.tab--chat-type { - @apply flex; - - .tabs-title { - a { - @apply text-base font-medium py-3; - } - } -} .tabs-title { @apply flex-shrink-0 my-0 mx-2; .badge { - @apply bg-slate-50 dark:bg-slate-800 rounded-md text-slate-600 dark:text-slate-100 h-5 flex items-center justify-center text-xxs font-semibold my-0 mx-1 px-1 py-0; + @apply bg-n-slate-3 rounded-xl text-n-slate-11 h-5 flex items-center justify-center text-xxs font-semibold my-0 mx-1 px-1 py-0; } &:first-child { @@ -48,22 +38,22 @@ &:hover, &:focus { a { - @apply text-slate-800 dark:text-slate-100; + @apply text-n-slate-11; } } a { - @apply flex items-center flex-row border-b py-2.5 select-none cursor-pointer border-transparent text-slate-500 dark:text-slate-200 text-sm top-[1px] relative; + @apply flex items-center flex-row border-b py-2.5 select-none cursor-pointer border-transparent text-n-slate-10 text-sm top-[1px] relative; transition: border-color 0.15s $swift-ease-out-function; } &.is-active { a { - @apply border-b border-woot-500 text-woot-500 dark:text-woot-500; + @apply border-b border-n-brand text-n-brand; } .badge { - @apply bg-woot-50 dark:bg-woot-500 text-woot-500 dark:text-woot-50 dark:bg-opacity-40; + @apply bg-n-slate-3 text-n-brand; } } } diff --git a/app/javascript/dashboard/components/widgets/BackButton.vue b/app/javascript/dashboard/components/widgets/BackButton.vue index 5051b2599..ae41cbc2f 100644 --- a/app/javascript/dashboard/components/widgets/BackButton.vue +++ b/app/javascript/dashboard/components/widgets/BackButton.vue @@ -23,14 +23,12 @@ const goBack = () => { } }; -const buttonStyleClass = props.compact - ? 'text-sm text-slate-600 dark:text-slate-300' - : 'text-base text-woot-500 dark:text-woot-500'; +const buttonStyleClass = props.compact ? 'text-sm' : 'text-base';