Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(labels): use the new palette colors in emails, integrations, CLI help and mobile

Debug-Jeffd740b07349f0
diff --git a/apps/api/src/notification-preferences/email-task-format.test.ts b/apps/api/src/notification-preferences/email-task-format.test.ts
index 67550f916..efd67b73d 100644
--- a/apps/api/src/notification-preferences/email-task-format.test.ts
+++ b/apps/api/src/notification-preferences/email-task-format.test.ts
@@ -10,6 +10,7 @@ import {
describe("email task format", () => {
it("maps label color names and keeps hex values", () => {
expect(resolveLabelColor("purple")).toBe("#8E51FF");
+ expect(resolveLabelColor("fuchsia")).toBe("#C800DE");
expect(resolveLabelColor("#123abc")).toBe("#123abc");
expect(resolveLabelColor("var(--x)")).toBe("#A1A1A1");
});
diff --git a/apps/api/src/notification-preferences/email-task-format.ts b/apps/api/src/notification-preferences/email-task-format.ts
index 6b6e964a2..c5ad84dca 100644
--- a/apps/api/src/notification-preferences/email-task-format.ts
+++ b/apps/api/src/notification-preferences/email-task-format.ts
@@ -16,6 +16,10 @@ const labelColors: Record<string, string> = {
orange: "#F54900",
pink: "#EC003F",
red: "#E7000B",
+ blue: "#155DFC",
+ sky: "#00A6F4",
+ cyan: "#0092B8",
+ fuchsia: "#C800DE",
};
const FALLBACK_LABEL_COLOR = "#A1A1A1";
diff --git a/apps/api/src/plugins/gitea/utils/sync-label-to-gitea.ts b/apps/api/src/plugins/gitea/utils/sync-label-to-gitea.ts
index abe06e9b1..f7700b4c4 100644
--- a/apps/api/src/plugins/gitea/utils/sync-label-to-gitea.ts
+++ b/apps/api/src/plugins/gitea/utils/sync-label-to-gitea.ts
@@ -15,13 +15,13 @@ const namedColorToHex: Record<string, string> = {
green: "22C55E",
emerald: "10B981",
teal: "14B8A6",
- cyan: "06B6D4",
- sky: "0EA5E9",
- blue: "3B82F6",
+ cyan: "0092B8",
+ sky: "00A6F4",
+ blue: "155DFC",
indigo: "6366F1",
violet: "8B5CF6",
purple: "A855F7",
- fuchsia: "D946EF",
+ fuchsia: "C800DE",
pink: "EC4899",
rose: "F43F5E",
gray: "6B7280",
diff --git a/apps/api/src/plugins/github/utils/sync-label-to-github.ts b/apps/api/src/plugins/github/utils/sync-label-to-github.ts
index c489e8f2f..b4644dfad 100644
--- a/apps/api/src/plugins/github/utils/sync-label-to-github.ts
+++ b/apps/api/src/plugins/github/utils/sync-label-to-github.ts
@@ -15,13 +15,13 @@ const namedColorToHex: Record<string, string> = {
green: "22C55E",
emerald: "10B981",
teal: "14B8A6",
- cyan: "06B6D4",
- sky: "0EA5E9",
- blue: "3B82F6",
+ cyan: "0092B8",
+ sky: "00A6F4",
+ blue: "155DFC",
indigo: "6366F1",
violet: "8B5CF6",
purple: "A855F7",
- fuchsia: "D946EF",
+ fuchsia: "C800DE",
pink: "EC4899",
rose: "F43F5E",
gray: "6B7280",
diff --git a/apps/api/src/plugins/gitlab/utils/sync-label-to-gitlab.ts b/apps/api/src/plugins/gitlab/utils/sync-label-to-gitlab.ts
index 167fc2144..c450c12e5 100644
--- a/apps/api/src/plugins/gitlab/utils/sync-label-to-gitlab.ts
+++ b/apps/api/src/plugins/gitlab/utils/sync-label-to-gitlab.ts
@@ -15,13 +15,13 @@ const namedColorToHex: Record<string, string> = {
green: "22C55E",
emerald: "10B981",
teal: "14B8A6",
- cyan: "06B6D4",
- sky: "0EA5E9",
- blue: "3B82F6",
+ cyan: "0092B8",
+ sky: "00A6F4",
+ blue: "155DFC",
indigo: "6366F1",
violet: "8B5CF6",
purple: "A855F7",
- fuchsia: "D946EF",
+ fuchsia: "C800DE",
pink: "EC4899",
rose: "F43F5E",
gray: "6B7280",
diff --git a/apps/docs/cli/reference.mdx b/apps/docs/cli/reference.mdx
index f03529a26..6ed2c3cf6 100644
--- a/apps/docs/cli/reference.mdx
+++ b/apps/docs/cli/reference.mdx
@@ -436,7 +436,7 @@ Lists the labels in your workspace.
kaneo label create [<name>] [-c <color>]
```
-Creates a workspace label. `-c`, `--color` takes a hex color such as `#e7000b`, or one of `stone`, `slate`, `lavender`, `sage`, `forest`, `amber`, `terracotta`, `rose` or `crimson`. By default the CLI picks an unused color.
+Creates a workspace label. `-c`, `--color` takes a hex color such as `#e7000b`, or one of `stone`, `slate`, `lavender`, `sage`, `forest`, `amber`, `terracotta`, `rose`, `crimson`, `ocean`, `sky`, `lagoon` or `orchid`. By default the CLI picks an unused color.
### `kaneo label edit`
diff --git a/apps/mobile/src/features/task/label-picker.tsx b/apps/mobile/src/features/task/label-picker.tsx
index e283bc672..a0ba05025 100644
--- a/apps/mobile/src/features/task/label-picker.tsx
+++ b/apps/mobile/src/features/task/label-picker.tsx
@@ -144,6 +144,7 @@ function LabelPickerBody({
style={{
flexDirection: "row",
alignItems: "center",
+ flexWrap: "wrap",
gap: 8,
paddingHorizontal: 12,
paddingTop: 12,
diff --git a/apps/mobile/src/lib/style.test.ts b/apps/mobile/src/lib/style.test.ts
index 2b4a9a682..2e1618ea4 100644
--- a/apps/mobile/src/lib/style.test.ts
+++ b/apps/mobile/src/lib/style.test.ts
@@ -31,6 +31,7 @@ describe("translated constants", () => {
expect(priorityLabel("urgent")).toBe("Urgent");
expect(priorityLabel(null)).toBe("No priority");
expect(LABEL_COLORS[0].label).toBe("Stone");
+ expect(LABEL_COLORS.at(-1)?.label).toBe("Orchid");
expect(ROLE_HINTS.viewer).toBe("Can view projects and tasks");
expect(ROLE_HINTS.auditor).toBeUndefined();
});
diff --git a/apps/mobile/src/lib/style.ts b/apps/mobile/src/lib/style.ts
index f1a80f32b..9c1910823 100644
--- a/apps/mobile/src/lib/style.ts
+++ b/apps/mobile/src/lib/style.ts
@@ -102,6 +102,34 @@ export const LABEL_COLORS = [
},
color: "#E7000B",
},
+ {
+ value: "blue",
+ get label() {
+ return i18n.t("mobile:meta.labelColor.ocean");
+ },
+ color: "#155DFC",
+ },
+ {
+ value: "sky",
+ get label() {
+ return i18n.t("mobile:meta.labelColor.sky");
+ },
+ color: "#00A6F4",
+ },
+ {
+ value: "cyan",
+ get label() {
+ return i18n.t("mobile:meta.labelColor.lagoon");
+ },
+ color: "#0092B8",
+ },
+ {
+ value: "fuchsia",
+ get label() {
+ return i18n.t("mobile:meta.labelColor.orchid");
+ },
+ color: "#C800DE",
+ },
] as const;
export function labelColor(value?: string | null): string {
diff --git a/i18n/az-AZ.json b/i18n/az-AZ.json
index 36bfacfd7..12bd16543 100644
--- a/i18n/az-AZ.json
+++ b/i18n/az-AZ.json
@@ -4092,9 +4092,13 @@
"amber": "Kəhrəba",
"crimson": "Al qırmızı",
"forest": "Meşə",
+ "lagoon": "Laqun rəngi",
"lavender": "Lavanda",
+ "ocean": "Okean mavisi",
+ "orchid": "Orxideya rəngi",
"rose": "Çəhrayı",
"sage": "Adaçayı",
+ "sky": "Səma mavisi",
"slate": "Şifer",
"stone": "Daş",
"terracotta": "Terrakota"
diff --git a/i18n/de-DE.json b/i18n/de-DE.json
index 8748e99ca..02091b6b9 100644
--- a/i18n/de-DE.json
+++ b/i18n/de-DE.json
@@ -4379,7 +4379,11 @@
"amber": "Bernstein",
"terracotta": "Terrakotta",
"rose": "Rosé",
- "crimson": "Karmesin"
+ "crimson": "Karmesin",
+ "ocean": "Ozean",
+ "sky": "Himmel",
+ "lagoon": "Lagune",
+ "orchid": "Orchidee"
},
"role": {
"owner": "Eigentümer",
diff --git a/i18n/el-GR.json b/i18n/el-GR.json
index b2f05555e..9bacd63da 100644
--- a/i18n/el-GR.json
+++ b/i18n/el-GR.json
@@ -4379,7 +4379,11 @@
"amber": "Κεχριμπάρι",
"terracotta": "Τερακότα",
"rose": "Ροζ",
- "crimson": "Βυσσινί"
+ "crimson": "Βυσσινί",
+ "ocean": "Ωκεανός",
+ "sky": "Ουρανός",
+ "lagoon": "Λιμνοθάλασσα",
+ "orchid": "Ορχιδέα"
},
"role": {
"owner": "Ιδιοκτήτης",
diff --git a/i18n/en-US.json b/i18n/en-US.json
index 070453909..f40d7a35c 100644
--- a/i18n/en-US.json
+++ b/i18n/en-US.json
@@ -4379,7 +4379,11 @@
"amber": "Amber",
"terracotta": "Terracotta",
"rose": "Rose",
- "crimson": "Crimson"
+ "crimson": "Crimson",
+ "ocean": "Ocean",
+ "sky": "Sky",
+ "lagoon": "Lagoon",
+ "orchid": "Orchid"
},
"role": {
"owner": "Owner",
diff --git a/i18n/es-ES.json b/i18n/es-ES.json
index c50fffb63..caa09ca76 100644
--- a/i18n/es-ES.json
+++ b/i18n/es-ES.json
@@ -4454,7 +4454,11 @@
"amber": "Ámbar",
"terracotta": "Terracota",
"rose": "Rosa",
- "crimson": "Carmesí"
+ "crimson": "Carmesí",
+ "ocean": "Océano",
+ "sky": "Cielo",
+ "lagoon": "Laguna",
+ "orchid": "Orquídea"
},
"role": {
"owner": "Propietario",
diff --git a/i18n/fr-FR.json b/i18n/fr-FR.json
index f6d7b5f26..5e36e05ae 100644
--- a/i18n/fr-FR.json
+++ b/i18n/fr-FR.json
@@ -4454,7 +4454,11 @@
"amber": "Ambre",
"terracotta": "Terre cuite",
"rose": "Rose",
- "crimson": "Cramoisi"
+ "crimson": "Cramoisi",
+ "ocean": "Océan",
+ "sky": "Ciel",
+ "lagoon": "Lagon",
+ "orchid": "Orchidée"
},
"role": {
"owner": "Propriétaire",
diff --git a/i18n/hi-IN.json b/i18n/hi-IN.json
index 4915a67ed..ef920489a 100644
--- a/i18n/hi-IN.json
+++ b/i18n/hi-IN.json
@@ -4379,7 +4379,11 @@
"amber": "एम्बर",
"terracotta": "टेराकोटा",
"rose": "गुलाबी",
- "crimson": "किरमिजी"
+ "crimson": "किरमिजी",
+ "ocean": "महासागर",
+ "sky": "आकाश",
+ "lagoon": "लैगून",
+ "orchid": "ऑर्किड"
},
"role": {
"owner": "मालिक",
diff --git a/i18n/id-ID.json b/i18n/id-ID.json
index 3f5743b21..56a458f19 100644
--- a/i18n/id-ID.json
+++ b/i18n/id-ID.json
@@ -4304,7 +4304,11 @@
"amber": "Amber",
"terracotta": "Terakota",
"rose": "Mawar",
- "crimson": "Merah tua"
+ "crimson": "Merah tua",
+ "ocean": "Biru Laut",
+ "sky": "Biru Langit",
+ "lagoon": "Biru Laguna",
+ "orchid": "Ungu Anggrek"
},
"role": {
"owner": "Pemilik",
diff --git a/i18n/it-IT.json b/i18n/it-IT.json
index 26faa6add..1be122b43 100644
--- a/i18n/it-IT.json
+++ b/i18n/it-IT.json
@@ -4454,7 +4454,11 @@
"amber": "Ambra",
"terracotta": "Terracotta",
"rose": "Rosa",
- "crimson": "Cremisi"
+ "crimson": "Cremisi",
+ "ocean": "Oceano",
+ "sky": "Cielo",
+ "lagoon": "Laguna",
+ "orchid": "Orchidea"
},
"role": {
"owner": "Proprietario",
diff --git a/i18n/ja-JP.json b/i18n/ja-JP.json
index 92b3841a0..18ecf5d1f 100644
--- a/i18n/ja-JP.json
+++ b/i18n/ja-JP.json
@@ -4025,9 +4025,13 @@
"amber": "アンバー",
"crimson": "クリムゾン",
"forest": "フォレスト",
+ "lagoon": "ラグーン",
"lavender": "ラベンダー",
+ "ocean": "オーシャン",
+ "orchid": "オーキッド",
"rose": "ローズ",
"sage": "セージ",
+ "sky": "スカイ",
"slate": "スレート",
"stone": "ストーン",
"terracotta": "テラコッタ"
diff --git a/i18n/ko-KR.json b/i18n/ko-KR.json
index a6a083845..fbd508a62 100644
--- a/i18n/ko-KR.json
+++ b/i18n/ko-KR.json
@@ -4025,9 +4025,13 @@
"amber": "앰버",
"crimson": "크림슨",
"forest": "포레스트",
+ "lagoon": "라군",
"lavender": "라벤더",
+ "ocean": "오션",
+ "orchid": "오키드",
"rose": "로즈",
"sage": "세이지",
+ "sky": "스카이",
"slate": "슬레이트",
"stone": "스톤",
"terracotta": "테라코타"
diff --git a/i18n/mk-MK.json b/i18n/mk-MK.json
index e313c8def..bd87817bc 100644
--- a/i18n/mk-MK.json
+++ b/i18n/mk-MK.json
@@ -4379,7 +4379,11 @@
"amber": "Килибар",
"terracotta": "Теракота",
"rose": "Роза",
- "crimson": "Гримизна"
+ "crimson": "Гримизна",
+ "ocean": "Океан",
+ "sky": "Небо",
+ "lagoon": "Лагуна",
+ "orchid": "Орхидеја"
},
"role": {
"owner": "Сопственик",
diff --git a/i18n/nl-NL.json b/i18n/nl-NL.json
index f9e2940e9..204b996c9 100644
--- a/i18n/nl-NL.json
+++ b/i18n/nl-NL.json
@@ -4092,9 +4092,13 @@
"amber": "Amber",
"crimson": "Karmozijn",
"forest": "Bos",
+ "lagoon": "Lagune",
"lavender": "Lavendel",
+ "ocean": "Oceaan",
+ "orchid": "Orchidee",
"rose": "Roos",
"sage": "Salie",
+ "sky": "Hemel",
"slate": "Leisteen",
"stone": "Steen",
"terracotta": "Terracotta"
diff --git a/i18n/pl-PL.json b/i18n/pl-PL.json
index 8aa07a344..963b2797f 100644
--- a/i18n/pl-PL.json
+++ b/i18n/pl-PL.json
@@ -4529,7 +4529,11 @@
"amber": "Bursztyn",
"terracotta": "Terakota",
"rose": "Róża",
- "crimson": "Karmazyn"
+ "crimson": "Karmazyn",
+ "ocean": "Ocean",
+ "sky": "Niebo",
+ "lagoon": "Laguna",
+ "orchid": "Orchidea"
},
"role": {
"owner": "Właściciel",
diff --git a/i18n/pt-BR.json b/i18n/pt-BR.json
index aed2d7b3c..1786f494f 100644
--- a/i18n/pt-BR.json
+++ b/i18n/pt-BR.json
@@ -4159,9 +4159,13 @@
"amber": "Âmbar",
"crimson": "Carmesim",
"forest": "Floresta",
+ "lagoon": "Laguna",
"lavender": "Lavanda",
+ "ocean": "Oceano",
+ "orchid": "Orquídea",
"rose": "Rosa",
"sage": "Sálvia",
+ "sky": "Céu",
"slate": "Ardósia",
"stone": "Pedra",
"terracotta": "Terracota"
diff --git a/i18n/ru-RU.json b/i18n/ru-RU.json
index 146d364d6..f62350ddc 100644
--- a/i18n/ru-RU.json
+++ b/i18n/ru-RU.json
@@ -4581,7 +4581,11 @@
"amber": "Янтарь",
"terracotta": "Терракота",
"rose": "Роза",
- "crimson": "Малиновый"
+ "crimson": "Малиновый",
+ "ocean": "Океан",
+ "sky": "Небо",
+ "lagoon": "Лагуна",
+ "orchid": "Орхидея"
},
"role": {
"owner": "Владелец",
diff --git a/i18n/tr-TR.json b/i18n/tr-TR.json
index 52f2ae6b7..d6b1aac9e 100644
--- a/i18n/tr-TR.json
+++ b/i18n/tr-TR.json
@@ -4092,9 +4092,13 @@
"amber": "Kehribar",
"crimson": "Kızıl",
"forest": "Orman",
+ "lagoon": "Lagün",
"lavender": "Lavanta",
+ "ocean": "Okyanus",
+ "orchid": "Orkide",
"rose": "Gül",
"sage": "Adaçayı",
+ "sky": "Gökyüzü",
"slate": "Arduvaz",
"stone": "Taş",
"terracotta": "Terakota"
diff --git a/i18n/uk-UA.json b/i18n/uk-UA.json
index 7a5ce0db5..1df72076f 100644
--- a/i18n/uk-UA.json
+++ b/i18n/uk-UA.json
@@ -4529,7 +4529,11 @@
"amber": "Бурштин",
"terracotta": "Теракота",
"rose": "Троянда",
- "crimson": "Багряний"
+ "crimson": "Багряний",
+ "ocean": "Океан",
+ "sky": "Небо",
+ "lagoon": "Лагуна",
+ "orchid": "Орхідея"
},
"role": {
"owner": "Власник",
diff --git a/i18n/vi-VN.json b/i18n/vi-VN.json
index 1235a8da5..23623074b 100644
--- a/i18n/vi-VN.json
+++ b/i18n/vi-VN.json
@@ -4304,7 +4304,11 @@
"amber": "Hổ phách",
"terracotta": "Đất nung",
"rose": "Hồng",
- "crimson": "Đỏ thẫm"
+ "crimson": "Đỏ thẫm",
+ "ocean": "Xanh đại dương",
+ "sky": "Xanh da trời",
+ "lagoon": "Xanh ngọc",
+ "orchid": "Tím phong lan"
},
"role": {
"owner": "Chủ sở hữu",
diff --git a/i18n/zh-CN.json b/i18n/zh-CN.json
index 6c024012f..f0a97a616 100644
--- a/i18n/zh-CN.json
+++ b/i18n/zh-CN.json
@@ -4025,9 +4025,13 @@
"amber": "琥珀",
"crimson": "深红",
"forest": "森林绿",
+ "lagoon": "泻湖青",
"lavender": "薰衣草",
+ "ocean": "海洋蓝",
+ "orchid": "兰花紫",
"rose": "玫红",
"sage": "鼠尾草绿",
+ "sky": "天空蓝",
"slate": "石板蓝",
"stone": "石板灰",
"terracotta": "赤陶"
diff --git a/i18n/zh-TW.json b/i18n/zh-TW.json
index 6029af510..9fa84476f 100644
--- a/i18n/zh-TW.json
+++ b/i18n/zh-TW.json
@@ -4025,9 +4025,13 @@
"amber": "琥珀黃",
"crimson": "緋紅",
"forest": "森林綠",
+ "lagoon": "潟湖青",
"lavender": "薰衣草紫",
+ "ocean": "海洋藍",
+ "orchid": "蘭花紫",
"rose": "玫瑰紅",
"sage": "鼠尾草綠",
+ "sky": "天空藍",
"slate": "石板灰",
"stone": "岩石灰",
"terracotta": "赤陶紅"
diff --git a/packages/cli/src/commands/label/create.ts b/packages/cli/src/commands/label/create.ts
index e7c2a3812..692c98697 100644
--- a/packages/cli/src/commands/label/create.ts
+++ b/packages/cli/src/commands/label/create.ts
@@ -92,7 +92,7 @@ export const labelCreate = Command.make(
color: Flag.String("color").pipe(
Flag.withAlias("c"),
Flag.withDescription(
- "Hex color such as #e7000b, or stone, slate, lavender, sage, forest, amber, terracotta, rose or crimson (default: an unused one)",
+ "Hex color such as #e7000b, or stone, slate, lavender, sage, forest, amber, terracotta, rose, crimson, ocean, sky, lagoon or orchid (default: an unused one)",
),
Flag.optional,
),