Skip to content

Add component wrapper in order to "preload" require properties - #8752

Closed
florann wants to merge 4 commits into
omacom:quattrofrom
florann:fix/required-properties-not-set-cloned-bar
Closed

florann wants to merge 4 commits into
omacom:quattrofrom
florann:fix/required-properties-not-set-cloned-bar

Conversation

@florann

@florann florann commented Aug 28, 2026

Copy link
Copy Markdown

Adding a component "Bar" wrapper to make sure required properties are load before the component is spawned.
It's the same mecanism as for the omarchy default bar but was missing for customs bars.

Relates to #8007

Copilot AI balanced review requested due to automatic review settings August 28, 2026 13:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Attempts to preload required bar properties before instantiation, but currently bypasses custom bar entry points.

Changes:

  • Adds a property-initialized bar wrapper.
  • Routes custom bar loading through that wrapper.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread shell/shell.qml Resolved
Comment thread shell/shell.qml Resolved
@florann

florann commented Aug 28, 2026

Copy link
Copy Markdown
Author

Solution change,
Instead of statically instantiate the Bar component ( which is a mistakes ) we will create the Qml object before it's loaded and feed it with necessary properties.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread shell/shell.qml Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread shell/shell.qml Resolved

source "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)/base-test.sh"

run_node_test <<'JS'
Hot reload will now try to load again the fail bar, then will fallback to default omarchy bar

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@bjarneo

bjarneo commented Sep 21, 2026

Copy link
Copy Markdown
Member

Automated duplication check: this pull request looks similar to #7254, which covers the same bar loader required props. I keep that one open and close this one to consolidate review.

If you feel this is the wrong decision, please open the PR again with a note on the difference.

@bjarneo bjarneo closed this Sep 21, 2026
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.

3 participants