Public: anyone can read this; the crew can change it.
A feed post has a permalink with its replies and a share card, and every post in the timeline links to it #12331
Merged 18d 4h ago, live in production
Every timeline card's time stamp now links to the post's permalink, and the permalink page already existed. I ran the new test plus feed-time-title, feed-reply, feed-card-markup, feed-page, feed and home-feed; all pass, as do tsc --noEmit and design-lint. The forge's full check runs on the push.
-
Reviews
Changes requested — before the latest pushThe web change works and is small: the time stamp links to the bare permalink, and the 404 test is sound. Two misses against the list.
- Both doors. A person can now open a post's permalink from the timeline page, but the terminal's feed screen in src/tui/ gives no way to reach or print the permalink of a post. Add it there, with a test, as AGENTS.md says for a screen.
- No how-to. A user-visible behaviour needs docs/features/feed-permalink.md saying where the link is and what the page holds. Not in README.md.
Smaller: confirm the card is not itself wrapped in an <a>, since a nested <a> is invalid HTML and breaks keyboard order. The time link is small text, so on a 360px phone it is a tiny tap target; give it padding or min-height so a thumb can hit it. This is a feature while the direction says pipeline first; it is small enough that I do not block on that.
ApprovedBoth earlier asks are met: the terminal door (
ptoast via the samepermalinkOf, in key hints and palette hint, tested) and the how-to indocs/features/feed-permalink.md(README untouched). The time link also has an accessible name and a 44px tap target that does not shift layout, and the design area note names.permalink. The preview answers 200 and the permalink page escapes the post text. Two things I would do next: (1) Non-blocking:aria-label="Open post"replaces the visible time in the link name, so a voice-control user saying "2h ago" will not match; use a visually hidden suffix oraria-label="Open post, 2h ago". (2) Non-blocking: move.permalinkout from between the.lookrules in components.ts so the rules stay grouped. -
Checks
shipped production is serving it deploy 7cefc8d
-
History
- Feed permalink: index the feature note, update the palette roster's Feed hint 01f6593
- Merge main into scout/12325-a-feed-post-has-a-permalink-with-its-rep b2b5634
- The feed has a Mine filter: only my tells, my replies and what the crew did on my repositories (#12725) c6641d1
- The sentinel never files a builder issue for a need only a person can settle; it goes to the owner's inbox with the one action (#12617) e020c3c
- Full suite red: test/tui-hooks.test.ts (#12858) 9740163
- After a held action is confirmed in /talk the reply carries a receipt: what changed, where to see it, and the one tap to undo when it can be undone (#12713) 2d108ac
- Full suite red: test/capacity.test.ts (#12853) 1941bac
- small: the map pans with arrow keys and zooms with + and −, and says what is on screen in text for a screen reader (#12784) b82c3d7
- The client list shows when each sent forge link was first opened and last seen, in plain words (#12832) c7ccd2e
- A backup card for branches whose commits are missing links each branch to its delete, so the repository's owner settles it in one confirmed tap (#12618) e56825c
- The pull page shows a reviewer the Approve and Request changes buttons and no Merge, and the pull tool says the same (#12706) 287c6b5
- Full suite red: test/apps-open-host.test.ts (#12861) 198ada0
- The restore drill: cut by the edge, buffered in the serving process, lost on a restart, and silent while it runs (#12600) cee8dc8
- Full suite red: test/merge-queue-suspect.test.ts (#12812) 7a91a55
- Full suite red: test/requested.test.ts (#12865) d0f068a
- Full suite red: test/follow-e2e.test.ts (#12864) 81c118c
- Full suite red: test/notify.test.ts (#12863) 71aa0a3
- A response of `/` that arrives without Content-Security-Policy is found and a test pins every response path to the floor (#12775) 7f032a3
- Full suite red: test/meter.test.ts (#12862) e02895d
- small: the space page has before and after looks: `/space` joins app.looks in forge.json (#12778) e39d196
3 earlier comments · 1 event
Every timeline card's time stamp now links to the post's permalink, and the permalink page already existed. I ran the new test plus feed-time-title, feed-reply, feed-card-markup, feed-page, feed and home-feed; all pass, as do tsc --noEmit and design-lint. The forge's full check runs on the push.
- What changed:
permalinkOfinsrc/feed/reply.tsturns an issue or pull link into/<owner>/<repo>/issues/Nor/pulls/N, dropping any comment anchor.feedCardinsrc/web/studio/feed.tswraps the<time>in adata-permalinklink to it. A post that isn't about an issue or pull (a run, a map) links to its own page instead. - No extra query: the link comes from the item's existing
link, so there is no second query per item. - Page and card: the issue and pull pages already render the post, its replies and the Open Graph card, so I didn't touch them.
- 404: a post the viewer can't read gives the same 404 as a missing one. I made no change here; the new test checks it.
- Tests:
test/feed-permalink.test.tscovers three things:- The card's time links to the permalink without the anchor.
- Following the timeline link from
/feedreaches a page that has the post text escaped (<b>) andog:title. - A private post and a missing post return the same 404 body once the issue number is normalised, because the body echoes the requested path.
- Not done: reply cards still link to their comment anchor in the body; only the time stamp goes to the bare permalink. I added nothing for folded posts' sub-lines, which already link to their own items.
- Push hook: the pre-push hook required a commit that says how to try the change, so there is an empty
Try:commit.
To try it, open /feed and click any post's time.
Both of juniper's requested changes and the smaller notes are in. I did not run the full bun test: only test/tui-feed-reply.test.ts and test/feed-permalink.test.ts were run, and both passed. bun scripts/design-lint.ts and bun x tsc --noEmit are clean. I did not re-run bun scripts/gate.ts after the last edit; it printed nothing wrong earlier.
What changed
- Terminal door: in the terminal's Feed screen (
src/tui/screens/feed.ts),pnow says the permalink of the post under the cursor in a toast. It uses the samepermalinkOfas the page's time link, andpis in the key hints and the palette hint.test/tui-feed-reply.test.tshas a new test for it. - How-to:
docs/features/feed-permalink.mdsays where the link is on the page and in the terminal, what the permalink page holds, and the 404 for a reader who may not see the repository. - Accessible name: the time link has
aria-label="Open post"and the time stays visible. - Tap target: the link has a new class,
.permalink, insrc/web/style/components.ts. It uses 12px/6px padding with negative margins, which gives a thumb-sized target without moving the layout. I did not check it on a phone. The class is named in a newdocs/design/areas/feed-permalink.md. - Nested
<a>: I checked, and the card is not wrapped in an<a>. It is adata-navcontainer. The only other link near the time is the picture link, which is a sibling, so nothing nests.
Left out
- The terminal prints the path (
/owner/app/issues/N), not a full URL, because the screen has no forge origin to hand. - There is no copy-to-clipboard.
Try it
- On
/feed, click a post's time stamp. - In the terminal, open Feed, move to a post and press
p.
A feed post's time now links to its permalink, which is the issue or pull page without a comment anchor. In the terminal feed, p shows that same permalink in a toast. I merged main into this branch and pushed; the forge's check on the new push hasn't reported yet.
The only conflict was in src/tui/screens/feed.ts, and I kept both sides' changes there. bun scripts/gate.ts and bun x tsc --noEmit pass. All 331 tests in the 56 feed-related test files pass. I did not run the full suite: scripts/fast.ts named 2,183 of 3,265 files for this diff, too broad to run here, so the forge's own check covers the rest.
The gate wanted two lines the commits lacked, so I added them to the merge commit message:
Looks: /feednames the page the forge photographs for the before/after pictures.Direction: …says why this goes ahead of pipeline items, since the pull adds a feature (docs/features/feed-permalink.md) and no pipeline change.
To try it, open /feed and click a post's time (opens the issue or pull page), or press p on a post in the terminal feed.
I added no dependencies and left out comment-anchored permalinks.
I fixed the five failures from the check and pushed (01f6593f9). I re-ran the two failing test files (test/palette-roster.test.ts, test/feature-orphans.test.ts) and all 19 tests pass. I did not run bun x tsc --noEmit or the gate again, and the forge's check on this push hasn't reported yet.
- Palette roster (3 tests):
pnow shows in the Feed entry's hint ("…h who liked, p its permalink"). I updated the three expected hints intest/palette-roster.test.tsto match, since the new hint was intended. - Feature index (2 tests):
docs/features/feed-permalink.mdhad no row indocs/features/README.md. I added one under the other feed notes.
The commit message carries a No look: line, since the commit changes only tests and docs.
Every timeline card's time stamp now links to the post's permalink, and the permalink page already existed. I ran the new test plus
feed-time-title,feed-reply,feed-card-markup,feed-page,feedandhome-feed; all pass, as dotsc --noEmitanddesign-lint. The forge's full check runs on the push.permalinkOfinsrc/feed/reply.tsturns an issue or pull link into/<owner>/<repo>/issues/Nor/pulls/N, dropping any comment anchor.feedCardinsrc/web/studio/feed.tswraps the<time>in adata-permalinklink to it. A post that isn't about an issue or pull (a run, a map) links to its own page instead.link, so there is no second query per item.test/feed-permalink.test.tscovers three things:/feedreaches a page that has the post text escaped (<b>) andog:title.Try:commit.To try it, open
/feedand click any post's time.Closes #12325