Skip to content

Fix profile expand arrow in tree view - #178

Merged
SukuWc merged 1 commit into
mainfrom
fix/tree-arrow-expand-profile
Aug 26, 2026
Merged

SukuWc merged 1 commit into
mainfrom
fix/tree-arrow-expand-profile

Conversation

@SukuWc

@SukuWc SukuWc commented Aug 26, 2026

Copy link
Copy Markdown
Member

Summary

  • Pressing the expand arrow on a profile in the tree view opened the profile in the editor instead of expanding it, because the click bubbled into the row's own click handler.
  • Expand/collapse state for manually-opened tree nodes was being wiped out on every reactive recompute (e.g. selection change), since it only ever derived from the currently selected profile's ancestor chain.

Changes

  • ProfileCloudTreeItem.svelte: stop the arrow's click from bubbling into the row's click handler.
  • TreeComponent.svelte: dispatch an expandedChange event with the authoritative expanded-id list whenever the tree's expand state changes.
  • ConfigTree.svelte: track manually-expanded ids from that event and merge them into the derived expanded list, guarding against redundant reassignment to avoid a reactive feedback loop.

Test plan

  • svelte-check passes with no new errors introduced
  • Manually verify: click the arrow next to a profile's module type — its elements (presets) expand in place and stay expanded across selection/filter changes

🤖 Generated with Claude Code

The arrow's click bubbled into the row's own click handler, which
selected the profile and opened it in the editor instead of expanding
it. Stop that propagation, and have TreeComponent report expand/collapse
changes upward so ConfigTree can preserve a profile's manually-opened
state instead of it being wiped out on the next reactive recompute.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit c7ed0da):

https://profile-cloud-dev--pr178-fix-tree-arrow-expan-h1wipans.web.app

(expires Fri, 25 Sep 2026 10:55:46 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 2a004f867edf1347070dd9beedb18755187a6d4e

@SukuWc
SukuWc merged commit 9bbc6f8 into main Aug 26, 2026
3 checks passed
@SukuWc
SukuWc deleted the fix/tree-arrow-expand-profile branch August 26, 2026 10:56
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