Skip to content

Commit af36fb1

Browse files
feat: archived boards (#386)
* init: schema migration, isArchived added to board table. refactor: board repo for isArchived filtering * init: archived, unarchived API procedures. refactor: all query * fix: migration error * feat: add tabbed navigation for boards view * Implemented a Listbox for mobile and a tabbed navigation for desktop to switch between "Boards" and "Archived" views. * Introduced state management for active tab selection. * Updated UI components to reflect the new navigation structure. * init: frontend/boards lists & tabs * chore: fixed font styling and spacing * init:boardDropdown / boardView. * chore:added translations * Remove .cursor plan file from repo * fix:build erros * revert: remove locales changes * fix:reverted changes under locales, replaced the archive and unarchive endpoints. Reorder migrations * fix:migration issue * fix: update journal.json --------- Co-authored-by: Henry <henry_ball@hotmail.co.uk>
1 parent 9cb1fb5 commit af36fb1

File tree

24 files changed

+6900
-122
lines changed

24 files changed

+6900
-122
lines changed

apps/web/src/hooks/usePermissions.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ interface UsePermissionsResult {
1919
canCreateBoard: boolean;
2020
canEditBoard: boolean;
2121
canDeleteBoard: boolean;
22+
canArchiveBoard: boolean;
2223
canViewComment: boolean;
2324
canCreateComment: boolean;
2425
canEditComment: boolean;
@@ -33,7 +34,7 @@ interface UsePermissionsResult {
3334
export function usePermissions(): UsePermissionsResult {
3435
// Check if WorkspaceProvider is available (for public board views, it may not be)
3536
const workspaceContext = useContext(WorkspaceContext);
36-
37+
3738
// If WorkspaceProvider is not available, return safe defaults
3839
if (!workspaceContext) {
3940
const emptyPermissions: UsePermissionsResult = {
@@ -51,6 +52,7 @@ export function usePermissions(): UsePermissionsResult {
5152
canCreateBoard: false,
5253
canEditBoard: false,
5354
canDeleteBoard: false,
55+
canArchiveBoard: false,
5456
canViewComment: false,
5557
canCreateComment: false,
5658
canEditComment: false,
@@ -95,6 +97,7 @@ export function usePermissions(): UsePermissionsResult {
9597
canCreateBoard: hasPermission("board:create"),
9698
canEditBoard: hasPermission("board:edit"),
9799
canDeleteBoard: hasPermission("board:delete"),
100+
canArchiveBoard: hasPermission("board:edit"),
98101
canViewComment: hasPermission("comment:view"),
99102
canCreateComment: hasPermission("comment:create"),
100103
canEditComment: hasPermission("comment:edit"),

apps/web/src/locales/de/messages.ts

Lines changed: 5 additions & 1 deletion
Large diffs are not rendered by default.

apps/web/src/locales/en/messages.ts

Lines changed: 5 additions & 1 deletion
Large diffs are not rendered by default.

apps/web/src/locales/es/messages.ts

Lines changed: 5 additions & 1 deletion
Large diffs are not rendered by default.

apps/web/src/locales/fr/messages.ts

Lines changed: 5 additions & 1 deletion
Large diffs are not rendered by default.

apps/web/src/locales/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const locales = [
77
"nl",
88
"ru",
99
"pl",
10-
"pt-BR"
10+
"ptbr"
1111
] as const;
1212

1313
export type Locale = (typeof locales)[number];
@@ -23,5 +23,5 @@ export const localeNames: Record<Locale, string> = {
2323
nl: "Nederlands",
2424
ru: "Русский",
2525
pl: "Polski",
26-
"pt-BR": "Português",
26+
ptbr: "Português",
2727
};

apps/web/src/locales/it/messages.ts

Lines changed: 5 additions & 1 deletion
Large diffs are not rendered by default.

apps/web/src/locales/nl/messages.ts

Lines changed: 5 additions & 1 deletion
Large diffs are not rendered by default.

apps/web/src/locales/pl/messages.ts

Lines changed: 5 additions & 1 deletion
Large diffs are not rendered by default.

apps/web/src/locales/pt-BR/messages.ts

Lines changed: 5 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)