@burdenoff/microfe-export 2026.1124.1 → 2026.1125.1
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.
- package/dist/export/ExportRoutes.js +62 -57
- package/dist/export/ExportRoutes.js.map +1 -1
- package/dist/export/components/ConfirmDestructiveDialog.js +18 -14
- package/dist/export/components/ConfirmDestructiveDialog.js.map +1 -1
- package/dist/export/components/DownloadStatus.js +14 -10
- package/dist/export/components/DownloadStatus.js.map +1 -1
- package/dist/export/components/ExportProgressBar.d.ts +3 -1
- package/dist/export/components/ExportProgressBar.js +23 -11
- package/dist/export/components/ExportProgressBar.js.map +1 -1
- package/dist/export/components/loadingSystem.d.ts +64 -0
- package/dist/export/components/loadingSystem.js +49 -0
- package/dist/export/components/loadingSystem.js.map +1 -0
- package/dist/export/hooks/exportBackgroundTask.d.ts +18 -0
- package/dist/export/hooks/exportBackgroundTask.js +46 -0
- package/dist/export/hooks/exportBackgroundTask.js.map +1 -0
- package/dist/export/hooks/useExportQueries.js +140 -124
- package/dist/export/hooks/useExportQueries.js.map +1 -1
- package/dist/export/pages/CreateExportPage.js +29 -27
- package/dist/export/pages/CreateExportPage.js.map +1 -1
- package/dist/export/pages/ExportDashboardPage.js +114 -113
- package/dist/export/pages/ExportDashboardPage.js.map +1 -1
- package/dist/export/pages/ExportDetailPage.js +104 -98
- package/dist/export/pages/ExportDetailPage.js.map +1 -1
- package/dist/export/pages/ExportHistoryPage.js +150 -149
- package/dist/export/pages/ExportHistoryPage.js.map +1 -1
- package/dist/export/pages/ExportTemplatesPage.js +156 -154
- package/dist/export/pages/ExportTemplatesPage.js.map +1 -1
- package/dist/export/pages/TemplateDetailPage.js +142 -136
- package/dist/export/pages/TemplateDetailPage.js.map +1 -1
- package/dist/export/pages/v2/DownloadDetailPage.js +108 -103
- package/dist/export/pages/v2/DownloadDetailPage.js.map +1 -1
- package/dist/export/pages/v2/DownloadsPage.js +153 -152
- package/dist/export/pages/v2/DownloadsPage.js.map +1 -1
- package/dist/export/pages/v2/NewDownloadPage.js +142 -138
- package/dist/export/pages/v2/NewDownloadPage.js.map +1 -1
- package/dist/export/workspace-v2/DownloadCells.js +32 -20
- package/dist/export/workspace-v2/DownloadCells.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewDownloadPage.js","names":["_Fragment","SCOPE_COPY","FORMAT_COPY","fieldClass","ChoiceCard","checked","onToggle","cn","Check","Minus","title","description","NewDownloadPage","useExport","tr","useTr","useCreateExportJob","availableEntities","useAvailableEntities","templates","useExportTemplates","searchParams","useSearchParams","hostProductSlug","useAppShell","canWorkspaceAdmin","usePermission","canOrgAdmin","useOrganizationExportPermission","organizationId","scopes","isSelectable","useCallback","isExportEntityDisabled","entityType","isForeignProductEntity","offered","useMemo","groups","offeredGroups","label","entityLabel","step","setStep","useState","form","setForm","DEFAULT_NEW_DOWNLOAD_FORM","nameTouchedRef","useRef","showAll","setShowAll","error","setError","showQuotaDialog","setShowQuotaDialog","appliedTemplateRef","paramId","setup","applySavedSetup","f","selected","setEntities","next","toggleEntity","e","toggleGroup","all","types","t","group","suggestedName","whole","entityTypes","covered","g","loose","what","suggestedDownloadName","goNext","submit","job","createJob","toCreateExportInput","joinPath","basePath","err","isQuotaExhaustedError","scopeLabel","scope","formatLabel","format","kinds","PageLayout","Download","Stepper","i","IllustratedEmptyState","Fragment","count","Button","entity","OptionalFields","SUPPORTED_FORMATS","ThemedSelect","navigate","ArrowRight","isPending","Loader2","AlertDialog","AlertDialogContent","AlertDialogHeader","AlertDialogTitle","AlertDialogDescription","AlertDialogFooter","AlertDialogCancel","AlertDialogAction","openBilling"],"sources":["../../../../src/export/pages/v2/NewDownloadPage.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useSearchParams } from \"react-router\";\nimport { isQuotaExhaustedError } from \"@burdenoff/fe-libs/shared/utils\";\nimport {\n useAppShell,\n usePermission,\n} from \"@burdenoff/fe-libs/shared/providers/shell\";\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n Button,\n IllustratedEmptyState,\n OptionalFields,\n Stepper,\n ThemedSelect,\n} from \"@burdenoff/fe-libs/ui\";\nimport { ArrowRight, Check, Download, Loader2, Minus } from \"lucide-react\";\nimport { useExport } from \"../../providers/ExportProvider\";\nimport {\n useAvailableEntities,\n useCreateExportJob,\n useExportTemplates,\n useOrganizationExportPermission,\n} from \"../../hooks/useExportQueries\";\nimport { useTr } from \"../../hooks/useTr\";\nimport { PageLayout } from \"../../components/PageLayout\";\nimport { entityLabel, offeredGroups } from \"../../utils/entityLabels\";\nimport {\n isExportEntityDisabled,\n isForeignProductEntity,\n} from \"../../utils/disabledModules\";\nimport {\n applySavedSetup,\n DEFAULT_NEW_DOWNLOAD_FORM,\n suggestedDownloadName,\n SUPPORTED_FORMATS,\n toCreateExportInput,\n type NewDownloadForm,\n} from \"../../utils/newDownloadForm\";\nimport { joinPath } from \"../../utils/paths\";\nimport { openBilling } from \"../../utils/billing\";\nimport { cn } from \"../../utils/cn\";\nimport type { ExportFormat, ExportScope } from \"../../types\";\n\ntype Step = 0 | 1;\n\nconst SCOPE_COPY: Record<\n ExportScope,\n { labelKey: string; label: string; descKey: string; desc: string }\n> = {\n INDIVIDUAL: {\n labelKey: \"export.create.scope.individual.label\",\n label: \"My Data Only\",\n descKey: \"export.create.scope.individual.description\",\n desc: \"Export data you personally created across selected modules.\",\n },\n WORKSPACE_ADMIN: {\n labelKey: \"export.create.scope.workspaceAdmin.label\",\n label: \"All Workspace Data\",\n descKey: \"export.create.scope.workspaceAdmin.description\",\n desc: \"Export all data in this workspace regardless of who created it. Requires workspace admin access.\",\n },\n ORG_ADMIN: {\n labelKey: \"export.create.scope.orgAdmin.label\",\n label: \"All Organization Data\",\n descKey: \"export.create.scope.orgAdmin.description\",\n desc: \"Export data from every workspace in your organization. Requires org-admin access.\",\n },\n};\n\nconst FORMAT_COPY: Record<ExportFormat, [string, string]> = {\n CSV: [\"export.format.csv\", \"CSV\"],\n JSON: [\"export.format.json\", \"JSON\"],\n};\n\nconst fieldClass =\n \"w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary\";\n\n/** A card that toggles: a checkbox for the screen reader, a card for the eye. */\nfunction ChoiceCard({\n checked,\n onToggle,\n title,\n description,\n}: {\n checked: boolean | \"mixed\";\n onToggle: () => void;\n title: string;\n description?: string;\n}) {\n return (\n <button\n type=\"button\"\n role=\"checkbox\"\n aria-checked={checked}\n onClick={onToggle}\n className={cn(\n \"flex w-full items-start gap-3 rounded-xl border p-4 text-left transition-colors\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40\",\n checked === true\n ? \"border-primary bg-action-primary-bg/5\"\n : \"border-border-subtle hover:border-primary/40\",\n )}\n >\n <span\n aria-hidden=\"true\"\n className={cn(\n \"mt-0.5 flex size-5 shrink-0 items-center justify-center rounded border\",\n checked\n ? \"border-primary bg-action-primary-bg text-action-primary-text\"\n : \"border-border-default\",\n )}\n >\n {checked === true ? <Check size={14} /> : null}\n {checked === \"mixed\" ? <Minus size={14} /> : null}\n </span>\n <span className=\"min-w-0\">\n <span className=\"block font-medium text-text-primary\">{title}</span>\n {description ? (\n <span className=\"block text-sm text-text-secondary\">\n {description}\n </span>\n ) : null}\n </span>\n </button>\n );\n}\n\n/**\n * \"New download\" (Navigation v2, BOFF-11870): two short steps in place of the\n * three-tab wizard. Step 1 picks what to download from plain groups (\"Show all\n * data types\" lists the rest). Step 2 is a one-line summary, the prefilled\n * name and \"Start download\"; whose data, the format, a date range and a saved\n * setup sit in one \"More options\" fold. The service call is the wizard's.\n */\nexport function NewDownloadPage() {\n const { basePath = \"/\", navigate, organizationId } = useExport();\n const tr = useTr();\n const { createJob, isPending } = useCreateExportJob();\n const { data: availableEntities } = useAvailableEntities();\n const { data: templates } = useExportTemplates();\n const [searchParams] = useSearchParams();\n const { productSlug: hostProductSlug } = useAppShell();\n\n const canWorkspaceAdmin = usePermission(\"export:workspace_admin\");\n const canOrgAdmin = useOrganizationExportPermission(organizationId);\n // Scopes the person can't use are hidden, not shown locked.\n const scopes: ExportScope[] = [\n \"INDIVIDUAL\",\n ...(canWorkspaceAdmin ? ([\"WORKSPACE_ADMIN\"] as const) : []),\n ...(canOrgAdmin ? ([\"ORG_ADMIN\"] as const) : []),\n ];\n\n const isSelectable = useCallback(\n (entityType: string) =>\n !isExportEntityDisabled(entityType) &&\n !isForeignProductEntity(entityType, hostProductSlug),\n [hostProductSlug],\n );\n\n // Only what this person can download in this shell. Products whose\n // download isn't available yet are not listed at all.\n const offered = useMemo(\n () =>\n availableEntities.filter(\n (e) => e.enabled !== false && isSelectable(e.entityType),\n ),\n [availableEntities, isSelectable],\n );\n const groups = offeredGroups(offered.map((e) => e.entityType));\n const label = (entityType: string) =>\n entityLabel(entityType, tr, availableEntities);\n\n const [step, setStep] = useState<Step>(0);\n const [form, setForm] = useState<NewDownloadForm>(() => ({\n ...DEFAULT_NEW_DOWNLOAD_FORM,\n templateId: searchParams.get(\"templateId\") ?? undefined,\n }));\n // Only read in handlers: whether the person typed their own name.\n const nameTouchedRef = useRef(false);\n const [showAll, setShowAll] = useState(false);\n const [error, setError] = useState<string | null>(null);\n const [showQuotaDialog, setShowQuotaDialog] = useState(false);\n\n // Arriving from \"Use this setup\" (?templateId=): apply it once.\n const appliedTemplateRef = useRef<string | null>(null);\n useEffect(() => {\n const paramId = searchParams.get(\"templateId\");\n if (!paramId || !templates.length) return;\n if (appliedTemplateRef.current === paramId) return;\n const setup = templates.find((t) => t.id === paramId);\n if (!setup) return;\n appliedTemplateRef.current = paramId;\n setForm((f) => applySavedSetup(f, setup, isSelectable, false));\n }, [isSelectable, searchParams, templates]);\n\n const selected = new Set(form.entityTypes);\n const setEntities = (next: string[]) =>\n setForm((f) => ({ ...f, entityTypes: next }));\n const toggleEntity = (entityType: string) =>\n setEntities(\n selected.has(entityType)\n ? form.entityTypes.filter((e) => e !== entityType)\n : [...form.entityTypes, entityType],\n );\n const toggleGroup = (types: string[]) => {\n const all = types.every((t) => selected.has(t));\n const group = new Set(types);\n setEntities(\n all\n ? form.entityTypes.filter((e) => !group.has(e))\n : [...form.entityTypes, ...types.filter((t) => !selected.has(t))],\n );\n };\n\n // The name a download gets unless the person types one: the one group (or\n // data type) it covers, else \"My data\", with today's date.\n const suggestedName = () => {\n const whole = groups.filter(({ entityTypes }) =>\n entityTypes.every((t) => selected.has(t)),\n );\n const covered = new Set(whole.flatMap((g) => g.entityTypes));\n const loose = form.entityTypes.filter((t) => !covered.has(t));\n const what =\n whole.length === 1 && loose.length === 0\n ? tr(whole[0]!.group.labelKey, whole[0]!.group.label)\n : whole.length === 0 && loose.length === 1\n ? label(loose[0]!)\n : tr(\"export.create.name.myData\", \"My data\");\n return suggestedDownloadName(what);\n };\n\n const goNext = () => {\n if (form.entityTypes.length === 0) {\n setError(\n tr(\n \"export.create.errors.selectEntity\",\n \"Please select at least one entity type to export\",\n ),\n );\n return;\n }\n setError(null);\n if (!nameTouchedRef.current)\n setForm((f) => ({ ...f, name: suggestedName() }));\n setStep(1);\n };\n\n const submit = async () => {\n if (!form.name.trim()) {\n setError(\n tr(\n \"export.create.errors.exportNameRequired\",\n \"Please provide a name for this export\",\n ),\n );\n return;\n }\n setError(null);\n try {\n const job = await createJob(toCreateExportInput(form, organizationId));\n // Land on the new download's own page to watch it prepare.\n navigate?.(job?.id ? joinPath(basePath, job.id) : basePath);\n } catch (err) {\n if (isQuotaExhaustedError(err)) {\n setShowQuotaDialog(true);\n setError(\n tr(\n \"export.create.errors.quotaReached\",\n \"You have reached your export limit for this month.\",\n ),\n );\n return;\n }\n setError(\n err instanceof Error\n ? err.message\n : tr(\"export.create.errors.createFailed\", \"Failed to create export\"),\n );\n }\n };\n\n const scopeLabel = (scope: ExportScope) =>\n tr(SCOPE_COPY[scope].labelKey, SCOPE_COPY[scope].label);\n const formatLabel = (format: ExportFormat) =>\n tr(FORMAT_COPY[format][0], FORMAT_COPY[format][1]);\n const kinds = form.entityTypes.map(label);\n\n return (\n <PageLayout\n title={tr(\"export.create.title\", \"New Export\")}\n icon={<Download size={24} />}\n maxWidth=\"3xl\"\n >\n <Stepper\n steps={[\n {\n key: \"what\",\n label: tr(\n \"export.create.steps.what\",\n \"What do you want to download?\",\n ),\n },\n { key: \"review\", label: tr(\"export.create.steps.review\", \"Review\") },\n ]}\n active={step}\n onStepClick={(i) => {\n if (i === 0) setStep(0);\n }}\n />\n\n {error && (\n <p\n role=\"alert\"\n className=\"rounded-xl border border-border-default bg-status-error-bg-subtle p-4 text-sm text-status-error-text\"\n >\n {error}\n </p>\n )}\n\n {step === 0 && (\n <section aria-labelledby=\"new-download-what\" className=\"space-y-4\">\n <h2 id=\"new-download-what\" className=\"text-lg font-semibold\">\n {tr(\n \"export.create.select.question\",\n \"What do you want to download?\",\n )}\n </h2>\n {offered.length === 0 ? (\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title={tr(\n \"export.create.select.emptyTitle\",\n \"Nothing to export yet\",\n )}\n description={tr(\n \"export.create.select.empty\",\n \"No exportable entity types are configured for this workspace yet. Once your workspace has data in supported modules, they'll show up here to select.\",\n )}\n glassIllustration=\"data-tables\"\n />\n ) : (\n <>\n {groups.length > 0 && (\n <div className=\"grid grid-cols-1 gap-3 sm:grid-cols-2\">\n {groups.map(({ group, entityTypes }) => {\n const count = entityTypes.filter((t) =>\n selected.has(t),\n ).length;\n return (\n <ChoiceCard\n key={group.id}\n checked={\n count === entityTypes.length\n ? true\n : count > 0\n ? \"mixed\"\n : false\n }\n onToggle={() => toggleGroup(entityTypes)}\n title={tr(group.labelKey, group.label)}\n description={tr(\n group.descriptionKey,\n group.description,\n )}\n />\n );\n })}\n </div>\n )}\n <div className=\"space-y-3\">\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n aria-expanded={showAll || groups.length === 0}\n aria-controls=\"new-download-all-types\"\n onClick={() => setShowAll(!showAll)}\n hidden={groups.length === 0}\n >\n {showAll\n ? tr(\"export.create.select.hideAll\", \"Hide the full list\")\n : tr(\"export.create.select.showAll\", \"Show all data types\")}\n </Button>\n <div\n id=\"new-download-all-types\"\n hidden={!showAll && groups.length > 0}\n className=\"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3\"\n >\n {offered.map((entity) => (\n <ChoiceCard\n key={entity.entityType}\n checked={selected.has(entity.entityType)}\n onToggle={() => toggleEntity(entity.entityType)}\n title={label(entity.entityType)}\n />\n ))}\n </div>\n </div>\n </>\n )}\n </section>\n )}\n\n {step === 1 && (\n <section aria-labelledby=\"new-download-review\" className=\"space-y-4\">\n <h2 id=\"new-download-review\" className=\"sr-only\">\n {tr(\"export.create.steps.review\", \"Review\")}\n </h2>\n <div className=\"space-y-4 rounded-xl border border-border-subtle bg-bg-surface p-4 sm:p-6\">\n <p\n className=\"text-sm text-text-primary\"\n data-testid=\"new-download-summary\"\n >\n {tr(\n \"export.create.summary\",\n \"{{kinds}} · {{whose}} · {{format}}\",\n {\n kinds: kinds.join(\", \"),\n whose: scopeLabel(form.scope),\n format: formatLabel(form.format),\n },\n )}\n </p>\n <div className=\"space-y-1\">\n <label\n htmlFor=\"new-download-name\"\n className=\"block text-sm font-medium\"\n >\n {tr(\"export.create.options.name\", \"Export Name\")}{\" \"}\n <span aria-hidden=\"true\" className=\"text-status-error-text\">\n *\n </span>\n </label>\n <input\n id=\"new-download-name\"\n type=\"text\"\n required\n aria-required=\"true\"\n value={form.name}\n onChange={(e) => {\n nameTouchedRef.current = true;\n setForm((f) => ({ ...f, name: e.target.value }));\n }}\n className={fieldClass}\n />\n </div>\n <p className=\"text-sm text-text-secondary\">\n {tr(\"export.create.zipNote\", \"You'll get a ZIP file.\")}\n </p>\n </div>\n\n <OptionalFields storageKey=\"export.new.moreOptions\">\n {scopes.length > 1 ? (\n <fieldset className=\"space-y-2\">\n <legend className=\"text-sm font-medium\">\n {tr(\"export.create.options.scope\", \"Export Scope\")}\n </legend>\n <div className=\"grid grid-cols-1 gap-2 sm:grid-cols-3\">\n {scopes.map((scope) => (\n <label\n key={scope}\n className={cn(\n \"flex cursor-pointer items-start gap-2 rounded-lg border p-3 text-sm\",\n form.scope === scope\n ? \"border-primary bg-action-primary-bg/5\"\n : \"border-border-subtle\",\n )}\n >\n <input\n type=\"radio\"\n name=\"new-download-scope\"\n value={scope}\n checked={form.scope === scope}\n onChange={() => setForm((f) => ({ ...f, scope }))}\n className=\"mt-1\"\n />\n <span>\n <span className=\"block font-medium\">\n {scopeLabel(scope)}\n </span>\n <span className=\"block text-xs text-text-secondary\">\n {tr(\n SCOPE_COPY[scope].descKey,\n SCOPE_COPY[scope].desc,\n )}\n </span>\n </span>\n </label>\n ))}\n </div>\n </fieldset>\n ) : null}\n\n <fieldset className=\"space-y-2\">\n <legend className=\"text-sm font-medium\">\n {tr(\"export.create.options.outputFormat\", \"Output Format\")}\n </legend>\n <div className=\"grid grid-cols-1 gap-2 sm:grid-cols-2\">\n {SUPPORTED_FORMATS.map((format) => (\n <label\n key={format}\n className={cn(\n \"flex cursor-pointer items-center gap-2 rounded-lg border p-3 text-sm\",\n form.format === format\n ? \"border-primary bg-action-primary-bg/5\"\n : \"border-border-subtle\",\n )}\n >\n <input\n type=\"radio\"\n name=\"new-download-format\"\n value={format}\n checked={form.format === format}\n onChange={() => setForm((f) => ({ ...f, format }))}\n />\n {formatLabel(format)}\n </label>\n ))}\n </div>\n </fieldset>\n\n <fieldset className=\"space-y-2\">\n <legend className=\"text-sm font-medium\">\n {tr(\"export.create.options.dateRange\", \"Date Range\")}{\" \"}\n <span className=\"font-normal text-text-secondary\">\n {tr(\"export.create.shared.optional\", \"(optional)\")}\n </span>\n </legend>\n <div className=\"grid grid-cols-1 gap-3 sm:grid-cols-2\">\n <label className=\"space-y-1 text-xs text-text-secondary\">\n <span>{tr(\"export.create.options.dateFrom\", \"From\")}</span>\n <input\n type=\"date\"\n value={form.dateFrom}\n onChange={(e) =>\n setForm((f) => ({ ...f, dateFrom: e.target.value }))\n }\n className={fieldClass}\n />\n </label>\n <label className=\"space-y-1 text-xs text-text-secondary\">\n <span>{tr(\"export.create.options.dateTo\", \"To\")}</span>\n <input\n type=\"date\"\n value={form.dateTo}\n min={form.dateFrom || undefined}\n onChange={(e) =>\n setForm((f) => ({ ...f, dateTo: e.target.value }))\n }\n className={fieldClass}\n />\n </label>\n </div>\n <p className=\"text-xs text-text-secondary\">\n {tr(\n \"export.create.options.dateRangeDescription\",\n \"Leave blank to export all data regardless of date.\",\n )}\n </p>\n </fieldset>\n\n <div className=\"space-y-1\">\n <label\n htmlFor=\"new-download-setup\"\n className=\"block text-sm font-medium\"\n >\n {tr(\n \"export.create.options.basedOnTemplate\",\n \"Based on Template\",\n )}{\" \"}\n <span className=\"font-normal text-text-secondary\">\n {tr(\"export.create.shared.optional\", \"(optional)\")}\n </span>\n </label>\n {templates.length > 0 ? (\n <ThemedSelect\n id=\"new-download-setup\"\n value={form.templateId ?? \"\"}\n onChange={(e) => {\n const setup = templates.find(\n (t) => t.id === e.target.value,\n );\n setForm((f) =>\n setup\n ? applySavedSetup(\n f,\n setup,\n isSelectable,\n nameTouchedRef.current,\n )\n : { ...f, templateId: undefined },\n );\n }}\n className={fieldClass}\n >\n <option value=\"\">\n {tr(\"export.create.options.noTemplate\", \"No template\")}\n </option>\n {templates.map((t) => (\n <option key={t.id} value={t.id}>\n {t.name}\n </option>\n ))}\n </ThemedSelect>\n ) : (\n <p className=\"text-sm text-text-secondary\">\n {tr(\"export.create.options.noTemplates\", \"No templates yet.\")}{\" \"}\n <button\n type=\"button\"\n onClick={() => navigate?.(joinPath(basePath, \"templates\"))}\n className=\"text-primary underline-offset-2 hover:underline\"\n >\n {tr(\n \"export.create.options.createTemplateLink\",\n \"Create one\",\n )}\n </button>{\" \"}\n {tr(\n \"export.create.options.reuseTemplateHint\",\n \"to reuse export configurations.\",\n )}\n </p>\n )}\n </div>\n </OptionalFields>\n </section>\n )}\n\n <div className=\"flex flex-col-reverse gap-3 pt-2 sm:flex-row sm:justify-end\">\n <Button\n type=\"button\"\n variant=\"outline\"\n onClick={() => navigate?.(basePath)}\n >\n {tr(\"export.create.actions.cancel\", \"Cancel\")}\n </Button>\n {step === 1 && (\n <Button type=\"button\" variant=\"outline\" onClick={() => setStep(0)}>\n {tr(\"export.create.actions.back\", \"Back\")}\n </Button>\n )}\n {step === 0 ? (\n <Button type=\"button\" onClick={goNext}>\n {tr(\"export.create.actions.next\", \"Next\")}\n <ArrowRight size={16} aria-hidden=\"true\" />\n </Button>\n ) : (\n <Button\n type=\"button\"\n onClick={() => void submit()}\n disabled={isPending}\n >\n {isPending ? (\n <Loader2 size={16} className=\"animate-spin\" aria-hidden=\"true\" />\n ) : (\n <Download size={16} aria-hidden=\"true\" />\n )}\n {tr(\"export.create.actions.startExport\", \"Start Export\")}\n </Button>\n )}\n </div>\n\n <AlertDialog open={showQuotaDialog} onOpenChange={setShowQuotaDialog}>\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>\n {tr(\"export.create.quotaDialog.title\", \"Export Limit Reached\")}\n </AlertDialogTitle>\n <AlertDialogDescription>\n {tr(\n \"export.create.quotaDialog.description\",\n \"You have reached your export limit for this month.\",\n )}\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>\n {tr(\"export.create.quotaDialog.dismiss\", \"Dismiss\")}\n </AlertDialogCancel>\n <AlertDialogAction onClick={() => openBilling(navigate)}>\n {tr(\"export.create.quotaDialog.viewBilling\", \"View Billing\")}\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAoDA,IAAMC,IAGF;CAC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mC,sBAAsB,EAC7C,CAAA,GAClB,kBAACmG,IAAD,EAAA,UACGnG,EACC,yCACA,oDACF,EACsB,CAAA,CACP,EAAA,CAAA,GACnB,kBAACoG,IAAD,EAAA,UAAA,CACE,kBAACC,IAAD,EAAA,UACGrG,EAAG,qCAAqC,SAAS,EACjC,CAAA,GACnB,kBAACsG,IAAD;KAAmB,eAAeC,EAAYZ,CAAQ;KACnD,UAAA3F,EAAG,yCAAyC,cAAc;IAC1C,CAAA,CACF,EAAA,CAAA,CACD,EAAA,CAAA;GACT,CAAA;EACH;;AAEhB"}
|
|
1
|
+
{"version":3,"file":"NewDownloadPage.js","names":["_Fragment","SCOPE_COPY","FORMAT_COPY","fieldClass","ChoiceCard","checked","onToggle","cn","Check","Minus","title","description","NewDownloadPage","loadingSystem","useLoadingSystem","useExport","tr","useTr","useCreateExportJob","availableEntities","useAvailableEntities","templates","useExportTemplates","searchParams","useSearchParams","hostProductSlug","useAppShell","canWorkspaceAdmin","usePermission","canOrgAdmin","useOrganizationExportPermission","organizationId","scopes","isSelectable","useCallback","isExportEntityDisabled","entityType","isForeignProductEntity","offered","useMemo","groups","offeredGroups","label","entityLabel","step","setStep","useState","form","setForm","DEFAULT_NEW_DOWNLOAD_FORM","nameTouchedRef","useRef","showAll","setShowAll","error","setError","showQuotaDialog","setShowQuotaDialog","appliedTemplateRef","paramId","setup","applySavedSetup","f","selected","setEntities","next","toggleEntity","e","toggleGroup","all","types","t","group","suggestedName","whole","entityTypes","covered","g","loose","what","suggestedDownloadName","goNext","submit","job","createJob","toCreateExportInput","joinPath","basePath","err","isQuotaExhaustedError","scopeLabel","scope","formatLabel","format","kinds","PageLayout","Download","Stepper","i","IllustratedEmptyState","Fragment","count","Button","entity","OptionalFields","SUPPORTED_FORMATS","ThemedSelect","navigate","ArrowRight","isPending","SpinnerIcon","AlertDialog","AlertDialogContent","AlertDialogHeader","AlertDialogTitle","AlertDialogDescription","AlertDialogFooter","AlertDialogCancel","AlertDialogAction","openBilling"],"sources":["../../../../src/export/pages/v2/NewDownloadPage.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useSearchParams } from \"react-router\";\nimport { isQuotaExhaustedError } from \"@burdenoff/fe-libs/shared/utils\";\nimport {\n useAppShell,\n usePermission,\n} from \"@burdenoff/fe-libs/shared/providers/shell\";\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n Button,\n IllustratedEmptyState,\n OptionalFields,\n Stepper,\n ThemedSelect,\n} from \"@burdenoff/fe-libs/ui\";\nimport { ArrowRight, Check, Download, Minus } from \"lucide-react\";\nimport { useExport } from \"../../providers/ExportProvider\";\nimport {\n useAvailableEntities,\n useCreateExportJob,\n useExportTemplates,\n useOrganizationExportPermission,\n} from \"../../hooks/useExportQueries\";\nimport { useTr } from \"../../hooks/useTr\";\nimport { PageLayout } from \"../../components/PageLayout\";\nimport { entityLabel, offeredGroups } from \"../../utils/entityLabels\";\nimport {\n isExportEntityDisabled,\n isForeignProductEntity,\n} from \"../../utils/disabledModules\";\nimport {\n applySavedSetup,\n DEFAULT_NEW_DOWNLOAD_FORM,\n suggestedDownloadName,\n SUPPORTED_FORMATS,\n toCreateExportInput,\n type NewDownloadForm,\n} from \"../../utils/newDownloadForm\";\nimport { joinPath } from \"../../utils/paths\";\nimport { openBilling } from \"../../utils/billing\";\nimport { cn } from \"../../utils/cn\";\nimport type { ExportFormat, ExportScope } from \"../../types\";\nimport { useLoadingSystem } from \"@burdenoff/fe-libs/ui/loading/LoadingSystemProvider\";\nimport { SpinnerIcon } from \"../../components/loadingSystem\";\n\ntype Step = 0 | 1;\n\nconst SCOPE_COPY: Record<\n ExportScope,\n { labelKey: string; label: string; descKey: string; desc: string }\n> = {\n INDIVIDUAL: {\n labelKey: \"export.create.scope.individual.label\",\n label: \"My Data Only\",\n descKey: \"export.create.scope.individual.description\",\n desc: \"Export data you personally created across selected modules.\",\n },\n WORKSPACE_ADMIN: {\n labelKey: \"export.create.scope.workspaceAdmin.label\",\n label: \"All Workspace Data\",\n descKey: \"export.create.scope.workspaceAdmin.description\",\n desc: \"Export all data in this workspace regardless of who created it. Requires workspace admin access.\",\n },\n ORG_ADMIN: {\n labelKey: \"export.create.scope.orgAdmin.label\",\n label: \"All Organization Data\",\n descKey: \"export.create.scope.orgAdmin.description\",\n desc: \"Export data from every workspace in your organization. Requires org-admin access.\",\n },\n};\n\nconst FORMAT_COPY: Record<ExportFormat, [string, string]> = {\n CSV: [\"export.format.csv\", \"CSV\"],\n JSON: [\"export.format.json\", \"JSON\"],\n};\n\nconst fieldClass =\n \"w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary\";\n\n/** A card that toggles: a checkbox for the screen reader, a card for the eye. */\nfunction ChoiceCard({\n checked,\n onToggle,\n title,\n description,\n}: {\n checked: boolean | \"mixed\";\n onToggle: () => void;\n title: string;\n description?: string;\n}) {\n return (\n <button\n type=\"button\"\n role=\"checkbox\"\n aria-checked={checked}\n onClick={onToggle}\n className={cn(\n \"flex w-full items-start gap-3 rounded-xl border p-4 text-left transition-colors\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40\",\n checked === true\n ? \"border-primary bg-action-primary-bg/5\"\n : \"border-border-subtle hover:border-primary/40\",\n )}\n >\n <span\n aria-hidden=\"true\"\n className={cn(\n \"mt-0.5 flex size-5 shrink-0 items-center justify-center rounded border\",\n checked\n ? \"border-primary bg-action-primary-bg text-action-primary-text\"\n : \"border-border-default\",\n )}\n >\n {checked === true ? <Check size={14} /> : null}\n {checked === \"mixed\" ? <Minus size={14} /> : null}\n </span>\n <span className=\"min-w-0\">\n <span className=\"block font-medium text-text-primary\">{title}</span>\n {description ? (\n <span className=\"block text-sm text-text-secondary\">\n {description}\n </span>\n ) : null}\n </span>\n </button>\n );\n}\n\n/**\n * \"New download\" (Navigation v2, BOFF-11870): two short steps in place of the\n * three-tab wizard. Step 1 picks what to download from plain groups (\"Show all\n * data types\" lists the rest). Step 2 is a one-line summary, the prefilled\n * name and \"Start download\"; whose data, the format, a date range and a saved\n * setup sit in one \"More options\" fold. The service call is the wizard's.\n */\nexport function NewDownloadPage() {\n const loadingSystem = useLoadingSystem();\n const { basePath = \"/\", navigate, organizationId } = useExport();\n const tr = useTr();\n const { createJob, isPending } = useCreateExportJob();\n const { data: availableEntities } = useAvailableEntities();\n const { data: templates } = useExportTemplates();\n const [searchParams] = useSearchParams();\n const { productSlug: hostProductSlug } = useAppShell();\n\n const canWorkspaceAdmin = usePermission(\"export:workspace_admin\");\n const canOrgAdmin = useOrganizationExportPermission(organizationId);\n // Scopes the person can't use are hidden, not shown locked.\n const scopes: ExportScope[] = [\n \"INDIVIDUAL\",\n ...(canWorkspaceAdmin ? ([\"WORKSPACE_ADMIN\"] as const) : []),\n ...(canOrgAdmin ? ([\"ORG_ADMIN\"] as const) : []),\n ];\n\n const isSelectable = useCallback(\n (entityType: string) =>\n !isExportEntityDisabled(entityType) &&\n !isForeignProductEntity(entityType, hostProductSlug),\n [hostProductSlug],\n );\n\n // Only what this person can download in this shell. Products whose\n // download isn't available yet are not listed at all.\n const offered = useMemo(\n () =>\n availableEntities.filter(\n (e) => e.enabled !== false && isSelectable(e.entityType),\n ),\n [availableEntities, isSelectable],\n );\n const groups = offeredGroups(offered.map((e) => e.entityType));\n const label = (entityType: string) =>\n entityLabel(entityType, tr, availableEntities);\n\n const [step, setStep] = useState<Step>(0);\n const [form, setForm] = useState<NewDownloadForm>(() => ({\n ...DEFAULT_NEW_DOWNLOAD_FORM,\n templateId: searchParams.get(\"templateId\") ?? undefined,\n }));\n // Only read in handlers: whether the person typed their own name.\n const nameTouchedRef = useRef(false);\n const [showAll, setShowAll] = useState(false);\n const [error, setError] = useState<string | null>(null);\n const [showQuotaDialog, setShowQuotaDialog] = useState(false);\n\n // Arriving from \"Use this setup\" (?templateId=): apply it once.\n const appliedTemplateRef = useRef<string | null>(null);\n useEffect(() => {\n const paramId = searchParams.get(\"templateId\");\n if (!paramId || !templates.length) return;\n if (appliedTemplateRef.current === paramId) return;\n const setup = templates.find((t) => t.id === paramId);\n if (!setup) return;\n appliedTemplateRef.current = paramId;\n setForm((f) => applySavedSetup(f, setup, isSelectable, false));\n }, [isSelectable, searchParams, templates]);\n\n const selected = new Set(form.entityTypes);\n const setEntities = (next: string[]) =>\n setForm((f) => ({ ...f, entityTypes: next }));\n const toggleEntity = (entityType: string) =>\n setEntities(\n selected.has(entityType)\n ? form.entityTypes.filter((e) => e !== entityType)\n : [...form.entityTypes, entityType],\n );\n const toggleGroup = (types: string[]) => {\n const all = types.every((t) => selected.has(t));\n const group = new Set(types);\n setEntities(\n all\n ? form.entityTypes.filter((e) => !group.has(e))\n : [...form.entityTypes, ...types.filter((t) => !selected.has(t))],\n );\n };\n\n // The name a download gets unless the person types one: the one group (or\n // data type) it covers, else \"My data\", with today's date.\n const suggestedName = () => {\n const whole = groups.filter(({ entityTypes }) =>\n entityTypes.every((t) => selected.has(t)),\n );\n const covered = new Set(whole.flatMap((g) => g.entityTypes));\n const loose = form.entityTypes.filter((t) => !covered.has(t));\n const what =\n whole.length === 1 && loose.length === 0\n ? tr(whole[0]!.group.labelKey, whole[0]!.group.label)\n : whole.length === 0 && loose.length === 1\n ? label(loose[0]!)\n : tr(\"export.create.name.myData\", \"My data\");\n return suggestedDownloadName(what);\n };\n\n const goNext = () => {\n if (form.entityTypes.length === 0) {\n setError(\n tr(\n \"export.create.errors.selectEntity\",\n \"Please select at least one entity type to export\",\n ),\n );\n return;\n }\n setError(null);\n if (!nameTouchedRef.current)\n setForm((f) => ({ ...f, name: suggestedName() }));\n setStep(1);\n };\n\n const submit = async () => {\n if (!form.name.trim()) {\n setError(\n tr(\n \"export.create.errors.exportNameRequired\",\n \"Please provide a name for this export\",\n ),\n );\n return;\n }\n setError(null);\n try {\n const job = await createJob(toCreateExportInput(form, organizationId));\n // Land on the new download's own page to watch it prepare.\n navigate?.(job?.id ? joinPath(basePath, job.id) : basePath);\n } catch (err) {\n if (isQuotaExhaustedError(err)) {\n setShowQuotaDialog(true);\n setError(\n tr(\n \"export.create.errors.quotaReached\",\n \"You have reached your export limit for this month.\",\n ),\n );\n return;\n }\n setError(\n err instanceof Error\n ? err.message\n : tr(\"export.create.errors.createFailed\", \"Failed to create export\"),\n );\n }\n };\n\n const scopeLabel = (scope: ExportScope) =>\n tr(SCOPE_COPY[scope].labelKey, SCOPE_COPY[scope].label);\n const formatLabel = (format: ExportFormat) =>\n tr(FORMAT_COPY[format][0], FORMAT_COPY[format][1]);\n const kinds = form.entityTypes.map(label);\n\n return (\n <PageLayout\n title={tr(\"export.create.title\", \"New Export\")}\n icon={<Download size={24} />}\n maxWidth=\"3xl\"\n >\n <Stepper\n steps={[\n {\n key: \"what\",\n label: tr(\n \"export.create.steps.what\",\n \"What do you want to download?\",\n ),\n },\n { key: \"review\", label: tr(\"export.create.steps.review\", \"Review\") },\n ]}\n active={step}\n onStepClick={(i) => {\n if (i === 0) setStep(0);\n }}\n />\n\n {error && (\n <p\n role=\"alert\"\n className=\"rounded-xl border border-border-default bg-status-error-bg-subtle p-4 text-sm text-status-error-text\"\n >\n {error}\n </p>\n )}\n\n {step === 0 && (\n <section aria-labelledby=\"new-download-what\" className=\"space-y-4\">\n <h2 id=\"new-download-what\" className=\"text-lg font-semibold\">\n {tr(\n \"export.create.select.question\",\n \"What do you want to download?\",\n )}\n </h2>\n {offered.length === 0 ? (\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title={tr(\n \"export.create.select.emptyTitle\",\n \"Nothing to export yet\",\n )}\n description={tr(\n \"export.create.select.empty\",\n \"No exportable entity types are configured for this workspace yet. Once your workspace has data in supported modules, they'll show up here to select.\",\n )}\n glassIllustration=\"data-tables\"\n />\n ) : (\n <>\n {groups.length > 0 && (\n <div className=\"grid grid-cols-1 gap-3 sm:grid-cols-2\">\n {groups.map(({ group, entityTypes }) => {\n const count = entityTypes.filter((t) =>\n selected.has(t),\n ).length;\n return (\n <ChoiceCard\n key={group.id}\n checked={\n count === entityTypes.length\n ? true\n : count > 0\n ? \"mixed\"\n : false\n }\n onToggle={() => toggleGroup(entityTypes)}\n title={tr(group.labelKey, group.label)}\n description={tr(\n group.descriptionKey,\n group.description,\n )}\n />\n );\n })}\n </div>\n )}\n <div className=\"space-y-3\">\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n aria-expanded={showAll || groups.length === 0}\n aria-controls=\"new-download-all-types\"\n onClick={() => setShowAll(!showAll)}\n hidden={groups.length === 0}\n >\n {showAll\n ? tr(\"export.create.select.hideAll\", \"Hide the full list\")\n : tr(\"export.create.select.showAll\", \"Show all data types\")}\n </Button>\n <div\n id=\"new-download-all-types\"\n hidden={!showAll && groups.length > 0}\n className=\"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3\"\n >\n {offered.map((entity) => (\n <ChoiceCard\n key={entity.entityType}\n checked={selected.has(entity.entityType)}\n onToggle={() => toggleEntity(entity.entityType)}\n title={label(entity.entityType)}\n />\n ))}\n </div>\n </div>\n </>\n )}\n </section>\n )}\n\n {step === 1 && (\n <section aria-labelledby=\"new-download-review\" className=\"space-y-4\">\n <h2 id=\"new-download-review\" className=\"sr-only\">\n {tr(\"export.create.steps.review\", \"Review\")}\n </h2>\n <div className=\"space-y-4 rounded-xl border border-border-subtle bg-bg-surface p-4 sm:p-6\">\n <p\n className=\"text-sm text-text-primary\"\n data-testid=\"new-download-summary\"\n >\n {tr(\n \"export.create.summary\",\n \"{{kinds}} · {{whose}} · {{format}}\",\n {\n kinds: kinds.join(\", \"),\n whose: scopeLabel(form.scope),\n format: formatLabel(form.format),\n },\n )}\n </p>\n <div className=\"space-y-1\">\n <label\n htmlFor=\"new-download-name\"\n className=\"block text-sm font-medium\"\n >\n {tr(\"export.create.options.name\", \"Export Name\")}{\" \"}\n <span aria-hidden=\"true\" className=\"text-status-error-text\">\n *\n </span>\n </label>\n <input\n id=\"new-download-name\"\n type=\"text\"\n required\n aria-required=\"true\"\n value={form.name}\n onChange={(e) => {\n nameTouchedRef.current = true;\n setForm((f) => ({ ...f, name: e.target.value }));\n }}\n className={fieldClass}\n />\n </div>\n <p className=\"text-sm text-text-secondary\">\n {tr(\"export.create.zipNote\", \"You'll get a ZIP file.\")}\n </p>\n </div>\n\n <OptionalFields storageKey=\"export.new.moreOptions\">\n {scopes.length > 1 ? (\n <fieldset className=\"space-y-2\">\n <legend className=\"text-sm font-medium\">\n {tr(\"export.create.options.scope\", \"Export Scope\")}\n </legend>\n <div className=\"grid grid-cols-1 gap-2 sm:grid-cols-3\">\n {scopes.map((scope) => (\n <label\n key={scope}\n className={cn(\n \"flex cursor-pointer items-start gap-2 rounded-lg border p-3 text-sm\",\n form.scope === scope\n ? \"border-primary bg-action-primary-bg/5\"\n : \"border-border-subtle\",\n )}\n >\n <input\n type=\"radio\"\n name=\"new-download-scope\"\n value={scope}\n checked={form.scope === scope}\n onChange={() => setForm((f) => ({ ...f, scope }))}\n className=\"mt-1\"\n />\n <span>\n <span className=\"block font-medium\">\n {scopeLabel(scope)}\n </span>\n <span className=\"block text-xs text-text-secondary\">\n {tr(\n SCOPE_COPY[scope].descKey,\n SCOPE_COPY[scope].desc,\n )}\n </span>\n </span>\n </label>\n ))}\n </div>\n </fieldset>\n ) : null}\n\n <fieldset className=\"space-y-2\">\n <legend className=\"text-sm font-medium\">\n {tr(\"export.create.options.outputFormat\", \"Output Format\")}\n </legend>\n <div className=\"grid grid-cols-1 gap-2 sm:grid-cols-2\">\n {SUPPORTED_FORMATS.map((format) => (\n <label\n key={format}\n className={cn(\n \"flex cursor-pointer items-center gap-2 rounded-lg border p-3 text-sm\",\n form.format === format\n ? \"border-primary bg-action-primary-bg/5\"\n : \"border-border-subtle\",\n )}\n >\n <input\n type=\"radio\"\n name=\"new-download-format\"\n value={format}\n checked={form.format === format}\n onChange={() => setForm((f) => ({ ...f, format }))}\n />\n {formatLabel(format)}\n </label>\n ))}\n </div>\n </fieldset>\n\n <fieldset className=\"space-y-2\">\n <legend className=\"text-sm font-medium\">\n {tr(\"export.create.options.dateRange\", \"Date Range\")}{\" \"}\n <span className=\"font-normal text-text-secondary\">\n {tr(\"export.create.shared.optional\", \"(optional)\")}\n </span>\n </legend>\n <div className=\"grid grid-cols-1 gap-3 sm:grid-cols-2\">\n <label className=\"space-y-1 text-xs text-text-secondary\">\n <span>{tr(\"export.create.options.dateFrom\", \"From\")}</span>\n <input\n type=\"date\"\n value={form.dateFrom}\n onChange={(e) =>\n setForm((f) => ({ ...f, dateFrom: e.target.value }))\n }\n className={fieldClass}\n />\n </label>\n <label className=\"space-y-1 text-xs text-text-secondary\">\n <span>{tr(\"export.create.options.dateTo\", \"To\")}</span>\n <input\n type=\"date\"\n value={form.dateTo}\n min={form.dateFrom || undefined}\n onChange={(e) =>\n setForm((f) => ({ ...f, dateTo: e.target.value }))\n }\n className={fieldClass}\n />\n </label>\n </div>\n <p className=\"text-xs text-text-secondary\">\n {tr(\n \"export.create.options.dateRangeDescription\",\n \"Leave blank to export all data regardless of date.\",\n )}\n </p>\n </fieldset>\n\n <div className=\"space-y-1\">\n <label\n htmlFor=\"new-download-setup\"\n className=\"block text-sm font-medium\"\n >\n {tr(\n \"export.create.options.basedOnTemplate\",\n \"Based on Template\",\n )}{\" \"}\n <span className=\"font-normal text-text-secondary\">\n {tr(\"export.create.shared.optional\", \"(optional)\")}\n </span>\n </label>\n {templates.length > 0 ? (\n <ThemedSelect\n id=\"new-download-setup\"\n value={form.templateId ?? \"\"}\n onChange={(e) => {\n const setup = templates.find(\n (t) => t.id === e.target.value,\n );\n setForm((f) =>\n setup\n ? applySavedSetup(\n f,\n setup,\n isSelectable,\n nameTouchedRef.current,\n )\n : { ...f, templateId: undefined },\n );\n }}\n className={fieldClass}\n >\n <option value=\"\">\n {tr(\"export.create.options.noTemplate\", \"No template\")}\n </option>\n {templates.map((t) => (\n <option key={t.id} value={t.id}>\n {t.name}\n </option>\n ))}\n </ThemedSelect>\n ) : (\n <p className=\"text-sm text-text-secondary\">\n {tr(\"export.create.options.noTemplates\", \"No templates yet.\")}{\" \"}\n <button\n type=\"button\"\n onClick={() => navigate?.(joinPath(basePath, \"templates\"))}\n className=\"text-primary underline-offset-2 hover:underline\"\n >\n {tr(\n \"export.create.options.createTemplateLink\",\n \"Create one\",\n )}\n </button>{\" \"}\n {tr(\n \"export.create.options.reuseTemplateHint\",\n \"to reuse export configurations.\",\n )}\n </p>\n )}\n </div>\n </OptionalFields>\n </section>\n )}\n\n <div className=\"flex flex-col-reverse gap-3 pt-2 sm:flex-row sm:justify-end\">\n <Button\n type=\"button\"\n variant=\"outline\"\n onClick={() => navigate?.(basePath)}\n >\n {tr(\"export.create.actions.cancel\", \"Cancel\")}\n </Button>\n {step === 1 && (\n <Button type=\"button\" variant=\"outline\" onClick={() => setStep(0)}>\n {tr(\"export.create.actions.back\", \"Back\")}\n </Button>\n )}\n {step === 0 ? (\n <Button type=\"button\" onClick={goNext}>\n {tr(\"export.create.actions.next\", \"Next\")}\n <ArrowRight size={16} aria-hidden=\"true\" />\n </Button>\n ) : (\n <Button\n busy={loadingSystem && isPending}\n type=\"button\"\n onClick={() => void submit()}\n disabled={!loadingSystem && isPending}\n >\n {!loadingSystem && isPending ? (\n <SpinnerIcon\n tone=\"current\"\n size={16}\n className=\"animate-spin\"\n aria-hidden=\"true\"\n />\n ) : (\n <Download size={16} aria-hidden=\"true\" />\n )}\n {tr(\"export.create.actions.startExport\", \"Start Export\")}\n </Button>\n )}\n </div>\n\n <AlertDialog open={showQuotaDialog} onOpenChange={setShowQuotaDialog}>\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>\n {tr(\"export.create.quotaDialog.title\", \"Export Limit Reached\")}\n </AlertDialogTitle>\n <AlertDialogDescription>\n {tr(\n \"export.create.quotaDialog.description\",\n \"You have reached your export limit for this month.\",\n )}\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>\n {tr(\"export.create.quotaDialog.dismiss\", \"Dismiss\")}\n </AlertDialogCancel>\n <AlertDialogAction onClick={() => openBilling(navigate)}>\n {tr(\"export.create.quotaDialog.viewBilling\", \"View Billing\")}\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsDA,IAAMC,IAGF;CACF,YAAY;EACV,UAAU;EACV,OAAO;EACP,SAAS;EACT,MAAM;CACR;CACA,iBAAiB;EACf,UAAU;EACV,OAAO;EACP,SAAS;EACT,MAAM;CACR;CACA,WAAW;EACT,UAAU;EACV,OAAO;EACP,SAAS;EACT,MAAM;CACR;AACF,GAEMC,IAAsD;CAC1D,KAAK,CAAC,qBAAqB,KAAK;CAChC,MAAM,CAAC,sBAAsB,MAAM;AACrC,GAEMC,IACJ;AAGF,SAASC,EAAW,EAClB,YACA,aACA,UACA,kBAMC;CACD,OACE,kBAAC,UAAD;EACE,MAAK;EACL,MAAK;EACL,gBAAcC;EACd,SAASC;EACT,WAAWC,EACT,mFACA,iFACAF,MAAY,KACR,0CACA,8CACN;EAXF,UAAA,CAaE,kBAAC,QAAD;GACE,eAAY;GACZ,WAAWE,EACT,0EACAF,IACI,iEACA,uBACN;GAPF,UAAA,CASGA,MAAY,KAAO,kBAACG,GAAD,EAAO,MAAM,GAAK,CAAA,IAAI,MACzCH,MAAY,UAAU,kBAACI,GAAD,EAAO,MAAM,GAAK,CAAA,IAAI,IACzC;EACN,CAAA,GAAA,kBAAC,QAAD;GAAM,WAAU;GAAhB,UAAA,CACE,kBAAC,QAAD;IAAM,WAAU;IAAuC,UAAAC;GAAY,CAAA,GAClEC,IACC,kBAAC,QAAD;IAAM,WAAU;IACb,UAAAA;GACG,CAAA,IACJ,IACA;EACA,CAAA,C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AiBgG;MACvB,MAAK;MACL,eAAe,KAAK3B,GAAO;MAC3B,UAAU,CAACrE,KAAiBgG;MAJ9B,UAAA,CAMG,CAAChG,KAAiBgG,IACjB,kBAACC,IAAD;OACE,MAAK;OACL,MAAM;OACN,WAAU;OACV,eAAY;MACb,CAAA,IAED,kBAACd,GAAD;OAAU,MAAM;OAAI,eAAY;MAAQ,CAAA,GAEzChF,EAAG,qCAAqC,cAAc,CACjD;;IAEP;;GAEL,kBAAC+F,IAAD;IAAa,MAAMvD;IAAiB,cAAcC;IAChD,UAAA,kBAACuD,IAAD,EAAA,UAAA,CACE,kBAACC,IAAD,EAAA,UAAA,CACE,kBAACC,IAAD,EAAA,UACGlG,EAAG,mCAAmC,sBAAsB,EAC7C,CAAA,GAClB,kBAACmG,IAAD,EAAA,UACGnG,EACC,yCACA,oDACF,EACsB,CAAA,CACP,EAAA,CAAA,GACnB,kBAACoG,IAAD,EAAA,UAAA,CACE,kBAACC,IAAD,EAAA,UACGrG,EAAG,qCAAqC,SAAS,EACjC,CAAA,GACnB,kBAACsG,IAAD;KAAmB,eAAeC,GAAYZ,CAAQ;KACnD,UAAA3F,EAAG,yCAAyC,cAAc;IAC1C,CAAA,CACF,EAAA,CAAA,CACD,EAAA,CAAA;GACT,CAAA;EACH;;AAEhB"}
|
|
@@ -6,9 +6,11 @@ import { STATE_CHIP as i, ageOf as a, downloadState as o, progressOf as s } from
|
|
|
6
6
|
import { useMemo as c } from "react";
|
|
7
7
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
8
|
import { StatusChip as d } from "@burdenoff/fe-libs/ui";
|
|
9
|
-
import {
|
|
9
|
+
import { useLoadingSystem as f } from "@burdenoff/fe-libs/ui/loading/LoadingSystemProvider";
|
|
10
|
+
import { ProgressBar as p } from "@burdenoff/fe-libs/ui/loading/ProgressBar";
|
|
11
|
+
import { useActorProfiles as m } from "@burdenoff/fe-libs/shared";
|
|
10
12
|
// src/export/workspace-v2/DownloadCells.tsx
|
|
11
|
-
function
|
|
13
|
+
function h({ icon: e, tone: t }) {
|
|
12
14
|
return /* @__PURE__ */ l("span", {
|
|
13
15
|
"aria-hidden": "true",
|
|
14
16
|
className: r("grid size-7 shrink-0 place-items-center rounded-lg border", t === "bad" ? "border-status-error-border bg-status-error-bg-subtle text-status-error-text" : "border-border-subtle bg-accent-soft text-action-primary-bg"),
|
|
@@ -18,7 +20,7 @@ function p({ icon: e, tone: t }) {
|
|
|
18
20
|
})
|
|
19
21
|
});
|
|
20
22
|
}
|
|
21
|
-
function
|
|
23
|
+
function g() {
|
|
22
24
|
let e = t();
|
|
23
25
|
return (t) => {
|
|
24
26
|
switch (t) {
|
|
@@ -31,34 +33,44 @@ function m() {
|
|
|
31
33
|
}
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
|
-
function
|
|
35
|
-
let r = t(), a =
|
|
36
|
-
status: i[
|
|
37
|
-
children:
|
|
36
|
+
function _({ job: n }) {
|
|
37
|
+
let r = t(), a = f(), c = g(), m = o(n), h = /* @__PURE__ */ l(d, {
|
|
38
|
+
status: i[m],
|
|
39
|
+
children: c(m)
|
|
38
40
|
});
|
|
39
|
-
if (
|
|
40
|
-
let
|
|
41
|
-
|
|
41
|
+
if (m !== "preparing") return h;
|
|
42
|
+
let _ = s(n), v = r("export.v2.state.progress", "{{name}}: {{progress}}% packed", {
|
|
43
|
+
name: n.name,
|
|
44
|
+
progress: _
|
|
45
|
+
});
|
|
46
|
+
return a ? /* @__PURE__ */ u("span", {
|
|
42
47
|
className: "flex min-w-0 flex-col gap-1.5",
|
|
43
|
-
children: [
|
|
48
|
+
children: [h, /* @__PURE__ */ l(p, {
|
|
49
|
+
value: _ / 100,
|
|
50
|
+
label: v,
|
|
51
|
+
className: "w-28"
|
|
52
|
+
})]
|
|
53
|
+
}) : /* @__PURE__ */ u("span", {
|
|
54
|
+
className: "flex min-w-0 flex-col gap-1.5",
|
|
55
|
+
children: [h, /* @__PURE__ */ l("span", {
|
|
44
56
|
role: "progressbar",
|
|
45
|
-
"aria-valuenow":
|
|
57
|
+
"aria-valuenow": _,
|
|
46
58
|
"aria-valuemin": 0,
|
|
47
59
|
"aria-valuemax": 100,
|
|
48
60
|
"aria-label": r("export.v2.state.progress", "{{name}}: {{progress}}% packed", {
|
|
49
61
|
name: n.name,
|
|
50
|
-
progress:
|
|
62
|
+
progress: _
|
|
51
63
|
}),
|
|
52
64
|
className: "block w-28",
|
|
53
65
|
children: /* @__PURE__ */ l(e, {
|
|
54
|
-
progress:
|
|
66
|
+
progress: _,
|
|
55
67
|
showLabel: !1,
|
|
56
68
|
size: "sm"
|
|
57
69
|
})
|
|
58
70
|
})]
|
|
59
71
|
});
|
|
60
72
|
}
|
|
61
|
-
function
|
|
73
|
+
function v() {
|
|
62
74
|
let e = t();
|
|
63
75
|
return (t) => {
|
|
64
76
|
if (!t) return "—";
|
|
@@ -75,11 +87,11 @@ function g() {
|
|
|
75
87
|
}
|
|
76
88
|
};
|
|
77
89
|
}
|
|
78
|
-
function
|
|
90
|
+
function y(e) {
|
|
79
91
|
let r = t(), { currentUser: i, workspaceId: a, organizationId: o } = n(), s = Array.from(new Set(e.map((e) => e.createdBy).filter(Boolean))).join(","), l = c(() => s ? s.split(",").map((e) => ({
|
|
80
92
|
actorId: e,
|
|
81
93
|
actorType: "user"
|
|
82
|
-
})) : [], [s]), u =
|
|
94
|
+
})) : [], [s]), u = m(l, {
|
|
83
95
|
workspaceId: a,
|
|
84
96
|
orgId: o
|
|
85
97
|
});
|
|
@@ -89,8 +101,8 @@ function _(e) {
|
|
|
89
101
|
return t ? t.split(/\s+/)[0] ?? t : r("export.v2.made.someone", "someone");
|
|
90
102
|
};
|
|
91
103
|
}
|
|
92
|
-
function
|
|
93
|
-
let r =
|
|
104
|
+
function b({ at: e, by: t, now: n }) {
|
|
105
|
+
let r = v();
|
|
94
106
|
return /* @__PURE__ */ u("span", {
|
|
95
107
|
className: "whitespace-nowrap",
|
|
96
108
|
children: [
|
|
@@ -100,6 +112,6 @@ function v({ at: e, by: t, now: n }) {
|
|
|
100
112
|
]
|
|
101
113
|
});
|
|
102
114
|
}
|
|
103
|
-
export {
|
|
115
|
+
export { b as MadeCell, h as RowTile, _ as StatusCell, v as useAgeText, y as useMakerNames, g as useStateLabel };
|
|
104
116
|
|
|
105
117
|
//# sourceMappingURL=DownloadCells.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DownloadCells.js","names":["RowTile","Icon","cn","tone","useStateLabel","tr","useTr","state","StatusCell","label","downloadState","job","chip","StatusChip","STATE_CHIP","progress","progressOf","ExportProgressBar","useAgeText","age","useMakerNames","useExport","idsKey","jobs","actors","useMemo","profiles","useActorProfiles","organizationId","currentUser","actorId","name","MadeCell","ageText","ageOf","at","now","by"],"sources":["../../../src/export/workspace-v2/DownloadCells.tsx"],"sourcesContent":["/**\n * The cells of the Downloads and Saved setups rows (BOFF-15822): a tile, the\n * status (a chip, and the progress while it prepares), how long ago and by\n * whom. Fe-libs' StatusChip carries every status; the progress bar is the\n * module's own, given the progressbar role.\n */\nimport type { ComponentType } from \"react\";\nimport { useMemo } from \"react\";\nimport { useActorProfiles } from \"@burdenoff/fe-libs/shared\";\nimport { StatusChip } from \"@burdenoff/fe-libs/ui\";\nimport { ExportProgressBar } from \"../components/ExportProgressBar\";\nimport { useTr } from \"../hooks/useTr\";\nimport { useExport } from \"../providers/ExportProvider\";\nimport type { ExportJob } from \"../types\";\nimport { cn } from \"../utils/cn\";\nimport {\n STATE_CHIP,\n ageOf,\n downloadState,\n progressOf,\n type Age,\n type DownloadState,\n} from \"./downloadsModel\";\n\ntype IconType = ComponentType<{\n className?: string;\n \"aria-hidden\"?: boolean | \"true\";\n}>;\n\n/** The square before a row's name. Decorative: the name carries the meaning. */\nexport function RowTile({\n icon: Icon,\n tone,\n}: {\n icon: IconType;\n tone?: \"bad\";\n}) {\n return (\n <span\n aria-hidden=\"true\"\n className={cn(\n \"grid size-7 shrink-0 place-items-center rounded-lg border\",\n tone === \"bad\"\n ? \"border-status-error-border bg-status-error-bg-subtle text-status-error-text\"\n : \"border-border-subtle bg-accent-soft text-action-primary-bg\",\n )}\n >\n <Icon className=\"size-3.5\" aria-hidden=\"true\" />\n </span>\n );\n}\n\n/** Each state's word. */\nexport function useStateLabel() {\n const tr = useTr();\n return (state: DownloadState): string => {\n switch (state) {\n case \"ready\":\n return tr(\"export.v2.state.ready\", \"Ready\");\n case \"preparing\":\n return tr(\"export.v2.state.preparing\", \"Preparing\");\n case \"failed\":\n return tr(\"export.v2.state.failed\", \"Failed\");\n case \"expired\":\n return tr(\"export.v2.state.expired\", \"Expired\");\n case \"cancelled\":\n return tr(\"export.v2.state.cancelled\", \"Cancelled\");\n default:\n return tr(\"export.v2.state.deleted\", \"Deleted\");\n }\n };\n}\n\n/** The status chip, and the progress under it while the download prepares. */\nexport function StatusCell({ job }: { job: ExportJob }) {\n const tr = useTr();\n const label = useStateLabel();\n const state = downloadState(job);\n const chip = (\n <StatusChip status={STATE_CHIP[state]}>{label(state)}</StatusChip>\n );\n if (state !== \"preparing\") return chip;\n const progress = progressOf(job);\n return (\n <span className=\"flex min-w-0 flex-col gap-1.5\">\n {chip}\n <span\n role=\"progressbar\"\n aria-valuenow={progress}\n aria-valuemin={0}\n aria-valuemax={100}\n aria-label={tr(\n \"export.v2.state.progress\",\n \"{{name}}: {{progress}}% packed\",\n {\n name: job.name,\n progress,\n },\n )}\n className=\"block w-28\"\n >\n <ExportProgressBar progress={progress} showLabel={false} size=\"sm\" />\n </span>\n </span>\n );\n}\n\n/** \"8 min ago\", \"Yesterday\", \"3 days ago\", or the date. */\nexport function useAgeText() {\n const tr = useTr();\n return (age: Age | null): string => {\n if (!age) return \"—\";\n switch (age.unit) {\n case \"now\":\n return tr(\"export.v2.age.now\", \"Just now\");\n case \"minutes\":\n return tr(\"export.v2.age.minutes\", \"{{count}} min ago\", {\n count: age.count,\n });\n case \"hours\":\n return tr(\"export.v2.age.hours\", \"{{count}} h ago\", {\n count: age.count,\n });\n case \"yesterday\":\n return tr(\"export.v2.age.yesterday\", \"Yesterday\");\n case \"days\":\n return tr(\"export.v2.age.days\", \"{{count}} days ago\", {\n count: age.count,\n });\n default:\n return age.date.toLocaleDateString(undefined, {\n day: \"numeric\",\n month: \"short\",\n });\n }\n };\n}\n\n/** Who made each download: \"you\", or the person's first name. */\nexport function useMakerNames(jobs: readonly ExportJob[]) {\n const tr = useTr();\n const { currentUser, workspaceId, organizationId } = useExport();\n const ids = Array.from(\n new Set(jobs.map((job) => job.createdBy).filter(Boolean)),\n );\n const idsKey = ids.join(\",\");\n const actors = useMemo(\n () =>\n idsKey\n ? idsKey.split(\",\").map((actorId) => ({ actorId, actorType: \"user\" }))\n : [],\n [idsKey],\n );\n const profiles = useActorProfiles(actors, {\n workspaceId,\n orgId: organizationId,\n });\n return (actorId: string): string => {\n if (currentUser?.id && actorId === currentUser.id)\n return tr(\"export.v2.made.you\", \"you\");\n const name = profiles[actorId]?.displayName?.trim();\n return name\n ? (name.split(/\\s+/)[0] ?? name)\n : tr(\"export.v2.made.someone\", \"someone\");\n };\n}\n\n/** \"8 min ago · Alex\". */\nexport function MadeCell({\n at,\n by,\n now,\n}: {\n at: string;\n by: string;\n now: number;\n}) {\n const ageText = useAgeText();\n return (\n <span className=\"whitespace-nowrap\">\n {ageText(ageOf(at, now))} · {by}\n </span>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"DownloadCells.js","names":["RowTile","Icon","cn","tone","useStateLabel","tr","useTr","state","StatusCell","loadingSystem","useLoadingSystem","label","downloadState","job","chip","StatusChip","STATE_CHIP","progress","progressOf","packed","ProgressBar","ExportProgressBar","useAgeText","age","useMakerNames","useExport","idsKey","jobs","actors","useMemo","profiles","useActorProfiles","organizationId","currentUser","actorId","name","MadeCell","ageText","ageOf","at","now","by"],"sources":["../../../src/export/workspace-v2/DownloadCells.tsx"],"sourcesContent":["/**\n * The cells of the Downloads and Saved setups rows (BOFF-15822): a tile, the\n * status (a chip, and the progress while it prepares), how long ago and by\n * whom. Fe-libs' StatusChip carries every status; the progress bar is the\n * module's own, given the progressbar role.\n */\nimport type { ComponentType } from \"react\";\nimport { useMemo } from \"react\";\nimport { useActorProfiles } from \"@burdenoff/fe-libs/shared\";\nimport { StatusChip } from \"@burdenoff/fe-libs/ui\";\nimport { useLoadingSystem } from \"@burdenoff/fe-libs/ui/loading/LoadingSystemProvider\";\nimport { ProgressBar } from \"@burdenoff/fe-libs/ui/loading/ProgressBar\";\nimport { ExportProgressBar } from \"../components/ExportProgressBar\";\nimport { useTr } from \"../hooks/useTr\";\nimport { useExport } from \"../providers/ExportProvider\";\nimport type { ExportJob } from \"../types\";\nimport { cn } from \"../utils/cn\";\nimport {\n STATE_CHIP,\n ageOf,\n downloadState,\n progressOf,\n type Age,\n type DownloadState,\n} from \"./downloadsModel\";\n\ntype IconType = ComponentType<{\n className?: string;\n \"aria-hidden\"?: boolean | \"true\";\n}>;\n\n/** The square before a row's name. Decorative: the name carries the meaning. */\nexport function RowTile({\n icon: Icon,\n tone,\n}: {\n icon: IconType;\n tone?: \"bad\";\n}) {\n return (\n <span\n aria-hidden=\"true\"\n className={cn(\n \"grid size-7 shrink-0 place-items-center rounded-lg border\",\n tone === \"bad\"\n ? \"border-status-error-border bg-status-error-bg-subtle text-status-error-text\"\n : \"border-border-subtle bg-accent-soft text-action-primary-bg\",\n )}\n >\n <Icon className=\"size-3.5\" aria-hidden=\"true\" />\n </span>\n );\n}\n\n/** Each state's word. */\nexport function useStateLabel() {\n const tr = useTr();\n return (state: DownloadState): string => {\n switch (state) {\n case \"ready\":\n return tr(\"export.v2.state.ready\", \"Ready\");\n case \"preparing\":\n return tr(\"export.v2.state.preparing\", \"Preparing\");\n case \"failed\":\n return tr(\"export.v2.state.failed\", \"Failed\");\n case \"expired\":\n return tr(\"export.v2.state.expired\", \"Expired\");\n case \"cancelled\":\n return tr(\"export.v2.state.cancelled\", \"Cancelled\");\n default:\n return tr(\"export.v2.state.deleted\", \"Deleted\");\n }\n };\n}\n\n/** The status chip, and the progress under it while the download prepares. */\nexport function StatusCell({ job }: { job: ExportJob }) {\n const tr = useTr();\n const loadingSystem = useLoadingSystem();\n const label = useStateLabel();\n const state = downloadState(job);\n const chip = (\n <StatusChip status={STATE_CHIP[state]}>{label(state)}</StatusChip>\n );\n if (state !== \"preparing\") return chip;\n const progress = progressOf(job);\n const packed = tr(\n \"export.v2.state.progress\",\n \"{{name}}: {{progress}}% packed\",\n {\n name: job.name,\n progress,\n },\n );\n if (loadingSystem) {\n return (\n <span className=\"flex min-w-0 flex-col gap-1.5\">\n {chip}\n <ProgressBar value={progress / 100} label={packed} className=\"w-28\" />\n </span>\n );\n }\n return (\n <span className=\"flex min-w-0 flex-col gap-1.5\">\n {chip}\n <span\n role=\"progressbar\"\n aria-valuenow={progress}\n aria-valuemin={0}\n aria-valuemax={100}\n aria-label={tr(\n \"export.v2.state.progress\",\n \"{{name}}: {{progress}}% packed\",\n {\n name: job.name,\n progress,\n },\n )}\n className=\"block w-28\"\n >\n <ExportProgressBar progress={progress} showLabel={false} size=\"sm\" />\n </span>\n </span>\n );\n}\n\n/** \"8 min ago\", \"Yesterday\", \"3 days ago\", or the date. */\nexport function useAgeText() {\n const tr = useTr();\n return (age: Age | null): string => {\n if (!age) return \"—\";\n switch (age.unit) {\n case \"now\":\n return tr(\"export.v2.age.now\", \"Just now\");\n case \"minutes\":\n return tr(\"export.v2.age.minutes\", \"{{count}} min ago\", {\n count: age.count,\n });\n case \"hours\":\n return tr(\"export.v2.age.hours\", \"{{count}} h ago\", {\n count: age.count,\n });\n case \"yesterday\":\n return tr(\"export.v2.age.yesterday\", \"Yesterday\");\n case \"days\":\n return tr(\"export.v2.age.days\", \"{{count}} days ago\", {\n count: age.count,\n });\n default:\n return age.date.toLocaleDateString(undefined, {\n day: \"numeric\",\n month: \"short\",\n });\n }\n };\n}\n\n/** Who made each download: \"you\", or the person's first name. */\nexport function useMakerNames(jobs: readonly ExportJob[]) {\n const tr = useTr();\n const { currentUser, workspaceId, organizationId } = useExport();\n const ids = Array.from(\n new Set(jobs.map((job) => job.createdBy).filter(Boolean)),\n );\n const idsKey = ids.join(\",\");\n const actors = useMemo(\n () =>\n idsKey\n ? idsKey.split(\",\").map((actorId) => ({ actorId, actorType: \"user\" }))\n : [],\n [idsKey],\n );\n const profiles = useActorProfiles(actors, {\n workspaceId,\n orgId: organizationId,\n });\n return (actorId: string): string => {\n if (currentUser?.id && actorId === currentUser.id)\n return tr(\"export.v2.made.you\", \"you\");\n const name = profiles[actorId]?.displayName?.trim();\n return name\n ? (name.split(/\\s+/)[0] ?? name)\n : tr(\"export.v2.made.someone\", \"someone\");\n };\n}\n\n/** \"8 min ago · Alex\". */\nexport function MadeCell({\n at,\n by,\n now,\n}: {\n at: string;\n by: string;\n now: number;\n}) {\n const ageText = useAgeText();\n return (\n <span className=\"whitespace-nowrap\">\n {ageText(ageOf(at, now))} · {by}\n </span>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAgCA,SAAgBA,EAAQ,EACtB,MAAMC,GACN,WAIC;CACD,OACE,kBAAC,QAAD;EACE,eAAY;EACZ,WAAWC,EACT,6DACAC,MAAS,QACL,gFACA,4DACN;EAEA,UAAA,kBAACF,GAAD;GAAM,WAAU;GAAW,eAAY;EAAQ,CAAA;CAC3C,CAAA;AAEV;AAGA,SAAgBG,IAAgB;CAC9B,IAAMC,IAAKC,EAAM;CACjB,QAAQ,MAAiC;EACvC,QAAQC,GAAR;GACE,KAAK,SACH,OAAOF,EAAG,yBAAyB,OAAO;GAC5C,KAAK,aACH,OAAOA,EAAG,6BAA6B,WAAW;GACpD,KAAK,UACH,OAAOA,EAAG,0BAA0B,QAAQ;GAC9C,KAAK,WACH,OAAOA,EAAG,2BAA2B,SAAS;GAChD,KAAK,aACH,OAAOA,EAAG,6BAA6B,WAAW;GACpD,SACE,OAAOA,EAAG,2BAA2B,SAAS;EAClD;CACF;AACF;AAGA,SAAgBG,EAAW,EAAE,UAA2B;CACtD,IAAMH,I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W;IAC5C,KAAK;IACL,OAAO;GACT,CAAC;EACL;CACF;AACF;AAGA,SAAgBC,EAAc,GAA4B;CACxD,IAAMnB,IAAKC,EAAM,GACX,EAAE,gBAAa,gBAAa,sBAAmBmB,EAAU,GAIzDC,IAHM,MAAM,KAChB,IAAI,IAAIC,EAAK,KAAK,MAAQd,EAAI,SAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAE3C,CAAA,CAAI,KAAK,GAAG,GACrBe,IAASC,QAEXH,IACIA,EAAO,MAAM,GAAG,CAAC,CAAC,KAAK,OAAa;EAAE;EAAS,WAAW;CAAO,EAAE,IACnE,CAAC,GACP,CAACA,CAAM,CACT,GACMI,IAAWC,EAAiBH,GAAQ;EACxC;EACA,OAAOI;CACT,CAAC;CACD,QAAQ,MAA4B;EAClC,IAAIC,GAAa,MAAMC,MAAYD,EAAY,IAC7C,OAAO5B,EAAG,sBAAsB,KAAK;EACvC,IAAM8B,IAAOL,EAASI,EAAQ,EAAE,aAAa,KAAK;EAClD,OAAOC,IACFA,EAAK,MAAM,KAAK,CAAC,CAAC,MAAMA,IACzB9B,EAAG,0BAA0B,SAAS;CAC5C;AACF;AAGA,SAAgB+B,EAAS,EACvB,OACA,OACA,UAKC;CACD,IAAMC,IAAUf,EAAW;CAC3B,OACE,kBAAC,QAAD;EAAM,WAAU;EAAhB,UAAA;GACGe,EAAQC,EAAMC,GAAIC,CAAG,CAAC;GAAE;GAAIC;EACzB;;AAEV"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-export",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.1125.1",
|
|
4
4
|
"description": "Burdenoff Export Microfrontend - Data export management interface",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@apollo/client": "^4.3.7",
|
|
49
|
-
"@burdenoff/fe-libs": "2026.
|
|
49
|
+
"@burdenoff/fe-libs": "2026.1124.16",
|
|
50
50
|
"@tanstack/react-query": "^5.106.1",
|
|
51
51
|
"clsx": "^2.1.1",
|
|
52
52
|
"graphql": "^16.15.0",
|