Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): add some option icons

Ramesh Mane76219a66280c
diff --git a/packages/nc-gui/assets/nc-icons-v2/bamboo-hr-colored.svg b/packages/nc-gui/assets/nc-icons-v2/bamboo-hr-colored.svg
new file mode 100644
index 0000000000..714f73cee4
--- /dev/null
+++ b/packages/nc-gui/assets/nc-icons-v2/bamboo-hr-colored.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M14.031 16.9225C12.4811 16.9225 11.1697 15.7004 11.1697 14.0639C11.1697 12.4262 12.2755 11.0811 14.0587 11.0811C15.8422 11.0811 16.893 12.5232 16.893 14.0335C16.893 15.6768 15.7813 16.9225 14.031 16.9225ZM9.46185 11.5004L8.91413 9.7062C8.5875 8.76248 8.49075 8.2191 7.5699 7.24691C7.25429 6.91325 6.06062 6.17947 6.209 6.33966C7.72193 7.97295 8.49555 9.9513 8.79383 10.5009C8.51955 10.168 8.19847 9.8694 7.83195 9.49732C7.51965 9.1806 7.19376 8.89493 6.88408 8.70375C6.68034 8.57752 6.56592 8.50778 6.35886 8.40075C5.42688 7.91648 4.52332 7.62337 4.17637 7.53667C3.75264 7.4311 3.33519 7.40378 3.33519 7.40378C3.33519 7.40378 4.68573 8.54393 5.26447 9.26993C5.84323 9.99563 6.43378 10.646 7.08635 10.9121C7.73895 11.1782 7.9659 11.2542 8.47935 11.3321C8.92193 11.3989 9.46185 11.5004 9.46185 11.5004ZM14.155 9.91072C12.727 9.91072 11.9611 10.4009 11.4244 10.9339L11.2778 11.0874L11.2775 6.30091H10.0436V14.1343C10.0436 16.5449 11.9002 18.0468 14.0306 18.0468C16.3777 18.0468 18.1542 16.2408 18.1542 13.9191C18.1546 11.7636 16.3013 9.91072 14.155 9.91072ZM24 12.0002C24 18.6274 18.6274 24 12.0002 24C5.37299 24 0 18.6274 0 12.0002C0 5.37299 5.37262 0 11.9998 0C18.627 0 24 5.37262 24 12.0002Z" fill="#73C41D"/>
+</svg>
\ No newline at end of file
diff --git a/packages/nc-gui/assets/nc-icons-v2/docker-colored.svg b/packages/nc-gui/assets/nc-icons-v2/docker-colored.svg
new file mode 100644
index 0000000000..b772f01862
--- /dev/null
+++ b/packages/nc-gui/assets/nc-icons-v2/docker-colored.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
+ <path d="M23.5749 10.3512C23.0345 9.98361 21.796 9.84578 20.8277 10.0296C20.7151 9.11067 20.1972 8.30665 19.2965 7.59452L18.7786 7.22697L18.4183 7.75532C17.9679 8.44449 17.7427 9.40931 17.8103 10.3282C17.8328 10.6498 17.9454 11.2241 18.2832 11.7295C17.9679 11.9133 17.3149 12.143 16.4592 12.143H0.178572L0.133536 12.3268C-0.024091 13.2456 -0.0240911 16.1172 1.8224 18.3225C3.21852 19.9994 5.29019 20.8494 8.01488 20.8494C13.9146 20.8494 18.2832 18.0698 20.3323 13.0389C21.143 13.0619 22.8769 13.0389 23.7551 11.316C23.7776 11.27 23.8226 11.1782 23.9802 10.8336L24.0703 10.6498L23.5749 10.3512ZM13.1941 3.87305H10.7171V6.17025H13.1941V3.87305ZM13.1941 6.62969H10.7171V8.9269H13.1941V6.62969ZM10.2667 6.62969H7.7897V8.9269H10.2667V6.62969ZM7.33934 6.62969H4.86234V8.9269H7.33934V6.62969ZM4.41198 9.38634H1.93499V11.6835H4.41198V9.38634ZM7.33934 9.38634H4.86234V11.6835H7.33934V9.38634ZM10.2667 9.38634H7.7897V11.6835H10.2667V9.38634ZM13.1941 9.38634H10.7171V11.6835H13.1941V9.38634ZM16.1214 9.38634H13.6444V11.6835H16.1214V9.38634Z" fill="#2396ED"/>
+</svg>
\ No newline at end of file
diff --git a/packages/nc-gui/assets/nc-icons-v2/workday-colored-outline.svg b/packages/nc-gui/assets/nc-icons-v2/workday-colored-outline.svg
new file mode 100644
index 0000000000..67c1aeb231
--- /dev/null
+++ b/packages/nc-gui/assets/nc-icons-v2/workday-colored-outline.svg
@@ -0,0 +1,16 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
+ <g clip-path="url(#clip0_336_18826)">
+ <mask id="mask0_336_18826" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="25" height="24">
+ <path d="M24.0612 0H0.0611572V24H24.0612V0Z" fill="white"/>
+ </mask>
+ <g mask="url(#mask0_336_18826)">
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M3.50318 11.7549H5.14798C5.38118 11.7549 5.58358 11.9116 5.63678 12.1334L7.84818 21.0684C7.87858 21.0688 10.2846 12.1405 10.2846 12.1405C10.3458 11.9133 10.5566 11.7549 10.7978 11.7549H13.3458C13.5746 11.7549 13.7746 11.9052 13.8328 12.1208L16.2564 21.1066C16.346 21.0502 18.4858 12.1334 18.4858 12.1334C18.5392 11.9116 18.7416 11.7549 18.9746 11.7549H20.6184C20.9482 11.7549 21.1892 12.0587 21.1058 12.3697L18.0898 23.6332C18.0326 23.8476 17.8354 23.9978 17.6086 23.9998L15.121 23.996C14.8926 23.9956 14.6936 23.8472 14.6352 23.6322C14.21 22.0712 12.1142 14.1768 12.1142 14.1768C12.1142 14.1768 9.91258 22.071 9.48758 23.6322C9.42898 23.8472 9.22998 23.9956 9.00178 23.996L6.51398 23.9998C6.28738 23.9978 6.09018 23.8476 6.03278 23.6332L3.01658 12.3685C2.93338 12.0581 3.17378 11.7549 3.50318 11.7549Z" fill="#005CB9"/>
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M19.926 8.44898C20.0322 8.44898 20.1402 8.43452 20.2476 8.4043C20.8836 8.22494 21.2554 7.55824 21.0782 6.9151C21.0524 6.82164 21.0252 6.72856 20.9966 6.63638C19.767 2.66698 16.175 0 12.0586 0C7.94723 0 4.35663 2.66266 3.12403 6.62562C3.09683 6.71272 3.07063 6.80126 3.04583 6.89026C2.86543 7.53264 3.23443 8.20108 3.86983 8.38316C4.50443 8.5654 5.16583 8.19222 5.34603 7.54984C5.36483 7.4834 5.38403 7.41752 5.40443 7.352C6.32263 4.40036 8.99663 2.41786 12.0586 2.41786C15.1244 2.41786 17.7994 4.40354 18.7148 7.35912C18.7358 7.42706 18.756 7.49552 18.775 7.56438C18.9224 8.0989 19.4028 8.44898 19.926 8.44898Z" fill="#F38B00"/>
+ </g>
+ </g>
+ <defs>
+ <clipPath id="clip0_336_18826">
+ <rect width="24" height="24" fill="white"/>
+ </clipPath>
+ </defs>
+</svg>
\ No newline at end of file
diff --git a/packages/nc-gui/components/auth/onboarding/Layout/index.vue b/packages/nc-gui/components/auth/onboarding/Layout/index.vue
index cea974ffdb..b67696be6a 100644
--- a/packages/nc-gui/components/auth/onboarding/Layout/index.vue
+++ b/packages/nc-gui/components/auth/onboarding/Layout/index.vue
@@ -1,5 +1,6 @@
<script lang="ts" setup>
-const { stepper, onCompleteOnboardingFlow, isFilledQuestionAnswer, isFilledVisibleOptions, questionsMap } = useOnboardingFlow()
+const { stepper, onCompleteOnboardingFlow, isFilledQuestionAnswer, isFilledVisibleOptions, questionsMap, formState } =
+ useOnboardingFlow()
const { index: stepIndex, steps, isLast, isFirst, goToNext, goToPrevious } = stepper
@@ -16,6 +17,10 @@ const progress = computed(() => {
}
})
+const showNextButton = computed(() => {
+ return stepIndex.value !== 0 || isFilledSecondScreenOptions.value || Object.keys(formState.value).length > 2
+})
+
useEventListener('keydown', (event) => {
if (event.key === 'Enter') {
if (!event.shiftKey && isFilledVisibleOptions.value) {
@@ -70,8 +75,8 @@ useEventListener('keydown', (event) => {
<div
class="flex items-center"
:class="{
- 'justify-center': stepIndex === 0 && !isFilledSecondScreenOptions,
- 'justify-between': stepIndex > 0 || isFilledSecondScreenOptions,
+ 'justify-center': !showNextButton,
+ 'justify-between': showNextButton,
}"
>
<NcButton v-if="stepIndex === 0" type="text" size="small" @click="onCompleteOnboardingFlow(true)">
@@ -85,7 +90,7 @@ useEventListener('keydown', (event) => {
</template>
{{ $t('general.back') }}
</NcButton>
- <template v-if="stepIndex !== 0 || isFilledSecondScreenOptions">
+ <template v-if="showNextButton">
<NcButton
type="primary"
size="small"
diff --git a/packages/nc-gui/components/auth/onboarding/Question/Option/Icon.vue b/packages/nc-gui/components/auth/onboarding/Question/Option/Icon.vue
index b7faa378ed..9d4adeb8bc 100644
--- a/packages/nc-gui/components/auth/onboarding/Question/Option/Icon.vue
+++ b/packages/nc-gui/components/auth/onboarding/Question/Option/Icon.vue
@@ -15,7 +15,7 @@ const showIconMapIcon = computed(() => {
})
const shouldShowIcon = computed(() => {
- return option.value.iconType || (!option.value.iconType && option.value.icon)
+ return option.value.iconType || (!option.value.iconType && option.value.icon) || option.value.icons?.length
})
const iconColor = computed(() => {
@@ -44,7 +44,7 @@ const bgColorClass = computed(() => {
}"
>
<GeneralIcon
- :icon="option.icon!"
+ :icon="option.icon! as IconMapKey"
class="flex-none"
:class="[
iconColor,
diff --git a/packages/nc-gui/components/auth/onboarding/Question/Option/index.vue b/packages/nc-gui/components/auth/onboarding/Question/Option/index.vue
index 38c9eb118f..f38df8eed0 100644
--- a/packages/nc-gui/components/auth/onboarding/Question/Option/index.vue
+++ b/packages/nc-gui/components/auth/onboarding/Question/Option/index.vue
@@ -18,7 +18,13 @@ const { option } = toRefs(props)
'!px-2 !rounded-xl': option.iconColor,
}"
>
- <AuthOnboardingQuestionOptionIcon :option="option" :index="index" :total-options="totalOptions" :icon-size="iconSize" />
+ <AuthOnboardingQuestionOptionIcon
+ v-if="!option.iconPosition || option.iconPosition === 'left'"
+ :option="option"
+ :index="index"
+ :total-options="totalOptions"
+ :icon-size="iconSize"
+ />
<div v-if="option.description" class="flex flex-col gap-1">
<div class="text-bodyDefaultSmBold text-nc-content-gray-subtle">
{{ option.value }}
@@ -30,6 +36,14 @@ const { option } = toRefs(props)
<div v-else class="text-bodyBold text-nc-content-gray">
{{ option.value }}
</div>
+
+ <AuthOnboardingQuestionOptionIcon
+ v-if="option.iconPosition === 'right'"
+ :option="option"
+ :index="index"
+ :total-options="totalOptions"
+ :icon-size="iconSize"
+ />
</div>
</template>
diff --git a/packages/nc-gui/composables/useOnboardingFlow.ts b/packages/nc-gui/composables/useOnboardingFlow.ts
index 47eb1d2c17..f4babc7f6a 100644
--- a/packages/nc-gui/composables/useOnboardingFlow.ts
+++ b/packages/nc-gui/composables/useOnboardingFlow.ts
@@ -1,3 +1,21 @@
+export interface OnboardingOptionIconType {
+ icon: IconMapKey | VNode
+ iconColor?: string
+ /**
+ * @default 'left'
+ */
+ iconPosition?: 'left' | 'right'
+ /**
+ * `Undefined` will be considered as `iconMap`
+ */
+ iconType?: 'indexedStepProgressBar' | 'iconMap' | 'vNode' | 'image'
+ /**
+ * If `iconType` is `image`, then `img` is required
+ * Add only imported image else full path required
+ */
+ img?: string
+}
+
export interface OnboardingOptionType {
value: string
description?: string
@@ -14,6 +32,11 @@ export interface OnboardingOptionType {
/**
* `resetOnSelect` will be helpful if option is `None of the above` or `Other` to reset previous selection if user select this option
*/
+
+ /**
+ * Allow multiple icons to be shown in the option
+ */
+ icons?: OnboardingOptionIconType[]
resetOnSelect?: boolean
}
@@ -189,6 +212,115 @@ export const useOnboardingFlow = createSharedComposable(() => {
},
{
id: 3,
+ question: 'Which department are you in',
+ inputType: 'singleSelect',
+ options: [
+ {
+ value: 'Human Resources',
+ iconPosition: 'right',
+ icons: [
+ {
+ icon: 'ncLogoWorkdayColoredOutline',
+ },
+ {
+ icon: 'lever',
+ },
+ ],
+ },
+ {
+ value: 'Marketing',
+ iconPosition: 'right',
+ icons: [
+ {
+ icon: 'hubspot',
+ },
+ {
+ icon: 'ncLogoMailchimpColored',
+ },
+ ],
+ },
+ {
+ value: 'Sales',
+ iconPosition: 'right',
+ },
+ {
+ value: 'Product',
+ iconPosition: 'right',
+ },
+ {
+ value: 'Finance',
+ iconPosition: 'right',
+ },
+ {
+ value: 'Design',
+ iconPosition: 'right',
+ },
+ {
+ value: 'Data Analyst',
+ iconPosition: 'right',
+ },
+ {
+ value: 'Engineering',
+ iconPosition: 'right',
+ icons: [
+ {
+ icon: 'ncLogoDockerColored',
+ },
+ {
+ icon: 'ncLogoJiraColored',
+ },
+ {
+ icon: 'ncLogoGithubColored',
+ },
+ ],
+ },
+ {
+ value: 'Legal',
+ iconPosition: 'right',
+ },
+ {
+ value: 'Customer Support',
+ iconPosition: 'right',
+ icons: [
+ {
+ icon: 'ncLogoFreshdeskColored',
+ },
+ {
+ icon: 'ncLogoIntercomColored',
+ },
+ {
+ icon: 'ncLogoZendeskColored',
+ },
+ ],
+ },
+ {
+ value: 'Operations',
+ iconPosition: 'right',
+ icons: [
+ {
+ icon: 'ncLogoNotionColored',
+ },
+ {
+ icon: 'ncLogoAsanaColored',
+ },
+ ],
+ },
+ ],
+ rightSection: {
+ themeColor: 'orange',
+ moscot: 'moscotWelcomeOrange',
+ imageName: 'grid',
+ },
+ iconSize: {
+ width: 40,
+ height: 40,
+ },
+ config: {
+ optionsInEachRow: 1,
+ },
+ },
+ {
+ id: 4,
question: 'How many people work at your company?',
inputType: 'singleSelect',
options: ['0-10', '11-50', '51-250', '251-1000', '1000+'].reverse().map((value) => ({ value })),
@@ -199,7 +331,7 @@ export const useOnboardingFlow = createSharedComposable(() => {
},
},
{
- id: 4,
+ id: 5,
question: 'How many people are in your team?',
inputType: 'singleSelect',
options: ['20+', '11-20', '1-10', 'Only me'].map((value) => ({ value })),
@@ -210,7 +342,7 @@ export const useOnboardingFlow = createSharedComposable(() => {
},
},
{
- id: 5,
+ id: 6,
question: 'How experienced are you with app building?',
inputType: 'singleSelect',
options: [
@@ -238,7 +370,7 @@ export const useOnboardingFlow = createSharedComposable(() => {
},
},
{
- id: 6,
+ id: 7,
question: 'Choose AI Tools That You Are Familiar With',
description: 'Unlocks Free Access To NocoAI πŸŽ‰ ',
inputType: 'multiSelect',
@@ -331,7 +463,7 @@ export const useOnboardingFlow = createSharedComposable(() => {
/*
// Commenting for now
{
- id: 7,
+ id: 8,
question: 'How do you want to build your database?',
inputType: 'singleSelect',
options: [
diff --git a/packages/nc-gui/utils/iconUtils.ts b/packages/nc-gui/utils/iconUtils.ts
index 7d92efa08a..85755b85af 100644
--- a/packages/nc-gui/utils/iconUtils.ts
+++ b/packages/nc-gui/utils/iconUtils.ts
@@ -730,6 +730,7 @@ import NcLogoTypeform from '~icons/nc-icons-v2/typeform.svg'
import NcLogoWhatsappColored from '~icons/nc-icons-v2/whatsapp-colored.svg'
import NcLogoWhatsapp from '~icons/nc-icons-v2/whatsapp.svg'
import NcLogoWorkdayColored from '~icons/nc-icons-v2/workday-colored.svg'
+import NcLogoWorkdayColoredOutline from '~icons/nc-icons-v2/workday-colored-outline.svg'
import NcLogoWorkday from '~icons/nc-icons-v2/workday.svg'
import NcLogoZendeskColored from '~icons/nc-icons-v2/zendesk-colored.svg'
import NcLogoZendesk from '~icons/nc-icons-v2/zendesk.svg'
@@ -748,6 +749,8 @@ import NcLogoManusIm from '~icons/nc-icons-v2/manus-im.svg'
import NcLogoHuggingface from '~icons/nc-icons-v2/huggingface-colored.svg'
import NcLogoReplitAi from '~icons/nc-icons-v2/replit-ai-colored.svg'
import NcLogoLangchain from '~icons/nc-icons-v2/langchain.svg'
+import NcLogoBambooHrColored from '~icons/nc-icons-v2/bamboo-hr-colored.svg'
+import NcLogoDockerColored from '~icons/nc-icons-v2/docker-colored.svg'
import NcSendAlt from '~icons/nc-icons-v2/send-alt.svg'
import NcBaseOutline from '~icons/nc-icons-v2/base-outline.svg'
@@ -1718,6 +1721,7 @@ export const iconMap = {
'ncLogoWhatsappColored': h(NcLogoWhatsappColored, { stroke: 'transparent' }),
'ncLogoWhatsapp': h(NcLogoWhatsapp, { stroke: 'transparent' }),
'ncLogoWorkdayColored': h(NcLogoWorkdayColored, { stroke: 'transparent' }),
+ 'ncLogoWorkdayColoredOutline': h(NcLogoWorkdayColoredOutline, { stroke: 'transparent' }),
'ncLogoWorkday': h(NcLogoWorkday, { stroke: 'transparent' }),
'ncLogoZendeskColored': h(NcLogoZendeskColored, { stroke: 'transparent' }),
'ncLogoZendesk': h(NcLogoZendesk, { stroke: 'transparent' }),
@@ -1736,6 +1740,8 @@ export const iconMap = {
'ncLogoHuggingface': h(NcLogoHuggingface, { stroke: 'transparent' }),
'ncLogoReplitAi': h(NcLogoReplitAi, { stroke: 'transparent' }),
'ncLogoLangchain': h(NcLogoLangchain, { stroke: 'transparent' }),
+ 'ncLogoBambooHrColored': h(NcLogoBambooHrColored, { stroke: 'transparent' }),
+ 'ncLogoDockerColored': h(NcLogoDockerColored, { stroke: 'transparent' }),
'ncSendAlt': h(NcSendAlt, { stroke: 'transparent' }),
'ncStopCircle': h(NcStopCircle, { stroke: 'transparent' }),
@@ -3295,6 +3301,9 @@ export const emojiIcons = [
'globe-with-meridians',
]
+/**
+ * keywords - add proper keywords which align with the icon name
+ */
export const searchableMap = {
ncColumns: { icon: NcColumnsIcon, keywords: ['Grid', 'Layout', 'Structure', 'Organization', 'Architecture'] },
ncUnderline: { icon: NcUnderlineIcon, keywords: ['text', 'formatting', 'highlight', 'emphasis', 'typography'] },
@@ -4364,6 +4373,97 @@ export const searchableMap = {
icon: h(NcLogoMakeColored, { stroke: 'transparent' }),
keywords: ['make', 'automation', 'workflow', 'integration', 'connect', 'nocode'],
},
+ ncLogoCrewAi: {
+ icon: h(NcLogoCrewAi, { stroke: 'transparent' }),
+ keywords: [
+ 'crew',
+ 'crew.ai',
+ 'workflow automation',
+ 'AI agents',
+ 'team collaboration',
+ 'autonomous agents',
+ 'ai',
+ 'nocode',
+ 'integration',
+ ],
+ },
+ ncLogoManusIm: {
+ icon: h(NcLogoManusIm, { stroke: 'transparent' }),
+ keywords: [
+ 'manus',
+ 'manus.im',
+ 'automation',
+ 'AI workflows',
+ 'business automation',
+ 'nocode',
+ 'workflow builder',
+ 'integration',
+ ],
+ },
+ ncLogoHuggingface: {
+ icon: h(NcLogoHuggingface, { stroke: 'transparent' }),
+ keywords: [
+ 'huggingface',
+ 'transformers',
+ 'nlp',
+ 'ai models',
+ 'ml',
+ 'machine learning',
+ 'text generation',
+ 'open source',
+ 'integration',
+ ],
+ },
+ ncLogoReplitAi: {
+ icon: h(NcLogoReplitAi, { stroke: 'transparent' }),
+ keywords: [
+ 'replit',
+ 'replit.ai',
+ 'code',
+ 'cloud IDE',
+ 'developer tools',
+ 'generative AI',
+ 'ai coding',
+ 'automation',
+ 'nocode',
+ 'integration',
+ ],
+ },
+ ncLogoLangchain: {
+ icon: h(NcLogoLangchain, { stroke: 'transparent' }),
+ keywords: [
+ 'langchain',
+ 'ai agents',
+ 'llm orchestration',
+ 'prompt chaining',
+ 'generative AI',
+ 'framework',
+ 'openai',
+ 'rag',
+ 'nocode',
+ 'workflow',
+ 'integration',
+ ],
+ },
+ ncLogoBambooHrColored: {
+ icon: h(NcLogoBambooHrColored, { stroke: 'transparent' }),
+ keywords: [
+ 'bamboohr',
+ 'hr software',
+ 'human resources',
+ 'employee management',
+ 'performance',
+ 'time tracking',
+ 'hr automation',
+ 'workflow',
+ 'integration',
+ ],
+ },
+ ncLogoDockerColored: {
+ icon: h(NcLogoDockerColored, { stroke: 'transparent' }),
+ keywords: ['docker', 'containerization', 'devops', 'cloud', 'infrastructure'],
+ },
+
ncBaseOutline: {
icon: NcBaseOutline,
keywords: ['base', 'database', 'storage', 'db'],