feat: visual color picker (#43)

* feat: visual color picker

* feat: use pallete for random colors

* fix: style issues like indentation in code and different color format
This commit is contained in:
Dmitrii Anfimov
2025-08-13 10:22:19 +02:00
committed by GitHub
parent 7aa9d25275
commit e4e7076f9e
6 changed files with 111 additions and 250 deletions

View File

@@ -27,7 +27,7 @@ export default async function CategoriesSettingsPage() {
columns={[
{ key: "name", label: "Name", editable: true },
{ key: "llm_prompt", label: "LLM Prompt", editable: true },
{ key: "color", label: "Color", defaultValue: randomHexColor(), editable: true },
{ key: "color", label: "Color", type: "color", defaultValue: randomHexColor(), editable: true },
]}
onDelete={async (code) => {
"use server"

View File

@@ -26,7 +26,7 @@ export default async function ProjectsSettingsPage() {
columns={[
{ key: "name", label: "Name", editable: true },
{ key: "llm_prompt", label: "LLM Prompt", editable: true },
{ key: "color", label: "Color", defaultValue: randomHexColor(), editable: true },
{ key: "color", label: "Color", type: "color", defaultValue: randomHexColor(), editable: true },
]}
onDelete={async (code) => {
"use server"