Skip to content

Consolidate: localstorage & table search - #674

Merged
sunchanglong merged 6 commits into
mainfrom
recheck
Nov 12, 2026
Merged

sunchanglong merged 6 commits into
mainfrom
recheck

Conversation

@sunchanglong

Copy link
Copy Markdown
Collaborator

Consolidate storage, table search, and table display preferences

Summary

  • Add a small safe localStorage/sessionStorage helper.
  • Scope signal DB, drilldown settings, and quick filters by host + database.
  • Move transient caches and news/contact/anonymous state to sessionStorage or memory.
  • Merge locale and compact-row preferences into uiConfig.
  • Remove legacy/dead storage keys and the unused quick-filters component.
  • Keep the product-tour key only when the query guide is enabled.
  • Preserve the selected database across SQL builder reset/mount and text mode.
  • Remove the table_name >= prefix lookup and getTablesByPrefix.
  • Use contains LIKE plus locally loaded matches in logs/ingest/flow table pickers.
  • Keep trace table pickers on the locally loaded trace-capable set.
  • Default logs to multi-column and show all columns for logs/traces.
  • Store hidden columns globally per signal; ignore names missing from the table.
  • Store single-column, show-keys, compact rows, and wrap-line globally.
  • Keep timestamp pinned in logs tables and out of the configurable column list.
  • Rename the column control to "Column display settings" and show the hidden count in the button.

Notes

  • Logs Query and Signals Explore keep separate table selections; only DB and display preferences are shared.

- stamp signal-db, drilldown-settings and quick filters with host/db
- collapse drilldown settings to one slot and validate on read
- move transient UI/cache state to uiConfig, sessionStorage or memory
- merge locale/compactRows into uiConfig; gate tour key behind query_guide
- keep SQL builder DB when resetting so table selection cannot undo a switch
- remove getTablesByPrefix and its table_name >= range scan
- search with contains (LIKE) and merge already-loaded matches
- let trace pickers use the fully loaded trace-capable set locally
- default to multi-column for logs and show all columns for logs/traces
- persist single-column/show-keys and hidden columns in uiConfig
- share hidden columns globally per signal, ignoring names absent from a table
- show the hidden count inside the column settings button
- move compact rows and wrap lines into uiConfig, shared by both logs tables
- share the remaining display toggles and hidden columns globally
- keep timestamp pinned and remove it from the configurable column list
@sunchanglong sunchanglong changed the title refactor: localstorag refactor: localstorage Nov 12, 2026
@sunchanglong sunchanglong changed the title refactor: localstorage Consolidate: localstorage & table search Nov 12, 2026
@sunchanglong
sunchanglong merged commit 504da07 into main Nov 12, 2026
1 check passed
@sunchanglong
sunchanglong deleted the recheck branch November 12, 2026 03:06
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