GeezerVison is showing github.com — fix(web): exported theme files are named after the current theme name by pauldupuyjr · Pull Request #39218 · pingdotgg/t3code
Conversation
pauldupuyjr
commented
Nov 19, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
Exporting a custom theme names the downloaded file after the theme's id, which is fixed when the theme is created. Renaming the theme does not change the file name: a theme duplicated as "T3 Code copy" and renamed to "T3 Code 2" still exports as t3-code-copy.json, even though Settings shows the new name.
To reproduce: Settings > Appearance, duplicate T3 Code, rename the copy to "T3 Code 2" in Edit theme, save, then export it.
Change
The export names the file with a new themeFileName helper in themePalette.ts, which builds the name from the theme's current name with the existing themeIdFromName, so the same theme exports as t3-code-2.json. The theme's id, and the id field inside the exported file, are unchanged, so re-importing the file still matches the installed theme.
Scope
A small fix for an obvious bug: the export file name ignores a rename. It needs no issue.
Verification
themePalette.test.ts covers the case: a theme created as "T3 Code copy" and renamed to "T3 Code 2" exports as t3-code-2.json, and the exported JSON keeps the id t3-code-copy. The test fails on main's id-based name, which gives t3-code-copy.json.
In the web dev client, I duplicated T3 Code, renamed the copy to "T3 Code 2", saved, and exported it. On main the download is t3-code-copy.json; with this change it is t3-code-2.json.
Model: Claude Opus 5.5. Harness: Claude Code in T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 19, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
Custom theme downloads use filenames derived from the theme label. The exported theme JSON remains unchanged.
Changes: Custom theme export
| Layer / File(s) |
Summary |
Generate filenames from theme labels apps/web/src/themePalette.ts, apps/web/src/components/settings/ThemeSettings.tsx, apps/web/src/themePalette.test.ts |
themeFileName derives a JSON filename from the theme label. Custom theme downloads use this filename. The test checks that a renamed label changes the filename while serialization retains the original theme ID. |
Estimated code review effort: 2 (Simple) | ~5 minutes
Change: Bug fix
Possibly related PRs
- pingdotgg/t3code#23162: This PR changes how theme IDs are generated from names. The export filename uses the same name-to-ID helper.
Suggested reviewers: maria-rcks, juliusmarminge
Merge Risk: Minimal · up to eca29
-
Custom theme exports now take their filename from the theme's current name, while the exported id stays the same so re-import still matches. A regression test covers the rename case. No merge-blocking risk remains.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the main change: exported theme files now take their name from the theme's current label instead of its fixed ID. It uses a conventional commit prefix and is specific enough for a revi… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
| Description check |
 |
The description follows the template's main sections: Problem, Change, Scope, and Verification. It explains the bug (export file named by fixed theme id, not current name), reproduction steps, and the… |
Full details: Title check
-
Explanation
The title names the main change: exported theme files now take their name from the theme's current label instead of its fixed ID. It uses a conventional commit prefix and is specific enough for a reviewer scanning history.
Full details: Description check
-
Explanation
The description follows the template's main sections: Problem, Change, Scope, and Verification. It explains the bug (export file named by fixed theme id, not current name), reproduction steps, and the change (themeFileName helper using themeIdFromName). It states the id stays unchanged so re-import still works. Scope explains why no issue is needed for a small, obvious bug. Verification names a focused test, reports the result on main versus with the change, and includes a manual check in the web dev client. It names the model and harness, as the template asks. The description does not include before/after screenshots, which the template asks for on UI changes. The export file name is a user-visible behavior, so this gap is minor because the manual check reports the observed filenames. Overall the description is mostly complete.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 1e1120f and eca2938.
Files selected for processing: 3
-
apps/web/src/components/settings/ThemeSettings.tsx
apps/web/src/themePalette.test.ts
apps/web/src/themePalette.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Exporting a custom theme named the file after the theme id, which is
fixed when the theme is created. A theme duplicated as "T3 Code copy"
and renamed to "T3 Code 2" still exported as t3-code-copy.json. The
file name now comes from the theme's current name.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.
See the conflict window.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This branch has not been deployed
No deployments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
needs-rebase
Conflicts with its base branch. Closes after 7 days with no activity.
size:XS
0-9 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|