Skip to content

Run context menu, multi-color flags, edit dialog, and sibling-file indexing#4

Merged
kestrel99 merged 3 commits into
masterfrom
feat/run-context-menu
Jun 12, 2026
Merged

Run context menu, multi-color flags, edit dialog, and sibling-file indexing#4
kestrel99 merged 3 commits into
masterfrom
feat/run-context-menu

Conversation

@kestrel99

Copy link
Copy Markdown
Owner

Summary

Restores the legacy run-list right-click menu and adds the capabilities behind it.

Context menu

Right-click on the run grid: Flag (colour submenu) · Edit… · Export… · Archive… · Compare selected · Delete. Right-clicking a row selects it first (unless it is already in a multi-selection).

Multi-colour flags

  • Run.KeyRun (bool) → Run.Flag (int 0–5): 0 = unflagged, 1–5 = red/orange/yellow/green/blue (matching the legacy scheme).
  • The flag circle in the run grid shows the chosen colour; persisted via IProjectStore.SetFlag.

Edit dialog

  • "Edit…" opens a dialog to change a run's parent (dropdown of other runs) and comment; persisted via IProjectStore.UpdateRun. Changing the parent updates dOFV/lineage on refresh.

Sibling-file indexing

  • On import, Census now records the paths of a run's related files (never the contents): same-stem files (run27.* → model/listing/ext/cov/cor/coi/phi/grd/shk/…), *tab* tables (matched by run number), and the $DATA dataset.
  • The archiver already iterates run.Files and gates role data behind --include-data, so these now flow into archives.

Tests

46 xUnit tests pass (added sibling-file discovery test and a SetFlag/UpdateRun round-trip). Release build clean; app launches.

Notes

  • Re-import existing projects to populate flags-as-int and the new file references.
  • Legacy "Label" / Xpose table-name fields and a desktop include-data toggle are possible follow-ups.

🤖 Generated with Claude Code

kestrel99 and others added 3 commits June 11, 2026 19:17
Re-adds the legacy run-list context menu: Flag as key run / Unflag,
Export, Archive, Compare selected, Delete. Right-clicking a row selects
it first (unless it is already part of a multi-selection), so the menu
acts on the intended run. Adds IProjectStore.SetKeyRun to persist the
key-run flag.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Flags:
- Run.KeyRun (bool) becomes Run.Flag (int 0-5), matching the legacy
  scheme (0 = unflagged, 1-5 = red/orange/yellow/green/blue).
- The context-menu Flag submenu sets any of the five colours or clears
  it; the run-grid flag circle shows the chosen colour. Persisted via
  IProjectStore.SetFlag.

Edit:
- New Edit dialog (context-menu "Edit…") edits a run's parent and
  comment; persisted via IProjectStore.UpdateRun. Changing the parent
  also updates dOFV/lineage on refresh.

CLI flag indicator and storage tests updated; added a SetFlag/UpdateRun
round-trip test.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ata)

On import, Census now records the paths of files that sit alongside the
XML output: same-stem files (run27.* -> model/listing/ext/cov/cor/coi/
phi/grd/shk/…), Xpose-style table files (*tab* matched by run number),
and the dataset referenced by $DATA in the control stream. Only paths
are stored; file contents are never copied into the project.

Because the archiver already iterates run.Files and skips role "data"
unless includeData is set, these files now flow into run archives, with
the dataset governed by the existing --include-data option.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@kestrel99 kestrel99 merged commit 1afe052 into master Jun 12, 2026
5 checks passed
@kestrel99 kestrel99 deleted the feat/run-context-menu branch June 12, 2026 10:53
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