-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add custom color picker #474
Conversation
Thank you for following the naming conventions for pull request titles! 🙏 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great progress so far
apps/dashboard/src/app.postcss
Outdated
.theme-custom .bg-primary-50 { | ||
background-color: #fff1f2 !important; | ||
} | ||
.theme-custom .text-primary-50 { | ||
color: #fff1f2 !important; | ||
} | ||
.theme-custom .border-primary-50 { | ||
border-color: #fff1f2 !important; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tunny17 This should probably not be here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, my bad, i'll remove that in this fix i'm about to push
if (!hex) return; | ||
|
||
// Create a promise that resolves after the delay | ||
await new Promise((resolve) => setTimeout(resolve, 1000)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably remove this, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
honestly, no, whenever that picker gets dragged we update our db so if we remove this and a user drags from point a to b in 10s, we'll be sending 10 requests to supabase so i added this one to make that request on finalize
.update({ theme: hex }) | ||
.match({ id: $currentOrg.id }); | ||
|
||
console.log('Update theme', res); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Show a snackbar if an error occurs here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alright
apps/dashboard/src/lib/components/Org/Settings/OrgSettings.svelte
Outdated
Show resolved
Hide resolved
…o org-color-picker
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What does this PR do?
Fixes # (place issue number here without bracket)
Type of change
How should this be tested?
Checklist
Required
pnpm build
console.logs
git pull origin main
Appreciated