Update WorkflowGuide component to include industry and sector selection; enhance site creation process with new state management and validation. Refactor SelectDropdown for improved styling and functionality. Add HomepageSiteSelector for better site management in Dashboard.

This commit is contained in:
IGNY8 VPS (Salman)
2025-11-21 03:34:52 +00:00
parent c8adfe06d1
commit 5106f7b200
5 changed files with 1754 additions and 674 deletions

View File

@@ -102,7 +102,9 @@ const SelectDropdown: React.FC<SelectDropdownProps> = ({
onClick={() => !disabled && setIsOpen(!isOpen)}
disabled={disabled}
onKeyDown={handleKeyDown}
className={`igny8-select-styled h-9 w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-3 py-2 pr-10 text-sm shadow-theme-xs focus:border-brand-300 focus:outline-hidden focus:ring-3 focus:ring-brand-500/10 dark:border-gray-700 dark:bg-gray-900 dark:focus:border-brand-800 ${
className={`igny8-select-styled w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-3 pr-10 shadow-theme-xs focus:border-brand-300 focus:outline-hidden focus:ring-3 focus:ring-brand-500/10 dark:border-gray-700 dark:bg-gray-900 dark:focus:border-brand-800 ${
className.includes('text-base') ? 'h-11 py-2.5 text-base' : 'h-9 py-2 text-sm'
} ${
isPlaceholder
? "text-gray-400 dark:text-gray-400"
: "text-gray-800 dark:text-white/90"
@@ -140,7 +142,9 @@ const SelectDropdown: React.FC<SelectDropdownProps> = ({
// Pass the normalized optionValue to ensure consistency
handleSelect(optionValue);
}}
className={`w-full text-left px-3 py-2 text-sm transition-colors flex items-center gap-2 ${
className={`w-full text-left px-3 py-2 transition-colors flex items-center gap-2 ${
className.includes('text-base') ? 'text-base' : 'text-sm'
} ${
isSelected
? "bg-brand-500 text-white"
: "text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-800"