Repository navigation
Conversation
Closes #2 `address.room` was declared in `EventAddressSchema` and selected by the fetcher, and read by nothing — so a hall's "Community Room", edited in the CMS, appeared nowhere on any site. The repo's oldest open issue, and a one-token cause. `whereLine` in `useEventDisplay` is the only place a street address is composed, so the fix reaches the list card, the event details, the registration view and the calendar export at once. The order is `street, room, city`, matching SahajCloud's own `addressOneLine` (`street, room, city, region, country postCode`) rather than a second opinion — the widget and the SEO endpoint now describe one venue the same way. Extracted as the pure `composeWhereLine`, mirroring `composeCalendarLine` beside it, because a rule living only inside the hook is one four surfaces inherit and none of them can pin. Its spec also covers the inactive-venue branch, which must give the municipality and never the street: a dormant listing must not send anybody to a door that no longer opens. Verified by reintroducing the defect and watching the two room assertions fail. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
CHANGELOG covers visible behaviour, and an address gaining a line is exactly that: a host who noticed the Room field going nowhere gets told it now works. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Deploying sahajatlas-design with
|
| Latest commit: |
90b7e34
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0e47b35e.sahajatlas-design.pages.dev |
| Branch Preview URL: | https://fix-render-address-room.sahajatlas-design.pages.dev |
Deploying sahajatlas with
|
| Latest commit: |
90b7e34
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1390c99c.sahajatlas.pages.dev |
| Branch Preview URL: | https://fix-render-address-room.sahajatlas.pages.dev |
This was referenced Aug 30, 2026
Contributor
Author
|
This is not the right solution, closing for now. We will reraise it later |
4 of 15 tasks
15 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2 — the repo's oldest open issue.
What was wrong
address.roomwas declared inEventAddressSchema, selected by the fetcher, and read by nothing. A hall's "Community Room", edited in the CMS, appeared nowhere on any embedding site. One-token cause, dropped on every surface for every client.The fix
whereLineinuseEventDisplayis the only place a street address is composed, so one change reaches the list card, the event details, the registration view and the calendar export at once.The order is
street, room, city, matching SahajCloud's ownaddressOneLine(street, room, city, region, country postCode) rather than a second opinion — the widget and the SEO endpoint now describe one venue the same way instead of two ways.Why it moved into a pure function
Extracted as
composeWhereLine, mirroringcomposeCalendarLinedirectly beside it. A rule living only inside the hook is one four surfaces inherit and none of them can pin — which is howroomwent missing for this long with a green lane.Its spec also covers the branch that was previously untested and is easy to break while editing this: an inactive venue gets the municipality and never the street, room included. A dormant listing must not send anybody to a door that no longer opens.
Verification
roomback out of the join turns exactly the two room assertions red; the inactive and fallback cases stay green, which is what tells you the new coverage is the room and not the extraction.Manual check worth doing: open an event whose venue has a Room set and confirm it reads
12 Mill Lane, Community Room, Torontoon the card, in the details, on the registration form and in a downloaded.ics.🤖 Generated with Claude Code