feat: enhance Database Activity pane with comments, interaction, and badges #11

Merged
forbes merged 2 commits from feature/activity-pane-enhancements into main 2026-02-08 22:23:51 +00:00
Owner

Enhance the Database Activity panel with revision info, interaction, and visual improvements.

Changes

Revision info inline

  • Each entry now shows revision number: A01-0002 – FILAMENT WINDING UNIT ASSY – Rev 3 – 2026-01-29
  • Latest revision comment shown below: "Added tensioner mounting holes" or (no comment) in muted style
  • Fetches via _client.get_revisions(pn) per item

Double-click to open

  • Double-click on any activity row opens the item
  • If checked out locally: opens the local .FCStd file
  • If not local: triggers _sync.open_item(pn) to checkout from server

Right-click context menu

  • Open in Create — checkout and open
  • Open in Browser — opens {base_url}/items/{partNumber} in default browser
  • Copy Part Number — copies to clipboard
  • View Revisions — runs Silo_Info command

Visual improvements

  • Items checked out locally shown in green with ● local badge
  • Long descriptions truncated at 40 chars with ..., full text in tooltip
  • Part number stored in Qt.UserRole for reliable interaction

Acceptance criteria

  • Activity entries show latest revision comment (or muted placeholder)
  • Activity entries show revision number
  • Silo_Commit dialog includes a comment field (already existed)
  • Double-click on activity row triggers checkout/open
  • Right-click context menu with Open/Browser/Copy/Revisions actions
  • Items checked out locally marked with visual indicator
  • Long descriptions truncated with tooltip

Closes #9

Enhance the Database Activity panel with revision info, interaction, and visual improvements. ## Changes ### Revision info inline - Each entry now shows revision number: `A01-0002 – FILAMENT WINDING UNIT ASSY – Rev 3 – 2026-01-29` - Latest revision comment shown below: `"Added tensioner mounting holes"` or `(no comment)` in muted style - Fetches via `_client.get_revisions(pn)` per item ### Double-click to open - Double-click on any activity row opens the item - If checked out locally: opens the local `.FCStd` file - If not local: triggers `_sync.open_item(pn)` to checkout from server ### Right-click context menu - **Open in Create** — checkout and open - **Open in Browser** — opens `{base_url}/items/{partNumber}` in default browser - **Copy Part Number** — copies to clipboard - **View Revisions** — runs `Silo_Info` command ### Visual improvements - Items checked out locally shown in green with `● local` badge - Long descriptions truncated at 40 chars with `...`, full text in tooltip - Part number stored in `Qt.UserRole` for reliable interaction ## Acceptance criteria - [x] Activity entries show latest revision comment (or muted placeholder) - [x] Activity entries show revision number - [x] `Silo_Commit` dialog includes a comment field (already existed) - [x] Double-click on activity row triggers checkout/open - [x] Right-click context menu with Open/Browser/Copy/Revisions actions - [x] Items checked out locally marked with visual indicator - [x] Long descriptions truncated with tooltip Closes #9
forbes added 1 commit 2026-02-08 22:18:08 +00:00
Enhance the Database Activity panel in SiloAuthDockWidget:

- Show latest revision number and comment inline per activity entry
- Truncate long descriptions with ellipsis, full text in tooltip
- Mark locally checked-out items with green color and "local" badge
- Double-click opens local file or triggers checkout from server
- Right-click context menu: Open in Create, Open in Browser,
  Copy Part Number, View Revisions

Closes #9
forbes force-pushed feature/activity-pane-enhancements from 1ac7423441 to d26bb6da2d 2026-02-08 22:23:12 +00:00 Compare
forbes added 1 commit 2026-02-08 22:23:44 +00:00
forbes merged commit f9924d35f7 into main 2026-02-08 22:23:51 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kindred/silo-mod#11