Improve v3 grid navigation and graph browsing

This commit is contained in:
thePR0M3TH3AN committed 2026-03-06 07:10:36 -05:00
1 parent 6e7cd5b734
commit 46ffff577b
11 files changed
+656 -32

No files matched your search

@@ -258,6 +258,12 @@ Required linked item card data:
4. `relation`
5. `scope_path`
6. `archived`
Baseline now implemented in code:
1. `SearchService.linked_neighbors(...)` returns deterministic incoming/outgoing neighbor cards
2. `SearchService.relation_summary(...)` returns grouped incoming/outgoing/combined relation counts
3. TUI v3 inspector now surfaces linked-item summaries and direct open-entry actions
4. TUI v3 grid now exposes explicit sort/filter/mode controls and preserves the active search query across refreshes
7. `modified_ts`
Required actions:
+12 -7
View File
@@ -1,6 +1,6 @@
# SeedPass Dev Control Center
Last updated: 2026-03-05
Last updated: 2026-03-06
Branch baseline: `beta`
This is the single source-of-truth document to decide what to work on next.
@@ -97,9 +97,14 @@ Use these docs as inputs, but treat this file as the decision layer:
- deterministic filter/sort pipeline added for keyword / hybrid / semantic search modes
- v3 entry grid now routes through the unified search path instead of branching search logic in the widget layer
- focused regression coverage added in `src/tests/test_core_api_services.py` and `src/tests/test_tui_v3_smoke.py`
- Phase B baseline landed:
- `SearchService.linked_neighbors(...)` and `relation_summary(...)` now provide explicit outgoing/incoming graph navigation data
- v3 grid now preserves active search query across refresh/filter/sort changes
- v3 grid now exposes explicit in-app filter/mode/sort controls instead of palette-only command flow
- v3 inspector now includes a linked-items panel with direct open-entry actions
- focused regression coverage expanded in `src/tests/test_core_api_services.py` and `src/tests/test_tui_v3_smoke.py`
- Next planned implementation:
- richer sort/filter controls in v3
- linked-item navigation service methods and inspector consumers
- deeper linked-navigation workflows and richer graph-oriented pivots
- deeper atlas/search handoff and graph-aware result workflows
### Future Capability: Nostr Communications
@@ -174,7 +179,7 @@ Use these docs as inputs, but treat this file as the decision layer:
3. Continue v3 startup/restore hardening:
: clearer restore warnings, success summaries, and import/recovery guidance.
4. Continue Phase B/C from `docs/atlas_search_graph_integration_plan_2026-03-05.md`:
: linked-item navigation, richer filter/sort controls, and deeper v3 search/navigation handoff.
: deeper v3 search/navigation handoff, graph pivots, and next-level linked-item workflows.
5. Resume Index0 Atlas and graph follow-on work after current v3 UX slices stabilize:
: agent-facing atlas workflows, linked-item navigation, deeper search/navigation handoff, and any later event-pruning compaction policy.
6. Continue security-readiness blockers in parallel where they do not conflict with the v3 path.
@@ -184,9 +189,9 @@ Use these docs as inputs, but treat this file as the decision layer:
### Slice A: “Search Graph Navigation”
Deliverables:
- Add linked-neighbor and relation-summary methods above the current atlas/search foundations.
- Expose explicit sort and filter controls in v3 on top of the existing unified `SearchService`.
- Add inspector linked-item navigation so users can browse outgoing/incoming relationships without raw JSON inspection.
- Extend the new linked-neighbor and relation-summary methods with deeper graph pivots above the current atlas/search foundations.
- Continue iterating on the new explicit v3 sort/filter controls on top of the unified `SearchService`.
- Expand the new inspector linked-item navigation so users can pivot through relationships more fluidly without raw JSON inspection.
- Keep the atlas/search/graph plan and control center synchronized with shipped behavior as this slice lands.
Exit criteria:
+20 -1
View File
@@ -1,6 +1,6 @@
# TUI v3 Modular Architecture & Parity Plan
Last updated: 2026-03-05
Last updated: 2026-03-06
Branch target: `beta`
Status: Active (Default UI / parity hardening in progress)
Companion search/atlas plan: `docs/atlas_search_graph_integration_plan_2026-03-05.md`
@@ -168,3 +168,22 @@ To finalize v3, we must verify 100% functional parity with the **Legacy TUI**.
- All reveal/QR/copy semantics verified for high-risk kinds.
- PGP Public key support confirmed in both TUI v2 and v3.
- Nostr relay actions mapped back through internal configuration via `app.services['nostr']`.
## 6. Progress Log (2026-03-06)
### Completed in this session
- **Main grid reliability:**
- fixed v3 main-grid keyboard navigation by restoring focus ownership to `#entry-data-table` on workspace mount
- closing the command palette now restores focus to the main grid instead of leaving focus on a hidden input
- added focused regression coverage for default grid focus and post-palette keyboard navigation
- **Search graph navigation baseline:**
- added `SearchService.linked_neighbors(...)` for deterministic incoming/outgoing link traversal
- added `SearchService.relation_summary(...)` for grouped relation counts
- v3 inspector now includes a linked-items panel with direct open-entry actions
- **Grid control hardening:**
- v3 grid now persists the active search query across refresh/filter/sort changes
- added explicit in-app filter, search-mode, archived, and sort controls on the main grid surface
- palette command surface now includes `sort <...>` and routes search-mode changes through app actions for one consistent control path
### Validation evidence
- `pytest -q src/tests/test_tui_v3_smoke.py src/tests/test_tui_v3_parity.py src/tests/test_core_api_services.py` -> `107 passed`