Repository navigation
Conference committees: Follow and see new input in the newsfeed and the email digest - #2361
Merged
Merged
Conversation
…its own page Readers come to conference committees to give input, so the navbar's Conference Committees entry is now a menu, like About and Learn: what a conference committee is, the Conference Explorer, then under "Taking input" every conference still sitting, in the rail's order. It opens on a click on desktop and on a phone alike. The list is read in the browser once per visit rather than added to every page's props. /conferences is now the hero alone, with a link to the conference the landing used to open on and one to the explorer; a court with no conferences keeps the hero with only the explorer link, where it used to redirect. Conference pages lose the hero above them, and with it the scroll snapping and landing logic that existed only to move between the two. The hero's button now reads "Browse the committees". Unlike the brief, a click on the entry opens the menu rather than the hero; the hero is the menu's first item, to match About and Learn. Closes #132 Verified: yarn check-types, yarn lint (nothing in changed files), yarn check-formatting (only local ignored files flagged), yarn test:website (43 suites) and yarn test (24 suites) pass. Against yarn dev on the dev backend, before the final cleanup: the menu opens on click at 1280px and 390px, items in order with divider and header, Escape closes it, a conference link navigates and closes it, and it lists the 11 appointed conferences the backend holds; /conferences shows the hero alone. Not verified: the menu after the final cleanup moved its dropdown shell into Navbar.tsx; conference pages in a browser (no hero, section jumps under the navbar); keyboard navigation through the menu items; the hero link when the court has no conferences, outside unit tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…not the menu The Conference Committees menu now opens with the Conference Explorer and the conferences taking input. "What is a conference committee?" moves to the heading of the explorer and of every conference page, where a reader who lands on one without context can find it: at the right of the explorer's title, and over the "Share your input" button on a conference page, with the title level with the button. On a phone the link sits over the title (the picker there) and the button stays at the left under it. This replaces the menu's first item described in the previous commit. Verified: yarn check-types, yarn lint (nothing in changed files), prettier --check on the changed files, and yarn test:website (43 suites, 286 tests, with new tests for the link on both pages) pass. Against yarn dev on the dev backend at 1280px and 390px: the link's place on the explorer and on a conference page taking input, the menu without the entry, and the title band pinned under the navbar after scrolling. Not verified: a conference page not taking input, where the link sits level with the title, in a browser; opening the phone picker after it moved into the title row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d hide them everywhere behind a flag The rail beside a conference listed every conference, so the ones whose report is filed, enacted or dissolved crowded the ones still taking input. They now sit in a "No longer taking input" group below the rest, in the rail and in the picker that stands in for it on phones. The group starts folded, opens on arriving at a conference in it so the one being read is never hidden, and otherwise stays as the reader left it while they move between conferences. A full page load folds it again. A new closedConferences flag decides whether those conferences exist on the site at all. Off, the loaders leave them out, so they are gone from the rail, the picker, the explorer and the landing, the bill banner and the hearing's link back name none, and their pages are not found. It is on in development and off in production and test. The flag is read on the server, so a ?closedConferences=enabled query cannot bring them back. "Still sitting" is now one shared predicate, used by the sort, the grouping, the flag and takesTestimony, so they cannot drift apart. Closes #133 Verified: yarn check-types, yarn lint, yarn test:website and yarn test pass, with new loader tests for the flag on and off and rail and page-switching tests for the group. On yarn dev against the dev backend at 1280px and 390px: the group folded on an appointed conference and open on an enacted one, the reader's choice kept across conferences, and the phone picker staying open while the group is expanded. With the development default flipped off for the check: an enacted conference's page 404s, the explorer lists only appointed conferences, the landing opens an appointed one and a bill in an enacted conference has no banner. Not verified: a hearing page linked to a closed conference (jest only); a reportFiled or dissolved conference in a browser, since the dev backend has only enacted ones; which flag defaults the Vercel deployments use, since nothing in the repo sets NEXT_PUBLIC_ENV_NAME. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eed and the email digest
A reader could follow a bill, a person or an organization, but not a
conference committee, and conference input is kept off its bill's
followers on purpose, so it reached only the author's followers. A
Follow control now sits beside Share on a conference's page, behind the
notifications flag. Following writes a conference subscription; pressing
it again, or Unfollow on the profile's Following tab, removes it. A
signed-out reader is sent to log in.
New input on a followed conference, by anyone but the reader, reaches
their newsfeed as "You follow {conference}" (and the author, when they
follow both, on the same card), and their digest in a new Conference
Committees section with the count for each stance, linked to the
conference's input. The notification event names the conference once,
when the input is published, so neither path reads it again.
Once a conference stops taking input nothing new can arrive. The control
then shows only to readers who already follow it, so they can unfollow,
and it stays after an unfollow so that can be taken back. Subscriptions
are kept for status alerts later. A conference hidden by the
closedConferences flag still lists on the Following tab, unlinked.
The follow logic in BaseFollowButton moves into a useFollowTopic hook
that both controls use. A conference's name and whether the site shows
it are each one shared rule now, and the integration tests share one
conference fixture.
Closes #135
Verified: yarn check-types, yarn lint, yarn check-formatting, yarn test
and yarn test:website pass, with new tests for the digest's conference
section and template, the event's conference name, the Follow control
and the newsfeed title. Against the Docker emulators,
conferenceFollowing.test.ts (subscription shape, unfollow, another user
refused, and a follower's feed getting the input while the author's
does not) and testimony.test.ts pass. Running deliverNotifications
against the emulators wrote a digest with the conference section and
stance counts, read in a browser. The conference page's control at
1280px and 390px.
Not verified: the scheduled 9:47 ET run, since the emulator never fires
it; unfollowing from the Following tab in a browser; the control on a
closed conference in a browser.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cosign reached the newsfeed as its own words alone, so one posted
without a line of its own showed as an empty quote, and none said what
was cosigned. The card now tags it Cosigned, shows the cosigner's line
when they wrote one, then "Cosigned {author}'s input:" with that input
quoted under it, in the order the cosign's email to legislators uses.
The notification event carries the cosigned input's id, author and text,
read once when the cosign is published, so the newsfeed reads nothing
more. It is the input as it read then; a later edit does not reach feed
items. When the cosigned input is gone the field is empty and the
notification still goes out. Earlier feed items have no such field and
look as before.
Verified: yarn check-types, yarn lint, yarn check-formatting, yarn test
and yarn test:website pass, with new tests for the event on a cosign,
on a cosign whose input is gone and on input that cosigns nothing, and
for the card with a line of its own, without one and on input that
cosigns nothing. Against the Docker emulators, conferenceFollowing.test.ts
passes with a new case: a cosign with no line reaches the conference's
follower with the cosigned input attached.
Not verified: the card in a browser.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
codeforboston#2353 landed upstream as one squashed commit identical to this branch's first two, so its files keep this branch's versions; a plain merge would bring back lines this branch removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in upstream/main through the updated codeforboston#2356 branch, which kept its own versions of the files codeforboston#2353 touched. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r as the site does A cosign's card still opened with "gave input to the conference committee", which read as input of its own; it now says "cosigned input to the conference committee". Other conference input keeps its wording. The quoted author is named as the conference page names them, by full name or else display name, so an organization without a full name no longer reads "Cosigned ’s input:". That rule moves into the code the site and the functions share. The event now carries only the author's name and the first 600 characters of the cosigned input, the most the card shows, instead of the whole input copied onto every follower's feed item; the id and author uid it also carried were never read. Verified: yarn check-types, yarn lint, yarn check-formatting, yarn test and yarn test:website pass, with new tests for the heading, the display name fallback and the trimming. Against the Docker emulators, conferenceFollowing.test.ts passes. The new heading on the newsfeed at desktop and phone width, in a browser. Not verified: a trimmed quote or a display-name author in a browser. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
codeforboston#2356 landed upstream as one squashed commit whose tree is identical to the collapse-conference-133 branch this one already merged, so its files keep this branch's versions; a plain merge would bring back lines this branch changed since. The rest is upstream's hearing sidebar and MCP server fixes, unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
The digest's Conference Committees cards counted new input as "New Testimonies", the bills' and people's word, while the site calls what readers give a conference committee input. They now say "New Input", the same for one item or many. People's cards keep their wording. Verified: yarn test and prettier pass, with the digest template test now checking for "New Input". A digest rendered from the emulators, read in a browser, shows "New Input" on each conference card. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…st's conference section A conference card in the digest read "New Input" whatever the count. It now says "New Inputs" for more than one and "New Input" for one, as people's cards switch between "New Testimonies" and "New Testimony". The line under the section for readers following more than four now says the other conference committees "received input" rather than "received testimony". Verified: yarn test and prettier pass, with the digest template test checking both forms of the label and the new line. A digest rendered from the emulators, read in a browser, shows both changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dasanchez
marked this pull request as ready for review
November 16, 2026 14:09
dasanchez
requested review from
Mephistic,
alexjball,
kiminkim724,
mertbagt,
mvictor55,
nesanders,
sashamaryl and
timblais
as code owners
November 16, 2026 14:09
Mephistic
approved these changes
Nov 16, 2026
This branch was successfully deployed
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.



Readers can now follow a conference committee from its page, the way they follow a bill or a person, and hear of new input on it in their newsfeed and in a new Conference Committees section of their email digest (shown as "New Input". Until now conference input reached only the author's followers, since it is kept off its bill's followers on purpose. The newsfeed also tags a cosign as one and quotes the input it cosigns, so a cosign without words of its own no longer shows as an empty quote.
Closes hyphacoop#135
What's in it
🤖 Generated with Claude Code