From 58f0832a5ae3bff78b18252d4fbd8d7060f90a8e Mon Sep 17 00:00:00 2001 From: sickerine Date: Tue, 1 Dec 2026 14:11:01 +0000 Subject: [PATCH 1/7] wip: the fourth duplication review: every pending address in a signed byline filled, a signing's registration built once, release emails by the shared stage, a report's checks named by the rule its run uses, the shared help button and popover (tests) --- components/reports/archive-choice.tsx | 9 ++++----- components/reports/licence-choice.tsx | 10 ++++------ components/reports/publish-flow.tsx | 5 ++--- convex/reports/checkRuns.ts | 4 ++-- convex/reports/flow.ts | 15 +++++++++++---- convex/reports/numbering.ts | 4 ++-- convex/reports/registration.ts | 4 ++-- convex/reports/review.ts | 5 +++-- convex/reports/settings.ts | 7 ++++--- convex/reports/workspaceSettings.test.ts | 9 ++++++--- lib/reports/settings.test.ts | 7 ++++++- lib/reports/settings.ts | 5 +++++ 12 files changed, 51 insertions(+), 33 deletions(-) diff --git a/components/reports/archive-choice.tsx b/components/reports/archive-choice.tsx index 9c35a36ff..abf67fc4c 100644 --- a/components/reports/archive-choice.tsx +++ b/components/reports/archive-choice.tsx @@ -12,11 +12,12 @@ import { AutoHeight } from "@/components/ui/auto-height"; import { Button } from "@/components/ui/button"; import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"; import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"; -import { CircleHelp, ExternalLink, PersonIcon } from "@/components/icons"; +import { ExternalLink, PersonIcon } from "@/components/icons"; import { LogoMark } from "@/components/logo"; import { EASE } from "@/components/ui/opening"; import { useConnectZenodo, useZenodoAccount, type ZenodoAccount } from "@/lib/zenodo/account"; import { cn } from "@/lib/utils"; +import { HELP_POPOVER, HelpButton } from "@/components/ui/help"; export type Archive = "openscholar" | "own"; @@ -123,11 +124,9 @@ function ArchiveHelp() { return ( - + - +

{t("title")}

{t("why")}

diff --git a/components/reports/licence-choice.tsx b/components/reports/licence-choice.tsx index bc6b4c367..774d26644 100644 --- a/components/reports/licence-choice.tsx +++ b/components/reports/licence-choice.tsx @@ -8,17 +8,17 @@ import { useId, type ReactNode } from "react"; import { preload } from "react-dom"; import { useTranslations } from "next-intl"; import { AutoHeight } from "@/components/ui/auto-height"; -import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"; import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; -import { CircleHelp, ExternalLink } from "@/components/icons"; +import { ExternalLink } from "@/components/icons"; import { useMoney } from "@/lib/hooks/use-money"; import { ALL_RIGHTS_RESERVED, DETAIL_TEXT, isAllRightsReserved, LICENCE_NAME_MAX, LICENCES, LICENCE_NAMES, MORE_REPORT_CHOICES, pickedLicence, priceOf, type LicenceName, type Prices } from "@/lib/reports/report"; import { cn } from "@/lib/utils"; import { LICENCE_SENT, SentTo } from "@/components/reports/field-help"; import { FieldMessage } from "@/components/reports/form"; +import { HELP_POPOVER, HelpButton } from "@/components/ui/help"; /** What the author has picked: a licence by name, their own as typed so far, or "Another licence" with none chosen yet. */ export type LicencePick = LicenceName | typeof ANOTHER | { name: string; url: string; /** Whether it lets anyone share the report: unanswered until the author says. */ open?: boolean }; @@ -179,11 +179,9 @@ function LicenceHelp() { return ( - + - +

{t("title")}

diff --git a/components/reports/publish-flow.tsx b/components/reports/publish-flow.tsx index f519fc26e..23c01bb75 100644 --- a/components/reports/publish-flow.tsx +++ b/components/reports/publish-flow.tsx @@ -885,9 +885,8 @@ function Screens({ form, beside, preparing, onPrepared, onUnprepare, into, onInt ) : busy ? ( // The checks this run runs, as the server picked them for this report (convex/reports/settings.ts `checksOf`). - // Until the run is there, a moment after Submit, the list is the workspace's checks, which they nearly always - // are: changes to a live report skip Already published. - !(live && check.builtIn))).map((check) => ({ id: check.id, name: check.name, result: report.run?.results.find((result) => result.checkId === check.id) }))} report={null} humanReview={basics.humanReview} /> + // Until the run is there, a moment after Submit, the list is what the same rule says a run of it would run. + ({ id: check.id, name: check.name, result: report.run?.results.find((result) => result.checkId === check.id) }))} report={null} humanReview={basics.humanReview} /> ) : report.step === "doi" ? ( (toTop(), onMoved("upload"))} /> ) : report.step === "upload" ? ( diff --git a/convex/reports/checkRuns.ts b/convex/reports/checkRuns.ts index 28ca0e3c1..bd383894f 100644 --- a/convex/reports/checkRuns.ts +++ b/convex/reports/checkRuns.ts @@ -10,7 +10,7 @@ import { OWNERS_ONLY, checkedDetails, detailsOf, mayChange, touch } from "./flow import { RUN_STUCK_MS, changeStageOf, licenceOf, printedOf, stageOf, withFoundDois } from "../../lib/reports/report"; import { becameReady, notify } from "./mail"; import { SAME_PDF_ADVICE, applyChanges, formVersion } from "./corrections"; -import { checksOf, humanReviewOf, reportSettings, seriesFor, settingsRow } from "./settings"; +import { checkNames, checksOf, humanReviewOf, reportSettings, seriesFor, settingsRow } from "./settings"; import { changeStageValidator, checkResultValidator, checkResultsValidator, checkValidator, licenceValidator, metadataValidator, runFromValidator } from "./validators"; /** @@ -61,7 +61,7 @@ export const start = internalMutation({ if (!on) throw createError("NOT_FOUND", `The checks this report was published under (version ${version}) are missing.`); // The run keeps the names of the checks it was given, so the page lists those until it ends, whatever the // workspace's checks become meanwhile. - const named = on.map(({ id, name, blocking, builtIn }) => ({ id, name, blocking, ...(builtIn && { builtIn }) })); + const named = checkNames(on); if (changes) { // A live report stays as it is while the checks read the corrected details: only the run is marked on it. if (report.status !== "live" || report.step !== "done") throw createError("CONFLICT", "This report isn't live any more, so its details can't be changed."); diff --git a/convex/reports/flow.ts b/convex/reports/flow.ts index 58aa5cf83..15f9a4e16 100644 --- a/convex/reports/flow.ts +++ b/convex/reports/flow.ts @@ -26,7 +26,7 @@ import { MAX_PDF_BYTES, MAX_PDF_MB } from "../../lib/files/limits"; import { formVersion } from "./corrections"; import { notify } from "./mail"; import { register } from "./registering"; -import { accountsFor, humanReviewOf, limitsOf, reportSettings, reviewedIn, seriesFor, seriesReader, settingsRow, type ReportSettings } from "./settings"; +import { accountsFor, checkNames, checksOf, humanReviewOf, limitsOf, reportSettings, reviewedIn, seriesFor, seriesReader, settingsRow, type ReportSettings } from "./settings"; import { ELSEWHERE_WORKSPACES, authorRowValidator, checkNamesValidator, bylineByValidator, bylineTroubleValidator, fileAccessValidator, licenceValidator, metadataValidator, optionalPlainResults, pdfTroubleValidator, plainResults, referenceLookupValidator, reportRowsValidator, signedAgreementValidator, stageValidator, waitingWorkspacesValidator, payWithValidator, serviceIdValidator } from "./validators"; /** What an upload is told while its report's numbered DOI is still being reserved: the line its PDF carries names it. */ @@ -281,6 +281,9 @@ export const sign = workspaceMutation({ const connection = await ctx.db.query("zenodoConnections").withIndex("by_user", (q) => q.eq("userId", userId)).unique(); if (!connection || connection.broken) throw createError("CONFLICT", "Connect your Zenodo account to archive the report there, or choose Openscholar's archive."); } + // How it registers, fixed by this signing, for a new report and for a draft signed again alike. A copy in their + // own Zenodo account is always made under the report's Crossref DOI. + const registration = { ...route, policy: ownArchive ? ("reuse-crossref" as const) : zenodo.defaultIdentifierPolicy }; const mintNow = route.docid && identifiers.docidAtSigning; // What its DOI is under. Where they're numbered, its number is reserved once Crossref has been read (./numbering.ts). const under = route.crossref ? doisUnder(settings.publication, settings.series)! : null; @@ -303,7 +306,7 @@ export const sign = workspaceMutation({ const stays = !served || chosenOf(route).every((id) => served[id] || (id === "zenodo" && ownArchive)); const doi = !under ? "" : (stays && untouched.doi) || (numbered ? "" : keyedDoi(under, untouched.key)); const waits = under !== null && !doi; - await touch(ctx, untouched, { signedBy: { name: signer, onBehalfOfAll }, signedAt: Date.now(), agreementVersion: version, doi, doiUnder: waits ? under : undefined, doiError: undefined, byline: bylineFor(doi, untouched.registrations?.docid?.handle), ...signedUnder, ...(stays && untouched.doi && untouched.accountsId && { accountsId: untouched.accountsId }), licence, ...keptAccess(fileAccess), archiveOwnerId: ownArchive ? userId : undefined, registration: { ...untouched.registration, ...route, ...(ownArchive && { policy: "reuse-crossref" as const }) }, voucher, voucherOff, payWith }); + await touch(ctx, untouched, { signedBy: { name: signer, onBehalfOfAll }, signedAt: Date.now(), agreementVersion: version, doi, doiUnder: waits ? under : undefined, doiError: undefined, byline: bylineFor(doi, untouched.registrations?.docid?.handle), ...signedUnder, ...(stays && untouched.doi && untouched.accountsId && { accountsId: untouched.accountsId }), licence, ...keptAccess(fileAccess), archiveOwnerId: ownArchive ? userId : undefined, registration, voucher, voucherOff, payWith }); if (waits) await ctx.scheduler.runAfter(0, internal.reports.numbering.reserve, { reportId: untouched._id }); if (mintNow) await ctx.scheduler.runAfter(0, internal.reports.registrar.mintAtSigning, { reportId: untouched._id }); return untouched.key; @@ -334,8 +337,7 @@ export const sign = workspaceMutation({ ...keptAccess(fileAccess), ...(voucher && { voucher, voucherOff }), ...(payWith && { payWith }), - // A copy in their own Zenodo account is always made, under the report's Crossref DOI. - registration: { ...route, policy: ownArchive ? "reuse-crossref" : zenodo.defaultIdentifierPolicy }, + registration, ...(ownArchive && { archiveOwnerId: userId }), step: "doi", status: "draft", @@ -882,6 +884,8 @@ const reportValidator = v.object({ checksVersion: v.optional(v.number()), /** The checks under way since then, with the answers that have arrived. */ run: v.optional(v.object({ at: v.number(), results: plainResults, /** The checks this run was given when it started, by name, so the page lists them and no others. */ checks: checkNamesValidator })), + /** The checks a run of it would run now, by name: its workspace's, or for changes to a live report those it was published under. */ + checks: checkNamesValidator, pdf: v.optional(v.object({ name: v.string(), bytes: v.number(), at: v.number(), pages: v.optional(v.number()), trouble: v.optional(pdfTroubleValidator), lacksByline: v.optional(v.boolean()), /** Why the page asked for couldn't be added. */ bylineTrouble: v.optional(bylineTroubleValidator), bylineBy: v.optional(bylineByValidator), kept: v.optional(v.boolean()), url: v.union(v.string(), v.null()) })), metadata: v.optional(metadataValidator), results: optionalPlainResults, @@ -941,6 +945,9 @@ export const getAction = defineUserQuery({ ...(report.payWith && { payWith: report.payWith }), ...(report.checksVersion !== undefined && { checksVersion: report.checksVersion }), ...(report.run && { run: { at: report.run.at, results: plain(details.running) ?? [], checks: report.run.checks ?? [] } }), + // What a run of it would run now, by the rule the run goes by (`checksOf`): the page lists these from the + // moment Submit is pressed until the run names its own. + checks: checkNames((await checksOf(ctx, report, report.status === "live", settings))?.checks ?? []), // A file its readers can't have is the address only of those who may change the report, not every member's. ...(report.pdf && { pdf: { name: report.pdf.name, bytes: report.pdf.bytes, at: report.pdf.at, ...(report.pdf.pages !== undefined && { pages: report.pdf.pages }), ...(report.pdf.trouble && { trouble: report.pdf.trouble }), ...(report.pdf.lacksByline && { lacksByline: true }), ...(report.pdf.bylineTrouble && { bylineTrouble: report.pdf.bylineTrouble }), ...(report.pdf.bylineBy && { bylineBy: report.pdf.bylineBy }), ...(report.pdf.kept && { kept: true }), url: fileOut(report) ? await ctx.storage.getUrl(report.pdf.file) : readersGetFile(report) || mayChange(actor, report) ? keptFileAddress(report.key, "pdf", report.pdf.at) : null } }), ...(details.metadata && { metadata: details.metadata }), diff --git a/convex/reports/numbering.ts b/convex/reports/numbering.ts index c136f535f..cac06ca31 100644 --- a/convex/reports/numbering.ts +++ b/convex/reports/numbering.ts @@ -6,7 +6,7 @@ import { v } from "convex/values"; import { internal } from "../_generated/api"; import type { QueryCtx } from "../_generated/server"; import { internalAction, internalMutation, internalQuery } from "../lib/functions"; -import { PENDING_DOI, numberedDoi } from "../../lib/reports/settings"; +import { PENDING_DOI, bylineWith, numberedDoi } from "../../lib/reports/settings"; import { touch } from "./flow"; import { UA, registered } from "./references"; @@ -93,7 +93,7 @@ export const take = internalMutation({ if (row.next > n) return row.next; const doi = numberedDoi(under, n, row.width); await ctx.db.patch("reportNumbers", row._id, { next: n + 1 }); - await touch(ctx, report, { doi, doiUnder: undefined, doiError: undefined, byline: report.byline.replace(PENDING_DOI, `https://doi.org/${doi}`) }); + await touch(ctx, report, { doi, doiUnder: undefined, doiError: undefined, byline: bylineWith(report.byline, PENDING_DOI, `https://doi.org/${doi}`) }); return null; }, }); diff --git a/convex/reports/registration.ts b/convex/reports/registration.ts index f6bbf7bbb..dc9b5a9fa 100644 --- a/convex/reports/registration.ts +++ b/convex/reports/registration.ts @@ -13,7 +13,7 @@ import { providersOf } from "../../lib/reports/report"; import { detailsOf, touch } from "./flow"; import { notify } from "./mail"; import { reportSettings, seriesFor } from "./settings"; -import { PENDING_DOCID, docidPlaceholder } from "../../lib/reports/settings"; +import { PENDING_DOCID, bylineWith, docidPlaceholder } from "../../lib/reports/settings"; import { docidRegistrationValidator, fileAccessValidator, metadataValidator, registrationValidator, zenodoHostValidator } from "./validators"; const providerValidator = v.union(v.literal("crossref"), v.literal("zenodo"), v.literal("docid")); @@ -250,7 +250,7 @@ export const mintedAtSigning = internalMutation({ await touch(ctx, report, { registrations: { ...report.registrations, docid: { state: report.registrations?.docid?.state ?? "none", handle, sandbox } }, registrationError: undefined, - byline: report.byline.replace(PENDING_DOCID, `https://hdl.handle.net/${handle}`), + byline: bylineWith(report.byline, PENDING_DOCID, `https://hdl.handle.net/${handle}`), }); return null; }, diff --git a/convex/reports/review.ts b/convex/reports/review.ts index 3c737427c..4bf056ca2 100644 --- a/convex/reports/review.ts +++ b/convex/reports/review.ts @@ -355,9 +355,10 @@ export const tellReleased = internalMutation({ // The series' switch releases the workspaces that follow it: one with its own had nothing waiting on the series'. const own = new Set((await ctx.db.query("workspaceReportSettings").take(MAX_OWN_WORKSPACES)).flatMap((kept) => (inUse(kept).includes("publishing") ? [kept.workspaceId] : []))); const passed = await ctx.db.query("reports").withIndex("by_status_and_updatedAt", (q) => q.eq("status", "passed")).paginate({ cursor, numItems: RELEASED_PER_STEP }); - // One a reviewer approved was already its author's to activate, and one a check flagged still waits for a person. + // One a reviewer approved was already its author's to activate. The rest are told only where they are ready now + // (`stageOf`): one a check flagged still waits for a person, and one its author is changing isn't checked yet. for (const report of passed.page) { - if (report.approved || report.flagged) continue; + if (report.approved || stageOf(report, false) !== "ready") continue; if (workspaceId ? report.workspaceId !== workspaceId : own.has(report.workspaceId)) continue; await notify(ctx, report._id, "released"); await becameReady(ctx, report._id); diff --git a/convex/reports/settings.ts b/convex/reports/settings.ts index 904c67c2b..d05fc16b6 100644 --- a/convex/reports/settings.ts +++ b/convex/reports/settings.ts @@ -23,7 +23,7 @@ import { keptCustomOf, keptCustomValidator, publicationSettingsValidator } from import type { Effort } from "../../lib/ai/core/call-options"; import { AGREEMENT_MAX, CHECK_NAME_MAX, CHECK_TEXT_MAX, MAX_CHECKS, MAX_OWN_WORKSPACES, REPORT_DEFAULTS, SECTIONS, SERIES_TEXT_MAX, canRegister, checkSkipped, numberedDoi, numberedUnder, seriesOf, seriesProblem, type Check, type Section, type Series, type SeriesProblem } from "../../lib/reports/settings"; import { PRICE_MAX, isPrice, nothingCosts, offeredOf, type Prices } from "../../lib/reports/report"; -import { checkNamesValidator, checkSummariesValidator, identifiersValidator, intakeValidator, nthsValidator, numbersValidator, pricesValidator, scopeValidator, sectionsValidator, seriesValidator } from "./validators"; +import { checkSummariesValidator, identifiersValidator, intakeValidator, nthsValidator, numbersValidator, pricesValidator, scopeValidator, sectionsValidator, seriesValidator } from "./validators"; import { latestActivations } from "./intake"; import { nthsOf, type Intake } from "../../lib/reports/intake"; @@ -462,7 +462,6 @@ export const forAuthors = query({ /** Which identifier services a report gets, and what each adds to its price (lib/reports/identifiers.ts). */ identifiers: identifiersValidator, agreement: v.object({ version: v.number(), text: v.string() }), - checks: checkNamesValidator, /** Whether new reports are open, and for each limit when the activation that fills it was made (lib/reports/intake.ts `nthsOf`): the page works out from these and its clock whether a new report or a draft waits. */ intake: intakeValidator, nths: nthsValidator, @@ -475,13 +474,15 @@ export const forAuthors = query({ series: settings.series, ...offeredOf(settings), agreement: { version: settings.agreement.version, text: settings.agreement.text }, - checks: checksRun(settings.checks, settings.series.bylineOff).map(({ id, name, blocking, builtIn }) => ({ id, name, blocking, ...(builtIn && { builtIn }) })), intake: settings.intake, nths: nthsOf(settings.intake.limits, await latestActivations(ctx, settings.intake, limitsOf(settings, limits))), }; }, }); +/** Checks as an author's page names them (`checkNamesValidator`): nothing of what each asks, how sure it must be or what runs it. */ +export const checkNames = (checks: Check[]) => checks.map(({ id, name, blocking, builtIn }) => ({ id, name, blocking, ...(builtIn && { builtIn }) })); + /** The checks a report runs: those switched on, less the one that looks for the byline where none is asked for. */ export const checksRun = (checks: Check[], bylineOff: boolean) => checks.filter((check) => check.enabled && !checkSkipped(check, bylineOff)); /** diff --git a/convex/reports/workspaceSettings.test.ts b/convex/reports/workspaceSettings.test.ts index 2daeb031c..7ec5bb684 100644 --- a/convex/reports/workspaceSettings.test.ts +++ b/convex/reports/workspaceSettings.test.ts @@ -131,8 +131,10 @@ describe("a report signed in a workspace with its own series", () => { await world.t.run((ctx) => ctx.db.patch("reports", reportId, { step: "upload" })); const reading = await world.t.query(internal.reports.readingState.begin, { reportId, at: pdfAt }); await world.t.run((ctx) => ctx.db.patch("reports", reportId, { step: "details" })); + // What the Publish page lists before the run starts: the checks a run of this report would run. + const listed = (await read(world.author, workspaceId, key)).checks.map((check) => check.id); const run = await world.author.mutation(internal.reports.checkRuns.start, { workspaceId, key, metadata: details(), runId: "run-1", from: { pdfAt } }); - return { looksFor: reading?.byline, checks: "checks" in run ? run.checks.map((check) => check.id) : [] }; + return { looksFor: reading?.byline, listed, checks: "checks" in run ? run.checks.map((check) => check.id) : [] }; }; const theirs = await ran(world.lab); expect(theirs.looksFor).toBeNull(); @@ -141,8 +143,9 @@ describe("a report signed in a workspace with its own series", () => { const mine = await ran(world.own); expect(mine.looksFor).toEqual(expect.stringContaining("https://doi.org/")); expect(mine.checks).toContain("byline"); - // The Publish page lists the checks that will run. - expect((await world.author.query(api.reports.settings.forAuthors, { workspaceId: world.lab })).checks.map((check) => check.id)).not.toContain("byline"); + // The Publish page lists the checks that will run, in each workspace. + expect(theirs.listed).toEqual(theirs.checks); + expect(mine.listed).toEqual(mine.checks); }); }); diff --git a/lib/reports/settings.test.ts b/lib/reports/settings.test.ts index d64791837..e758ed664 100644 --- a/lib/reports/settings.test.ts +++ b/lib/reports/settings.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from "vitest"; -import { bylineOf } from "./settings"; +import { PENDING_DOI, bylineOf, bylineWith } from "./settings"; const DOI = "https://doi.org/10.53832/openscholar-reports.r100269"; const line = (byline: string, issn = "") => bylineOf({ name: "Openscholar Reports", issn, byline }, DOI, "CC BY 4.0"); @@ -22,6 +22,11 @@ describe("a series' byline", () => { expect(line("{series} (ISSN {issn}, online) {doi}")).toBe(`Openscholar Reports (online) ${DOI}`); }); + it("puts an address that arrives after signing in every place the signed line kept for it", () => { + const signed = bylineOf({ name: "KET Research Notes", issn: "", byline: "{series}, {doi}, mirrored at {doi}, under {licence}" }, PENDING_DOI, "CC BY 4.0"); + expect(bylineWith(signed, PENDING_DOI, "https://doi.org/10.53832/ket.2")).toBe("KET Research Notes, https://doi.org/10.53832/ket.2, mirrored at https://doi.org/10.53832/ket.2, under CC BY 4.0"); + }); + it("fills a blank every time the line uses it", () => { expect(line("{series} / {series}, {doi}, mirrored at {doi}, under {licence} ({licence})")).toBe(`Openscholar Reports / Openscholar Reports, ${DOI}, mirrored at ${DOI}, under CC BY 4.0 (CC BY 4.0)`); expect(line("ISSN {issn}, {series}, {doi} (ISSN {issn})", "2049-3630")).toBe(`ISSN 2049-3630, Openscholar Reports, ${DOI} (ISSN 2049-3630)`); diff --git a/lib/reports/settings.ts b/lib/reports/settings.ts index 4d1ad0567..d1df91b33 100644 --- a/lib/reports/settings.ts +++ b/lib/reports/settings.ts @@ -240,6 +240,11 @@ export const numberedDoi = (under: string, n: number, width: number) => `${under export const PENDING_DOI = "https://doi.org/…"; /** The DOCiD in a byline whose report is still waiting for DOCiD to mint it. */ export const PENDING_DOCID = "https://hdl.handle.net/…"; +/** + * A signed byline with the address it waited for in every place it kept for one: its numbered DOI once reserved, or + * its DOCiD once minted. The line stays as it was signed, whatever the series' wording has become since. + */ +export const bylineWith = (byline: string, pending: typeof PENDING_DOI | typeof PENDING_DOCID, address: string) => byline.replaceAll(pending, address); /** Whether text is an ISSN: eight digits as 1234-5678, the last of them the check digit (X for ten), as ISO 3297 has it. */ export function isIssn(text: string) { From 7a22c9c3b81bd60ce8b16d65b4c61e07fb4ad291 Mon Sep 17 00:00:00 2001 From: sickerine Date: Tue, 1 Dec 2026 14:13:03 +0000 Subject: [PATCH 2/7] wip: the fourth member's walk: the workspace picked for a new report is kept in the address, an included identifier's card is read at full strength --- components/reports/identifier-choice.tsx | 5 +++-- components/reports/publish-flow.tsx | 20 +++++++++++++------- components/settings/parts.tsx | 4 ++-- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/components/reports/identifier-choice.tsx b/components/reports/identifier-choice.tsx index e989e410b..997728198 100644 --- a/components/reports/identifier-choice.tsx +++ b/components/reports/identifier-choice.tsx @@ -70,8 +70,9 @@ export function IdentifierChoice({ ids, picked, onChange, id: fieldId, invalid = ); return locked ? ( - // Always part of the report: locked as the app draws anything locked, the lock where its box would be. - // What it is and what it costs are words to read, so a screen reader still reads them. + // Always part of the report: a lock where its box would be, with why on hover. What it is and what it + // costs are words to read, so they keep their full strength and a screen reader still reads them: faded, + // two people in a row took an included service for one that wasn't on offer. {body} diff --git a/components/reports/publish-flow.tsx b/components/reports/publish-flow.tsx index 23c01bb75..8754952e0 100644 --- a/components/reports/publish-flow.tsx +++ b/components/reports/publish-flow.tsx @@ -305,6 +305,8 @@ const PLACE = { page: parseAsInteger.withDefault(1), /** Who adds the byline to the report shown, as chosen on the way to its upload. It is one report's choice: another report starts without one. */ byline: parseAsStringLiteral(BYLINE_BY), + /** The workspace a new report is for, by its ID, when it isn't the page's: picked on Prepare or on the agreement, and still picked after a reload. */ + for: parseAsString, }; /** @@ -333,7 +335,7 @@ export function PublishFlow() { const t = useTranslations("publishReports.flow"); // In an organisation's workspace every member sees its reports, so each row says who signed. const shared = useWorkspaceSlug() !== undefined; - const [{ view, report: named, correct, step: at, show, page }, setPlace] = useQueryStates(PLACE); + const [{ view, report: named, correct, step: at, show, page, for: pickedFor }, setPlace] = useQueryStates(PLACE); // An address cut off after "report=" names none: it is the page with no report named. const asked = named || null; // Moving to another report, view or page of the list is a step forward in the browser's history, so Back returns @@ -344,7 +346,7 @@ export function PublishFlow() { // `scroll` false for a move the page makes by itself, as when the PDF is read: the person stays where they were. const go = (next: Partial<{ [K in keyof typeof PLACE]: ReturnType<(typeof PLACE)[K]["parse"]> | null }>, scroll = true) => { trouble.say(null); - void setPlace("report" in next ? { byline: null, ...next } : next, { history: "push", scroll }); + void setPlace("report" in next ? { byline: null, for: null, ...next } : next, { history: "push", scroll }); }; // Leaving a screen with its own button is the step back when that step is there (lib/url-state/step-back.ts), so // Back afterwards never reopens it; what a link or a reload opened closes in place. @@ -357,10 +359,14 @@ export function PublishFlow() { const [now] = useState(thisMinute); // The settings of the workspace the page is in: its own where Openscholar's admins gave it some, the series' for the rest. const basics = useQuery(api.reports.settings.forAuthors, useWorkspaceScope()); - // The workspace a new report is being signed for, when the agreement picks another than the page's: the cover - // names that one's series, as the agreement beside it does. - const [into, setInto] = useState | null>(null); - const theirs = useQuery(api.reports.settings.forAuthors, into && into !== workspaceId ? { workspaceId: into } : "skip"); + // The workspace a new report is being signed for, when Prepare or the agreement picks another than the page's: the + // cover names that one's series, as the agreement beside it does. Kept in the address, so a reload still has it: in + // the page's memory alone, a reload put the page's own series and prices back under the agreement being read. An + // address naming a workspace that isn't one of the person's picks none (`useOffered`). + const into = pickedFor as Id<"workspaces"> | null; + const setInto = (picked: Id<"workspaces">) => void setPlace({ for: picked === workspaceId ? null : picked }, { history: "replace", scroll: false }); + const { chosen: intoChosen } = useOffered(into, workspaceId); + const theirs = useQuery(api.reports.settings.forAuthors, intoChosen ? { workspaceId: intoChosen.workspaceId } : "skip"); const { data: counts } = useProtectedQuery(api.reports.flow.counts, inWorkspace(workspaceId, {})); // Reports ready in the person's other workspaces, read with the page so their notice is there when it opens. const { data: waiting } = useProtectedQuery(api.reports.flow.waitingElsewhere, inWorkspace(workspaceId, {})); @@ -703,7 +709,7 @@ export function PublishFlow() { const behind = navigation?.entries()[(navigation.currentEntry?.index ?? 0) - 1]; if (behind?.url && withoutKeys(["step"])(new URL(behind.url))) keepStartedFrom(behind.key); if (into) void follow(into, key); - else void setPlace({ report: key, step: null, byline: null }); + else void setPlace({ report: key, step: null, byline: null, for: null }); }} onAnother={another} correcting={correct} diff --git a/components/settings/parts.tsx b/components/settings/parts.tsx index ecae23a09..6125d1b8d 100644 --- a/components/settings/parts.tsx +++ b/components/settings/parts.tsx @@ -39,14 +39,14 @@ export const LOCKED_LOOK = "opacity-50 grayscale"; * comes and goes never remounts them. With no contents it is the lock alone, for what is locked beside it. Inside a * section that is locked whole it adds nothing: the section says so once. */ -export function Locked({ why, locked = true, className, lock, inner, reads = false, children }: { why: string; locked?: boolean; className?: string; /** Its contents are words to read, with nothing in them to press: they stay there for a screen reader, which `inert` would hide them from. */ reads?: boolean; /** The lock's own size and place, where it stands in for a control of another size. */ lock?: string; /** The contents' own layout. */ inner?: string; children?: ReactNode }) { +export function Locked({ why, locked = true, className, lock, inner, reads = false, children }: { why: string; locked?: boolean; className?: string; /** Its contents are words to read, with nothing in them to press: the lock alone marks them. They aren't faded, which read as "not on offer" where it meant "always included", and they stay there for a screen reader, which `inert` would hide them from. */ reads?: boolean; /** The lock's own size and place, where it stands in for a control of another size. */ lock?: string; /** The contents' own layout. */ inner?: string; children?: ReactNode }) { const shown = locked && !useContext(WithinLocked); return ( {shown ? : null} {children ? ( - + {children} ) : null} From 591ec5193bec775c185965147410308337528b10 Mon Sep 17 00:00:00 2001 From: sickerine Date: Tue, 1 Dec 2026 14:17:29 +0000 Subject: [PATCH 3/7] wip: a required identifier that adds to the price says so as the bill does --- components/reports/identifier-choice.tsx | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/components/reports/identifier-choice.tsx b/components/reports/identifier-choice.tsx index 997728198..b40ad8f39 100644 --- a/components/reports/identifier-choice.tsx +++ b/components/reports/identifier-choice.tsx @@ -52,18 +52,17 @@ export function IdentifierChoice({ ids, picked, onChange, id: fieldId, invalid = {cited === service ? {t("inByline")} : null} {gives(service)} - {/* A service every report gets says it is included, whatever anything costs: locked and faded with no - word, it read as one that wasn't on offer. What a service costs, or that it adds nothing, is said - only where something there costs. */} - {locked || !costless ? ( + {/* What a service adds to the price, as the bill beside it says it ("+$3"), whether every report gets + it or the author picks it: "Included $3" on one every report gets read as no charge at all. One + every report gets that adds nothing says it is included, whatever anything costs: locked with no + word, it read as one that wasn't on offer. That one an author may pick adds nothing is said only + where something there costs. */} + {s.price > 0 || locked || !costless ? ( - {locked ? {t("included")} : null} - {costless ? null : s.price > 0 ? ( - - {locked ? money(s.price) : `+${money(s.price)}`} - - ) : locked ? null : ( - {t("noExtra")} + {s.price > 0 ? ( + {`+${money(s.price)}`} + ) : ( + {t(locked ? "included" : "noExtra")} )} ) : null} From d581f58c4ba70b2175ff9de217fd43542c5665a9 Mon Sep 17 00:00:00 2001 From: sickerine Date: Tue, 1 Dec 2026 14:22:24 +0000 Subject: [PATCH 4/7] wip: the fourth whole-feature review: a minted DOCiD keeps its accounts when a draft is signed again, the settings no longer say DOCiD's record names the publisher, a saved box shows the tidied value, the identifier order stays in use with no byline, the date help is true, no toast for a registration sent again --- components/reports/admin-settings.tsx | 4 ++-- components/reports/admin-submissions.tsx | 4 ++-- components/reports/field-help.tsx | 4 ++-- components/reports/identifier-settings.tsx | 9 +++++---- components/reports/saved-input.tsx | 10 +++++++--- convex/reports/flow.ts | 6 ++++-- messages/af.json | 10 ++++------ messages/ar.json | 10 ++++------ messages/de.json | 10 ++++------ messages/en-GB.json | 10 ++++------ messages/en-US.json | 10 ++++------ messages/es.json | 10 ++++------ messages/fr.json | 10 ++++------ messages/hi.json | 10 ++++------ messages/ja.json | 10 ++++------ messages/pt.json | 10 ++++------ messages/sw.json | 10 ++++------ messages/zh.json | 10 ++++------ messages/zu.json | 10 ++++------ 19 files changed, 74 insertions(+), 93 deletions(-) diff --git a/components/reports/admin-settings.tsx b/components/reports/admin-settings.tsx index aa3d691a1..ecc04d078 100644 --- a/components/reports/admin-settings.tsx +++ b/components/reports/admin-settings.tsx @@ -286,7 +286,7 @@ function SettingsView({ settings, autumn, intake }: { settings: Settings; /** Au {/* While Crossref is being read for the namespace's numbers, their line keeps its place. */} - 0 ? t("namespaceGoesOn", { count: settings.numbers.count, namespace, next: settings.numbers.next }) : Number(settings.numbers.next) > 1 ? t("namespaceTaken", { next: settings.numbers.next }) : t("namespaceStarts", { namespace, next: settings.numbers.next })} docid={!!docid && docid.mode !== "off"} /> + 0 ? t("namespaceGoesOn", { count: settings.numbers.count, namespace, next: settings.numbers.next }) : Number(settings.numbers.next) > 1 ? t("namespaceTaken", { next: settings.numbers.next }) : t("namespaceStarts", { namespace, next: settings.numbers.next })} docid={!!docid && docid.mode !== "off" && settings.identifiers.services.docid.mode !== "off" && settings.identifiers.docidAtSigning} /> @@ -664,7 +664,7 @@ function ReportsAppear({ series, doi, numbered, docid }: { series: Settings["ser )} - + {t("publisher")} {publisher} diff --git a/components/reports/admin-submissions.tsx b/components/reports/admin-submissions.tsx index 1435fcbaf..c1ad57941 100644 --- a/components/reports/admin-submissions.tsx +++ b/components/reports/admin-submissions.tsx @@ -9,7 +9,6 @@ import { useMutation } from "convex/react"; import type { FunctionReturnType } from "convex/server"; import { parseAsInteger, parseAsString, parseAsStringLiteral, useQueryStates } from "nuqs"; import { useFormatter, useTranslations } from "next-intl"; -import { toast } from "sonner"; import { FileAccessChange } from "@/components/reports/file-access-choice"; import { api } from "@/convex/_generated/api"; import { ENTRY_OPEN, Entry } from "@/components/command-center/entry"; @@ -156,7 +155,8 @@ export function Submissions({ open, onOpen, onEdit }: { /** The report the addre stage={row.stage} onOpen={() => onOpen(row.key)} onApprove={() => decide({ key: row.key, decision: "approve", seenAt: row.updatedAt, ...(row.pdfAt !== undefined && { seenPdfAt: row.pdfAt }) }).then(() => undefined, failed)} - onRetry={() => retry({ key: row.key }).then(() => void toast.success(t("sentAgain")), failed)} + // Sent again, its row says so: the registration goes back to waiting. + onRetry={() => retry({ key: row.key }).then(() => undefined, failed)} /> ))} diff --git a/components/reports/field-help.tsx b/components/reports/field-help.tsx index 68b8e23e5..521eaebf9 100644 --- a/components/reports/field-help.tsx +++ b/components/reports/field-help.tsx @@ -75,8 +75,8 @@ const HELP = { subtitle: { note: true, filled: "pdf", entry: "typed", sent: BOTH }, type: { note: true, filled: "pdf", entry: "list", sources: ["openalexWorkTypes", "zenodoTypes", "crossrefReports"], sent: { crossref: false, zenodo: true, docid: true } }, language: { filled: "pdf", entry: "list", sources: ["iso639"], sent: BOTH }, - date: { note: true, filled: "pdf", entry: "typed", sent: BOTH }, - licence: { sources: ["ccLicences"], sent: BOTH }, + date: { note: true, filled: "pdf", entry: "typed", sent: ALL }, + licence: { sources: ["ccLicences"], sent: ALL }, authors: { note: true, filled: "pdf", entry: "typed", sources: ["crossrefContributors"], sent: ALL }, name: { note: true, filled: "pdf", entry: "typed", sent: ALL }, family: { note: true, filled: "pdf", entry: "typed", sent: ALL }, diff --git a/components/reports/identifier-settings.tsx b/components/reports/identifier-settings.tsx index 012438e89..41bca2f3f 100644 --- a/components/reports/identifier-settings.tsx +++ b/components/reports/identifier-settings.tsx @@ -164,14 +164,15 @@ export function IdentifierSettings({ identifiers: ids, connected, bylineOff }: { ) : null} -
  • + {/* With no byline asked for the order prints nothing, and is drawn paler for it, but it stays in use: it + still picks a report's first identifier, and "Mint at signing" is what lets a DOCiD be that one. Not + paler twice over where the whole section is locked. */} +
  • {t("byline")} {t(bylineOff ? "bylineHintOff" : "bylineHint")} - {/* With no byline asked for, the order prints nothing: it takes no input and is drawn as anything that - can't be changed is, under the line that says why. Not twice over where the whole section is locked. */} -
      +
        {order.map((id, at) => ( {at + 1} diff --git a/components/reports/saved-input.tsx b/components/reports/saved-input.tsx index 7fefd20ce..c013b2d02 100644 --- a/components/reports/saved-input.tsx +++ b/components/reports/saved-input.tsx @@ -11,15 +11,19 @@ import { cn } from "@/lib/utils"; export function SavedInput({ value, onSave, className, ariaLabel, maxLength, inputMode }: { value: string; /** Resolves false when the value was refused: the box then shows what is saved. */ onSave: (v: string) => Promise; className?: string; ariaLabel?: string; maxLength?: number; inputMode?: "numeric" }) { const [draft, setDraft] = useState(value); const [was, setWas] = useState(value); + // What the box last sent to be saved, which may be kept tidied: "ACME" as "acme", "03" as "3". + const [sent, setSent] = useState(null); if (value !== was) { setWas(value); - // Only a box still showing what was saved follows a new saved value: typing done since is never replaced. - if (draft === was) setDraft(value); + // A box still showing what was saved, or what it sent, follows the saved value: typing done since is never replaced. + if (draft === was || draft === sent) setDraft(value); } const commit = () => { const next = draft.trim(); setDraft(next); - if (next !== value) void onSave(next).then((kept) => kept || setDraft(value)); + if (next === value) return; + setSent(next); + void onSave(next).then((kept) => kept || setDraft(value)); }; return ( served[id] || (id === "zenodo" && ownArchive)); const doi = !under ? "" : (stays && untouched.doi) || (numbered ? "" : keyedDoi(under, untouched.key)); const waits = under !== null && !doi; - await touch(ctx, untouched, { signedBy: { name: signer, onBehalfOfAll }, signedAt: Date.now(), agreementVersion: version, doi, doiUnder: waits ? under : undefined, doiError: undefined, byline: bylineFor(doi, untouched.registrations?.docid?.handle), ...signedUnder, ...(stays && untouched.doi && untouched.accountsId && { accountsId: untouched.accountsId }), licence, ...keptAccess(fileAccess), archiveOwnerId: ownArchive ? userId : undefined, registration, voucher, voucherOff, payWith }); + await touch(ctx, untouched, { signedBy: { name: signer, onBehalfOfAll }, signedAt: Date.now(), agreementVersion: version, doi, doiUnder: waits ? under : undefined, doiError: undefined, byline: bylineFor(doi, untouched.registrations?.docid?.handle), ...signedUnder, ...(stays && reserved && untouched.accountsId && { accountsId: untouched.accountsId }), licence, ...keptAccess(fileAccess), archiveOwnerId: ownArchive ? userId : undefined, registration, voucher, voucherOff, payWith }); if (waits) await ctx.scheduler.runAfter(0, internal.reports.numbering.reserve, { reportId: untouched._id }); if (mintNow) await ctx.scheduler.runAfter(0, internal.reports.registrar.mintAtSigning, { reportId: untouched._id }); return untouched.key; diff --git a/messages/af.json b/messages/af.json index dc7cc754c..034e2b2ac 100644 --- a/messages/af.json +++ b/messages/af.json @@ -6461,7 +6461,6 @@ }, "which": "Watter verslae", "pagerItems": "verslae", - "sentAgain": "Weer gestuur", "noMatch": "Geen verslae pas nie", "noReports": "Nog geen verslae nie", "missingTitle": "Hierdie verslag is nie hier nie", @@ -6772,7 +6771,7 @@ "namespaceGoesOn": "Die volgende verslag kry {next}. Crossref het reeds {count, plural, one {# DOI} other {# DOI's}} onder {namespace}.", "namespaceStarts": "Die volgende verslag kry {next}. Crossref het nog niks onder {namespace} nie.", "publisher": "Uitgewer", - "publisherHint": "Word as die uitgewer genoem in Crossref, Zenodo en DOCiD, in aanhalings en op die bygevoegde eienaarsreël-bladsy", + "publisherHint": "Word as die uitgewer genoem in Crossref en Zenodo, in aanhalings en op die bygevoegde eienaarsreël-bladsy", "enterPublisher": "Sê wie die reeks uitgee.", "publisherSaved": "Uitgewer gestoor", "priceSaved": "Prys gestoor", @@ -6782,9 +6781,8 @@ "byline": "Eienaarsreël in die PDF", "noByline": "Geen gevra nie", "citation": "Aanhaling", - "registries": "Rekords by Crossref, Zenodo en DOCiD", - "registriesHint": "Elke register noem die uitgewer en die reeks", - "registriesHintNoDocid": "Crossref en Zenodo noem die uitgewer en die reeks", + "registries": "Rekords by Crossref en Zenodo", + "registriesHint": "Crossref en Zenodo noem die uitgewer en die reeks", "publisher": "Uitgewer", "series": "Reeks", "emails": "E-posse aan outeurs", @@ -7682,7 +7680,7 @@ "date": { "title": "Publikasiedatum", "about": "Wanneer die verslag gepubliseer is. ’n jaar, ’n maand of ’n dag, so presies as wat die PDF dit sê, en hoogstens vandag.", - "note": "Crossref hou dit so presies as wat dit is. Zenodo neem ’n volle datum, dus gaan ’n jaar of ’n maand daarheen as sy eerste dag. ’n PDF sonder ’n datum kry vandag s’n." + "note": "Crossref hou dit so presies as wat dit is. Zenodo neem ’n volle datum, dus gaan ’n jaar of ’n maand daarheen as sy eerste dag. ’n PDF sonder ’n datum laat dit aan jou om dit te gee." }, "licence": { "title": "Lisensie", diff --git a/messages/ar.json b/messages/ar.json index 92f2afb26..0961abbd5 100644 --- a/messages/ar.json +++ b/messages/ar.json @@ -6461,7 +6461,6 @@ }, "which": "أي التقارير", "pagerItems": "التقارير", - "sentAgain": "أُرسل مرة أخرى", "noMatch": "لا توجد تقارير مطابقة", "noReports": "لا توجد تقارير بعد", "missingTitle": "هذا التقرير غير موجود هنا", @@ -6772,7 +6771,7 @@ "namespaceGoesOn": "يحصل التقرير التالي على {next}. {count, plural, one {يوجد معرّف DOI واحد} two {يوجد معرّفا DOI} few {توجد # معرّفات DOI} many {يوجد # معرّف DOI} other {يوجد # معرّف DOI}} تحت {namespace} في Crossref.", "namespaceStarts": "يحصل التقرير التالي على {next}. لا يوجد شيء تحت {namespace} في Crossref بعد.", "publisher": "الناشر", - "publisherHint": "يُذكر ناشرًا في Crossref وZenodo وDOCiD، وفي الاستشهادات وفي صفحة سطر الإسناد المضافة", + "publisherHint": "يُذكر ناشرًا في Crossref وZenodo، وفي الاستشهادات وفي صفحة سطر الإسناد المضافة", "enterPublisher": "أدخل اسم من ينشر السلسلة.", "publisherSaved": "تم حفظ الناشر", "priceSaved": "تم حفظ السعر", @@ -6782,9 +6781,8 @@ "byline": "سطر الإسناد في ملف PDF", "noByline": "غير مطلوب", "citation": "الاستشهاد", - "registries": "سجلات Crossref وZenodo وDOCiD", - "registriesHint": "كل سجل يذكر الناشر والسلسلة", - "registriesHintNoDocid": "يذكر Crossref وZenodo الناشر والسلسلة", + "registries": "سجلات Crossref وZenodo", + "registriesHint": "يذكر Crossref وZenodo الناشر والسلسلة", "publisher": "الناشر", "series": "السلسلة", "emails": "رسائل البريد إلى المؤلفين", @@ -7682,7 +7680,7 @@ "date": { "title": "تاريخ النشر", "about": "متى نُشر التقرير. سنة أو شهر أو يوم، بالدقة التي يذكرها ملف PDF، وفي موعد أقصاه اليوم.", - "note": "يحفظه Crossref بدقته كما هي. ويأخذ Zenodo تاريخًا كاملًا، فتُرسل السنة أو الشهر بوصفهما اليوم الأول منهما. وملف PDF الذي لا يذكر تاريخًا يأخذ تاريخ اليوم." + "note": "يحفظه Crossref بدقته كما هي. ويأخذ Zenodo تاريخًا كاملًا، فتُرسل السنة أو الشهر بوصفهما اليوم الأول منهما. وملف PDF الذي لا يذكر تاريخًا يتركه لك لتُدخله." }, "licence": { "title": "الترخيص", diff --git a/messages/de.json b/messages/de.json index 1479647f4..d0cf16f0a 100644 --- a/messages/de.json +++ b/messages/de.json @@ -6461,7 +6461,6 @@ }, "which": "Welche Berichte", "pagerItems": "Berichte", - "sentAgain": "Erneut gesendet", "noMatch": "Keine Berichte passen", "noReports": "Noch keine Berichte", "missingTitle": "Dieser Bericht ist nicht hier", @@ -6772,7 +6771,7 @@ "namespaceGoesOn": "Der nächste Bericht erhält {next}. In Crossref {count, plural, one {liegt bereits # DOI} other {liegen bereits # DOIs}} unter {namespace}.", "namespaceStarts": "Der nächste Bericht erhält {next}. In Crossref liegt unter {namespace} noch nichts.", "publisher": "Herausgeber", - "publisherHint": "Wird in Crossref, Zenodo und DOCiD, in Zitationen und auf der hinzugefügten Vermerkseite als Herausgeber genannt", + "publisherHint": "Wird in Crossref und Zenodo, in Zitationen und auf der hinzugefügten Vermerkseite als Herausgeber genannt", "enterPublisher": "Geben Sie an, wer die Reihe herausgibt.", "publisherSaved": "Herausgeber gespeichert", "priceSaved": "Preis gespeichert", @@ -6782,9 +6781,8 @@ "byline": "Vermerk im PDF", "noByline": "Keiner verlangt", "citation": "Zitation", - "registries": "Einträge bei Crossref, Zenodo und DOCiD", - "registriesHint": "Jedes Register nennt den Herausgeber und die Reihe", - "registriesHintNoDocid": "Crossref und Zenodo nennen den Herausgeber und die Reihe", + "registries": "Einträge bei Crossref und Zenodo", + "registriesHint": "Crossref und Zenodo nennen den Herausgeber und die Reihe", "publisher": "Herausgeber", "series": "Reihe", "emails": "E-Mails an Autorinnen und Autoren", @@ -7682,7 +7680,7 @@ "date": { "title": "Veröffentlicht am", "about": "Wann der Bericht erschien. Ein Jahr, ein Monat oder ein Tag, so genau wie das PDF es angibt, und spätestens heute.", - "note": "Crossref behält es so genau, wie es ist. Zenodo nimmt ein ganzes Datum, daher geht ein Jahr oder Monat als dessen erster Tag dorthin. Ein PDF ohne Datum bekommt das heutige." + "note": "Crossref behält es so genau, wie es ist. Zenodo nimmt ein ganzes Datum, daher geht ein Jahr oder Monat als dessen erster Tag dorthin. Bei einem PDF ohne Datum geben Sie es selbst an." }, "licence": { "title": "Lizenz", diff --git a/messages/en-GB.json b/messages/en-GB.json index 67af6b30f..6d69bc804 100644 --- a/messages/en-GB.json +++ b/messages/en-GB.json @@ -6460,7 +6460,6 @@ }, "which": "Which reports", "pagerItems": "reports", - "sentAgain": "Sent again", "noMatch": "No reports match", "noReports": "No reports yet", "missingTitle": "This report isn't here", @@ -6771,7 +6770,7 @@ "namespaceGoesOn": "The next report gets {next}. Crossref already holds {count, plural, one {# DOI} other {# DOIs}} under {namespace}.", "namespaceStarts": "The next report gets {next}. Crossref holds nothing under {namespace} yet.", "publisher": "Publisher", - "publisherHint": "Named as the publisher in Crossref, Zenodo and DOCiD, in citations and on the added byline page", + "publisherHint": "Named as the publisher in Crossref and Zenodo, in citations and on the added byline page", "enterPublisher": "Enter who publishes the series.", "publisherSaved": "Publisher saved", "priceSaved": "Price saved", @@ -6781,9 +6780,8 @@ "byline": "Byline in the PDF", "noByline": "None asked for", "citation": "Citation", - "registries": "Crossref, Zenodo and DOCiD records", - "registriesHint": "Each registry names the publisher and the series", - "registriesHintNoDocid": "Crossref and Zenodo name the publisher and the series", + "registries": "Crossref and Zenodo records", + "registriesHint": "Crossref and Zenodo name the publisher and the series", "publisher": "Publisher", "series": "Series", "emails": "Emails to authors", @@ -7681,7 +7679,7 @@ "date": { "title": "Date published", "about": "When the report was published, as a year, a month or a day, as precisely as the PDF states it, and today at the latest.", - "note": "Crossref keeps it as precise as it is. Zenodo takes a whole date, so a year or a month goes there as its first day. A PDF that states no date gets today." + "note": "Crossref keeps it as precise as it is. Zenodo takes a whole date, so a year or a month goes there as its first day. A PDF that states no date leaves it for you to give." }, "licence": { "title": "Licence", diff --git a/messages/en-US.json b/messages/en-US.json index 6e39d3902..0e73a4007 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -6460,7 +6460,6 @@ }, "which": "Which reports", "pagerItems": "reports", - "sentAgain": "Sent again", "noMatch": "No reports match", "noReports": "No reports yet", "missingTitle": "This report isn't here", @@ -6771,7 +6770,7 @@ "namespaceGoesOn": "The next report gets {next}. Crossref already holds {count, plural, one {# DOI} other {# DOIs}} under {namespace}.", "namespaceStarts": "The next report gets {next}. Crossref holds nothing under {namespace} yet.", "publisher": "Publisher", - "publisherHint": "Named as the publisher in Crossref, Zenodo and DOCiD, in citations and on the added byline page", + "publisherHint": "Named as the publisher in Crossref and Zenodo, in citations and on the added byline page", "enterPublisher": "Enter who publishes the series.", "publisherSaved": "Publisher saved", "priceSaved": "Price saved", @@ -6781,9 +6780,8 @@ "byline": "Byline in the PDF", "noByline": "None asked for", "citation": "Citation", - "registries": "Crossref, Zenodo and DOCiD records", - "registriesHint": "Each registry names the publisher and the series", - "registriesHintNoDocid": "Crossref and Zenodo name the publisher and the series", + "registries": "Crossref and Zenodo records", + "registriesHint": "Crossref and Zenodo name the publisher and the series", "publisher": "Publisher", "series": "Series", "emails": "Emails to authors", @@ -7681,7 +7679,7 @@ "date": { "title": "Date published", "about": "When the report was published, as a year, a month or a day, as precisely as the PDF states it, and today at the latest.", - "note": "Crossref keeps it as precise as it is. Zenodo takes a whole date, so a year or a month goes there as its first day. A PDF that states no date gets today." + "note": "Crossref keeps it as precise as it is. Zenodo takes a whole date, so a year or a month goes there as its first day. A PDF that states no date leaves it for you to give." }, "licence": { "title": "License", diff --git a/messages/es.json b/messages/es.json index 2911e9c09..d3f5f06b8 100644 --- a/messages/es.json +++ b/messages/es.json @@ -6461,7 +6461,6 @@ }, "which": "Qué informes", "pagerItems": "informes", - "sentAgain": "Enviado de nuevo", "noMatch": "Ningún informe coincide", "noReports": "Aún no hay informes", "missingTitle": "Este informe no está aquí", @@ -6772,7 +6771,7 @@ "namespaceGoesOn": "El próximo informe recibe {next}. {count, plural, one {Ya hay # DOI} other {Ya hay # DOI}} bajo {namespace} en Crossref.", "namespaceStarts": "El próximo informe recibe {next}. Aún no hay nada bajo {namespace} en Crossref.", "publisher": "Editorial", - "publisherHint": "Se nombra como editorial en Crossref, Zenodo y DOCiD, en las citas y en la página de mención añadida", + "publisherHint": "Se nombra como editorial en Crossref y Zenodo, en las citas y en la página de mención añadida", "enterPublisher": "Indica quién publica la serie.", "publisherSaved": "Editorial guardada", "priceSaved": "Precio guardado", @@ -6782,9 +6781,8 @@ "byline": "Mención en el PDF", "noByline": "No se pide ninguna", "citation": "Cita", - "registries": "Registros de Crossref, Zenodo y DOCiD", - "registriesHint": "Cada registro nombra la editorial y la serie", - "registriesHintNoDocid": "Crossref y Zenodo nombran la editorial y la serie", + "registries": "Registros de Crossref y Zenodo", + "registriesHint": "Crossref y Zenodo nombran la editorial y la serie", "publisher": "Editorial", "series": "Serie", "emails": "Correos a los autores", @@ -7682,7 +7680,7 @@ "date": { "title": "Fecha de publicación", "about": "Cuándo se publicó el informe. Un año, un mes o un día, con la precisión con que lo indica el PDF, y como mucho hoy.", - "note": "Crossref la guarda con la precisión que tiene. Zenodo toma una fecha completa, así que un año o un mes llega como su primer día. Un PDF sin fecha toma la de hoy." + "note": "Crossref la guarda con la precisión que tiene. Zenodo toma una fecha completa, así que un año o un mes llega como su primer día. En un PDF sin fecha, la indicas tú." }, "licence": { "title": "Licencia", diff --git a/messages/fr.json b/messages/fr.json index 6ccbaa145..bf3b574b0 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -6460,7 +6460,6 @@ }, "which": "Quels rapports", "pagerItems": "rapports", - "sentAgain": "Renvoyé", "noMatch": "Aucun rapport ne correspond", "noReports": "Aucun rapport pour l'instant", "missingTitle": "Ce rapport n'est pas ici", @@ -6771,7 +6770,7 @@ "namespaceGoesOn": "Le prochain rapport reçoit {next}. {count, plural, one {# DOI existe} other {# DOI existent}} déjà sous {namespace} dans Crossref.", "namespaceStarts": "Le prochain rapport reçoit {next}. Rien n'existe encore sous {namespace} dans Crossref.", "publisher": "Éditeur", - "publisherHint": "Nommé comme éditeur dans Crossref, Zenodo et DOCiD, dans les citations et sur la page de mention ajoutée", + "publisherHint": "Nommé comme éditeur dans Crossref et Zenodo, dans les citations et sur la page de mention ajoutée", "enterPublisher": "Indiquez qui publie la collection.", "publisherSaved": "Éditeur enregistré", "priceSaved": "Prix enregistré", @@ -6781,9 +6780,8 @@ "byline": "Mention dans le PDF", "noByline": "Aucune demandée", "citation": "Citation", - "registries": "Notices Crossref, Zenodo et DOCiD", - "registriesHint": "Chaque registre nomme l'éditeur et la collection", - "registriesHintNoDocid": "Crossref et Zenodo nomment l'éditeur et la collection", + "registries": "Notices Crossref et Zenodo", + "registriesHint": "Crossref et Zenodo nomment l'éditeur et la collection", "publisher": "Éditeur", "series": "Collection", "emails": "E-mails aux auteurs", @@ -7681,7 +7679,7 @@ "date": { "title": "Date de publication", "about": "Quand le rapport a été publié. Une année, un mois ou un jour, aussi précisément que le PDF l’indique, et au plus tard aujourd’hui.", - "note": "Crossref la garde aussi précise qu’elle l’est. Zenodo prend une date complète. Une année ou un mois y part comme son premier jour. Un PDF sans date prend celle d’aujourd’hui." + "note": "Crossref la garde aussi précise qu’elle l’est. Zenodo prend une date complète. Une année ou un mois y part comme son premier jour. Pour un PDF sans date, c’est à vous de l’indiquer." }, "licence": { "title": "Licence", diff --git a/messages/hi.json b/messages/hi.json index deee5edc3..1f6280f09 100644 --- a/messages/hi.json +++ b/messages/hi.json @@ -6460,7 +6460,6 @@ }, "which": "कौन सी रिपोर्टें", "pagerItems": "रिपोर्टें", - "sentAgain": "फिर से भेजा गया", "noMatch": "कोई रिपोर्ट मेल नहीं खाती", "noReports": "अभी कोई रिपोर्ट नहीं", "missingTitle": "यह रिपोर्ट यहाँ नहीं है", @@ -6771,7 +6770,7 @@ "namespaceGoesOn": "अगली रिपोर्ट को {next} मिलता है। Crossref में {namespace} के अंतर्गत पहले से {count, plural, one {# DOI है} other {# DOI हैं}}।", "namespaceStarts": "अगली रिपोर्ट को {next} मिलता है। Crossref में {namespace} के अंतर्गत अभी कुछ नहीं है।", "publisher": "प्रकाशक", - "publisherHint": "Crossref, Zenodo और DOCiD में, संदर्भों में और जोड़े गए उल्लेख पृष्ठ पर प्रकाशक के रूप में नामित", + "publisherHint": "Crossref और Zenodo में, संदर्भों में और जोड़े गए उल्लेख पृष्ठ पर प्रकाशक के रूप में नामित", "enterPublisher": "लिखें कि शृंखला कौन प्रकाशित करता है।", "publisherSaved": "प्रकाशक सहेजा गया", "priceSaved": "कीमत सहेजी गई", @@ -6781,9 +6780,8 @@ "byline": "PDF में उल्लेख", "noByline": "कोई नहीं माँगा गया", "citation": "संदर्भ", - "registries": "Crossref, Zenodo और DOCiD के रिकॉर्ड", - "registriesHint": "हर रजिस्ट्री प्रकाशक और शृंखला का नाम देती है", - "registriesHintNoDocid": "Crossref और Zenodo प्रकाशक और शृंखला का नाम देते हैं", + "registries": "Crossref और Zenodo के रिकॉर्ड", + "registriesHint": "Crossref और Zenodo प्रकाशक और शृंखला का नाम देते हैं", "publisher": "प्रकाशक", "series": "शृंखला", "emails": "लेखकों को ईमेल", @@ -7681,7 +7679,7 @@ "date": { "title": "प्रकाशन तिथि", "about": "रिपोर्ट कब प्रकाशित हुई। वर्ष, महीना या दिन, जितनी सटीकता से PDF बताती है, और ज़्यादा से ज़्यादा आज।", - "note": "Crossref इसे उतनी ही सटीकता से रखता है। Zenodo पूरी तिथि लेता है, इसलिए वर्ष या महीना उसके पहले दिन के रूप में जाता है। जिस PDF में तिथि न हो, उसे आज की तिथि मिलती है।" + "note": "Crossref इसे उतनी ही सटीकता से रखता है। Zenodo पूरी तिथि लेता है, इसलिए वर्ष या महीना उसके पहले दिन के रूप में जाता है। जिस PDF में तिथि न हो, उसकी तिथि आपको देनी होती है।" }, "licence": { "title": "लाइसेंस", diff --git a/messages/ja.json b/messages/ja.json index ee1117954..c6594344f 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -6460,7 +6460,6 @@ }, "which": "対象のレポート", "pagerItems": "件のレポート", - "sentAgain": "再送信しました", "noMatch": "一致するレポートはありません", "noReports": "まだレポートはありません", "missingTitle": "このレポートはここにありません", @@ -6771,7 +6770,7 @@ "namespaceGoesOn": "次のレポートは {next} になります。Crossref の {namespace} にはすでに {count, plural, other {DOI が # 件}}あります。", "namespaceStarts": "次のレポートは {next} になります。Crossref の {namespace} にはまだ何もありません。", "publisher": "発行者", - "publisherHint": "Crossref、Zenodo、DOCiD、引用、追加される表記ページで発行者として示されます", + "publisherHint": "Crossref、Zenodo、引用、追加される表記ページで発行者として示されます", "enterPublisher": "シリーズの発行者を入力してください。", "publisherSaved": "発行者を保存しました", "priceSaved": "価格を保存しました", @@ -6781,9 +6780,8 @@ "byline": "PDF 内の表記", "noByline": "求められていません", "citation": "引用", - "registries": "Crossref、Zenodo、DOCiD のレコード", - "registriesHint": "各レジストリに発行者とシリーズが記載されます", - "registriesHintNoDocid": "Crossref と Zenodo に発行者とシリーズが記載されます", + "registries": "Crossref と Zenodo のレコード", + "registriesHint": "Crossref と Zenodo に発行者とシリーズが記載されます", "publisher": "発行者", "series": "シリーズ", "emails": "著者へのメール", @@ -7681,7 +7679,7 @@ "date": { "title": "公開日", "about": "報告書が公開された日。PDF の記載に合わせて年、月、または日で、遅くとも今日まで。", - "note": "Crossref はその精度のまま保管します。Zenodo は完全な日付を使うため、年や月はその初日として送られます。日付の記載がない PDF には今日の日付が入ります。" + "note": "Crossref はその精度のまま保管します。Zenodo は完全な日付を使うため、年や月はその初日として送られます。日付の記載がない PDF では、日付をご自身で入力します。" }, "licence": { "title": "ライセンス", diff --git a/messages/pt.json b/messages/pt.json index 6e39815be..8758df5c8 100644 --- a/messages/pt.json +++ b/messages/pt.json @@ -6461,7 +6461,6 @@ }, "which": "Que relatórios", "pagerItems": "relatórios", - "sentAgain": "Enviado de novo", "noMatch": "Nenhum relatório corresponde", "noReports": "Ainda não há relatórios", "missingTitle": "Este relatório não está aqui", @@ -6772,7 +6771,7 @@ "namespaceGoesOn": "O próximo relatório recebe {next}. {count, plural, one {Já existe # DOI} other {Já existem # DOI}} em {namespace} na Crossref.", "namespaceStarts": "O próximo relatório recebe {next}. Ainda não existe nada em {namespace} na Crossref.", "publisher": "Editor", - "publisherHint": "Indicado como editor na Crossref, no Zenodo e no DOCiD, nas citações e na página de menção acrescentada", + "publisherHint": "Indicado como editor na Crossref e no Zenodo, nas citações e na página de menção acrescentada", "enterPublisher": "Indique quem publica a série.", "publisherSaved": "Editor guardado", "priceSaved": "Preço guardado", @@ -6782,9 +6781,8 @@ "byline": "Menção no PDF", "noByline": "Nenhuma pedida", "citation": "Citação", - "registries": "Registos na Crossref, no Zenodo e no DOCiD", - "registriesHint": "Cada registo indica o editor e a série", - "registriesHintNoDocid": "A Crossref e o Zenodo indicam o editor e a série", + "registries": "Registos na Crossref e no Zenodo", + "registriesHint": "A Crossref e o Zenodo indicam o editor e a série", "publisher": "Editor", "series": "Série", "emails": "E-mails para os autores", @@ -7682,7 +7680,7 @@ "date": { "title": "Data de publicação", "about": "Quando o relatório foi publicado. Um ano, um mês ou um dia, com a precisão com que o PDF o indica, e o mais tardar hoje.", - "note": "A Crossref guarda-a com a precisão que tem. O Zenodo usa uma data completa, por isso um ano ou um mês vai como o seu primeiro dia. Um PDF sem data fica com a de hoje." + "note": "A Crossref guarda-a com a precisão que tem. O Zenodo usa uma data completa, por isso um ano ou um mês vai como o seu primeiro dia. Num PDF sem data, cabe a si indicá-la." }, "licence": { "title": "Licença", diff --git a/messages/sw.json b/messages/sw.json index 82ac034f4..59a01c3fe 100644 --- a/messages/sw.json +++ b/messages/sw.json @@ -6461,7 +6461,6 @@ }, "which": "Ripoti zipi", "pagerItems": "ripoti", - "sentAgain": "Imetumwa tena", "noMatch": "Hakuna ripoti inayolingana", "noReports": "Bado hakuna ripoti", "missingTitle": "Ripoti hii haipo hapa", @@ -6772,7 +6771,7 @@ "namespaceGoesOn": "Ripoti inayofuata inapata {next}. {count, plural, one {DOI # tayari iko} other {DOI # tayari ziko}} chini ya {namespace} katika Crossref.", "namespaceStarts": "Ripoti inayofuata inapata {next}. Bado hakuna kitu chini ya {namespace} katika Crossref.", "publisher": "Mchapishaji", - "publisherHint": "Anatajwa kama mchapishaji katika Crossref, Zenodo na DOCiD, katika nukuu na kwenye ukurasa wa mstari wa utambulisho ulioongezwa", + "publisherHint": "Anatajwa kama mchapishaji katika Crossref na Zenodo, katika nukuu na kwenye ukurasa wa mstari wa utambulisho ulioongezwa", "enterPublisher": "Andika nani anachapisha mfululizo.", "publisherSaved": "Mchapishaji amehifadhiwa", "priceSaved": "Bei imehifadhiwa", @@ -6782,9 +6781,8 @@ "byline": "Mstari wa utambulisho ndani ya PDF", "noByline": "Hakuna unaohitajika", "citation": "Nukuu", - "registries": "Rekodi za Crossref, Zenodo na DOCiD", - "registriesHint": "Kila rejista inataja mchapishaji na mfululizo", - "registriesHintNoDocid": "Crossref na Zenodo zinataja mchapishaji na mfululizo", + "registries": "Rekodi za Crossref na Zenodo", + "registriesHint": "Crossref na Zenodo zinataja mchapishaji na mfululizo", "publisher": "Mchapishaji", "series": "Mfululizo", "emails": "Barua pepe kwa waandishi", @@ -7682,7 +7680,7 @@ "date": { "title": "Tarehe ya kuchapishwa", "about": "Ripoti ilichapishwa lini. Mwaka, mwezi au siku, kwa usahihi ambao PDF inaeleza, na si zaidi ya leo.", - "note": "Crossref huihifadhi kwa usahihi ilionao. Zenodo huchukua tarehe kamili, hivyo mwaka au mwezi hutumwa kama siku yake ya kwanza. PDF isiyo na tarehe hupewa ya leo." + "note": "Crossref huihifadhi kwa usahihi ilionao. Zenodo huchukua tarehe kamili, hivyo mwaka au mwezi hutumwa kama siku yake ya kwanza. PDF isiyo na tarehe inakuachia wewe kuiweka." }, "licence": { "title": "Leseni", diff --git a/messages/zh.json b/messages/zh.json index e755c81a4..0878e9a2e 100644 --- a/messages/zh.json +++ b/messages/zh.json @@ -6460,7 +6460,6 @@ }, "which": "哪些报告", "pagerItems": "份报告", - "sentAgain": "已重新发送", "noMatch": "没有匹配的报告", "noReports": "还没有报告", "missingTitle": "此报告不在这里", @@ -6771,7 +6770,7 @@ "namespaceGoesOn": "下一份报告得到 {next}。Crossref 中 {namespace} 下已有 {count, plural, other {# 个 DOI}}。", "namespaceStarts": "下一份报告得到 {next}。Crossref 中 {namespace} 下尚无内容。", "publisher": "出版方", - "publisherHint": "在 Crossref、Zenodo 和 DOCiD、引用以及添加的署名页中作为出版方列出", + "publisherHint": "在 Crossref 和 Zenodo、引用以及添加的署名页中作为出版方列出", "enterPublisher": "请输入系列的出版方。", "publisherSaved": "出版方已保存", "priceSaved": "价格已保存", @@ -6781,9 +6780,8 @@ "byline": "PDF 中的署名", "noByline": "未要求", "citation": "引用", - "registries": "Crossref、Zenodo 和 DOCiD 的记录", - "registriesHint": "每个注册机构都列出出版方和系列", - "registriesHintNoDocid": "Crossref 和 Zenodo 列出出版方和系列", + "registries": "Crossref 和 Zenodo 的记录", + "registriesHint": "Crossref 和 Zenodo 列出出版方和系列", "publisher": "出版方", "series": "系列", "emails": "发给作者的邮件", @@ -7681,7 +7679,7 @@ "date": { "title": "发布日期", "about": "报告发布的时间:年份、月份或具体日期,与 PDF 写明的精确程度一致,最晚为今天。", - "note": "Crossref 按原有精度保存。Zenodo 需要完整日期,因此年份或月份会以其第一天提交。PDF 没有写明日期时使用今天。" + "note": "Crossref 按原有精度保存。Zenodo 需要完整日期,因此年份或月份会以其第一天提交。PDF 没有写明日期时,由你填写。" }, "licence": { "title": "许可", diff --git a/messages/zu.json b/messages/zu.json index 6189d5347..a52e8af68 100644 --- a/messages/zu.json +++ b/messages/zu.json @@ -6460,7 +6460,6 @@ }, "which": "Yimiphi imibiko", "pagerItems": "imibiko", - "sentAgain": "Kuthunyelwe futhi", "noMatch": "Ayikho imibiko efanayo", "noReports": "Ayikho imibiko okwamanje", "missingTitle": "Lo mbiko awukho lapha", @@ -6771,7 +6770,7 @@ "namespaceGoesOn": "Umbiko olandelayo uthola u-{next}. {count, plural, one {I-DOI e-# isivele} other {Ama-DOI ayi-# asevele}} ngaphansi kwe-{namespace} ku-Crossref.", "namespaceStarts": "Umbiko olandelayo uthola u-{next}. Akukabi lutho ngaphansi kwe-{namespace} ku-Crossref.", "publisher": "Umshicileli", - "publisherHint": "Ubizwa njengomshicileli ku-Crossref, Zenodo ne-DOCiD, ezicashunweni nasekhasini lomugqa womnikazi elengeziwe", + "publisherHint": "Ubizwa njengomshicileli ku-Crossref ne-Zenodo, ezicashunweni nasekhasini lomugqa womnikazi elengeziwe", "enterPublisher": "Faka ukuthi ubani oshicilela uchungechunge.", "publisherSaved": "Umshicileli ulondoloziwe", "priceSaved": "Intengo ilondoloziwe", @@ -6781,9 +6780,8 @@ "byline": "Umugqa womnikazi ku-PDF", "noByline": "Awukho odingekayo", "citation": "Ukucaphuna", - "registries": "Amarekhodi e-Crossref, Zenodo ne-DOCiD", - "registriesHint": "Irejista ngayinye isho umshicileli nochungechunge", - "registriesHintNoDocid": "I-Crossref ne-Zenodo zisho umshicileli nochungechunge", + "registries": "Amarekhodi e-Crossref ne-Zenodo", + "registriesHint": "I-Crossref ne-Zenodo zisho umshicileli nochungechunge", "publisher": "Umshicileli", "series": "Uchungechunge", "emails": "Ama-imeyili aya kubabhali", @@ -7681,7 +7679,7 @@ "date": { "title": "Usuku lokushicilelwa", "about": "Lapho umbiko ushicilelwe khona. Unyaka, inyanga noma usuku, ngokunemba i-PDF ekusho ngakho, futhi kungadluli namuhla.", - "note": "I-Crossref iyigcina inembile njengoba injalo. I-Zenodo ithatha usuku oluphelele, ngakho unyaka noma inyanga iya khona njengosuku lwayo lokuqala. I-PDF engashongo usuku ithola olwanamuhla." + "note": "I-Crossref iyigcina inembile njengoba injalo. I-Zenodo ithatha usuku oluphelele, ngakho unyaka noma inyanga iya khona njengosuku lwayo lokuqala. I-PDF engashongo usuku ikushiyela wena ukuthi ulunikeze." }, "licence": { "title": "Ilayisensi", From 6458bb25e250ad9865bc363a253e9e97d05774cc Mon Sep 17 00:00:00 2001 From: sickerine Date: Tue, 1 Dec 2026 14:26:51 +0000 Subject: [PATCH 5/7] wip: the fourth council: locked controls switched off as a form's are, so a screen reader reads them; the review dialog takes the server's stage and shows changes whole; the check editor and agreement preview in the shared scroll area; a held balance shown with publishing off --- app/settings/billing/page.tsx | 3 ++- components/reports/admin-settings.tsx | 17 ++++++++++---- components/reports/admin-submissions.tsx | 10 ++++---- components/reports/identifier-settings.tsx | 8 ++++--- components/reports/publish-flow.tsx | 2 +- components/settings/parts.tsx | 27 +++++++++++++++++----- components/workspaces/settings.tsx | 3 ++- 7 files changed, 50 insertions(+), 20 deletions(-) diff --git a/app/settings/billing/page.tsx b/app/settings/billing/page.tsx index e84354e4c..31d633a09 100644 --- a/app/settings/billing/page.tsx +++ b/app/settings/billing/page.tsx @@ -194,7 +194,8 @@ export default function BillingPage() {
  • ) : null} - {offered?.open ? void updatePayment()} /> : null} + {/* With publishing off nothing is paid for here, so the row shows only what is still held: hidden outright, it took a balance someone had paid for out of sight. */} + {offered ? void updatePayment()} /> : null} {topUps.bundles.length > 0 ? : null} diff --git a/components/reports/admin-settings.tsx b/components/reports/admin-settings.tsx index ecc04d078..5b2bc2810 100644 --- a/components/reports/admin-settings.tsx +++ b/components/reports/admin-settings.tsx @@ -27,6 +27,7 @@ import { chosenOf, connectedOf, routeOf, withAccounts, type ServiceId } from "@/ import { MarkdownContent } from "@/components/markdown-content"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog"; +import { ScrollArea } from "@/components/ui/scroll-area"; import { Input } from "@/components/ui/input"; import { Slider } from "@/components/ui/slider"; import { Switch } from "@/components/ui/switch"; @@ -463,7 +464,11 @@ function CheckDialog({ check, bylineOff, onClose }: { check: CheckRow | "new" | }); return ( !open && onClose()}> - + {/* What it asks scrolls in the app's scroll area, a shade where more is below, with its buttons kept under it: + the whole dialog scrolled with the browser's bar, and on a short window Save was out of sight. */} + + +
    {t(isNew ? "addTitle" : "editTitle")} @@ -499,7 +504,9 @@ function CheckDialog({ check, bylineOff, onClose }: { check: CheckRow | "new" | set("blocking", blocking)} /> {(id) =>
    {JSON.stringify(sample, null, 2)}
    }
    - + +
    + {!isNew && !form.builtIn ? (