Skip to content

Remove the FileDef preview stage's floating provenance tag - #5814

Open
lukemelia wants to merge 1 commit into
mainfrom
cs-12551-fitted-filedef-previews-translucent-provenance-tag-native
Open

Remove the FileDef preview stage's floating provenance tag#5814
lukemelia wants to merge 1 commit into
mainfrom
cs-12551-fitted-filedef-previews-translucent-provenance-tag-native

Conversation

@lukemelia

@lukemelia lukemelia commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

What this does

FilePreviewStage floated a provenance tag over every real preview — the profile's previewSource uppercased ("NATIVE" for the HTML/Markdown families, "EXTRACTED" for archives) — absolutely positioned at the stage's top-left with a translucent background. That corner is exactly where several families draw their own content: the HTML summary and Markdown snippet begin their document title there, and the zip family's archive tree starts its first row there. In all of those, the tag overprinted the content's first words into an unreadable jumble (observed on staging in the fixture gallery for HTML and Markdown fitted tiles, and in the zip embedded view).

The overlay is removed in every format. Provenance keeps a legible home where layout actually reserves space for it:

  • the isolated shell's metadata chrome already describes the render source in prose ("The browser displays…", "Structured…", "Rendered by Boxel…"), and
  • the fitted shell's metadata strip identifies the file.

Test plan

  • packages/host/tests/integration/components/file-def-format-templates-test.gts: a preview-bearing FileDef mounts its family renderer in embedded, isolated, and fitted with no floating tag over the stage in any of them. Full module: 16 tests, 57 assertions, passing locally against a full dev stack.
  • Host typecheck and eslint clean.

Fixes CS-12551.

🤖 Generated with Claude Code

@lukemelia lukemelia changed the title Keep the FileDef preview provenance tag out of fitted cells Remove the FileDef preview stage's floating provenance tag Aug 18, 2026
@lukemelia
lukemelia force-pushed the cs-12551-fitted-filedef-previews-translucent-provenance-tag-native branch from de43558 to 5e0da40 Compare August 18, 2026 19:21
@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Preview deployments

Host Test Results

    1 files      1 suites   2h 12m 16s ⏱️
4 302 tests 4 288 ✅ 14 💤 0 ❌
4 321 runs  4 307 ✅ 14 💤 0 ❌

Results for commit 9d8a0a6.

Realm Server Test Results

    1 files      1 suites   15m 39s ⏱️
2 174 tests 2 174 ✅ 0 💤 0 ❌
2 254 runs  2 254 ✅ 0 💤 0 ❌

Results for commit 9d8a0a6.

The stage floated a provenance tag (previewSource uppercased — NATIVE,
EXTRACTED, GENERATED) over every real preview, absolutely positioned at
the stage's top-left with a translucent background. That corner is
where several families draw their own content: a prose preview's title
(HTML summary, Markdown snippet) and an archive tree's first row all
rendered with the tag overprinting their first words into an
unreadable jumble.

The overlay is removed in every format. Provenance already has a
legible home: the isolated shell's metadata chrome describes the
render source in prose ("The browser displays…", "Structured…"), and
the fitted shell's metadata strip identifies the file. A test pins
that the stage floats no tag over the family's render in any format.

Fixes CS-12551.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@lukemelia
lukemelia force-pushed the cs-12551-fitted-filedef-previews-translucent-provenance-tag-native branch from 5e0da40 to 9d8a0a6 Compare August 18, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant