Repository navigation
Marketing: show a member's own page whatever its status (frame /p/<public_id> or the preview link, not the stranger's slug) - #635
Merged
Conversation
An unlisted page's /p/<slug> 404s by design and a draft has no public address, so Marketing showed 'This page isn't published' for a member's own page (FL-007 freelabel-grid-plan, published + unlisted). The sidecar now answers /iris/page-address with the member's address for their own pages: /p/<slug> (public), /p/<public_id> (unlisted), or the owner's preview link (draft/private), rebuilt on heyiris.io. The tab frames it and moves a sign-in code onto it; the browser path is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Issue for this PR
Closes # (no issue yet: reported live by Alex on 2026-11-20 from the Marketing tab)
Type of change
What does this PR do?
Marketing framed
https://heyiris.io/p/<slug>for every pinned page. That's the address a stranger uses. For an unlisted page the slug 404s by design (fl-api #178589: only/p/<public_id>resolves), and a draft has no public address at all. So a member's own page showed "This page isn't published" inside the app (FL-007freelabel-grid-plan, published + unlisted).The rule this implements: inside IRIS Desktop a member sees their own page whatever its status; in a browser the page keeps its visibility.
Engine: new
GET /iris/page-address?slug=(src/iris/page-address.ts). Using the member's own token, it finds the slug among the account's own pages (the same listpage-pinchecks), then returns:/p/<slug>(one request, as before)/p/<public_id>?preview=true&token=, from fl-api's management fields, which fl-api only hands to someone who may manage the page)Every address is rebuilt on
heyiris.iofrom the parts fl-api returned, never taken whole from the response. Anything unmeasurable falls back to the plain/p/<slug>, exactly what the tab did before.App:
iris-pinned-page.tsxasks for that address first, then runs the frame check, the frame and "Open in browser" against it. A sign-in's one-time#atlas_codemoves onto the member's address (signedMemberUrl).memberFrameUrlonly accepts heyiris.io/p/…with at mostpreview+token, so no other host, fragment or query gets framed.Browser: unchanged. Nothing here changes what
/p/<slug>serves.Not fixed here (server, separate): a page bound to a dataset whose schema isn't
settings.publicgets no rows (iris.data.has(key)is false, with no error). FL-006/007 bindfreelabel-cover-drafts, which lacks it, so they now render in the tab but without their data until that's addressed.How did you verify your code works?
On iris-hive-001, clean worktree off
iris/1.18.23, pinned bun 1.3.14 lockfile:packages/app:iris-pinned-page-model.test.ts, 15 pass (5 new: unlisted, draft, refusals for other hosts/fragments/queries, sign-in code moved onto the member address)packages/opencode:httpapi-iris-page-address.test.ts(7 new, through the real route) +page-pin+page-signin, 16 passbun run typecheckin both packages: 0 errorsresolvePageAddress:Not yet done: a compiled desktop preview clicked through by a person. That's the next step before release.
Screenshots / recordings
Before (Alex's screenshot): Marketing → "The grid, planned. The posts, daily." → This page isn't published · /p/freelabel-grid-plan is missing, a draft, or renamed. After: pending the desktop preview.
Checklist
🤖 Generated with Claude Code