You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(themes): support multi-variant theme extensions - #1133
Rust Backend / Platform (Tauri commands, search, storage, OS integration)
Docs / Tooling / Other (docs, CI, build scripts, locales)
Manual smoke test & Validation
I manually smoke-tested this in the running app (pnpm dev) and visually verified the fix/feature works.
AI usage
AI tools helped produce this change.
I ran the asyar-contribution skill (.agents/skills/asyar-contribution/SKILL.md), followed it, and reviewed every generated line.
Boundaries
Zero-hardcoded-strings i18n policy respected (if UI strings were added/changed).
Third-party extension compatibility preserved (no breaking changes to published extension contracts without deprecation/boundary adapter).
Hot paths remain fast and unblocked (window reveal, keystroke search, and 120 FPS UI responsiveness).
pnpm check:ci (or the relevant inner-loop checks) passes locally.
Summary by CodeRabbit
New Features
Themes can now offer multiple selectable variants, each with its own name, appearance, and style overrides. Shared theme settings provide defaults, which variants can customize.
Theme selection, previews, and application support variant-specific styles and fonts.
Bug Fixes
Active theme status and cleanup now correctly recognize variants when onboarding or uninstalling an extension.
Documentation
Updated the theme reference with guidance for defining variants and shared defaults.
Theme definitions now support variants with separate names, appearances, variables, and fonts. The launcher validates variants, loads themes by their base extension ID, and applies selected variants. The theme picker displays variant cards, and onboarding and uninstall checks recognize variant theme IDs.
Changes
Theme Variants
Layer / File(s)
Summary
Variant contract, validation, and lookup asyar-launcher/src-tauri/src/extensions/mod.rs, asyar-launcher/src/lib/ipc/extensionCommands.ts, asyar-launcher/src-tauri/src/extensions/installer.rs, asyar-launcher/src-tauri/src/commands/extensions.rs, docs/reference/extension-types/theme.md
Theme definitions add a variants list. Validation checks variant IDs, names, appearances, and fonts. Theme definition lookup uses the base extension ID. The reference documents variant definitions and shared defaults.
Variant ID resolution and application asyar-launcher/src/lib/themeVariants.ts, asyar-launcher/src/services/theme/themeService.ts, asyar-launcher/src/lib/themeVariants.test.ts, asyar-launcher/src/services/theme/themeService.test.ts
Theme ID helpers parse, format, and match variant IDs. Theme application fetches the base definition, combines shared and variant variables, and selects variant fonts when available. Tests cover ID handling, resolution, and application.
Variant selection and extension matching asyar-launcher/src/components/settings/ThemePicker.svelte, asyar-launcher/src/components/settings/ThemePicker.test.ts, asyar-launcher/src/routes/onboarding/steps/PickTheme.svelte, asyar-launcher/src/services/extension/extensionStateManager.svelte.ts
The theme picker creates cards for variants and marks the active variant as selected. Onboarding recognizes variant IDs as applied. Uninstalling an extension clears its active variant theme.
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "feat(themes): support multi-variant theme extensions" matches the main change in the changeset. The PR adds a variants list to theme definitions, variant parsing and resolution helpers, v…
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.
Full details: Title check
Explanation
The title "feat(themes): support multi-variant theme extensions" matches the main change in the changeset. The PR adds a variants list to theme definitions, variant parsing and resolution helpers, variant cards in ThemePicker, and docs for multi-variant themes. The conventional-commit prefix names the area (themes) and the change (multi-variant support). The title is concise and specific.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Library detection encountered an error. Review will continue without library-specific context.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
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
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.
What changed
Affected areas
asyar-sdk, extension runtime, IPC contracts, manifest)Manual smoke test & Validation
pnpm dev) and visually verified the fix/feature works.AI usage
asyar-contributionskill (.agents/skills/asyar-contribution/SKILL.md), followed it, and reviewed every generated line.Boundaries
pnpm check:ci(or the relevant inner-loop checks) passes locally.Summary by CodeRabbit
New Features
Bug Fixes
Documentation