Skip to content

feat(themes): support multi-variant theme extensions - #1133

Merged
Xoshbin merged 1 commit into
mainfrom
feat/theme-variants
Nov 27, 2026
Merged

Xoshbin merged 1 commit into
mainfrom
feat/theme-variants

Conversation

@Xoshbin

@Xoshbin Xoshbin commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • Before (issue / current behavior):
  • After (fix / new behavior):

Affected areas

  • Launcher UI / UX (visuals, interactions, keyboard shortcuts, settings)
  • SDK / Extensions (asyar-sdk, extension runtime, IPC contracts, manifest)
  • 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.

@github-actions github-actions Bot added the enhancement New feature or request label Nov 27, 2026
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

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.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 3a038b2 and 7962d64.

Files selected for processing: 13

  • asyar-launcher/src-tauri/src/commands/extensions.rs
  • asyar-launcher/src-tauri/src/extensions/installer.rs
  • asyar-launcher/src-tauri/src/extensions/mod.rs
  • asyar-launcher/src/components/settings/ThemePicker.svelte
  • asyar-launcher/src/components/settings/ThemePicker.test.ts
  • asyar-launcher/src/lib/ipc/extensionCommands.ts
  • asyar-launcher/src/lib/themeVariants.test.ts
  • asyar-launcher/src/lib/themeVariants.ts
  • asyar-launcher/src/routes/onboarding/steps/PickTheme.svelte
  • asyar-launcher/src/services/extension/extensionStateManager.svelte.ts
  • asyar-launcher/src/services/theme/themeService.test.ts
  • asyar-launcher/src/services/theme/themeService.ts
  • docs/reference/extension-types/theme.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@Xoshbin
Xoshbin merged commit 5ba07f6 into main Nov 27, 2026
14 checks passed
@Xoshbin
Xoshbin deleted the feat/theme-variants branch November 27, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant