Skip to content

Conversation

@aaronsb
Copy link
Owner

@aaronsb aaronsb commented Dec 20, 2025

Summary

Two fixes in this PR:

1. Fix ./operator.sh logs hanging forever

  • Previously used -f which follows logs forever, requiring Ctrl+C
  • Now shows last 100 lines and exits by default
  • Added -f/--follow flag for continuous following
  • Added -n N/--lines N to control line count

2. Add vertical menu bar to 2D/3D explorers

  • Adds IconRailPanel to ExplorerView (used by both 2D and 3D)
  • Three tabs: Search, Saved Queries, Settings
  • Consistent with PolarityExplorerWorkspace pattern
  • Saved queries panel shows list with load/delete actions

Note on Artifact Persistence

Discovered that artifact API calls return 401 when user is not OAuth-logged-in.
The current behavior is correct - localStorage fallback when not authenticated.
Users need to log in via OAuth for artifacts to persist to the database.

Test plan

  • ./operator.sh logs shows last 100 lines and exits
  • ./operator.sh logs -f follows logs
  • ./operator.sh logs -n 50 shows last 50 lines
  • 2D Explorer shows vertical menu bar with Search/History/Settings
  • 3D Explorer shows vertical menu bar with Search/History/Settings
  • When logged in, "Send to Reports" saves to database

Previously `./operator.sh logs` used `-f` which follows logs forever,
requiring Ctrl+C to exit. This was problematic for quick debugging.

Now:
- Default: shows last 100 lines and exits
- Add `-f` or `--follow` to follow continuously
- Add `-n N` or `--lines N` to control line count

Examples:
  ./operator.sh logs              # Last 100 API logs
  ./operator.sh logs -f           # Follow API logs
  ./operator.sh logs web -n 50    # Last 50 web logs
Adds vertical menu bar to ExplorerView (used by both 2D and 3D explorers)
similar to PolarityExplorerWorkspace pattern.

Tabs:
- Search: SearchBar component in sidebar panel
- Saved Queries: List of saved graph queries with load/delete
- Settings: Similarity threshold slider

Changes:
- Import IconRailPanel and queryDefinitionStore
- Add sidebar content components for each tab
- Restructure layout to use IconRailPanel on left
- Load saved queries on mount (definition_type: graph_query)
…ings

The SearchBar component is designed for full-width display and was too
complex for a narrow sidebar panel.

Changes:
- Move SearchBar back to top of main content area
- Keep IconRailPanel on left for History and Settings only
- Default IconRailPanel to collapsed
- Update welcome tips to reference search bar and sidebar
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.

2 participants