Skip to content

Redesign layout editor and layer firmware workflow - #17

Merged
martinezooo merged 3 commits into
feat/minimap-layer-hints-terminal-importfrom
hack-jitsu/layout-editor-redesign
Oct 8, 2026
Merged

martinezooo merged 3 commits into
feat/minimap-layer-hints-terminal-importfrom
hack-jitsu/layout-editor-redesign

Conversation

@martinezooo

Copy link
Copy Markdown
Owner

What changed

  • rebuild Layout as a stable workspace with layer tabs, keyboard canvas, right-side key inspector, and one publish bar
  • make every layer removable and keep QMK keymaps, layer references, LED maps, minimap settings, and autolayer rules aligned
  • generate pending firmware-change details from the canonical desired firmware state
  • remove duplicated build actions and replace the key table with stacked action cards

Verification

  • cargo fmt --check
  • cargo test --all-targets (149 passed, 1 ignored)
  • cargo clippy --all-targets -- -D warnings
  • cargo build --release --locked
  • visual QA of the VimLife F16 inspector and pending-change menu
  • locally bundled, codesigned, installed, and relaunched /Applications/Keyjitsu.app

No keyboard firmware was built or flashed during this work.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-05T22:48:33.400534Z 58ed69d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 58ed69d05a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/keymap.rs
Comment on lines +703 to +705
for &position in positions.iter().filter(|&&position| position != layer) {
let (_, start, end) = find_layer_block(&out, position)?;
let tokens = split_top_level(&out[start..end]);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Renumber layer operations outside the keymap array

When an existing Oryx tap dance or other generated helper performs a layer action, its layer_on(n), layer_off(n), or similar call lives outside keymaps[]. This loop only rewrites keymap tokens, so deleting a lower layer leaves those helpers targeting the old number; after flashing, the gesture can activate the wrong layer or a nonexistent one. The removal pass needs to update generated action bodies as well as LAYOUT entries.

Useful? React with 👍 / 👎.

Comment thread src/gui/state.rs
Comment on lines 829 to 830
// Persist all layout-scoped state in one atomic config replacement.
// A crash or disk error can no longer leave layer numbers renumbered in

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Save layer removals into the active profile immediately

When a saved profile is active, removing a layer reaches this global-config persistence path but never calls save_active_profile_target, unlike adding, renaming, or editing custom layers. If the application exits before the user switches profiles or builds, the in-memory removal and its renumbered assignments are lost from the selected profile on restart.

Useful? React with 👍 / 👎.

Comment thread src/gui/state.rs
Comment on lines +563 to +567
self.removed_layers = cfg
.removed_layer_sets
.iter()
.find(|set| set.layout == hash)
.map(|set| set.layers.clone())

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Clear discarded removed-layer drafts

When the user selects “current device” to discard a device draft, activate_profile_target clears staged edits, glow, and custom-layer sets but does not clear the newly introduced removed_layer_sets. Because hydration prioritizes this config entry over confirmed firmware state, the discarded layer removals reappear after restarting the application.

Useful? React with 👍 / 👎.

@martinezooo
martinezooo merged commit 8fc3b66 into feat/minimap-layer-hints-terminal-import Oct 8, 2026
0 of 4 checks passed
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.

1 participant