Repository navigation
Conversation
Pulls sydevs/SahajCloud#1027: the UserSubmissions `location` group and the closed `regionHint`, Events' virtual `offersMailingList`, and the `submit` translation tab plus `registration.form.subscribe`. The OpenAPI snapshot is untouched: `pnpm types:openapi` answers 401 here. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tion `sendProposal` posts a `type: 'proposal'` row on the shared intake, beside `createRegistration` and `sendReport`, with the same Turnstile header and refusal re-cast. Its `proposed` patch is filtered to `PROPOSABLE_EVENT_FIELDS`, which a type-level check keeps clear of SahajCloud's privileged fields, so `proposed_field_invalid` cannot be produced from here. `location` carries the place, region and country Mapbox ids; an id the column would refuse is dropped. `region` and `regionHint` are never sent. `RegistrationForm` offers a mailing-list box when the event's `offersMailingList` is true, and a ticked box sends the `subscribe: yes` pair. `getEventDoc` selects the flag, the one read where SahajCloud resolves it. Part of #147. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n behind the panel A visitor opens the flow from the foot of any list (`/add`, no place in context) or from a region or venue page (`<region>/add`, the address search starting near it). Five steps — Where, When, Contact, About, Review, with Contact and About skippable and a details step off Review — edit one draft in `useListingDraft`. The base sheet renders that draft live through `EventDetails`' new preview mode; the step panel is a second, non-modal sheet DrawerStack mounts beside it, from the right when the widget is wide and rising from the bottom when it is narrow, shrinking to a bar on review, where each listing section carries an Edit link back to its step. A map-less embed renders the panel above the listing instead. `lib/proposal.ts` holds the pure half: the geocoded place with its own and its parent layers' Mapbox ids captured at the retrieve, step validation, the Events patch, the live preview and the zone a nearby listed class lends a picked place. `MapSearch` gains `types`, `proximity` and `initialQuery` so the city search and the region start work. `add` and `correct` join `RESERVED_SLUGS`, `StackEntry` and `resolveStack`, and `submit` joins the translation tabs. The new `submit.*` keys are wired against SahajCloud#1027's names; the English snapshot does not carry them until `pnpm sync:translations` runs. Part of #147. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A published class now ends with "Suggest a correction", which opens `<event-path>/correct`: the same panel and live listing as adding a class, opened straight on Review with the listing prefilled from the published class. That opening draft is also the diff's base, so the proposal names its `event` and carries only the leaves the visitor changed — a section nobody touched sends nothing, however lossy the round trip from the SahajCloud shape. A reviewer's live preview offers no correction. Part of #147. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…turns to review The widget never reads a class's join link, so a correction to a class that is already online opened with the link blank and could not pass Where. A blank link now keeps the stored one there; a class becoming online still has to supply it, and a typed link is still checked. Once review has been seen — and a correction opens there — the step an Edit link reaches goes back to review on Next or Skip, rather than walking every step after it again. Part of #147. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A client read of a global has needed `select` since SahajCloud#710, so the sync answered 400 for every key. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the flow's title
childRoute('/', x) now writes /x rather than //x, so addClassPath no longer
special-cases the root. submitTitleKey(kind) sits beside isSubmitEntry and
titles the panel, the listing, the drawer chrome and the step form.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…, email and zone helpers - eventToDraft reads the zone and first session through scheduleTimeZone and scheduleStart, so a malformed stored zone falls back to UTC as it does on every other surface, and untilDate is read in that validated zone. - previewSchedule spreads the patch already built for the listing, converting only the two instants; the day boundary is computed once, not per session. - WEEKDAYS is WeekdaySchema.options; isWebUrl lives in lib/url beside validateWebUrl; isEmail is zod's email check, as the report form uses. - viewerTimeZone() in lib/time replaces three copies of the local-zone read. Co-Authored-By: Claude Opus 5.5 <[email protected]>
refusalCopyKey(error | code, map, fallback) reads the code off either refusal class, or a bare code for a story's seeded refusal, through hasOwnProperty. ProposalForm, ReportIssueForm and RegistrationForm all use it, so the registration form no longer resolves a prototype name through `in`. Why two codes take the generic copy is now said once, beside the union. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…apping props
`query: 'url' | 'read-only' | { initial }` replaces syncToUrl plus the
initialQuery-as-mode-switch. 'read-only' is the old syncToUrl={false}: it still
shows the URL's ?q and never writes it, so the error screens keep their
behaviour; { initial } is the add-a-class form field.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- LanguageMultiSelect (molecule, with story) is the checklist behind a field that both the Language filter and the details step render; SearchFilters' markup and behaviour are unchanged. useLanguageOptions labels codes once and sorts them with an Intl.Collator in the UI locale, memoized, for both; feedLanguageCodes (lib/events) reads the codes out of the feed. - ProposalForm's footer derives where Back goes instead of a branch per step; the proposal is built once on submit and handed to the mutation; one local ValidatedInput carries the FormField + Input + aria-describedby wiring. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…g into a preview mode EventDetails is about published classes again, with two composition points: `sectionTrailing(section)` puts content at the end of a section's heading line, and `actions` replaces the caveat, Register and the action row. About renders once, with its sanitized HTML memoized on the description. The add-a-class listing builds its Edit links and contact lines in SubmitView's ListingDetails, so the organism no longer imports the proposal module or any submit copy. "Suggest a correction" moves to EventView, with its live-preview check. The listing also opts out of the IP lookup through IpLookupContext, since nobody previewing a draft asked for a localized time. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…Stack off the draft store - submitPanelPlacement(top, hasMap) in lib/shape/path says whether the add-a-class panel is a sheet beside the listing or inline above it; DrawerStack and SubmitView both read it, so they cannot disagree. - opensTall(kind) names the views a bottom sheet opens at its near-full snap (the calendar and both flows), replacing the snap effect's `|| submitting`. - DrawerStack no longer reads useListingDraft. SubmitPanel marks its own content data-compact on review, and the sheet docks to a bar through has-data-compact classes from submitPanelLayout. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…costly parts - SubmitView's listing reads the draft through useDeferredValue, so the step panel answers each keystroke first. - The schedule preview, whose session projection loops, is memoized on the six fields it reads (draftPreviewSchedule); a correction's base patch is built once per session. previewEvent takes both as optional precomputed inputs. - The feed hints read the languages through feedLanguageCodes, the helper SearchFilters uses, under fetch.ts's GEOJSON_QUERY_KEY. - The draft store's start takes the opened listing whole: start(key, opened). Its comment block shrinks to the two lines that carry a reason. Co-Authored-By: Claude Opus 5.5 <[email protected]>
sendProposal and the runtime half of types/proposal (PROPOSABLE_EVENT_FIELDS, the Mapbox id guard, the privileged-field check) move to config/api/proposal, which ProposalForm imports directly rather than through the api object, so none of it ships in embed.js or the standalone shell; @/types keeps only the types. The eager graphs drop 0.2 KiB gzipped each, and no `type:`proposal`` string remains in an eager chunk. sendReport and sendProposal share contextSubmissionData(context) and postUserSubmission(json, token, fallback), and the proposal filter keeps only its allowlist test — JSON drops an undefined value on its own. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Payload-merge reason lives on ProposedEventPatch, the offersMailingList single-read note in fetch.ts, and the proposal sender's docblock keeps its summary, the allowlist sentence, the ⚠ and one line on location. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The EventView and proposal-sender specs ran against a mocked @/config/i18n, which put that module's per-edit selection over its ceiling of 16. Neither needs it: i18n boots synchronously from the snapshot, so both now read the real module and assert on the correction href rather than its copy key. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…er writes it setQuery's parameter shadowed the new `query` prop, so the mode check compared the typed text with 'url': the header field stopped writing ?q, and typing "url" into an add-a-class field wrote ?q=url. The parameter is `text` now. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ty is sent The no-changes check read only the patch, but an online class's city travels in `location` alone, so moving it was refused as nothing changed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…a correction The address patch wrote a missing part as undefined, which the diff skips and SahajCloud's leaf-by-leaf merge then left as it was, so the old postcode and subdivision survived on the new venue. Every leaf is now stated, null for what the picked place lacks. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tails step The patch turned a website that was not an absolute http(s) URL into null, which in a correction silently cleared the stored one. The details step now refuses it with the existing "Enter a link starting with https://" copy (submit.errors.online_url), Back validates before returning to review, and a submit sends the visitor there. No new copy is needed, so the scheme-less prefixing route was not taken. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The When step accepted a last date earlier than the first, which would have
sent an until-date before the first session. It now flags the first date,
reusing submit.errors.first_date ("Choose the first date.") as the closest
existing copy; dedicated copy needs a SahajCloud key. An end time before the
start is left alone, since withEndTime reads it as an overnight session.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Picking a place kept whatever zone an earlier pick had inferred when the new one had no nearby class to lend a zone. It now falls back to viewerTimeZone(). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ils round trip Both lived in the review bar's own state, which unmounts whenever the visitor leaves review, so each Edit or Add more details wiped them. They now sit in the listing-draft store as `sender`, cleared with the rest of the session on a fresh start, and reach the form as props. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r the review state The step panel's sheet is keyed on direction, so crossing the breakpoint remounts SubmitPanel, and the session hook restarted any sent draft it found. A session now records the history entry it opened on, and a sent draft starts over only when the flow is reopened on a new entry. Whether review was reached moves into the store too, so a remounted form still returns an Edit straight to review. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r the panel opens useFeedHints read the cache once, memoized on the query client, so a feed that arrived later left the zone and language hints empty for the whole session. It is now a disabled observer of the feed's key (moved to use-feed-hints.ts), which re-renders when the feed lands and never fetches it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…prose Co-Authored-By: Claude Opus 5.5 <[email protected]>
…14–120 lacks The wide step panel shrank to the review bar through has-data-compact classes, so on the build's Firefox floor it stayed full height. SubmitPanel now reports its compact state through an onCompactChange callback (in a layout effect, so the sheet resizes before paint, and false on unmount), and DrawerStack feeds it to submitPanelLayout without reading the draft store. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A commit of sydevs-bot's own is now the head, and this approval did not cover it.
|
The newest commit, bf115a7, is sydevs-bot's own, so it is not approved on your behalf. Read it, then say 🤖 sydevs dispatcher |
#476 rewrote the drawer header: every page below the root opens with "Back to …" and the standalone X went with the peek strips. This branch's submit flow had its own X and its own strip label. - The X moves to `views/nav.tsx` as `CloseButton`, which `NavHeader` now renders instead of repeating its markup. The add-a-class step panel keeps it: its listing stays live behind it, which is what an X means here. - The submit listing is a page in the stack, so its header takes `NavRow` like every other page. `EventHeader`'s `trailing` slot is gone with #476. - `stripLabel` and `stripsRef` go with the strips #476 deleted. - `AGENTS.md` no longer says the filters are the only X. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVcSBPwJ51Gv7CQNHL
sydevs-bot
left a comment
There was a problem hiding this comment.
1 question for the reviewer, one per thread.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
|
Merged
Lean gate green: lint, typecheck, 206 files / 2539 tests. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
There was a problem hiding this comment.
Approved for Ardnived, who wrote it: GitHub refuses an author's own approval. CI is green and the automated review has run. Enable auto-merge when you want it merged: the queue tests it against its base. 🤖 Written by the sydevs autonomous loop — see what this is
|
Approved, but this thread still waits on you, and the ruleset will not merge until it is resolved: #318 (comment). Reply there, or resolve it. 🤖 sydevs dispatcher |
main reworked the geocoder field (#485, #495), the drawer snaps (#492, #495) and the panel header (#490) while this branch was open. Every hunk keeps both sides' behaviour. - `MapSearch` keeps this branch's controlled `value`/`onChange` — the Where step holds the draft's text, `SearchField` holds `?q` — and takes main's settle delay, measured results band and overlaying not-found message. Main's new spec held the text inside the field, so it now owns it the way both callers do; watched failing against the settle removed. - `NavHeader` takes main's `pendingTitle`, without its `t`: the X it named is this branch's `CloseButton`, which brings its own. - The mobile snap reads `opensTall(kind)` over main's `fitsContent`, so calendar, add and correct stay tall and event and Share still fit their own content. The two predicates are disjoint. - `EventHeader` takes a `title` rather than an event since #490, so the submit listing and its story pass one. - `CHANGELOG.md`, `DESIGN_SYSTEM.md` and the two import hunks are unions. DESIGN_SYSTEM.md is rebuilt on main's restructure, carrying this branch's `ProposalForm` row, `SubmitView`, `CloseButton` and the `Link` footnote note. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjY4MwaWAk4ZhpqxBB5
|
Merged
🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
…t-a-class # Conflicts: # src/components/molecules/EventFacts/EventFacts.tsx
- ValidatedInput is gone: every text field is FormField's render prop around the Input or Textarea atom, so the wiring comes from the field. - "How often?" is a fieldset named by its legend, holding a form-size, required ToggleGroup; "In person / Online" is form-size and required too, so neither re-press clears the answer and neither needs a caller guard. - FormField keeps its label as a caption for a composite picker with no id (the address, city and languages pickers); only a control that names itself (`name`, no `htmlFor`) drops it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The reviewer chose C: name the code after what is submitted, since UserSubmissions covers every submission kind. The component, the config/api module, lib/proposal and types/proposal move to the event-submission name, with their exports (sendEventSubmission, buildEventSubmission, EVENT_SUBMISSION_FIELDS, ...). The wire stays as SahajCloud defines it: `type: 'proposal'`, the `proposed` patch and `proposed_field_invalid` are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t-a-class # Conflicts: # DESIGN_SYSTEM.md # src/components/organisms/EventDetails/EventDetails.badge.test.tsx # src/components/organisms/EventDetails/EventDetails.tsx
|
Renamed to Merged
Lean gate green. Generated by Claude Code |
|
The session for address-review did not finish after 3 attempts. I have stopped retrying. A mention ( 🤖 sydevs dispatcher |
|
The session for resolve-conflicts did not finish after 3 attempts. I have stopped retrying. A mention ( 🤖 sydevs dispatcher |
Summary
Change outline
Contract — what the widget sends and reads
Flow — the add / correct panel
Files
Preview
Preview pending — the CI smoke job publishes the
pr-318Workers alias; deep links (?atlas=/add, a class's/correct) follow once it is up.Contract impact
pnpm types:cms;pnpm types:openapireturned 401 here, so the OpenAPI snapshot is untouched. English snapshot synced from production after thetranslationsseed ran.add/correct: already merged in feat(atlas): reserve the add and correct view segments in the SEO route resolver SahajCloud#1028 (SEO resolver) and feat(map): reserve the add and correct atlas view segments WeMeditateWeb#197 (/maproute parser).docs/embedding.mdandCHANGELOG.mdupdated.Test results
pnpm build✓,pnpm size✓ (standalone 312.7 / embed 314.4 / loader 2.8 KiB — +0.4 / +0.3 / 0 vs main),pnpm ladle:build✓Manual verification
/addwith no context: steps, live listing, mobile bottom sheet and desktop side panel; Review collapses to the bar with Edit links.proposalrow withlocation.placeIdin SahajCloud.event) is sent; submitting unchanged shows the no-changes message.offersMailingListis true: the box shows and spawns asubscriberow; absent where false.Notes for reviewer
submit.errors.first_date. Proper wording needs a SahajCloud translation key.Detail
Review passes:
/simplify(4 lenses, all applied except a shared overlay wrapper — the two drawers differ in six props);/code-review high(10 findings, all fixed, incl. aMapSearchshadowing bug that stopped the header search writing?q);/security-review(no findings ≥ 8: the preview renders visitor text as escaped text nodes through DOMPurify, website links pass anhttp(s)new URLcheck, and the patch is allowlisted).pr-review-toolkitis not installed here.Decisions the ticket left open: map-less embeds render the panel inline above the listing; weekly repeats on the first session's weekday, monthly on its date; corrections diff leaf by leaf and send
nullto clear; contact email and join link are not read from a class, so a correction keeps the stored values when left blank; plain-text descriptions become one rich-text paragraph per line.Closes #147
🤖 Generated with Claude Code