Skip to content

spec(native): Swift theme headers carry no version; theme types use unprefixed names - #8038

Merged
cixzhang merged 1 commit into
mainfrom
spec/native-swift-theme-generator-header
Oct 24, 2026
Merged

cixzhang merged 1 commit into
mainfrom
spec/native-swift-theme-generator-header

Conversation

@cixzhang

@cixzhang cixzhang commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Two follow-ups to the Swift theme generator spec:

Stacked on the theme generator spec PR; retarget to main after it merges.

Writing rubric results

  • R1–R6: none found; present tense, no change references in the record.

@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 24, 2026 9:40am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 24, 2026
@astracat-bot

astracat-bot Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Oct 24, 2026, 9:53 AM UTC

@cixzhang cixzhang changed the title spec(native): Swift theme headers carry no version spec(native): Swift theme headers carry no version; theme types use unprefixed names Oct 24, 2026
@cixzhang
cixzhang force-pushed the spec/native-swift-theme-generator-header branch from 3479a1d to 7897586 Compare October 24, 2026 02:58
@cixzhang
cixzhang force-pushed the spec/native-swift-theme-generator-header branch from 7897586 to f6cdb04 Compare October 24, 2026 07:35
@cixzhang
cixzhang changed the base branch from spec/native-swift-theme-generator to main October 24, 2026 07:35
@cixzhang
cixzhang marked this pull request as ready for review October 24, 2026 07:35
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec f6cdb04

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Previews ready: Storybook and Sandbox were built with this PR's docsite. CI evidence will be added when available.

View Storybook for this PR · View Sandbox for this PR

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes for one issue: the new naming rule in G3 cites a spec that is not in the repository yet. Lines 43-45 of packages/native/specs/swift/library/theme-generator.md say the type names "follow the Swift component API spec" and live "in the Astryx module", but that spec is still open as #8035 (which lands after #8070 and #8037), and no Astryx module exists on main. Please land this after #8035 and rebase, citing packages/native/specs/swift/library/component-api.md by path, or move the rename into a pull request stacked on #8035 so the version-free header can land now.

[Automated review]

Comment on lines +43 to +45
- Type names follow the Swift component API spec: unprefixed, in the
`Astryx` module, so `Astryx.Theme.neutral` and `Theme.neutral` name the
same value.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This rule cites "the Swift component API spec" and the Astryx module, but neither is in the repository yet: the spec is component-api.md in #8035, and the only Swift module on main is AstryxNative. Land this after #8035 and cite packages/native/specs/swift/library/component-api.md by path (as #8040 does), or move the rename into a pull request stacked on #8035.

@cixzhang
cixzhang force-pushed the spec/native-swift-theme-generator-header branch from f6cdb04 to 1db4633 Compare October 24, 2026 09:32
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 1db4633

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommending approval. With the Swift component API spec now on main, the unprefixed Theme and Tokens names in G3 match its A1, which resolves the earlier request for changes, and the version-free header keeps the G13 drift test stable across version-only releases. No changes are needed; under AST-093 FR6 an engineering owner can approve this revision once the required checks pass, and the open SwiftUI implementation in #7981 will need to follow the rename.

[Automated review]

@cixzhang
cixzhang merged commit 10cba06 into main Oct 24, 2026
69 checks passed
@github-actions
github-actions Bot deleted the spec/native-swift-theme-generator-header branch October 25, 2026 06:20

This branch was successfully deployed

1 active deployment
Preview — 1db4633f Deployed Oct 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant