Expand a place's group when a filter hides it after create or move #84
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/filtered-group-marker-disagreement"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Vikunja task 162: creating or moving a place into a group the accordion currently filters out left it selected and panned to but plotted no marker for it —
MapPlacesState.VisiblePlacesdisagreed with the unconditional selection ADR-0067/ADR-0071 make for create, and with the patchHome.MoveSelectedPlaceAsyncmakes for move.Chose expand the destination group (
MapPlacesState.EnsureGroupVisible, called from both routes) over clearing the filter or refusing the operation: creating or moving into a group is the caller naming it as somewhere they want to look, expanding only that group keeps whatever else was already open, and refusing a permitted create/move because of an unrelated accordion display state would be worse than the defect. It's a no-op while nothing is currently filtered (ADR-0062's zero-expanded-means-unfiltered), so an unfiltered map is never narrowed by a create or move. Full reasoning in ADR-0073, which answers rather than supersedes ADR-0071's own "create-flow bypass" paragraph — that paragraph already predicted this shape and left it for task 162.One test per route (
PlaceFormPanelTests,HomeTests), both confirmed failing before the fix.Verdict: mergeable
Nothing to act on.
Checked and confirmed:
EnsureGroupVisible's no-op path (_expandedGroupIds.Count == 0) matchesVisiblePlaces's own zero-expanded-means-unfiltered rule; already-expanded destination is a genuine no-op (HashSet.Addreturningfalseshort-circuits beforeChanged?.Invoke()) — no redundant render.EnsureGroupVisiblebeforeSelectPlacefor create; afterUpsertPlacefor move, with no separate select call since the id-based lookup already tracks the patched place) — no observable divergence between the two routes.PlaceFormPanel_AddSavedIntoAGroupTheCurrentFilterHides_ExpandsItSoTheMarkerIsPlottedandHome_MoveConfirmedIntoAGroupTheCurrentFilterHides_ExpandsItSoTheMarkerIsPlottedgo red, then restored — full WebUI suite (440, 4 skipped) green with the pinned SDK (10.0.100).e17e666is green.Home.MoveSelectedPlaceAsyncandPlaceFormPanel.HandleSavedAsyncare replaced, not left duplicated, and now describe the fix in place.requireVisible: true;PlaceFormPanelstill passesfalse, move doesn't touchSelectPlaceat all.main.