develop #9
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
cda-solutions/resources-relationnelles-website!9
Loading…
Reference in a new issue
No description provided.
Delete branch "develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add existingDocumentId to resourceFormSchema as an optional union of empty string or a permissive GUID regex, matching the same pattern used by guidSchema. Malformed values are now rejected with a field error ("Identifiant de document invalide.") before the payload reaches the API.Every apiFetch call forwards user cookies, so responses must not be cached across users. The cache: "no-store" default already prevented next: { tags, revalidate } from having any effect, and updateTag(...) calls had nothing to invalidate. Remove all dead next:/updateTag plumbing and add a comment to apiFetch documenting the no-store intent.Performance: - Cache getSession() with React cache() so layout/header/page/action callers share one JWT decode per request - Forward only access_token + refresh_token to the API instead of the full cookie jar; share buildAuthCookieHeader between apiFetch and apiFetchRaw - Parallelise independent fetches in /ressources/[id] and the resource edit page - Tag-cache taxonomy queries with updateTag("taxonomy") in admin mutations - Lower MAX_CATALOG_ITEMS from 500 to 120 and add a truncation banner - Tighten middleware matcher to skip static images and /api/* proxy Bug fixes: - AdminUserRow: stop mirroring userRoleIds into useState (which froze the display after router.refresh) — use a draft pattern instead - Use /connexion?changed=email|password after email/password updates so the success copy reflects what actually changed (was reusing the registration banner) Deduplication: - passwordSchema + PASSWORD_RULES_HINT shared between auth and account - One labeledTaxonomyDtoSchema factory for category, resource type, and relation type DTOs - Move ACCEPTED_DOCUMENT_TYPES to a server-neutral constants module so forms can reuse it - Centralise date formatters in lib/ui/formatters.ts (6 call sites) - Collapse 6 resource bucket actions into setResourceBucketAction(id, bucket, on) - requirePermission(mask) helper replaces 8 hand-rolled UI authz checks in admin actions - useFlash hook with cleanup-on-unmount replaces 3 ad-hoc setTimeout toasters - buildQuery URL helper replaces duplicated URLSearchParams logic in Pagination and CatalogToolbar - applySort -> comparator lookup; verify-email cascade -> view table Cleanup: - Delete dead code: CategoryFilter, updateCommentAction, throwIfError, PermissionMask type - Strip narrative comments that explained WHAT instead of WHY