Skip to content

feat(feedback): land a post-event reader in the atlas, not a dead-end card - #181

Merged
sydevs-bot merged 11 commits into
mainfrom
claude/feat-post-event-feedback
Sep 2, 2026
Merged

sydevs-bot merged 11 commits into
mainfrom
claude/feat-post-event-feedback

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • A reader answering the post-event email now lands on the class or its region, not a dead-end card.
  • ?feedback=confirmed thanks them above the event; ?feedback=denied sits above the region list.
  • The parameter is then removed from the host's URL, leaving every other pair byte-identical.

Changes

  • src/lib/shape/feedback-param.ts — pure: read the answer, and the surgical query edit that removes it
  • src/hooks/use-post-event-feedback.ts — the whole wiring: read once in a useState initializer, strip in an effect
  • src/views/{EventView,RegionView} — one call each, rendering the acknowledgement through the Alert atom (title + body, primary/ticked for confirmed, neutral/unticked for denied); docs/embedding.md + CHANGELOG.md carry the host-facing half
  • src/config/i18n-budgets.test.ts — a 40-character per-locale ceiling on the two banner titles

Preview

Both Cloudflare Pages deploys for 2de5899, discovered from their check runs — these are per-deployment aliases, so they stay pinned to this commit (CI's own smoke lane ran against the first).

Deep links, in the order worth clicking them:

⚠ That last one is the only two-step, and deliberately so: class ids come from the events feed, which I could not read while writing this, and a guessed id would land you on a not-found rather than on the banner. The preview carries the published atlas key itself, so no ?key= is needed.

Contract impact

?feedback= is observable by every embedding host — links SahajCloud already sends now arrive on their pages carrying a parameter the widget reads and removes — so docs/embedding.md and CHANGELOG.md change in this PR, per CLAUDE.md.

The guide also corrects a claim that just became false: both it and locale-param.ts said ?locale= was "the second and last parameter the widget claims on your URL". Still the last it writes; feedback is a third it reads once and removes.

Neither doc quotes the banner's wording, so the review round below changed no part of the host-facing contract.

Test results

  • Lean gate: ✓ lint · typecheck · test:run — 114 files / 1509 specs passed
  • Targeted specs: feedback-param.test.ts (14, node) · use-post-event-feedback.test.tsx (6, jsdom) · i18n-budgets.test.ts (+10, one title budget per locale)
  • Build: ✓ — assert:css, assert:maps, size, ladle:build
  • CI on 2de5899: all five checks green — Lint/Typecheck/Build, Dependency Audit, Smoke, and both Pages deploys

Manual verification

  1. Open the denied link. The banner sits above the region's list, and ?feedback=denied is already out of the address bar.
  2. Press Back. You should stay on the region — consuming the parameter is a replaceState, not a navigation, so there is no entry to go back to.
  3. Open the &keep=a%20b link and read the address after the banner appears: keep=a%20b, unchanged.
  4. Open the ?feedback=maybe link: no banner, parameter untouched.
  5. For confirmed, follow the two-step above. Check the onward rung goes to that class's own region.

Review round 1 — the banner's copy (2de5899)

@Ardnived's review replaced the wording: the whole sentence had been sitting in Alert's bold title slot, where it wrapped to three lines and read as a paragraph rather than a heading. feedback.confirmed / feedback.denied are now { title, body } in all ten locales, and the onward rung is a block link on its own line.

One deliberate departure, still open for a decision. The supplied denied copy ends "You can find other nearby classes below." That clause is reachably false — the fifth denial unpublishes the event, so a denying reader can land on a region with nothing left to list. It is therefore kept as the separate below key: a normal region renders body + below as exactly the paragraph written in review, and an empty region renders body alone followed by a real link into the search. Merging them is a one-line change if the single sentence is preferred.

The 40-character title ceiling in i18n-budgets.test.ts is what stops a retranslation quietly restoring the sentence-as-heading. Verified failing first, per .claude/rules/tests.md: the previous German title measures 98 against it, and a title that goes missing fails as "is missing" rather than passing vacuously at length 0.

Detail

The thing that shaped the implementation

?feedback= is on the host's real query string, and no router of ours describes it. In query mode the widget's route is the value of ?atlas=; in path mode it is the pathname plus the query nested inside ?atlas= (routeFromPathname). A parameter the CMS appended to a canonical URL is in neither, so useSearchParams never sees it. It is read off window.location at the call site — the same thing pageLocaleOverride does, for the same reason, with the same one-line justification in the code.

The read is a useState initializer, not an effect. That is what makes the last acceptance criterion — a cold load from an email client — actually work. From an effect the banner would appear one commit after paint. There is a spec that fails if it moves.

The strip is a hand-rolled string edit, not URLSearchParams.delete(). This rewrites the host's URL, so exactly one pair may change and everything else must survive byte-for-byte. .delete() re-serializes the whole query. Measured on a realistic URL:

in         ?atlas=/nl/amsterdam?center=4.9,52.3&feedback=confirmed&keep=a%20b
.delete()  ?atlas=%2Fnl%2Famsterdam%3Fcenter%3D4.9%2C52.3&keep=a+b
this PR    ?atlas=/nl/amsterdam?center=4.9,52.3&keep=a%20b

Two separate losses in that middle line: it undoes routeToParam's deliberate restoration of / and , — the one thing that has to stay readable in a shared link — and it rewrites keep=a%20b, which is a host's parameter we have no business touching. Both are equivalent to a parser and neither is what the page had. The second preview link above is that difference, live.

That edit was later generalized into src/lib/shape/query.ts, so every parameter the widget writes to a host's URL goes through one encoder — see the commits from 68ba7ba, which also fixed localeHref mangling the whole query on every language switch.

Scope checklist

Criterion
Event page handles ?feedback=confirmed ✅ banner + onward rung to the region
Region page handles ?feedback=denied ✅ banner above the region's own list
Strip feedback with history.replaceState ✅ surgical edit, history.state passed through verbatim so the atlas history's __sy_atlas slice survives
Canonical without the param ✅ already true, and now pinned by the strip — see below
Copy through the translation layer ✅ common.feedback.*, all ten locales (parity-enforced)
Banner on a cold load, not just client-side nav ✅ the useState-initializer read; specced

On the canonical: it needed no code. EventMetadata emits event.webUrl and RegionView emits validateWebUrl(region.webUrl) — both CMS-supplied, neither derived from the page URL — so a feedback variant could never have reached a canonical link. I deliberately did not add a test for it: nothing puts the parameter there, so the assertion would pass for reasons unrelated to the property, which is the vacuous-spec trap .claude/rules/tests.md warns about. Recording the reasoning here instead.

Tests

Pure decisions in the node lane (feedback-param.test.ts), the wiring in jsdom (use-post-event-feedback.test.tsx) — the split the testing rules ask for, with the DOM half justified because window.location + history.replaceState is an agreement a pure spec can only assume.

Every new assertion was made to fail before being kept, per .claude/rules/tests.md, at the site that would really cause it:

Also asserted: history.state survives the rewrite (drop it and the next X climbs to the structural parent instead of going back — nothing else reads location.key, so every other spec would stay green), and an unrecognised ?feedback= is left in place rather than deleted.

One wrinkle in the CHANGELOG entry, since it will recur

Entries reference the PR that landed them, and [#164] was already taken in that file — by PR #164 (routing=path), which is a different object from issue #164, the ticket this closes. GitHub's shared numbering between issues and PRs makes that collision inevitable and silent. Handled by deferring the reference to its own commit once this PR had a number; the entry now reads ([#181]).

Closes #164

claude added 4 commits August 29, 2026 16:30
SahajCloud redirects a reader who answered the "did this class take place?"
email to the class's canonical page carrying `?feedback=confirmed`, or to its
region page carrying `?feedback=denied` (sydevs/SahajCloud#626).

That parameter is on the HOST's real query string, not inside `?atlas=`, so no
router of ours describes it — `useSearchParams` never sees it. It is read off
`window.location` at the call site, exactly as `pageLocaleOverride` is.

Two properties are load-bearing and both are pinned:

- The answer is read in a `useState` initializer, not an effect, so a COLD load
  from an email client renders the acknowledgement on the first frame rather
  than one commit later.
- The parameter is then removed with a surgical string edit rather than
  `URLSearchParams.delete()`. `delete()` re-serializes the whole query, which
  undoes `routeToParam`'s deliberate `/` and `,` — the part of a shared link
  that has to stay readable — and rewrites a HOST's own `a%20b` to `a+b`.
  Measured; the docblock carries the before/after.

An unrecognised value is ignored and left in place: it is then presumably the
host's own, and silently deleting somebody else's parameter is worse than
doing nothing.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JUN3Ckwmofq3UHPtwHFNxC
…and on

A thank-you above the event they confirmed, or an acknowledgement above the
region they were sent to after saying the class was not there.

The denied copy is the one that needed care, and two decisions in it are
deliberate. It never implies the listing was fake or has gone: one report is
not a verdict — the listing only comes down at five denials with a Wilson
upper bound below 0.5 — so it thanks them for the report and stops. And it
promises nothing about what is underneath it. The ticket's suggested wording
ended "Here are other classes near you", which is reachably false: the fifth
denial unpublishes the event, so that region can legitimately have nothing
left to list and the sentence would sit directly above an empty state.

The onward rung is therefore asymmetric. `confirmed` lands on a single event
page, so the way onward has to be offered explicitly and the banner carries a
link to the event's own region. `denied` lands on the region page, whose list
IS that onward step, so a link there would point at the page the reader is
already on.

Copy added across all ten locales — `common` is parity-enforced per locale.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JUN3Ckwmofq3UHPtwHFNxC
A host can observe this: links the CMS already sends now arrive on their pages
carrying a parameter the widget reads and then removes from the address bar.
Per CLAUDE.md that is not finished until `docs/embedding.md` and CHANGELOG.md
say so, in the same PR.

Also corrects a claim that has just become false. Both the guide and
`locale-param.ts` said `?locale=` was "the second and last parameter the widget
claims on your URL". It is still the last one it WRITES; `feedback` is a third
it knows about, read once and removed. The distinction matters to a host, so
the word "writes" is now doing that work explicitly in both places.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JUN3Ckwmofq3UHPtwHFNxC
Deferred until the number existed: `[#164]` is already taken in this file by
PR #164 (`routing=path`), which is a different thing from issue #164, so the
entry could not borrow it.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JUN3Ckwmofq3UHPtwHFNxC
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

Deploying sahajatlas with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2de5899
Status: ✅  Deploy successful!
Preview URL: https://c76da223.sahajatlas.pages.dev
Branch Preview URL: https://claude-feat-post-event-feedb.sahajatlas.pages.dev

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

@Ardnived Ardnived left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sydevs-bot Please review and fix this PR as per my comments. Push back if needed.

Comment thread public/locales/en/common.json Resolved
Comment thread src/hooks/use-post-event-feedback.ts Resolved
Comment thread src/lib/shape/feedback-param.ts Resolved
Comment thread src/views/EventView/EventView.tsx Resolved
Comment thread public/locales/en/common.json Resolved
Comment thread src/views/RegionView/RegionView.tsx Resolved
claude added 2 commits August 29, 2026 23:00
… be dismissed

Applies the review on #181.

- FeedbackBanner is gone. Each view renders `Alert` directly: EventView shows
  only `confirmed` and RegionView only `denied`, so neither call site branches
  and the component was one indirection over a single variant each.
- The acknowledgement is dismissable, via Alert's own onClose/closeLabel.
  Dismissal is per-view state on `usePostEventFeedback`, which already owned
  the read-once-then-strip lifecycle.
- EventView moves it below the details, beside the Register action, rather than
  above the class it acknowledges.
- RegionView suppresses GeolocationSuggestion while it is up, and restores it on
  dismiss — two stacked prompts above the list is more than the screen carries.
- Copy restates what the reader did, in all ten locales.
- The Ladle story is gone with the component, which also removes the nested
  MemoryRouter that made it throw: .ladle/components.tsx already provides one.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Jry6g9kMG1UQ63N99vABAC
… when empty

Follows the review decision on #181: copy-only normally, with a real search
link as the fallback.

The region's own list is the onward step, so the banner names it rather than
linking to the page the reader is already on. A region with nothing left to
list is the exception — the fifth denial unpublishes the event, so it is
reachable — and there the sentence would sit directly above an empty state, so
it becomes a link into the distance-ranked search instead.

⚠ That link is NOT centred on the region, and cannot be: `getRegion` derives
`bounds`/`center` from the events under a region, so both are null in exactly
the empty case (pinned by fetch.test.ts). SearchView already falls back to a
snapshot of the map camera when `?center` is absent, which on this screen is
the area the reader was looking at.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Jry6g9kMG1UQ63N99vABAC
@sydevs-bot
sydevs-bot requested a review from Ardnived August 29, 2026 23:11
… banner in it

Per the review on #181: the acknowledgement belongs beside the action it wants
the reader to take, and Register lives inside EventDetails when it is inline —
so the panel is the only thing that knows where that action sits.

EventDetails takes `children` and renders them immediately above Register. A
slot rather than another boolean beside `registerInline`: what goes there is a
view's business, and the alternative was a new flag per addition.

Where Register is not inline (the mobile map sheet mounts EventRegisterBar in
the sticky footer), the slot still renders after the facts, which keeps it above
the sticky bar in reading order.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Jry6g9kMG1UQ63N99vABAC
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

This is green and finished except for one decision that is yours: keep the six-line query-string strip, or swap it for the built-in URLSearchParams. Handing it back for that call.

Everything else from your review is in. Seven of the eight threads are resolved — I closed the EventView one just now, since the EventDetails children slot you asked for shipped in 1fa9119 and the thread had gone stale.

On the one still open (feedback-param.ts) — the premise behind it is settled and the answer was reassuring: ?atlas= is not brittle. routeFromParam reads through URLSearchParams.get, which percent-decodes, so a host that re-serialises their own query string produces a param we read identically. There is nothing to harden.

That leaves a smaller, purely-stylistic question. The hand-rolled strip now buys exactly two things:

  1. readable shared links — ?atlas=/nl/amsterdam rather than ?atlas=%2Fnl%2Famsterdam;
  2. not rewriting a host's own parameters — their keep=a%20b staying as they wrote it, instead of becoming keep=a+b.

My recommendation is to keep it, mostly for (2) — rewriting a parameter on a page we don't own is the one thing here that could affect somebody else's site. But it is a judgement call about neighbourliness, not correctness, and if you'd rather have the shorter file, the swap is two lines with the built-in and I'll make it on request. No new dependency either way: qs-esm re-encodes too, so it buys nothing over URLSearchParams here.

State of the PR, and why qs-esm was ruled out

CI: all five checks green on 1fa9119 — Lint/Typecheck/Build, Smoke, Dependency Audit, and both Cloudflare Pages deploys.

Threads: 7 of 8 resolved. The six from your first review round were closed as they were addressed; the EventView placement thread is closed as of this comment.

The measurement behind the recommendation, so it is not re-derived:

target                atlas=/nl/amsterdam?center=4.9,52.3&keep=a%20b
URLSearchParams       atlas=%2Fnl%2Famsterdam%3Fcenter%3D4.9%2C52.3&keep=a+b
qs-esm (default)      atlas=%2Fnl%2Famsterdam%3Fcenter%3D4.9%2C52.3&keep=a%20b
qs-esm encode:false   atlas=/nl/amsterdam?center=4.9,52.3&keep=a b        ← corrupt

qs-esm is marginally better than the built-in (it keeps %20 rather than +) and still mangles the route; disabling encoding emits a literal space into a host's parameter, which is not a valid query string. The general point rules out the whole category: anything that goes string → object → string re-encodes from scratch, and / and %20 are equivalent to a parser but not identical.

And the robustness check that settles your actual concern:

we write            atlas=/nl/amsterdam%3Fcenter%3D4.9,52.3
host re-serialises  atlas=%2Fnl%2Famsterdam%3Fcenter%3D4.9%2C52.3

routeFromParam(ours)       → "/nl/amsterdam?center=4.9,52.3"
routeFromParam(re-encoded) → "/nl/amsterdam?center=4.9,52.3"   ← identical

A host that deletes or truncates the param is a different matter, and no encoding scheme survives that — the widget falls back to its default route, and safePath means a hostile value yields no route rather than a bad one.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

…angling the URL

`feedback-param.ts` carried a hand-rolled query editor because
`URLSearchParams.delete()` re-serializes every surviving pair — losing the `/`
and `,` `routeToParam` restores, and rewriting a host's `%20` to `+`. That
argument is not specific to `feedback`, so it moves to `lib/shape/query.ts` as
`searchWith`/`searchWithout` + their href forms.

Rewiring `localeHref` onto it fixes a live defect: it wrote `?locale=` with
`searchParams.set` + `toString()`, so every language switch re-encoded a
readable `?atlas=/gb/london` into `%2Fgb%2Flondon` and rewrote host parameters.
Nothing broke (the readers percent-decode either way), which is why it went
unnoticed — the existing spec handed in an already-encoded route and read back
through `searchParams.get`, so it was vacuous in both directions.

`routing.ts` is deliberately left on its private `readable()` pass; moving
`hrefFor`/`pathHrefFor` over is a follow-up rather than part of this PR.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Ready for review — green on 68ba7ba, all threads resolved, nothing waiting on me.

The last open thread was the query-parameter one, and 68ba7ba did what you asked: the surgical editing is now a generic src/lib/shape/query.ts (searchWithout/searchWith/hrefWithout/hrefWith), and feedback-param.ts is down to the name it claims and what the two answers mean. I've resolved it.

The thing worth knowing before you read the diff: that refactor turned up a live defect rather than only tidying one. localeHref was re-serializing the whole query string on every language switch, so picking a language turned a readable ?atlas=/gb/london into %2Fgb%2Flondon and rewrote a host's own keep=a%20b into keep=a+b. The existing spec passed throughout because it handed in an already-encoded value and read it back through searchParams.get, which decodes either way.

One follow-up I deliberately left out of this PR

hrefFor / pathHrefFor in routing.ts still write ?atlas= via searchParams.set and repair it afterwards with a private readable() pass. That recovers / and , but not a host's %20, so query.ts is strictly stronger and they should move onto it.

They are the routing core with a round-trip suite of their own, so it is a separate change. Say the word and I'll open it; it is not blocking anything here.

Checks on the current head: Lint/Typecheck/Build, Smoke, Dependency Audit and both Cloudflare Pages deploys all green.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot assigned Ardnived and unassigned sydevs-bot Aug 31, 2026
@Ardnived

Copy link
Copy Markdown
Contributor

One follow-up I deliberately left out of this PR
hrefFor / pathHrefFor in routing.ts still write ?atlas= via searchParams.set and repair it afterwards with a private readable() pass. That recovers / and , but not a host's %20, so query.ts is strictly stronger and they should move onto it.

They are the routing core with a round-trip suite of their own, so it is a separate change. Say the word and I'll open it; it is not blocking anything here.

@sydevs-bot Go ahead and update routing.ts to use the new query.ts helpers. Look for opportunities to simplify and remove duplicate code. We want simple, robust, and easy to maintain code.

@Ardnived Ardnived assigned sydevs-bot and unassigned Ardnived Aug 31, 2026
…r for every parameter

`hrefFor` and `pathHrefFor` wrote `?atlas=` with `searchParams.set` and then
repaired the collateral damage with a private `readable()` pass over the whole
query. That recovered `/` and `,` and never recovered a host's `%20`, which
`set` had already turned into `+` — so the widget rewrote parameters on pages it
does not own. Both now edit their pair through `searchWith`/`searchWithout` and
leave every other pair byte-identical; `readable()` is gone.

`routeToParam` was byte-identical to `query.ts`'s private value encoder, so that
encoder is now exported as `encodeParamValue` and `routeToParam` delegates. One
implementation, so the encoding `?atlas=` is written with and the encoding every
other parameter is written with cannot drift.

⚠ `hrefFor` calls `searchWith` (the string editor), NOT `hrefWith` (the URL
wrapper). `hrefWith` answers '' when the value is already present — right for
`publishLocale`/`clearFeedback`, which both mean "leave the URL alone" by it, and
catastrophic here: this feeds `createHref` for every <Link>, so a link to the
route already on screen would render a blank href.

Both properties were uncovered: reintroducing each defect left the whole
457-test shape suite green. Two assertions added, each verified failing against
its defect and passing restored.

`src/loader/` is deliberately left hand-rolled — a value import across that seam
is what `pnpm size` fails the build for.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Done — ac38db8. hrefFor and pathHrefFor now edit their pair through query.ts and leave every other pair byte-identical. readable() is gone.

I put it in this PR rather than a follow-up: query.ts only exists here, so a separate PR would have to stack on this branch, and this repo squash-merges. Say if you'd rather I split it.

The trap it had to avoid

hrefFor calls searchWith (the string editor), not hrefWith (the URL wrapper). hrefWith answers '' when the value is already present — correct for publishLocale/clearFeedback, which both mean leave the URL alone by it, and catastrophic here. hrefFor feeds createHref for every <Link>, and a link to the route already on screen is the commonest case in the app, so '' would render a blank href on every self-link.

Two coverage gaps, which is the part I'd want you to notice

I reintroduced each defect against the suite as it stood before this commit. The whole 457-test shape lane stayed green for both:

defect suite before
hrefFor returns '' when the route is unchanged 457 passed
the old set + readable() mangling of a host's %20 457 passed

So the self-link trap would have shipped green if I'd reached for hrefWith — which is exactly what "move it onto the new helpers" invites. Both are now pinned, each verified failing against its defect and passing restored.

Simplification and duplication

  • readable() deleted — it existed only to repair searchParams.set.
  • routeToParam was byte-identical to query.ts's private value encoder. That encoder is exported as encodeParamValue; routeToParam delegates and keeps its route-shaped docblock. One implementation, so ?atlas='s encoding cannot drift from every other parameter's.

One thing I found and did not act on, because it's beyond what you asked. routeToParam now has no production caller — atlas-history.ts imports it (with ROUTE_PARAM) solely to re-export at line 249, and nothing in src/ consumes that re-export. It was already dead before this change; hrefFor never called it. I've left it because it's a barrel export and its round-trip test against routeFromParam is genuinely good documentation of the encoding contract. Happy to delete it and that pass-through re-export if you want the file smaller — it's a two-line change.

src/loader/ is deliberately untouched. Its one searchParams.set stays hand-rolled: a value import across that seam makes a module reachable from both entries and pnpm size fails the build for it (#153). The loader writes a probe parameter onto a URL it discards, so it has nothing to protect. That reasoning is now in query.ts's docblock rather than left for the next person to rediscover.

Verification

Every CI gate reproduced locally, not just the lean one: lint · typecheck · 1491 unit · build · pnpm size exit 0 (standalone 298.1/308, loader 2.9/3.8, embed 300.6/308 KiB) · ladle:build. I ran the size gate specifically because this changes the eager graph's import edges, which is what that gate watches.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Resolves the CHANGELOG.md link-definition conflict left by #184's squash
merge: both [#181] and [#184] definitions belong, in numeric order.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018oiV3fKDoPhKcjhX39LvWp
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Unblocked — this was un-mergeable and is green again. Nothing here needs a decision from you; it is back to waiting on review.

Merging #184 made main conflict with this branch, which meant GitHub scheduled no CI at all — not a red check, simply no runs, which reads exactly like a slow scheduler. Merged origin/main in and resolved (a31bdb5).

The conflict was one hunk: both PRs appended a link definition to the same block at the foot of CHANGELOG.md. Both belong, so both are kept, in numeric order.

All five checks green on the merge commit. Re-validated locally before pushing rather than trusting the merge: lint · typecheck · 114 files / 1499 unit specs · build (with assert:css + assert:maps) · size (standalone 298.1/308 KiB, loader 2.9/3.8 KiB — both still inside budget with #184's eager Turnstile load now in the same tree) · ladle:build.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@Ardnived

Ardnived commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

@sydevs-bot
The current wording with the feedback banner doesn't look right because the title is too long. Let's change it to the following in English:

For accepted:

Thank you for confirming
We will let other users know this class is still running.
See other classes nearby

For denied:

Thank you for telling us
We will review this listing and update it. Sorry for the mistake. You can find other nearby classes below.

Make sure that all locales are updated with appropriate translations

@Ardnived Ardnived assigned sydevs-bot and unassigned Ardnived Sep 2, 2026
The whole sentence was in Alert's `title` slot — ~90 characters of bold in a
`size="sm"` banner inside a 22rem drawer, which wrapped to three lines and read
as a paragraph rather than a heading. Ardnived's review on #181 supplied the
replacement copy; this is it, across all ten locales.

`feedback.confirmed` / `feedback.denied` each become `{ title, body }`. The
onward rung is now a block link on its own line, matching the layout the review
drew, and the confirmed banner keeps its region link.

The denied copy ends "You can find other nearby classes below." That clause is
the existing `below` key rather than part of `body`, so the two join into the
one paragraph the review asked for on the normal path, while an empty region —
reachable, since the fifth denial unpublishes the event — substitutes the search
link instead of making a claim above an empty state.

`i18n-budgets.test.ts` gains a 40-character ceiling on both titles, per locale,
so a retranslation cannot quietly restore the sentence-as-heading. Verified
failing first: the old German title reads 98 chars against it, and a title that
goes missing fails as "is missing" rather than passing vacuously.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Jry6g9kMG1UQ63N99vABAC
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Done — 2de5899. Your copy, across all ten locales.

feedback.confirmed / feedback.denied each become { title, body }, so the title is a phrase in Alert's bold slot and the sentence sits below it in the description. The onward rung is now a block link on its own line, matching the three-line shape you drew. (Read accepted as confirmed — that's the value the parameter actually carries.)

One place I did not follow the copy literally, and it needs your call.

Your denied text ends "You can find other nearby classes below." That clause is reachably false: the fifth denial unpublishes the event, so a denying reader can land on a region with nothing left to list, and the sentence would sit directly above an empty state. I kept it as the separate below key rather than folding it into body, so:

  • normal region → body + below join into exactly the paragraph you wrote;
  • empty region → body alone, then a real link into the search.

If you'd rather it always read as one sentence, say so and I'll merge them — it's a one-line change, and the empty-region case just becomes a claim we don't stand behind.

Two smaller notes.

I kept the onward link's existing underline rather than rendering it italic as your markdown showed. Italic links are unusual and the Link atom carries its own treatment; happy to make it italic if that was literal.

I also added a 40-character ceiling on both titles, per locale, to i18n-budgets.test.ts — the file that already budgets the chip and register-slot copy for the same reason. Without it a retranslation quietly restores the sentence-as-heading. It's verified failing first: the old German title measures 98 against it, and a title that goes missing fails as "is missing" rather than passing vacuously. Say the word if you'd rather not carry the extra test.

Unrelated, found while doing this: the PR description is stale in two places. It lists src/components/molecules/FeedbackBanner/ and a FeedbackBanner.test.tsx, and claims a spec asserts the copy avoids fake / removed / deleted. All three went away in 410ed78, which replaced that component with the Alert atom — the description was written before it and never refreshed. I'll correct it once CI is green on this head, so the preview links point at a build that has your copy in it.

Lean gate green locally: lint · typecheck · 114 files / 1509 unit specs (up 10, the new per-locale budget assertions).

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Post-event feedback: land the reader on Atlas, not a dead-end card

3 participants