Skip to content

feat: [OCISDEV-710] add theme mode#13631

Open
LukasHirt wants to merge 1 commit intomasterfrom
feat/vault-theme
Open

feat: [OCISDEV-710] add theme mode#13631
LukasHirt wants to merge 1 commit intomasterfrom
feat/vault-theme

Conversation

@LukasHirt
Copy link
Collaborator

Description

Added a new property to the theme called mode. This property specifies whether the theme is suitable for regular mode or vault mode. Valid values are regular and vault.

Motivation and Context

A clearly separate theme can be used in vault mode to hint to the users that they are within such mode.

How Has This Been Tested?

  • test environment: macos 26.3.1, chrome 145.0.7632.160
  • test case 1: load custom vault theme

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for differentiating themes between regular mode and “vault mode” by introducing a mode field on themes and wiring vault detection into theme selection.

Changes:

  • Extends the runtime account route to support an optional /vault scope segment.
  • Adds a useVault() composable and filters selectable themes by mode (regular vs vault) in the theme store.
  • Adds an unreleased changelog entry documenting the new theme property.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/web-runtime/src/router/index.ts Makes the account page route work under an optional /vault scope.
packages/web-runtime/src/components/Topbar/UserMenu.vue Preserves the current scope param when linking to the account route.
packages/web-pkg/src/composables/vault/index.ts Introduces vault-mode detection based on the current URL.
packages/web-pkg/src/composables/piniaStores/theme.ts Adds mode to the theme schema and filters themes by vault vs regular mode.
changelog/unreleased/enhancement-add-theme-mode.md Documents the new mode theme property and valid values.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@LukasHirt LukasHirt force-pushed the feat/vault-theme branch 2 times, most recently from 3a756e8 to 708587f Compare March 13, 2026 11:00
Added a new property to the theme called `mode`. This property specifies
whether the theme is suitable for regular mode or vault mode.
Valid values are `regular` and `vault`.
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.

2 participants