Skip to content

feat: merge profiles by name across configuration layers - #66

Merged
Seb-GRAF merged 1 commit into
mainfrom
feat/24-merge-profiles
Oct 19, 2026
Merged

Seb-GRAF merged 1 commit into
mainfrom
feat/24-merge-profiles

Conversation

@Seb-GRAF

Copy link
Copy Markdown
Collaborator

Problem

A main file with profiles drops profiles from includes, packages and themes. Editing an imported profile in Customize also copies the full combined list into the main file, hiding later source changes and retaining profiles after their source is removed.

Fixes #24.

Changes

  • Merge profiles by name across configuration layers. Later properties win recursively, existing names keep their position, and new names append.
  • Add enabled: false and an Enabled toggle in Customize. Disabled profiles do not apply, even when pinned.
  • Save only new profiles and changed properties from Customize. The shared CLI profiles action merges supplied definitions by name. Preserve inherited conditions, configuration and property origins.
  • Keep commands in disabled package profiles visible during package review.
  • Update the decoder, schema, README and modular example.

Testing

  • All 296 tests pass, including regression coverage for ordering, partial overrides, disabled/pinned profiles, package/theme layers, source updates after saving, and undo/redo.
  • Release app builds with scripts/build.sh; signature verification, modular example validation and git diff --check pass.
  • Compared isolated builds from 18e2029 and this branch with the same scratch configuration. Before, changing one imported condition saved both imported profiles in full. After, it saves only the changed condition and retains both profiles. Verified the Enabled toggle on a pinned profile, undo restoring its effect, and an imported height change reaching the edited profile.
  • Both scratch processes have been stopped. Before/after screenshots were captured locally; attachment upload is blocked because the collaborative browser is signed out of GitHub. The images are not committed.
  • A separate existing issue was reproduced on the baseline: the profile JSON editor initially displays {} until another setting changes. This change leaves that behavior alone.

Merging

One feat: commit. A merge commit, rebase merge or squash with this title retains the release entry.

GPT-6.1-Sol via Codex harness in T3 Code.

@Seb-GRAF
Seb-GRAF merged commit f1b700b into main Oct 19, 2026
4 checks passed
@Seb-GRAF
Seb-GRAF deleted the feat/24-merge-profiles branch October 19, 2026 06:04
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Merge profiles by name across includes, packages and the main file

1 participant