@eifi1/ui-kit 0.51.3 → 0.51.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/README.md +5 -5
  2. package/dist/components/combobox-core.js +4 -5
  3. package/dist/components/combobox-core.js.map +1 -1
  4. package/dist/components/currency-option-list.js +3 -3
  5. package/dist/components/currency-option-list.js.map +1 -1
  6. package/dist/components/data-table-fit.js +7 -5
  7. package/dist/components/data-table-fit.js.map +1 -1
  8. package/dist/components/data-table-head.js +5 -1
  9. package/dist/components/data-table-head.js.map +1 -1
  10. package/dist/components/data-table.d.ts +8 -0
  11. package/dist/components/data-table.js.map +1 -1
  12. package/dist/components/grouped-picker.js +5 -4
  13. package/dist/components/grouped-picker.js.map +1 -1
  14. package/dist/components/icon-picker.js +5 -4
  15. package/dist/components/icon-picker.js.map +1 -1
  16. package/dist/components/inline-entity-combobox.js +4 -4
  17. package/dist/components/inline-entity-combobox.js.map +1 -1
  18. package/dist/components/legal-labels.js +8 -2
  19. package/dist/components/legal-labels.js.map +1 -1
  20. package/dist/components/legal-page.d.ts +18 -1
  21. package/dist/components/legal-page.js +13 -0
  22. package/dist/components/legal-page.js.map +1 -1
  23. package/dist/components/legal.d.ts +40 -5
  24. package/dist/components/legal.js +29 -3
  25. package/dist/components/legal.js.map +1 -1
  26. package/dist/components/list-labels.js +3 -1
  27. package/dist/components/list-labels.js.map +1 -1
  28. package/dist/components/list.d.ts +18 -1
  29. package/dist/components/list.js +32 -3
  30. package/dist/components/list.js.map +1 -1
  31. package/dist/eslint/index.js +1 -1
  32. package/dist/feedback/feedback-table.d.ts +3 -1
  33. package/dist/feedback/feedback-table.js +18 -4
  34. package/dist/feedback/feedback-table.js.map +1 -1
  35. package/dist/i18n/german.js +11 -3
  36. package/dist/i18n/german.js.map +1 -1
  37. package/dist/i18n/locales/en.js +15 -3
  38. package/dist/i18n/locales/en.js.map +2 -2
  39. package/dist/i18n/locales/es.js +11 -3
  40. package/dist/i18n/locales/es.js.map +1 -1
  41. package/dist/i18n/locales/fr.js +11 -3
  42. package/dist/i18n/locales/fr.js.map +1 -1
  43. package/dist/i18n/locales/hu.js +11 -3
  44. package/dist/i18n/locales/hu.js.map +1 -1
  45. package/dist/i18n/locales/it.js +11 -3
  46. package/dist/i18n/locales/it.js.map +1 -1
  47. package/dist/i18n/locales/zh.js +11 -3
  48. package/dist/i18n/locales/zh.js.map +1 -1
  49. package/dist/i18n/review.js +2 -0
  50. package/dist/i18n/review.js.map +1 -1
  51. package/dist/index.d.ts +1 -1
  52. package/dist/index.js.map +1 -1
  53. package/dist/lib/text-match.d.ts +16 -0
  54. package/dist/lib/text-match.js +11 -1
  55. package/dist/lib/text-match.js.map +1 -1
  56. package/dist/settings/use-settings-focus.d.ts +7 -0
  57. package/dist/settings/use-settings-focus.js +2 -0
  58. package/dist/settings/use-settings-focus.js.map +1 -1
  59. package/dist/shell/dev-menu.d.ts +5 -0
  60. package/dist/shell/dev-menu.js +2 -1
  61. package/dist/shell/dev-menu.js.map +1 -1
  62. package/dist/shell/topbar-action-menu.d.ts +14 -1
  63. package/dist/shell/topbar-action-menu.js +85 -34
  64. package/dist/shell/topbar-action-menu.js.map +1 -1
  65. package/dist/shell.d.ts +1 -1
  66. package/dist/shell.js +2 -1
  67. package/dist/shell.js.map +1 -1
  68. package/package.json +1 -1
  69. package/src/components/combobox-core.tsx +5 -5
  70. package/src/components/currency-option-list.tsx +4 -5
  71. package/src/components/data-table-fit.ts +7 -5
  72. package/src/components/data-table-head.tsx +5 -1
  73. package/src/components/data-table.tsx +8 -0
  74. package/src/components/grouped-picker.tsx +15 -8
  75. package/src/components/icon-picker.tsx +6 -4
  76. package/src/components/inline-entity-combobox.tsx +5 -4
  77. package/src/components/legal-labels.ts +7 -1
  78. package/src/components/legal-page.tsx +39 -0
  79. package/src/components/legal.tsx +69 -5
  80. package/src/components/list-labels.ts +2 -0
  81. package/src/components/list.tsx +52 -2
  82. package/src/feedback/feedback-table.tsx +17 -1
  83. package/src/i18n/german.ts +9 -1
  84. package/src/i18n/locales/en.ts +4 -0
  85. package/src/i18n/locales/es.ts +9 -1
  86. package/src/i18n/locales/fr.ts +9 -1
  87. package/src/i18n/locales/hu.ts +9 -1
  88. package/src/i18n/locales/it.ts +9 -1
  89. package/src/i18n/locales/zh.ts +9 -1
  90. package/src/i18n/review.ts +2 -0
  91. package/src/index.ts +1 -0
  92. package/src/lib/text-match.ts +30 -0
  93. package/src/settings/use-settings-focus.ts +8 -0
  94. package/src/shell/dev-menu.tsx +6 -0
  95. package/src/shell/topbar-action-menu.tsx +122 -38
  96. package/src/shell.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/feedback/feedback-table.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport type { MouseEvent, ReactElement, ReactNode } from \"react\";\nimport { ExternalLink, ThumbsUp } from \"lucide-react\";\nimport { cn } from \"../lib/cn\";\nimport { toLocalIso } from \"../lib/dates\";\nimport { EMPTY_FORMATTED_VALUE, formatDate, toDate } from \"../lib/format\";\nimport { useKitDateFormatter, useKitLabels, useKitLink, useKitLocale, type LabelOverride } from \"../i18n/kit-labels\";\nimport type { KitLinkProps } from \"../i18n/kit-labels\";\nimport { Chip } from \"../components/chip\";\nimport { Tooltip } from \"../components/tooltip\";\nimport { FloatingAction, FloatingActionGroup } from \"../components/floating-panel\";\nimport type { FloatingCorner } from \"../components/floating-panel\";\nimport { pickLinkRenderer } from \"../components/text-link\";\nimport type { DataTableColumn } from \"../components/data-table\";\nimport {\n FEEDBACK_CATEGORY_ORDER,\n FEEDBACK_STATUS_META,\n FEEDBACK_STATUS_ORDER,\n FeedbackCategoryBadge,\n FeedbackStatusBadge,\n FeedbackStatusTransitions,\n feedbackCategoryRank,\n visibleFeedbackStatuses,\n type FeedbackStatus,\n} from \"./feedback-inbox\";\nimport {\n useFeedbackCategoryLabels,\n useFeedbackStatusLabels,\n type FeedbackCategoryLabels,\n type FeedbackStatusLabels,\n} from \"./feedback-labels\";\nimport { FEEDBACK_AWAITING_STATUSES, feedbackReworkCount, type FeedbackContext, type FeedbackRecord } from \"./feedback-record\";\nimport type { FeedbackStatusChange } from \"./feedback-status-undo\";\nimport { feedbackPageHref, feedbackPagePath } from \"./feedback-row-detail\";\nimport type { CommitScope } from \"../components/write-lock\";\nimport { DEFAULT_FEEDBACK_PAGE_LABELS } from \"./feedback-table-labels\";\nimport { DEFAULT_FEEDBACK_PUBLIC_LABELS } from \"./feedback-public-labels\";\n\n/**\n * The two feedback pages' TABLE — `/feedback` (the admin inbox) and `/my-feedback` (the\n * user's own) — as the kit's parts: §4.3 of the feedback contract\n * (docs/feedback-harmonization.md), lifted from keksdose\n * `frontend/src/features/feedback/feedback-page.tsx` (columns :711–963, the phone card\n * :1038–1065, the awaiting toggle :689–709 and :1086–1101).\n *\n * Until 0.27 each app wrote this table itself, and the three had drifted exactly where a\n * table drifts: kastlan's showed five statuses and no environment, Kurvenschmiede's one\n * page served both audiences, and keksdose's — the canon, argued over a year of feedback\n * items — had a latent bug of its own: its subject cell carries the environment and\n * rework chips \"so a second attempt is marked on every surface at once\" (:760), but the\n * phone card is a `mobileCard`, and `DataTable` never renders the `mobilePrimary` cell\n * when `mobileCard` is set (data-table-mobile.tsx, `cardInner`). Its phone cards showed neither\n * chip. {@link FeedbackMobileCard} draws both itself, from the same\n * {@link FeedbackSubject} the column uses, so the two surfaces cannot part again.\n *\n * What stays the app's: the rows (its API client), who is an admin, the routes and the\n * `/feedback` → `/my-feedback` redirect, the `?row=` deep link and the row detail. What\n * is here: the nine columns ({@link feedbackColumns} / {@link useFeedbackColumns}), the\n * phone card and its day headers ({@link FeedbackMobileCard},\n * {@link feedbackMobileGroupBy}), the phone's \"Only what is waiting for you\" toggle\n * ({@link FeedbackAwaitingToggle}), the empty state ({@link FeedbackEmptyState}) and the\n * `feedbackPage` words. The swipes are `feedbackSwipePlan` (feedback-swipe.tsx), passed\n * by the app because whether the page may write is the app's call.\n */\n\n/* ── Labels ─────────────────────────────────────────────────────────────────── */\n\n/**\n * `feedbackPage` — the words of the two feedback pages (§4.3). The English is keksdose's\n * `en.json` (`feedback.*`, `common.none`); the de-CH canon is noted on each key (keksdose\n * `de-CH.json`, ss never ß).\n */\nexport interface FeedbackPageLabels {\n /** The admin inbox's page title, `/feedback` — the menu's \"Feedback inbox\" (0.40,\n * §10.2 decision 11; \"Feedback\" before). de-CH: \"Feedback-Eingang\" */\n title: string;\n /** The user's own list, `/my-feedback`. de-CH: \"Mein Feedback\" */\n myTitle: string;\n /** Column 1, the id. de-CH: \"#\" */\n columnId: string;\n /** Column 2, when it was filed. de-CH: \"Datum\" */\n columnDate: string;\n /** Column 3. de-CH: \"Kategorie\" */\n columnCategory: string;\n /** Column 4, the title with its chips. de-CH: \"Betreff\" */\n columnSubject: string;\n /** Column 5, who filed it. de-CH: \"Nutzer\" */\n columnUser: string;\n /** Column 6. de-CH: \"E-Mail\" */\n columnEmail: string;\n /** Column 7, the page it was filed from. de-CH: \"URL\" */\n columnUrl: string;\n /** Column 8. de-CH: \"Status\" */\n columnStatus: string;\n /** Column 9, when it was settled. de-CH: \"Erledigt am\" */\n columnResolved: string;\n /** What the URL cell's link does, said before the path to a screen reader.\n * de-CH: \"Seite öffnen\" */\n openPage: string;\n /** The table with nothing to show, on both pages (§7.13) — keksdose's `common.none`.\n * de-CH: \"Keine\" */\n empty: string;\n /** The submitter of a report whose account was erased (`user_id: null`, keksdose live\n * #275). de-CH: \"<gelöschter Nutzer>\" */\n deletedUser: string;\n /** The submitter when neither a name nor an email is known — `id` is `user_id`.\n * de-CH: \"Nutzer #{{id}}\" */\n userFallback: (id: number) => string;\n /** The chip for a report filed from a copy of the app that is not production —\n * `environment` is `context.environment` as filed (\"dev\", \"local\", or the app's own\n * word). Upper-cased like the top bar's environment badge, so the marker the tester saw\n * is the marker triage sees. Guarded: a context is untyped JSON, so a value that is no\n * string (an app calling it with `context.environment` as stored) is printed, never\n * thrown on. de-CH: the same. */\n environment: (environment: string) => string;\n /** The chip for a report sent back for rework — `count` ≥ 1 is how many times\n * (`reworkCount`, keksdose live #331). de-CH: \"Nacharbeit\" / \"Nacharbeit ×{{count}}\" */\n reworkChip: (count: number) => string;\n /** The phone toggle narrowing the inbox to IN_EVALUATION + NEEDS_LIVE_TEST.\n * de-CH: \"Nur was auf Sie wartet\" */\n awaitingFilter: string;\n /** The name of the phone's floating group that holds it. de-CH: \"Feedback-Aktionen\" */\n phoneActions: string;\n}\n\n// Defined in ./feedback-table-labels, which holds no component code (0.34, KS U8).\nexport { DEFAULT_FEEDBACK_PAGE_LABELS };\n\n/** `feedbackPage` resolved: English, then `<UiKitProvider labels>`, then `labels`. The\n * page's title comes from here too: `mine ? labels.myTitle : labels.title`. */\nexport function useFeedbackPageLabels(labels?: LabelOverride<FeedbackPageLabels>): FeedbackPageLabels {\n return useKitLabels(\"feedbackPage\", DEFAULT_FEEDBACK_PAGE_LABELS, labels);\n}\n\n/* ── Reading a row ──────────────────────────────────────────────────────────── */\n\n/** What the table reads off a report — {@link FeedbackRecord}'s fields, so an app's own\n * row type with more of them passes as it is. */\nexport type FeedbackTableRow = Pick<\n FeedbackRecord,\n | \"id\"\n | \"user_id\"\n | \"user_email\"\n | \"title\"\n | \"body\"\n | \"category\"\n | \"status\"\n | \"context\"\n | \"resolved_at\"\n | \"created_at\"\n | \"votes\"\n>;\n\n/** A context value as a trimmed string, or `\"\"` — every key is optional on read (§3.2)\n * and an app's own context type may say `unknown`. */\nfunction text(value: unknown): string {\n return typeof value === \"string\" ? value.trim() : \"\";\n}\n\n/**\n * The environment a report was filed from when it is NOT production, as filed — or\n * `null` (keksdose `environmentLabel`, :142). Production is silent, as the top bar's\n * badge is: the marker earns attention by being rare. A missing value is production too —\n * every row filed before a test copy existed, and crash rows filed before the crash\n * payload carried `environment` (§3.2, §3.6). An unknown value is shown rather than swallowed: an environment\n * nobody recognises is exactly when triage needs to see one.\n */\nexport function feedbackEnvironment(context: FeedbackContext | null | undefined): string | null {\n const env = text(context?.environment);\n return !env || env.toLowerCase() === \"prod\" ? null : env;\n}\n\n/**\n * Who filed a report, as one string (keksdose `submitterLabel`, :163): the display name,\n * else the email, else `userFallback(user_id)`. An erased account (`user_id: null`) is\n * `deletedUser` FIRST, ahead of the context: the server scrubs the name with the account,\n * but a row that somehow kept one must still not go on naming somebody who asked to be\n * forgotten. The joined `user_email` (admin list) is preferred to the context snapshot.\n */\nexport function feedbackSubmitter(\n row: Pick<FeedbackRecord, \"user_id\" | \"user_email\" | \"context\">,\n labels: Pick<FeedbackPageLabels, \"deletedUser\" | \"userFallback\">,\n): string {\n if (row.user_id == null) return labels.deletedUser;\n return (\n text(row.context?.user_display_name) ||\n text(row.user_email) ||\n text(row.context?.user_email) ||\n labels.userFallback(row.user_id)\n );\n}\n\n/**\n * The submitter's email (keksdose `submitterEmail`, :175): the joined `user_email` —\n * authoritative, the display name is self-chosen (feedback #108) — else the context\n * snapshot, which is what `/my-feedback` has (`GET /feedback/my` sends no join). `\"\"`\n * for an erased account, for the reason {@link feedbackSubmitter} gives.\n */\nexport function feedbackSubmitterEmail(row: Pick<FeedbackRecord, \"user_id\" | \"user_email\" | \"context\">): string {\n if (row.user_id == null) return \"\";\n return text(row.user_email) || text(row.context?.user_email);\n}\n\n/** Whether a status is one the phone's awaiting toggle keeps — `FEEDBACK_AWAITING_STATUSES`,\n * the two that wait on the person triaging. `rows.filter((r) => isFeedbackAwaiting(r.status))`. */\nexport function isFeedbackAwaiting(status: FeedbackStatus): boolean {\n return FEEDBACK_AWAITING_STATUSES.includes(status);\n}\n\n/* ── Dates ──────────────────────────────────────────────────────────────────── */\n\n/**\n * How the pages write a date: an ISO timestamp in, one string out. keksdose passes its\n * `useDateCell()` (the app's date-format preference, weekday and all — dev#546), which\n * fits as it is.\n *\n * ONE function for the date column, the resolved column, the phone card and the phone's\n * day headers, so the four cannot disagree (keksdose dev#546 round 3: the header is a\n * string and must say what the card says).\n */\nexport type FeedbackRenderDate = (iso: string) => string;\n\n/** The kit's own date, weekday included: \"Sun, 4 Oct 2026\" / \"So., 4. Okt. 2026\". A date\n * in a column carries its weekday (keksdose's rule, date-cell.tsx). */\nconst FEEDBACK_DATE_STYLE: Intl.DateTimeFormatOptions = {\n weekday: \"short\",\n day: \"numeric\",\n month: \"short\",\n year: \"numeric\",\n};\n\n/**\n * `renderDate` when the app gave one, else the kit's: the `<UiKitProvider formatDate>`\n * when the app set one (called with the LOCAL calendar day and `weekday: true`, as\n * `DateMark` calls it), else `Intl` in the provider's locale with the weekday. An\n * unparseable value is passed through rather than hidden.\n */\nexport function useFeedbackRenderDate(renderDate?: FeedbackRenderDate, locale?: string): FeedbackRenderDate {\n const kitLocale = useKitLocale(locale);\n const fromProvider = useKitDateFormatter();\n return useMemo<FeedbackRenderDate>(() => {\n if (renderDate) return renderDate;\n return (iso) => {\n const date = toDate(iso);\n if (!date) return iso || EMPTY_FORMATTED_VALUE;\n const own = fromProvider\n ? fromProvider(toLocalIso(date), { unit: \"day\", source: \"dateMark\", locale: kitLocale, weekday: true })\n : \"\";\n return own || formatDate(date, FEEDBACK_DATE_STYLE, { locale: kitLocale });\n };\n }, [renderDate, fromProvider, kitLocale]);\n}\n\n/** A date in a cell: `<time>`, nowrap, tabular figures; \"—\" when there is none. */\nfunction FeedbackDate({ value, renderDate }: { value: string | null | undefined; renderDate: FeedbackRenderDate }) {\n if (!value) return <span className=\"text-placeholder\">{EMPTY_FORMATTED_VALUE}</span>;\n return (\n <time dateTime={value} className=\"whitespace-nowrap tabular-nums text-muted\">\n {renderDate(value)}\n </time>\n );\n}\n\n/** An instant for sorting; a value that does not parse sorts with the empty ones. */\nfunction instant(value: string | null | undefined): number | null {\n const ms = value ? Date.parse(value) : NaN;\n return Number.isNaN(ms) ? null : ms;\n}\n\n/* ── The subject: title + environment chip + rework chip ───────────────────── */\n\nexport interface FeedbackSubjectProps {\n /** `replies` (0.40): the chip counts the rework entries, else the body's blocks —\n * {@link feedbackReworkCount}. */\n row: Pick<FeedbackRecord, \"title\" | \"body\" | \"context\"> & Partial<Pick<FeedbackRecord, \"replies\">>;\n /**\n * `false` (default): one line — the title truncates and the chips stay whole, as a\n * table cell wants. `true`: the title wraps and the chips flow after its last word, as\n * the phone card wants (a phone shows the whole title or nothing useful).\n */\n wrap?: boolean;\n /** Over the `feedbackPage` namespace. */\n labels?: LabelOverride<FeedbackPageLabels>;\n className?: string;\n}\n\n/**\n * A report's title with its two chips (§4.3, column 4): the environment when it is not\n * production (keksdose's amber outline, the top bar's environment badge — the marker the\n * tester saw is the marker triage sees) and **Rework** / **Rework ×n** when the author has\n * sent it back (keksdose live #331: *\"have a new category for items in rework\"*, as a fact\n * derived from the body rather than a seventh status).\n *\n * No tooltip on either chip (keksdose dev#523): each already says what it means.\n */\nexport function FeedbackSubject({ row, wrap = false, labels: labelsProp, className }: FeedbackSubjectProps) {\n const labels = useFeedbackPageLabels(labelsProp);\n const env = feedbackEnvironment(row.context);\n const rounds = feedbackReworkCount(row);\n const chipClass = wrap ? \"ms-1.5 align-middle\" : \"shrink-0\";\n const chips = (\n <>\n {env && (\n <Chip size=\"sm\" variant=\"outline\" shape=\"square\" tone=\"warning\" caps className={chipClass} data-feedback-env=\"\">\n {labels.environment(env)}\n </Chip>\n )}\n {rounds > 0 && (\n <Chip size=\"sm\" tone=\"warning\" caps className={chipClass} data-feedback-rework={rounds}>\n {labels.reworkChip(rounds)}\n </Chip>\n )}\n </>\n );\n if (wrap) {\n return (\n <span className={cn(\"min-w-0 font-medium [overflow-wrap:anywhere]\", className)}>\n {row.title}\n {chips}\n </span>\n );\n }\n return (\n <span className={cn(\"inline-flex min-w-0 max-w-full items-center gap-1.5 large:items-start\", className)}>\n {/* One line at Normal; from Large up the title wraps rather than losing its end (text\n size §10.17 — the release sweep's first CI run found it cut on the showcase). */}\n <span className=\"min-w-0 truncate-until-large font-medium\">{row.title}</span>\n {chips}\n </span>\n );\n}\n\n/* ── The URL cell ───────────────────────────────────────────────────────────── */\n\n/**\n * The page a report was filed from, as a link — the cell keksdose's column 7 draws\n * (:850): the path as text, path + query + hash as the `href`, read from `context.url`\n * else `context.route` by the row detail's own readers (`feedbackPagePath` /\n * `feedbackPageHref`, feedback-row-detail.tsx), so the column and the detail link the\n * same page the same way. A real link through the `<UiKitProvider linkComponent>` (the app's router, so it\n * does not reload the app; keksdose's plain `<a>` did), and its click stops at the cell so\n * the row does not open as well.\n *\n * Its name is the path, as on screen, with \"Open page\" said before it — keksdose's\n * `aria-label=\"Open page\"` replaced the path, so a screen reader heard forty identical\n * links down the column.\n */\nfunction FeedbackPageLinkCell({ context, openPage }: { context: FeedbackContext | null; openPage: string }) {\n const kitLink = useKitLink();\n const href = feedbackPageHref(context);\n const path = feedbackPagePath(context);\n if (!href || !path) return <span className=\"text-placeholder\">{EMPTY_FORMATTED_VALUE}</span>;\n const className =\n \"inline-flex min-w-0 max-w-full items-center gap-1 text-secondary hover:text-primary hover:underline\";\n const children = (\n <>\n {/* The space outside the hidden span: a flex container drops it from the layout,\n and the accessible name keeps it (\"Open page /accounts\"). */}\n <span className=\"sr-only\">{openPage}</span>{\" \"}\n <code className=\"min-w-0 truncate text-xs\">{path}</code>\n <ExternalLink className=\"size-3 shrink-0\" aria-hidden />\n </>\n );\n const onClick = (event: MouseEvent<HTMLAnchorElement>) => event.stopPropagation();\n const render = pickLinkRenderer<KitLinkProps>(undefined, kitLink, href);\n return render ? (\n <RenderedLink render={render} href={href} className={className} onClick={onClick}>\n {children}\n </RenderedLink>\n ) : (\n <a href={href} className={className} onClick={onClick}>\n {children}\n </a>\n );\n}\n\n/** The provider's link, drawn by a component declared once (as FloatingAction's). */\nfunction RenderedLink({ render, ...props }: KitLinkProps & { render: (props: KitLinkProps) => ReactElement }) {\n return render(props);\n}\n\n/* ── The columns ────────────────────────────────────────────────────────────── */\n\n/** What {@link feedbackColumns} takes — every word already resolved (see\n * {@link useFeedbackColumns}, which resolves them from the provider). */\nexport interface FeedbackColumnsOptions {\n /** `/my-feedback`. The same nine columns (one page component, §4.3), but the status\n * cell is read-only there whatever `canEdit` says — \"no status or outcome editing\n * there (also for an admin)\". */\n mine?: boolean;\n /** The admin on `/feedback` — the status cell offers its steps. Otherwise it shows them\n * read-only. */\n canEdit: boolean;\n /** The undoable status change, `useFeedbackStatusUndo(update.mutate)` (§4.5) — the\n * same one the row detail and the swipes use. */\n onStatus: FeedbackStatusChange;\n /** See {@link FeedbackRenderDate}. */\n renderDate: FeedbackRenderDate;\n /** The status buttons SAVE when pressed: pass `true` to put them under the page's\n * `WriteLockProvider` (FeedbackStatusTransitions' `commit`). Off by default — a\n * feedback inbox is rarely what an app's lock is about. */\n commit?: CommitScope;\n labels: FeedbackPageLabels;\n statusLabels: FeedbackStatusLabels;\n categoryLabels: FeedbackCategoryLabels;\n /** 0.38 (§9.6): a sortable **Votes** column before Status — `row.votes`, a missing\n * one as 0 — hidden on the phone (the card's chip, {@link FeedbackMobileCardProps.votes},\n * carries it there). Off by default. */\n votes?: boolean;\n /** The Votes header — `feedbackPublic.columnVotes`, so the inbox and the public list\n * say the same ({@link useFeedbackColumns} reads it). Default \"Votes\". */\n votesHeader?: string;\n}\n\n/** The vote count, a quiet chip with the thumb (§9.6) — the Votes cell and the card's. */\nfunction FeedbackVoteCount({ votes, className }: { votes: number | undefined; className?: string }) {\n return (\n <Chip size=\"sm\" className={className} data-feedback-vote-count={votes ?? 0}>\n <ThumbsUp className=\"size-3\" aria-hidden />\n <span className=\"tabular-nums\">{votes ?? 0}</span>\n </Chip>\n );\n}\n\n/** A status's place in the chain, unknown ones last (as `feedbackCategoryRank`). */\nfunction statusRank(status: FeedbackStatus): number {\n const at = FEEDBACK_STATUS_ORDER.indexOf(status);\n return at === -1 ? FEEDBACK_STATUS_ORDER.length : at;\n}\n\n/**\n * The nine columns of §4.3, in the contract's order, for `DataTable` — keksdose's\n * (:711–963) with the contract's changes:\n *\n * | # | key | cell | filter | phone |\n * |---|---|---|---|---|\n * | 1 | `id` | id, mono | number | hidden |\n * | 2 | `date` | `created_at`, weekday ({@link FeedbackRenderDate}) | date | |\n * | 3 | `category` | `FeedbackCategoryBadge`, sorted CRASH first | select, all five | |\n * | 4 | `title` | {@link FeedbackSubject} | text: title + environment | card heading |\n * | 5 | `user` | {@link feedbackSubmitter} | text: name + email, or \"deleted user\" | |\n * | 6 | `email` | {@link feedbackSubmitterEmail} | text | hidden |\n * | 7 | `url` | the page, a link (`noRowLink`) | text: path | hidden |\n * | 8 | `status` | `FeedbackStatusTransitions variant=\"icon\"`, `visibleFeedbackStatuses` | select, chain order | |\n * | 9 | `resolved` | `resolved_at` | date | hidden |\n *\n * - Both select filters list the WHOLE vocabulary in its own order, translated —\n * without `options` the popover lists the bare enum values found in the rows\n * (keksdose feedback #160), and kastlan's first CRASH row would otherwise appear in a\n * filter that never offered it.\n * - The status column owns the status filter, and only it (keksdose live #330's revert:\n * the phone's filter sheet already exposes every column filter).\n * - Fitted to the table's width (0.48, keksdose live #451): Subject `grow`s and\n * ellipsises, and a narrow table leaves out URL, then Email, then Resolved\n * (`fitPriority` 1–3) — the open report repeats all three — then Votes and Category\n * (4, 5) before Subject would drop below 10rem. Drop the two keys with\n * `{ ...col, grow: undefined, fitPriority: undefined }` for the 0.47 layout.\n * - `/my-feedback` shows the same nine: the Email cell's context fallback exists for it\n * (the admin list's join is absent there, §3.1), and its phone card drops the submitter\n * instead ({@link FeedbackMobileCardProps.showSubmitter}).\n *\n * Pure: hand it resolved words, or use {@link useFeedbackColumns}. Keys are stable, so\n * an app may drop or add a column (`columns.filter((c) => c.key !== \"email\")`).\n */\nexport function feedbackColumns<T extends FeedbackTableRow>({\n mine = false,\n canEdit,\n onStatus,\n renderDate,\n commit,\n labels,\n statusLabels,\n categoryLabels,\n votes = false,\n votesHeader = DEFAULT_FEEDBACK_PUBLIC_LABELS.columnVotes,\n}: FeedbackColumnsOptions): DataTableColumn<T>[] {\n const editable = canEdit && !mine;\n const votesColumn: DataTableColumn<T>[] = votes\n ? [\n {\n key: \"votes\",\n header: votesHeader,\n className: \"whitespace-nowrap\",\n cell: (row) => <FeedbackVoteCount votes={row.votes ?? undefined} />,\n sortBy: (row) => row.votes ?? 0,\n filter: { type: \"number\", getValue: (row) => row.votes ?? 0 },\n mobileHidden: true,\n // Fourth to go (Kurvenschmiede S1, 0.48): with only the first three, Subject was\n // crushed to 24px at 1100px. Still reachable from the Columns panel.\n fitPriority: 4,\n },\n ]\n : [];\n return [\n {\n key: \"id\",\n header: labels.columnId,\n cell: (row) => <span className=\"font-mono text-xs text-muted\">{row.id}</span>,\n sortBy: (row) => row.id,\n filter: { type: \"number\", getValue: (row) => row.id },\n mobileHidden: true,\n },\n {\n key: \"date\",\n header: labels.columnDate,\n cell: (row) => <FeedbackDate value={row.created_at} renderDate={renderDate} />,\n sortBy: (row) => instant(row.created_at),\n filter: { type: \"date\", getValue: (row) => row.created_at },\n },\n {\n key: \"category\",\n header: labels.columnCategory,\n cell: (row) => <FeedbackCategoryBadge category={row.category} label={categoryLabels[row.category]} />,\n sortBy: (row) => feedbackCategoryRank(row.category),\n filter: {\n type: \"select\",\n getValue: (row) => row.category,\n options: FEEDBACK_CATEGORY_ORDER.map((value) => ({ value, label: categoryLabels[value] })),\n },\n // Last to go (Kurvenschmiede S1, 0.48), before Subject would drop below 10rem:\n // the open report's Subject section repeats the badge.\n fitPriority: 5,\n },\n {\n key: \"title\",\n header: labels.columnSubject,\n cell: (row) => <FeedbackSubject row={row} labels={labels} />,\n sortBy: (row) => row.title,\n // Searchable by the environment too, so \"dev\" narrows to the test copy's reports —\n // a chip you can see but not filter by makes you read every row (keksdose :804).\n filterBy: (row) => {\n const env = feedbackEnvironment(row.context);\n return env ? `${row.title} ${labels.environment(env)}` : row.title;\n },\n mobilePrimary: true,\n // The rest of the row, one line and an ellipsis (0.48, keksdose live #451: one long\n // crash title pushed Status and the row actions off the edge).\n grow: true,\n },\n {\n key: \"user\",\n header: labels.columnUser,\n // At most 12rem, one line and an ellipsis, the whole value in the kit's Tooltip (0.48 build\n // review 2, keksdose N2): beside the grow Subject every other cell keeps one line, so\n // an email standing in for a missing name widened the column and cost Votes and\n // Category their room first. The open report shows both in full.\n cell: (row) => {\n const who = feedbackSubmitter(row, labels);\n return (\n <Tooltip label={who} portal lazy>\n <span className=\"block max-w-[12rem] truncate-until-large text-secondary\">{who}</span>\n </Tooltip>\n );\n },\n sortBy: (row) => feedbackSubmitter(row, labels),\n // Name AND email, so either finds the person; the erased ones by the placeholder\n // (their context holds no name any more).\n filterBy: (row) =>\n row.user_id == null\n ? labels.deletedUser\n : `${feedbackSubmitter(row, labels)} ${feedbackSubmitterEmail(row)}`,\n },\n {\n key: \"email\",\n header: labels.columnEmail,\n // One line, like the URL beside it: keksdose's `break-all` let the browser squeeze\n // the column to its header and broke every address in two (\"user@exam / ple.test\"),\n // which made every row taller. Unbroken, a resized (pinned) column ellipsises it.\n className: \"whitespace-nowrap\",\n cell: (row) => {\n const email = feedbackSubmitterEmail(row);\n return email ? (\n <span className=\"text-secondary\">{email}</span>\n ) : (\n <span className=\"text-placeholder\">{EMPTY_FORMATTED_VALUE}</span>\n );\n },\n sortBy: feedbackSubmitterEmail,\n filterBy: feedbackSubmitterEmail,\n mobileHidden: true,\n // Second to go when the table is narrow: the open report shows the submitter.\n fitPriority: 2,\n },\n {\n key: \"url\",\n header: labels.columnUrl,\n // A cell only ellipsises what it is told not to wrap (keksdose live #348: the path\n // clipped mid-character \"behind the next column\").\n className: \"whitespace-nowrap\",\n // The cell IS a link, so the row's own permalink must never wrap it (keksdose\n // feedback #451: <a> in <a>, and \"open the page\" silently did nothing).\n noRowLink: true,\n cell: (row) => <FeedbackPageLinkCell context={row.context} openPage={labels.openPage} />,\n sortBy: (row) => feedbackPagePath(row.context) ?? \"\",\n filterBy: (row) => feedbackPagePath(row.context) ?? \"\",\n mobileHidden: true,\n // First to go when the table is narrow (0.48): the open report repeats the page.\n fitPriority: 1,\n },\n ...votesColumn,\n {\n key: \"status\",\n header: labels.columnStatus,\n // A KNOWN width: at most six 28px icon buttons (from IN_PROGRESS or IN_EVALUATION:\n // one step either way and the three off the chain) — keksdose live #348 sized it\n // for five and the sixth pushed the column wider.\n className: \"w-[13.5rem] whitespace-nowrap\",\n cell: (row) => (\n <FeedbackStatusTransitions\n status={row.status}\n statuses={visibleFeedbackStatuses(row.status)}\n canEdit={editable}\n commit={commit}\n onPick={(status) => onStatus(row, status)}\n variant=\"icon\"\n label={(status) => statusLabels[status]}\n />\n ),\n sortBy: (row) => statusRank(row.status),\n filter: {\n type: \"select\",\n getValue: (row) => row.status,\n options: FEEDBACK_STATUS_ORDER.map((value) => ({ value, label: statusLabels[value] })),\n },\n },\n {\n key: \"resolved\",\n header: labels.columnResolved,\n cell: (row) => <FeedbackDate value={row.resolved_at} renderDate={renderDate} />,\n sortBy: (row) => instant(row.resolved_at),\n filter: { type: \"date\", getValue: (row) => row.resolved_at },\n mobileHidden: true,\n // Third to go (0.48).\n fitPriority: 3,\n },\n ];\n}\n\n/** What {@link useFeedbackColumns} takes: {@link FeedbackColumnsOptions} with the words\n * read from the provider, and `renderDate` optional. */\nexport interface UseFeedbackColumnsOptions\n extends Omit<FeedbackColumnsOptions, \"renderDate\" | \"labels\" | \"statusLabels\" | \"categoryLabels\" | \"votesHeader\"> {\n /** Default: the kit's date with the weekday ({@link useFeedbackRenderDate}). */\n renderDate?: FeedbackRenderDate;\n /** Over the `feedbackPage` namespace. Keep it stable (module scope or memoised): it is\n * a dependency of the memo. */\n labels?: LabelOverride<FeedbackPageLabels>;\n}\n\n/**\n * {@link feedbackColumns} with the `feedbackPage`, `feedbackStatus` and\n * `feedbackCategory` words from the provider, memoised on what it reads — pass\n * `update.mutate` through `useFeedbackStatusUndo` (stable) rather than a fresh function\n * per render, or every row's columns are rebuilt on each render (keksdose :667).\n */\nexport function useFeedbackColumns<T extends FeedbackTableRow>({\n mine,\n canEdit,\n onStatus,\n renderDate: renderDateProp,\n commit,\n votes,\n labels: labelsProp,\n}: UseFeedbackColumnsOptions): DataTableColumn<T>[] {\n const labels = useFeedbackPageLabels(labelsProp);\n const statusLabels = useFeedbackStatusLabels();\n const categoryLabels = useFeedbackCategoryLabels();\n const votesHeader = useKitLabels(\"feedbackPublic\", DEFAULT_FEEDBACK_PUBLIC_LABELS).columnVotes;\n const renderDate = useFeedbackRenderDate(renderDateProp);\n return useMemo(\n () =>\n feedbackColumns<T>({\n mine,\n canEdit,\n onStatus,\n renderDate,\n commit,\n labels,\n statusLabels,\n categoryLabels,\n votes,\n votesHeader,\n }),\n [mine, canEdit, onStatus, renderDate, commit, labels, statusLabels, categoryLabels, votes, votesHeader],\n );\n}\n\n/* ── The phone ──────────────────────────────────────────────────────────────── */\n\n/**\n * The phone list's day headers (keksdose feedback #325: the list \"grouped by date, like\n * the transactions list\"): `DataTable mobileGroupBy={feedbackMobileGroupBy(renderDate)}`.\n *\n * The key IS the header — the same string the card's date says. DataTable groups runs of\n * equal keys, so the rows must come newest first, as `GET /feedback` and\n * `GET /feedback/my` send them (§3.3).\n */\nexport function feedbackMobileGroupBy(\n renderDate: FeedbackRenderDate,\n): (row: Pick<FeedbackRecord, \"created_at\">) => string {\n return (row) => renderDate(row.created_at);\n}\n\nexport interface FeedbackMobileCardProps {\n row: FeedbackTableRow;\n /** Add the submitter after the date — the admin inbox (`canEdit`). On `/my-feedback`\n * every row is the viewer's own and the name would repeat down the list. */\n showSubmitter?: boolean;\n /** See {@link FeedbackRenderDate}; the same function as the columns' and the day\n * headers'. Default: the kit's ({@link useFeedbackRenderDate}). */\n renderDate?: FeedbackRenderDate;\n /** 0.38: the vote count as a chip beside the category — with `useFeedbackColumns`'\n * `votes`, whose column the phone hides. */\n votes?: boolean;\n /** Over the `feedbackPage` namespace. */\n labels?: LabelOverride<FeedbackPageLabels>;\n}\n\n/**\n * One report as a phone card (§4.3; keksdose :1042, feedback #325 rework: *\"compact card\n * instead of a wasteful label/value row per field\"*): the title with its environment and\n * rework chips and the status badge on one line, then the compact category badge, the\n * date and (admin) the submitter beneath.\n *\n * `DataTable mobileCard={(row) => <FeedbackMobileCard row={row} … />}`. It draws the\n * chips itself: with a `mobileCard`, DataTable never renders the `mobilePrimary` cell,\n * which is how keksdose's cards lost them.\n */\nexport function FeedbackMobileCard({\n row,\n showSubmitter = false,\n renderDate: renderDateProp,\n votes = false,\n labels: labelsProp,\n}: FeedbackMobileCardProps) {\n const labels = useFeedbackPageLabels(labelsProp);\n const renderDate = useFeedbackRenderDate(renderDateProp);\n return (\n <div className=\"min-w-0 space-y-1\">\n <div className=\"flex items-start justify-between gap-2\">\n <FeedbackSubject row={row} wrap labels={labels} className=\"flex-1\" />\n {/* The pill the desktop status column draws, so a status is the same colour and\n glyph on both layouts. */}\n <FeedbackStatusBadge status={row.status} className=\"shrink-0\" />\n </div>\n <div className=\"flex min-w-0 flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-muted\">\n <FeedbackCategoryBadge category={row.category} compact />\n {votes && <FeedbackVoteCount votes={row.votes ?? undefined} />}\n <FeedbackDate value={row.created_at} renderDate={renderDate} />\n {showSubmitter && (\n // The short id form: \"#7\" says enough on a card that has room for little.\n <span className=\"min-w-0 truncate\">\n · {feedbackSubmitter(row, { deletedUser: labels.deletedUser, userFallback: (id) => `#${id}` })}\n </span>\n )}\n </div>\n </div>\n );\n}\n\nexport interface FeedbackAwaitingToggleProps {\n /** Narrowed to what waits on the triager. Page state, not the URL (keksdose :699): a\n * thumb gesture on one screen, not a view worth linking to. */\n pressed: boolean;\n onPressedChange: (pressed: boolean) => void;\n /** Further `FloatingAction`s, after the toggle — the group is what makes them free. */\n children?: ReactNode;\n /** Default `bottom-end`, the register's corner. */\n corner?: FloatingCorner;\n /** Over the group's default distance from the bottom. */\n offset?: string;\n /** On the group. It is `md:hidden` already: the desktop has the status column's\n * filter, the same question asked where there is room for it. */\n className?: string;\n /** Over the `feedbackPage` namespace. */\n labels?: LabelOverride<FeedbackPageLabels>;\n}\n\n/**\n * The phone inbox's one filter button — **\"Only what is waiting for you\"** (§4.3;\n * keksdose live #330 rework: *\"a button that toggles the evaluation items (in evaluation,\n * test when live) as toggle button similar to the show/hide upcoming/scheduled for the tx\n * page\"*).\n *\n * It narrows TO `FEEDBACK_AWAITING_STATUSES` rather than hiding them: after a loop run\n * those ARE the queue — the rows handed back for a verdict — and everything else is\n * history. A `FloatingActionGroup` with one member anyway, in the register's corner and\n * shape (keksdose feedback #58), so a second action costs nothing; the glyph is\n * IN_EVALUATION's own, so the button reads in the vocabulary of the badges it filters on.\n *\n * Admin inbox only: on `/my-feedback` the author is not waiting on their own verdict.\n * The filtering is the page's — `rows.filter((r) => isFeedbackAwaiting(r.status))` —\n * so the table's own filters, sort and URL stay untouched.\n */\nexport function FeedbackAwaitingToggle({\n pressed,\n onPressedChange,\n children,\n corner,\n offset,\n className,\n labels: labelsProp,\n}: FeedbackAwaitingToggleProps) {\n const labels = useFeedbackPageLabels(labelsProp);\n const Icon = FEEDBACK_STATUS_META.IN_EVALUATION.icon;\n return (\n <FloatingActionGroup\n aria-label={labels.phoneActions}\n corner={corner}\n offset={offset}\n className={cn(\"md:hidden\", className)}\n >\n <FloatingAction\n label={labels.awaitingFilter}\n icon={<Icon aria-hidden />}\n pressed={pressed}\n onClick={() => onPressedChange(!pressed)}\n />\n {children}\n </FloatingActionGroup>\n );\n}\n\n/* ── Empty ──────────────────────────────────────────────────────────────────── */\n\nexport interface FeedbackEmptyStateProps {\n /** Over the `feedbackPage` namespace. */\n labels?: LabelOverride<FeedbackPageLabels>;\n}\n\n/**\n * The table with nothing to show (§7.13): the one word **None** / **Keine**, on both\n * pages — keksdose's `empty={t(\"common.none\")}` (`feedback-page.tsx:982`). No hint\n * beneath it: where reports are sent from is the feedback menu's business, and the inbox\n * needs no sentence to say it is empty.\n *\n * For `DataTable empty`, which sits in a centred, muted cell — so no box of its own.\n * keksdose passes it unconditionally, so a filter (or the awaiting toggle) that leaves\n * nothing says \"None\" too: `empty={<FeedbackEmptyState />}`.\n */\nexport function FeedbackEmptyState({ labels: labelsProp }: FeedbackEmptyStateProps) {\n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ACC;AAAA;AAAA;AAAA,EACH;AAEJ;AAmBO,SAAS,mBAAmB,EAAE,QAAQ,WAAW,GAA4B;AAClF,QAAM,SAAS,sBAAsB,UAAU;AAC/C,SAAO,oBAAC,UAAK,uBAAoB,IAAI,iBAAO,OAAM;AACpD;","names":[]}
1
+ {"version":3,"sources":["../../src/feedback/feedback-table.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport type { MouseEvent, ReactElement, ReactNode } from \"react\";\nimport { ExternalLink, ThumbsUp } from \"lucide-react\";\nimport { cn } from \"../lib/cn\";\nimport { toLocalIso } from \"../lib/dates\";\nimport { EMPTY_FORMATTED_VALUE, formatDate, toDate } from \"../lib/format\";\nimport { useKitDateFormatter, useKitLabels, useKitLink, useKitLocale, type LabelOverride } from \"../i18n/kit-labels\";\nimport type { KitLinkProps } from \"../i18n/kit-labels\";\nimport { Chip } from \"../components/chip\";\nimport { Tooltip } from \"../components/tooltip\";\nimport { FloatingAction, FloatingActionGroup } from \"../components/floating-panel\";\nimport type { FloatingCorner } from \"../components/floating-panel\";\nimport { pickLinkRenderer } from \"../components/text-link\";\nimport type { DataTableColumn } from \"../components/data-table\";\nimport {\n FEEDBACK_CATEGORY_ORDER,\n FEEDBACK_STATUS_META,\n FEEDBACK_STATUS_ORDER,\n FeedbackCategoryBadge,\n FeedbackStatusBadge,\n FeedbackStatusTransitions,\n feedbackCategoryRank,\n visibleFeedbackStatuses,\n type FeedbackStatus,\n} from \"./feedback-inbox\";\nimport {\n useFeedbackCategoryLabels,\n useFeedbackStatusLabels,\n type FeedbackCategoryLabels,\n type FeedbackStatusLabels,\n} from \"./feedback-labels\";\nimport { FEEDBACK_AWAITING_STATUSES, feedbackReworkCount, type FeedbackContext, type FeedbackRecord } from \"./feedback-record\";\nimport type { FeedbackStatusChange } from \"./feedback-status-undo\";\nimport { feedbackPageHref, feedbackPagePath } from \"./feedback-row-detail\";\nimport type { CommitScope } from \"../components/write-lock\";\nimport { DEFAULT_FEEDBACK_PAGE_LABELS } from \"./feedback-table-labels\";\nimport { DEFAULT_FEEDBACK_PUBLIC_LABELS } from \"./feedback-public-labels\";\n\n/**\n * The two feedback pages' TABLE — `/feedback` (the admin inbox) and `/my-feedback` (the\n * user's own) — as the kit's parts: §4.3 of the feedback contract\n * (docs/feedback-harmonization.md), lifted from keksdose\n * `frontend/src/features/feedback/feedback-page.tsx` (columns :711–963, the phone card\n * :1038–1065, the awaiting toggle :689–709 and :1086–1101).\n *\n * Until 0.27 each app wrote this table itself, and the three had drifted exactly where a\n * table drifts: kastlan's showed five statuses and no environment, Kurvenschmiede's one\n * page served both audiences, and keksdose's — the canon, argued over a year of feedback\n * items — had a latent bug of its own: its subject cell carries the environment and\n * rework chips \"so a second attempt is marked on every surface at once\" (:760), but the\n * phone card is a `mobileCard`, and `DataTable` never renders the `mobilePrimary` cell\n * when `mobileCard` is set (data-table-mobile.tsx, `cardInner`). Its phone cards showed neither\n * chip. {@link FeedbackMobileCard} draws both itself, from the same\n * {@link FeedbackSubject} the column uses, so the two surfaces cannot part again.\n *\n * What stays the app's: the rows (its API client), who is an admin, the routes and the\n * `/feedback` → `/my-feedback` redirect, the `?row=` deep link and the row detail. What\n * is here: the nine columns ({@link feedbackColumns} / {@link useFeedbackColumns}), the\n * phone card and its day headers ({@link FeedbackMobileCard},\n * {@link feedbackMobileGroupBy}), the phone's \"Only what is waiting for you\" toggle\n * ({@link FeedbackAwaitingToggle}), the empty state ({@link FeedbackEmptyState}) and the\n * `feedbackPage` words. The swipes are `feedbackSwipePlan` (feedback-swipe.tsx), passed\n * by the app because whether the page may write is the app's call.\n */\n\n/* ── Labels ─────────────────────────────────────────────────────────────────── */\n\n/**\n * `feedbackPage` — the words of the two feedback pages (§4.3). The English is keksdose's\n * `en.json` (`feedback.*`, `common.none`); the de-CH canon is noted on each key (keksdose\n * `de-CH.json`, ss never ß).\n */\nexport interface FeedbackPageLabels {\n /** The admin inbox's page title, `/feedback` — the menu's \"Feedback inbox\" (0.40,\n * §10.2 decision 11; \"Feedback\" before). de-CH: \"Feedback-Eingang\" */\n title: string;\n /** The user's own list, `/my-feedback`. de-CH: \"Mein Feedback\" */\n myTitle: string;\n /** Column 1, the id. de-CH: \"#\" */\n columnId: string;\n /** Column 2, when it was filed. de-CH: \"Datum\" */\n columnDate: string;\n /** Column 3. de-CH: \"Kategorie\" */\n columnCategory: string;\n /** Column 4, the title with its chips. de-CH: \"Betreff\" */\n columnSubject: string;\n /** Column 5, who filed it. de-CH: \"Nutzer\" */\n columnUser: string;\n /** Column 6. de-CH: \"E-Mail\" */\n columnEmail: string;\n /** Column 7, the page it was filed from. de-CH: \"URL\" */\n columnUrl: string;\n /** Column 8. de-CH: \"Status\" */\n columnStatus: string;\n /** Column 9, when it was settled. de-CH: \"Erledigt am\" */\n columnResolved: string;\n /** What the URL cell's link does, said before the path to a screen reader.\n * de-CH: \"Seite öffnen\" */\n openPage: string;\n /** The table with nothing to show, on both pages (§7.13) — keksdose's `common.none`.\n * de-CH: \"Keine\" */\n empty: string;\n /** The submitter of a report whose account was erased (`user_id: null`, keksdose live\n * #275). de-CH: \"<gelöschter Nutzer>\" */\n deletedUser: string;\n /** The submitter when neither a name nor an email is known — `id` is `user_id`.\n * de-CH: \"Nutzer #{{id}}\" */\n userFallback: (id: number) => string;\n /** The chip for a report filed from a copy of the app that is not production —\n * `environment` is `context.environment` as filed (\"dev\", \"local\", or the app's own\n * word). Upper-cased like the top bar's environment badge, so the marker the tester saw\n * is the marker triage sees. Guarded: a context is untyped JSON, so a value that is no\n * string (an app calling it with `context.environment` as stored) is printed, never\n * thrown on. de-CH: the same. */\n environment: (environment: string) => string;\n /** The chip for a report sent back for rework — `count` ≥ 1 is how many times\n * (`reworkCount`, keksdose live #331). de-CH: \"Nacharbeit\" / \"Nacharbeit ×{{count}}\" */\n reworkChip: (count: number) => string;\n /** The phone toggle narrowing the inbox to IN_EVALUATION + NEEDS_LIVE_TEST.\n * de-CH: \"Nur was auf Sie wartet\" */\n awaitingFilter: string;\n /** The name of the phone's floating group that holds it. de-CH: \"Feedback-Aktionen\" */\n phoneActions: string;\n}\n\n// Defined in ./feedback-table-labels, which holds no component code (0.34, KS U8).\nexport { DEFAULT_FEEDBACK_PAGE_LABELS };\n\n/** `feedbackPage` resolved: English, then `<UiKitProvider labels>`, then `labels`. The\n * page's title comes from here too: `mine ? labels.myTitle : labels.title`. */\nexport function useFeedbackPageLabels(labels?: LabelOverride<FeedbackPageLabels>): FeedbackPageLabels {\n return useKitLabels(\"feedbackPage\", DEFAULT_FEEDBACK_PAGE_LABELS, labels);\n}\n\n/* ── Reading a row ──────────────────────────────────────────────────────────── */\n\n/** What the table reads off a report — {@link FeedbackRecord}'s fields, so an app's own\n * row type with more of them passes as it is. */\nexport type FeedbackTableRow = Pick<\n FeedbackRecord,\n | \"id\"\n | \"user_id\"\n | \"user_email\"\n | \"title\"\n | \"body\"\n | \"category\"\n | \"status\"\n | \"context\"\n | \"resolved_at\"\n | \"created_at\"\n | \"votes\"\n>;\n\n/** A context value as a trimmed string, or `\"\"` — every key is optional on read (§3.2)\n * and an app's own context type may say `unknown`. */\nfunction text(value: unknown): string {\n return typeof value === \"string\" ? value.trim() : \"\";\n}\n\n/**\n * The environment a report was filed from when it is NOT production, as filed — or\n * `null` (keksdose `environmentLabel`, :142). Production is silent, as the top bar's\n * badge is: the marker earns attention by being rare. A missing value is production too —\n * every row filed before a test copy existed, and crash rows filed before the crash\n * payload carried `environment` (§3.2, §3.6). An unknown value is shown rather than swallowed: an environment\n * nobody recognises is exactly when triage needs to see one.\n */\nexport function feedbackEnvironment(context: FeedbackContext | null | undefined): string | null {\n const env = text(context?.environment);\n return !env || env.toLowerCase() === \"prod\" ? null : env;\n}\n\n/**\n * Who filed a report, as one string (keksdose `submitterLabel`, :163): the display name,\n * else the email, else `userFallback(user_id)`. An erased account (`user_id: null`) is\n * `deletedUser` FIRST, ahead of the context: the server scrubs the name with the account,\n * but a row that somehow kept one must still not go on naming somebody who asked to be\n * forgotten. The joined `user_email` (admin list) is preferred to the context snapshot.\n */\nexport function feedbackSubmitter(\n row: Pick<FeedbackRecord, \"user_id\" | \"user_email\" | \"context\">,\n labels: Pick<FeedbackPageLabels, \"deletedUser\" | \"userFallback\">,\n): string {\n if (row.user_id == null) return labels.deletedUser;\n return (\n text(row.context?.user_display_name) ||\n text(row.user_email) ||\n text(row.context?.user_email) ||\n labels.userFallback(row.user_id)\n );\n}\n\n/**\n * The submitter's email (keksdose `submitterEmail`, :175): the joined `user_email` —\n * authoritative, the display name is self-chosen (feedback #108) — else the context\n * snapshot, which is what `/my-feedback` has (`GET /feedback/my` sends no join). `\"\"`\n * for an erased account, for the reason {@link feedbackSubmitter} gives.\n */\nexport function feedbackSubmitterEmail(row: Pick<FeedbackRecord, \"user_id\" | \"user_email\" | \"context\">): string {\n if (row.user_id == null) return \"\";\n return text(row.user_email) || text(row.context?.user_email);\n}\n\n/** Whether a status is one the phone's awaiting toggle keeps — `FEEDBACK_AWAITING_STATUSES`,\n * the two that wait on the person triaging. `rows.filter((r) => isFeedbackAwaiting(r.status))`. */\nexport function isFeedbackAwaiting(status: FeedbackStatus): boolean {\n return FEEDBACK_AWAITING_STATUSES.includes(status);\n}\n\n/* ── Dates ──────────────────────────────────────────────────────────────────── */\n\n/**\n * How the pages write a date: an ISO timestamp in, one string out. keksdose passes its\n * `useDateCell()` (the app's date-format preference, weekday and all — dev#546), which\n * fits as it is.\n *\n * ONE function for the date column, the resolved column, the phone card and the phone's\n * day headers, so the four cannot disagree (keksdose dev#546 round 3: the header is a\n * string and must say what the card says).\n */\nexport type FeedbackRenderDate = (iso: string) => string;\n\n/** The kit's own date, weekday included: \"Sun, 4 Oct 2026\" / \"So., 4. Okt. 2026\". A date\n * in a column carries its weekday (keksdose's rule, date-cell.tsx). */\nconst FEEDBACK_DATE_STYLE: Intl.DateTimeFormatOptions = {\n weekday: \"short\",\n day: \"numeric\",\n month: \"short\",\n year: \"numeric\",\n};\n\n/**\n * `renderDate` when the app gave one, else the kit's: the `<UiKitProvider formatDate>`\n * when the app set one (called with the LOCAL calendar day and `weekday: true`, as\n * `DateMark` calls it), else `Intl` in the provider's locale with the weekday. An\n * unparseable value is passed through rather than hidden.\n */\nexport function useFeedbackRenderDate(renderDate?: FeedbackRenderDate, locale?: string): FeedbackRenderDate {\n const kitLocale = useKitLocale(locale);\n const fromProvider = useKitDateFormatter();\n return useMemo<FeedbackRenderDate>(() => {\n if (renderDate) return renderDate;\n return (iso) => {\n const date = toDate(iso);\n if (!date) return iso || EMPTY_FORMATTED_VALUE;\n const own = fromProvider\n ? fromProvider(toLocalIso(date), { unit: \"day\", source: \"dateMark\", locale: kitLocale, weekday: true })\n : \"\";\n return own || formatDate(date, FEEDBACK_DATE_STYLE, { locale: kitLocale });\n };\n }, [renderDate, fromProvider, kitLocale]);\n}\n\n/** A date in a cell: `<time>`, nowrap, tabular figures; \"—\" when there is none. */\nfunction FeedbackDate({ value, renderDate }: { value: string | null | undefined; renderDate: FeedbackRenderDate }) {\n if (!value) return <span className=\"text-placeholder\">{EMPTY_FORMATTED_VALUE}</span>;\n return (\n <time dateTime={value} className=\"whitespace-nowrap tabular-nums text-muted\">\n {renderDate(value)}\n </time>\n );\n}\n\n/** An instant for sorting; a value that does not parse sorts with the empty ones. */\nfunction instant(value: string | null | undefined): number | null {\n const ms = value ? Date.parse(value) : NaN;\n return Number.isNaN(ms) ? null : ms;\n}\n\n/* ── The subject: title + environment chip + rework chip ───────────────────── */\n\nexport interface FeedbackSubjectProps {\n /** `replies` (0.40): the chip counts the rework entries, else the body's blocks —\n * {@link feedbackReworkCount}. */\n row: Pick<FeedbackRecord, \"title\" | \"body\" | \"context\"> & Partial<Pick<FeedbackRecord, \"replies\">>;\n /**\n * `false` (default): one line — the title truncates and the chips stay whole, as a\n * table cell wants. `true`: the title wraps and the chips flow after its last word, as\n * the phone card wants (a phone shows the whole title or nothing useful).\n */\n wrap?: boolean;\n /** Over the `feedbackPage` namespace. */\n labels?: LabelOverride<FeedbackPageLabels>;\n className?: string;\n}\n\n/**\n * A report's title with its two chips (§4.3, column 4): the environment when it is not\n * production (keksdose's amber outline, the top bar's environment badge — the marker the\n * tester saw is the marker triage sees) and **Rework** / **Rework ×n** when the author has\n * sent it back (keksdose live #331: *\"have a new category for items in rework\"*, as a fact\n * derived from the body rather than a seventh status).\n *\n * No tooltip on either chip (keksdose dev#523): each already says what it means.\n */\nexport function FeedbackSubject({ row, wrap = false, labels: labelsProp, className }: FeedbackSubjectProps) {\n const labels = useFeedbackPageLabels(labelsProp);\n const env = feedbackEnvironment(row.context);\n const rounds = feedbackReworkCount(row);\n const chipClass = wrap ? \"ms-1.5 align-middle\" : \"shrink-0\";\n const chips = (\n <>\n {env && (\n <Chip size=\"sm\" variant=\"outline\" shape=\"square\" tone=\"warning\" caps className={chipClass} data-feedback-env=\"\">\n {labels.environment(env)}\n </Chip>\n )}\n {rounds > 0 && (\n <Chip size=\"sm\" tone=\"warning\" caps className={chipClass} data-feedback-rework={rounds}>\n {labels.reworkChip(rounds)}\n </Chip>\n )}\n </>\n );\n if (wrap) {\n return (\n <span className={cn(\"min-w-0 font-medium [overflow-wrap:anywhere]\", className)}>\n {row.title}\n {chips}\n </span>\n );\n }\n return (\n <span className={cn(\"inline-flex min-w-0 max-w-full items-center gap-1.5 large:items-start\", className)}>\n {/* One line at Normal; from Large up the title wraps rather than losing its end (text\n size §10.17 — the release sweep's first CI run found it cut on the showcase). */}\n <span className=\"min-w-0 truncate-until-large font-medium\">{row.title}</span>\n {chips}\n </span>\n );\n}\n\n/* ── The URL cell ───────────────────────────────────────────────────────────── */\n\n/**\n * The page a report was filed from, as a link — the cell keksdose's column 7 draws\n * (:850): the path as text, path + query + hash as the `href`, read from `context.url`\n * else `context.route` by the row detail's own readers (`feedbackPagePath` /\n * `feedbackPageHref`, feedback-row-detail.tsx), so the column and the detail link the\n * same page the same way. A real link through the `<UiKitProvider linkComponent>` (the app's router, so it\n * does not reload the app; keksdose's plain `<a>` did), and its click stops at the cell so\n * the row does not open as well.\n *\n * Its name is the path, as on screen, with \"Open page\" said before it — keksdose's\n * `aria-label=\"Open page\"` replaced the path, so a screen reader heard forty identical\n * links down the column.\n */\nfunction FeedbackPageLinkCell({ context, openPage }: { context: FeedbackContext | null; openPage: string }) {\n const kitLink = useKitLink();\n const href = feedbackPageHref(context);\n const path = feedbackPagePath(context);\n if (!href || !path) return <span className=\"text-placeholder\">{EMPTY_FORMATTED_VALUE}</span>;\n const className =\n \"inline-flex min-w-0 max-w-full items-center gap-1 text-secondary hover:text-primary hover:underline\";\n const children = (\n <>\n {/* The space outside the hidden span: a flex container drops it from the layout,\n and the accessible name keeps it (\"Open page /accounts\"). */}\n <span className=\"sr-only\">{openPage}</span>{\" \"}\n <code className=\"min-w-0 truncate text-xs\">{path}</code>\n <ExternalLink className=\"size-3 shrink-0\" aria-hidden />\n </>\n );\n const onClick = (event: MouseEvent<HTMLAnchorElement>) => event.stopPropagation();\n const render = pickLinkRenderer<KitLinkProps>(undefined, kitLink, href);\n return render ? (\n <RenderedLink render={render} href={href} className={className} onClick={onClick}>\n {children}\n </RenderedLink>\n ) : (\n <a href={href} className={className} onClick={onClick}>\n {children}\n </a>\n );\n}\n\n/** The provider's link, drawn by a component declared once (as FloatingAction's). */\nfunction RenderedLink({ render, ...props }: KitLinkProps & { render: (props: KitLinkProps) => ReactElement }) {\n return render(props);\n}\n\n/* ── The columns ────────────────────────────────────────────────────────────── */\n\n/** What {@link feedbackColumns} takes — every word already resolved (see\n * {@link useFeedbackColumns}, which resolves them from the provider). */\nexport interface FeedbackColumnsOptions {\n /** `/my-feedback`. The same nine columns (one page component, §4.3), but the status\n * cell is read-only there whatever `canEdit` says — \"no status or outcome editing\n * there (also for an admin)\". */\n mine?: boolean;\n /** The admin on `/feedback` — the status cell offers its steps. Otherwise it shows them\n * read-only. */\n canEdit: boolean;\n /** The undoable status change, `useFeedbackStatusUndo(update.mutate)` (§4.5) — the\n * same one the row detail and the swipes use. */\n onStatus: FeedbackStatusChange;\n /** See {@link FeedbackRenderDate}. */\n renderDate: FeedbackRenderDate;\n /** The status buttons SAVE when pressed: pass `true` to put them under the page's\n * `WriteLockProvider` (FeedbackStatusTransitions' `commit`). Off by default — a\n * feedback inbox is rarely what an app's lock is about. */\n commit?: CommitScope;\n labels: FeedbackPageLabels;\n statusLabels: FeedbackStatusLabels;\n categoryLabels: FeedbackCategoryLabels;\n /** 0.38 (§9.6): a sortable **Votes** column before Status — `row.votes`, a missing\n * one as 0 — hidden on the phone (the card's chip, {@link FeedbackMobileCardProps.votes},\n * carries it there). Off by default. */\n votes?: boolean;\n /** The Votes header — `feedbackPublic.columnVotes`, so the inbox and the public list\n * say the same ({@link useFeedbackColumns} reads it). Default \"Votes\". */\n votesHeader?: string;\n}\n\n/** The vote count, a quiet chip with the thumb (§9.6) — the Votes cell and the card's. */\nfunction FeedbackVoteCount({ votes, className }: { votes: number | undefined; className?: string }) {\n return (\n <Chip size=\"sm\" className={className} data-feedback-vote-count={votes ?? 0}>\n <ThumbsUp className=\"size-3\" aria-hidden />\n <span className=\"tabular-nums\">{votes ?? 0}</span>\n </Chip>\n );\n}\n\n/** A status's place in the chain, unknown ones last (as `feedbackCategoryRank`). */\nfunction statusRank(status: FeedbackStatus): number {\n const at = FEEDBACK_STATUS_ORDER.indexOf(status);\n return at === -1 ? FEEDBACK_STATUS_ORDER.length : at;\n}\n\n/**\n * The nine columns of §4.3, in the contract's order, for `DataTable` — keksdose's\n * (:711–963) with the contract's changes:\n *\n * | # | key | cell | filter | phone |\n * |---|---|---|---|---|\n * | 1 | `id` | id, mono | number | hidden |\n * | 2 | `date` | `created_at`, weekday ({@link FeedbackRenderDate}) | date | |\n * | 3 | `category` | `FeedbackCategoryBadge`, sorted CRASH first | select, all five | |\n * | 4 | `title` | {@link FeedbackSubject} | text: title + environment | card heading |\n * | 5 | `user` | {@link feedbackSubmitter} | text: name + email, or \"deleted user\" | |\n * | 6 | `email` | {@link feedbackSubmitterEmail} | text | hidden |\n * | 7 | `url` | the page, a link (`noRowLink`) | text: path | hidden |\n * | 8 | `status` | `FeedbackStatusTransitions variant=\"icon\"`, `visibleFeedbackStatuses` | select, chain order | |\n * | 9 | `resolved` | `resolved_at` | date | hidden |\n *\n * - Both select filters list the WHOLE vocabulary in its own order, translated —\n * without `options` the popover lists the bare enum values found in the rows\n * (keksdose feedback #160), and kastlan's first CRASH row would otherwise appear in a\n * filter that never offered it.\n * - The status column owns the status filter, and only it (keksdose live #330's revert:\n * the phone's filter sheet already exposes every column filter).\n * - Fitted to the table's width (0.48, keksdose live #451): Subject `grow`s and\n * ellipsises, and a narrow table leaves out URL, then Email, then Resolved\n * (`fitPriority` 1–3) — the open report repeats all three — then Votes and Category\n * (4, 5), then User, Date and # (6–8, 0.51.4) before Subject would drop below 8rem\n * (`growMin`, 0.51.4; the table's default floor is 10).\n * Drop the two keys with\n * `{ ...col, grow: undefined, fitPriority: undefined }` for the 0.47 layout.\n * - `/my-feedback` shows the same nine: the Email cell's context fallback exists for it\n * (the admin list's join is absent there, §3.1), and its phone card drops the submitter\n * instead ({@link FeedbackMobileCardProps.showSubmitter}).\n *\n * Pure: hand it resolved words, or use {@link useFeedbackColumns}. Keys are stable, so\n * an app may drop or add a column (`columns.filter((c) => c.key !== \"email\")`).\n */\nexport function feedbackColumns<T extends FeedbackTableRow>({\n mine = false,\n canEdit,\n onStatus,\n renderDate,\n commit,\n labels,\n statusLabels,\n categoryLabels,\n votes = false,\n votesHeader = DEFAULT_FEEDBACK_PUBLIC_LABELS.columnVotes,\n}: FeedbackColumnsOptions): DataTableColumn<T>[] {\n const editable = canEdit && !mine;\n const votesColumn: DataTableColumn<T>[] = votes\n ? [\n {\n key: \"votes\",\n header: votesHeader,\n className: \"whitespace-nowrap\",\n cell: (row) => <FeedbackVoteCount votes={row.votes ?? undefined} />,\n sortBy: (row) => row.votes ?? 0,\n filter: { type: \"number\", getValue: (row) => row.votes ?? 0 },\n mobileHidden: true,\n // Fourth to go (Kurvenschmiede S1, 0.48): with only the first three, Subject was\n // crushed to 24px at 1100px. Still reachable from the Columns panel.\n fitPriority: 4,\n },\n ]\n : [];\n return [\n {\n key: \"id\",\n header: labels.columnId,\n cell: (row) => <span className=\"font-mono text-xs text-muted\">{row.id}</span>,\n sortBy: (row) => row.id,\n filter: { type: \"number\", getValue: (row) => row.id },\n mobileHidden: true,\n // The very last to go (0.51.4, Kurvenschmiede): replies and the feedback loop name a\n // report by its number, so it stays while anything else can give way.\n fitPriority: 8,\n },\n {\n key: \"date\",\n header: labels.columnDate,\n cell: (row) => <FeedbackDate value={row.created_at} renderDate={renderDate} />,\n sortBy: (row) => instant(row.created_at),\n filter: { type: \"date\", getValue: (row) => row.created_at },\n // Seventh to go (0.51.4): the open report shows it.\n fitPriority: 7,\n },\n {\n key: \"category\",\n header: labels.columnCategory,\n cell: (row) => <FeedbackCategoryBadge category={row.category} label={categoryLabels[row.category]} />,\n sortBy: (row) => feedbackCategoryRank(row.category),\n filter: {\n type: \"select\",\n getValue: (row) => row.category,\n options: FEEDBACK_CATEGORY_ORDER.map((value) => ({ value, label: categoryLabels[value] })),\n },\n // Last to go (Kurvenschmiede S1, 0.48), before Subject would drop below 10rem:\n // the open report's Subject section repeats the badge.\n fitPriority: 5,\n },\n {\n key: \"title\",\n header: labels.columnSubject,\n cell: (row) => <FeedbackSubject row={row} labels={labels} />,\n sortBy: (row) => row.title,\n // Searchable by the environment too, so \"dev\" narrows to the test copy's reports —\n // a chip you can see but not filter by makes you read every row (keksdose :804).\n filterBy: (row) => {\n const env = feedbackEnvironment(row.context);\n return env ? `${row.title} ${labels.environment(env)}` : row.title;\n },\n mobilePrimary: true,\n // The rest of the row, one line and an ellipsis (0.48, keksdose live #451: one long\n // crash title pushed Status and the row actions off the edge).\n grow: true,\n // 8rem, not the table's 10 (0.51.4, Kurvenschmiede): at 768px beside a sidebar only\n // Subject, Status (a fixed 13.5rem) and the row actions are left, and they were up\n // to 20px too wide (Hungarian). A subject's first words carry it; the open report\n // has the rest.\n growMin: 8,\n },\n {\n key: \"user\",\n header: labels.columnUser,\n // At most 12rem, one line and an ellipsis, the whole value in the kit's Tooltip (0.48 build\n // review 2, keksdose N2): beside the grow Subject every other cell keeps one line, so\n // an email standing in for a missing name widened the column and cost Votes and\n // Category their room first. The open report shows both in full.\n cell: (row) => {\n const who = feedbackSubmitter(row, labels);\n return (\n <Tooltip label={who} portal lazy>\n <span className=\"block max-w-[12rem] truncate-until-large text-secondary\">{who}</span>\n </Tooltip>\n );\n },\n sortBy: (row) => feedbackSubmitter(row, labels),\n // Name AND email, so either finds the person; the erased ones by the placeholder\n // (their context holds no name any more).\n filterBy: (row) =>\n row.user_id == null\n ? labels.deletedUser\n : `${feedbackSubmitter(row, labels)} ${feedbackSubmitterEmail(row)}`,\n // Sixth to go (0.51.4, Kurvenschmiede): with only 1–5, Subject reached its floor while\n // #, Date and User were still drawn, and the inbox scrolled sideways from 768 to\n // ~1115px beside an open sidebar. The open report names the submitter.\n fitPriority: 6,\n },\n {\n key: \"email\",\n header: labels.columnEmail,\n // One line, like the URL beside it: keksdose's `break-all` let the browser squeeze\n // the column to its header and broke every address in two (\"user@exam / ple.test\"),\n // which made every row taller. Unbroken, a resized (pinned) column ellipsises it.\n className: \"whitespace-nowrap\",\n cell: (row) => {\n const email = feedbackSubmitterEmail(row);\n return email ? (\n <span className=\"text-secondary\">{email}</span>\n ) : (\n <span className=\"text-placeholder\">{EMPTY_FORMATTED_VALUE}</span>\n );\n },\n sortBy: feedbackSubmitterEmail,\n filterBy: feedbackSubmitterEmail,\n mobileHidden: true,\n // Second to go when the table is narrow: the open report shows the submitter.\n fitPriority: 2,\n },\n {\n key: \"url\",\n header: labels.columnUrl,\n // A cell only ellipsises what it is told not to wrap (keksdose live #348: the path\n // clipped mid-character \"behind the next column\").\n className: \"whitespace-nowrap\",\n // The cell IS a link, so the row's own permalink must never wrap it (keksdose\n // feedback #451: <a> in <a>, and \"open the page\" silently did nothing).\n noRowLink: true,\n cell: (row) => <FeedbackPageLinkCell context={row.context} openPage={labels.openPage} />,\n sortBy: (row) => feedbackPagePath(row.context) ?? \"\",\n filterBy: (row) => feedbackPagePath(row.context) ?? \"\",\n mobileHidden: true,\n // First to go when the table is narrow (0.48): the open report repeats the page.\n fitPriority: 1,\n },\n ...votesColumn,\n {\n key: \"status\",\n header: labels.columnStatus,\n // A KNOWN width: at most six 28px icon buttons (from IN_PROGRESS or IN_EVALUATION:\n // one step either way and the three off the chain) — keksdose live #348 sized it\n // for five and the sixth pushed the column wider.\n className: \"w-[13.5rem] whitespace-nowrap\",\n cell: (row) => (\n <FeedbackStatusTransitions\n status={row.status}\n statuses={visibleFeedbackStatuses(row.status)}\n canEdit={editable}\n commit={commit}\n onPick={(status) => onStatus(row, status)}\n variant=\"icon\"\n label={(status) => statusLabels[status]}\n />\n ),\n sortBy: (row) => statusRank(row.status),\n filter: {\n type: \"select\",\n getValue: (row) => row.status,\n options: FEEDBACK_STATUS_ORDER.map((value) => ({ value, label: statusLabels[value] })),\n },\n },\n {\n key: \"resolved\",\n header: labels.columnResolved,\n cell: (row) => <FeedbackDate value={row.resolved_at} renderDate={renderDate} />,\n sortBy: (row) => instant(row.resolved_at),\n filter: { type: \"date\", getValue: (row) => row.resolved_at },\n mobileHidden: true,\n // Third to go (0.48).\n fitPriority: 3,\n },\n ];\n}\n\n/** What {@link useFeedbackColumns} takes: {@link FeedbackColumnsOptions} with the words\n * read from the provider, and `renderDate` optional. */\nexport interface UseFeedbackColumnsOptions\n extends Omit<FeedbackColumnsOptions, \"renderDate\" | \"labels\" | \"statusLabels\" | \"categoryLabels\" | \"votesHeader\"> {\n /** Default: the kit's date with the weekday ({@link useFeedbackRenderDate}). */\n renderDate?: FeedbackRenderDate;\n /** Over the `feedbackPage` namespace. Keep it stable (module scope or memoised): it is\n * a dependency of the memo. */\n labels?: LabelOverride<FeedbackPageLabels>;\n}\n\n/**\n * {@link feedbackColumns} with the `feedbackPage`, `feedbackStatus` and\n * `feedbackCategory` words from the provider, memoised on what it reads — pass\n * `update.mutate` through `useFeedbackStatusUndo` (stable) rather than a fresh function\n * per render, or every row's columns are rebuilt on each render (keksdose :667).\n */\nexport function useFeedbackColumns<T extends FeedbackTableRow>({\n mine,\n canEdit,\n onStatus,\n renderDate: renderDateProp,\n commit,\n votes,\n labels: labelsProp,\n}: UseFeedbackColumnsOptions): DataTableColumn<T>[] {\n const labels = useFeedbackPageLabels(labelsProp);\n const statusLabels = useFeedbackStatusLabels();\n const categoryLabels = useFeedbackCategoryLabels();\n const votesHeader = useKitLabels(\"feedbackPublic\", DEFAULT_FEEDBACK_PUBLIC_LABELS).columnVotes;\n const renderDate = useFeedbackRenderDate(renderDateProp);\n return useMemo(\n () =>\n feedbackColumns<T>({\n mine,\n canEdit,\n onStatus,\n renderDate,\n commit,\n labels,\n statusLabels,\n categoryLabels,\n votes,\n votesHeader,\n }),\n [mine, canEdit, onStatus, renderDate, commit, labels, statusLabels, categoryLabels, votes, votesHeader],\n );\n}\n\n/* ── The phone ──────────────────────────────────────────────────────────────── */\n\n/**\n * The phone list's day headers (keksdose feedback #325: the list \"grouped by date, like\n * the transactions list\"): `DataTable mobileGroupBy={feedbackMobileGroupBy(renderDate)}`.\n *\n * The key IS the header — the same string the card's date says. DataTable groups runs of\n * equal keys, so the rows must come newest first, as `GET /feedback` and\n * `GET /feedback/my` send them (§3.3).\n */\nexport function feedbackMobileGroupBy(\n renderDate: FeedbackRenderDate,\n): (row: Pick<FeedbackRecord, \"created_at\">) => string {\n return (row) => renderDate(row.created_at);\n}\n\nexport interface FeedbackMobileCardProps {\n row: FeedbackTableRow;\n /** Add the submitter after the date — the admin inbox (`canEdit`). On `/my-feedback`\n * every row is the viewer's own and the name would repeat down the list. */\n showSubmitter?: boolean;\n /** See {@link FeedbackRenderDate}; the same function as the columns' and the day\n * headers'. Default: the kit's ({@link useFeedbackRenderDate}). */\n renderDate?: FeedbackRenderDate;\n /** 0.38: the vote count as a chip beside the category — with `useFeedbackColumns`'\n * `votes`, whose column the phone hides. */\n votes?: boolean;\n /** Over the `feedbackPage` namespace. */\n labels?: LabelOverride<FeedbackPageLabels>;\n}\n\n/**\n * One report as a phone card (§4.3; keksdose :1042, feedback #325 rework: *\"compact card\n * instead of a wasteful label/value row per field\"*): the title with its environment and\n * rework chips and the status badge on one line, then the compact category badge, the\n * date and (admin) the submitter beneath.\n *\n * `DataTable mobileCard={(row) => <FeedbackMobileCard row={row} … />}`. It draws the\n * chips itself: with a `mobileCard`, DataTable never renders the `mobilePrimary` cell,\n * which is how keksdose's cards lost them.\n */\nexport function FeedbackMobileCard({\n row,\n showSubmitter = false,\n renderDate: renderDateProp,\n votes = false,\n labels: labelsProp,\n}: FeedbackMobileCardProps) {\n const labels = useFeedbackPageLabels(labelsProp);\n const renderDate = useFeedbackRenderDate(renderDateProp);\n return (\n <div className=\"min-w-0 space-y-1\">\n <div className=\"flex items-start justify-between gap-2\">\n <FeedbackSubject row={row} wrap labels={labels} className=\"flex-1\" />\n {/* The pill the desktop status column draws, so a status is the same colour and\n glyph on both layouts. */}\n <FeedbackStatusBadge status={row.status} className=\"shrink-0\" />\n </div>\n <div className=\"flex min-w-0 flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-muted\">\n <FeedbackCategoryBadge category={row.category} compact />\n {votes && <FeedbackVoteCount votes={row.votes ?? undefined} />}\n <FeedbackDate value={row.created_at} renderDate={renderDate} />\n {showSubmitter && (\n // The short id form: \"#7\" says enough on a card that has room for little.\n <span className=\"min-w-0 truncate\">\n · {feedbackSubmitter(row, { deletedUser: labels.deletedUser, userFallback: (id) => `#${id}` })}\n </span>\n )}\n </div>\n </div>\n );\n}\n\nexport interface FeedbackAwaitingToggleProps {\n /** Narrowed to what waits on the triager. Page state, not the URL (keksdose :699): a\n * thumb gesture on one screen, not a view worth linking to. */\n pressed: boolean;\n onPressedChange: (pressed: boolean) => void;\n /** Further `FloatingAction`s, after the toggle — the group is what makes them free. */\n children?: ReactNode;\n /** Default `bottom-end`, the register's corner. */\n corner?: FloatingCorner;\n /** Over the group's default distance from the bottom. */\n offset?: string;\n /** On the group. It is `md:hidden` already: the desktop has the status column's\n * filter, the same question asked where there is room for it. */\n className?: string;\n /** Over the `feedbackPage` namespace. */\n labels?: LabelOverride<FeedbackPageLabels>;\n}\n\n/**\n * The phone inbox's one filter button — **\"Only what is waiting for you\"** (§4.3;\n * keksdose live #330 rework: *\"a button that toggles the evaluation items (in evaluation,\n * test when live) as toggle button similar to the show/hide upcoming/scheduled for the tx\n * page\"*).\n *\n * It narrows TO `FEEDBACK_AWAITING_STATUSES` rather than hiding them: after a loop run\n * those ARE the queue — the rows handed back for a verdict — and everything else is\n * history. A `FloatingActionGroup` with one member anyway, in the register's corner and\n * shape (keksdose feedback #58), so a second action costs nothing; the glyph is\n * IN_EVALUATION's own, so the button reads in the vocabulary of the badges it filters on.\n *\n * Admin inbox only: on `/my-feedback` the author is not waiting on their own verdict.\n * The filtering is the page's — `rows.filter((r) => isFeedbackAwaiting(r.status))` —\n * so the table's own filters, sort and URL stay untouched.\n */\nexport function FeedbackAwaitingToggle({\n pressed,\n onPressedChange,\n children,\n corner,\n offset,\n className,\n labels: labelsProp,\n}: FeedbackAwaitingToggleProps) {\n const labels = useFeedbackPageLabels(labelsProp);\n const Icon = FEEDBACK_STATUS_META.IN_EVALUATION.icon;\n return (\n <FloatingActionGroup\n aria-label={labels.phoneActions}\n corner={corner}\n offset={offset}\n className={cn(\"md:hidden\", className)}\n >\n <FloatingAction\n label={labels.awaitingFilter}\n icon={<Icon aria-hidden />}\n pressed={pressed}\n onClick={() => onPressedChange(!pressed)}\n />\n {children}\n </FloatingActionGroup>\n );\n}\n\n/* ── Empty ──────────────────────────────────────────────────────────────────── */\n\nexport interface FeedbackEmptyStateProps {\n /** Over the `feedbackPage` namespace. */\n labels?: LabelOverride<FeedbackPageLabels>;\n}\n\n/**\n * The table with nothing to show (§7.13): the one word **None** / **Keine**, on both\n * pages — keksdose's `empty={t(\"common.none\")}` (`feedback-page.tsx:982`). No hint\n * beneath it: where reports are sent from is the feedback menu's business, and the inbox\n * needs no sentence to say it is empty.\n *\n * For `DataTable empty`, which sits in a centred, muted cell — so no box of its own.\n * keksdose passes it unconditionally, so a filter (or the awaiting toggle) that leaves\n * nothing says \"None\" too: `empty={<FeedbackEmptyState />}`.\n */\nexport function FeedbackEmptyState({ labels: labelsProp }: FeedbackEmptyStateProps) {\n const labels = useFeedbackPageLabels(labelsProp);\n return <span data-feedback-empty=\"\">{labels.empty}</span>;\n}\n"],"mappings":";AA+PqB,SA8CjB,UA9CiB,KA8CjB,YA9CiB;AA/PrB,SAAS,eAAe;AAExB,SAAS,cAAc,gBAAgB;AACvC,SAAS,UAAU;AACnB,SAAS,kBAAkB;AAC3B,SAAS,uBAAuB,YAAY,cAAc;AAC1D,SAAS,qBAAqB,cAAc,YAAY,oBAAwC;AAEhG,SAAS,YAAY;AACrB,SAAS,eAAe;AACxB,SAAS,gBAAgB,2BAA2B;AAEpD,SAAS,wBAAwB;AAEjC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP,SAAS,4BAA4B,2BAAsE;AAE3G,SAAS,kBAAkB,wBAAwB;AAEnD,SAAS,oCAAoC;AAC7C,SAAS,sCAAsC;AA8FxC,SAAS,sBAAsB,QAAgE;AACpG,SAAO,aAAa,gBAAgB,8BAA8B,MAAM;AAC1E;AAuBA,SAAS,KAAK,OAAwB;AACpC,SAAO,OAAO,UAAU,WAAW,MAAM,KAAK,IAAI;AACpD;AAUO,SAAS,oBAAoB,SAA4D;AAC9F,QAAM,MAAM,KAAK,SAAS,WAAW;AACrC,SAAO,CAAC,OAAO,IAAI,YAAY,MAAM,SAAS,OAAO;AACvD;AASO,SAAS,kBACd,KACA,QACQ;AACR,MAAI,IAAI,WAAW,KAAM,QAAO,OAAO;AACvC,SACE,KAAK,IAAI,SAAS,iBAAiB,KACnC,K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AM,SAAS,sBAAsB,UAAU;AAC/C,QAAM,OAAO,qBAAqB,cAAc;AAChD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAY,OAAO;AAAA,MACnB;AAAA,MACA;AAAA,MACA,WAAW,GAAG,aAAa,SAAS;AAAA,MAEpC;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,OAAO,OAAO;AAAA,YACd,MAAM,oBAAC,QAAK,eAAW,MAAC;AAAA,YACxB;AAAA,YACA,SAAS,MAAM,gBAAgB,CAAC,OAAO;AAAA;AAAA,QACzC;AAAA,QACC;AAAA;AAAA;AAAA,EACH;AAEJ;AAmBO,SAAS,mBAAmB,EAAE,QAAQ,WAAW,GAA4B;AAClF,QAAM,SAAS,sBAAsB,UAAU;AAC/C,SAAO,oBAAC,UAAK,uBAAoB,IAAI,iBAAO,OAAM;AACpD;","names":[]}
@@ -735,7 +735,9 @@ function germanLabels(numberLocale) {
735
735
  },
736
736
  list: {
737
737
  unread: "Ungelesen",
738
- opensInNewTab: "\xF6ffnet in einem neuen Tab"
738
+ opensInNewTab: "\xF6ffnet in einem neuen Tab",
739
+ showAll: (count) => `Alle anzeigen (${n(count)})`,
740
+ showFewer: "Weniger anzeigen"
739
741
  },
740
742
  breadcrumbs: {
741
743
  label: "Brotkr\xFCmelnavigation",
@@ -869,7 +871,9 @@ function germanLabels(numberLocale) {
869
871
  links: {
870
872
  impressum: "Impressum",
871
873
  privacy: "Datenschutz",
872
- terms: "Nutzungsbedingungen"
874
+ terms: "Nutzungsbedingungen",
875
+ security: "Sicherheit",
876
+ accessibility: "Barrierefreiheit"
873
877
  },
874
878
  titles: {
875
879
  impressum: "Impressum",
@@ -887,6 +891,10 @@ function germanLabels(numberLocale) {
887
891
  show: (o) => `Fassung auf ${o.bindingLanguage} anzeigen`
888
892
  },
889
893
  updated: (date) => `Stand: ${date}`,
894
+ summary: {
895
+ title: "Das Wichtigste in K\xFCrze",
896
+ note: "Diese Zusammenfassung dient der Orientierung; verbindlich ist allein der vollst\xE4ndige Text."
897
+ },
890
898
  sections: {
891
899
  impressum: {
892
900
  operator: {
@@ -949,7 +957,7 @@ Die vollst\xE4ndige Postanschrift wird betroffenen Personen und Aufsichtsbeh\xF6
949
957
  },
950
958
  changes: {
951
959
  title: "\xC4nderungen dieser Bedingungen",
952
- body: "Wir k\xF6nnen diese Bedingungen im Zuge der Weiterentwicklung des Dienstes anpassen. Wesentliche \xC4nderungen k\xFCndigen wir mindestens 30 Tage vor ihrem Inkrafttreten per E-Mail und in der App an, zusammen mit dem neuen Text. Wenn Sie nicht einverstanden sind, k\xF6nnen Sie vor diesem Datum widersprechen oder Ihr Konto l\xF6schen und bis dahin Ihre Daten exportieren. Nutzen Sie den Dienst nach diesem Datum weiter, gelten die ge\xE4nderten Bedingungen."
960
+ body: "Wir k\xF6nnen diese Bedingungen im Zuge der Weiterentwicklung des Dienstes anpassen. Wesentliche \xC4nderungen k\xFCndigen wir mindestens 30 Tage vor ihrem Inkrafttreten per E-Mail und in der App an, zusammen mit dem neuen Text. Wenn Sie nicht einverstanden sind, k\xF6nnen Sie vor diesem Datum widersprechen oder Ihr Konto l\xF6schen und bis dahin Ihre Daten exportieren. Nutzen Sie den Dienst nach diesem Datum weiter, gelten die ge\xE4nderten Bedingungen. \xC4nderungen, die nur zu Ihrem Vorteil sind oder gesetzlich vorgeschrieben sind, gelten ohne diese Ank\xFCndigung; ihnen kann nicht widersprochen werden. Widersprechen Sie einer \xC4nderung, k\xF6nnen wir Ihr Konto auf den Tag ihres Inkrafttretens schlie\xDFen. Haben Sie einen Zeitraum bezahlt, der \xFCber dieses Datum hinausgeht, erstatten wir den nicht genutzten Teil."
953
961
  },
954
962
  language: {
955
963
  title: "Sprache",