Repository navigation
feat(sidebar): group objects into 6 kind-based sections (#1038) - #1203
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR B for #1038. UI layer only.
Replaces the single Tables section in the sidebar with 6 collapsible sections (Tables, Views, Materialized Views, Foreign Tables, Procedures, Functions). Sections are gated by plugin capability flags and hide when empty (Tables always renders).
Summary
SidebarObjectKindandRoutineInfodomain types.isTablesExpandedboolean with a per-kindExpansionState. Old per-connection and global legacy keys seed the new.tableflag on first init.SidebarViewModelexposes per-kind table/routine filtering with memoization fingerprints (count/hash/query).SidebarViewrenders the six sections from a singleForEachoverSidebarObjectKind.allCases. Tables always shows, others gate onPluginCapabilities(.materializedViews,.foreignTables,.storedProcedures,.userFunctions) and on item count.effectiveExpanded(kind:hasMatches:)and hides empty sections (except Tables).RoutineRowViewthinner row variant (SF Symbol + name, no row-count badge, no truncate/delete toggles). Context menu: Copy Name, Copy with Signature (if available), Show DDL.showAllTablesMetadata); "Refresh" for all sections viacoordinator.refreshTables().Dependencies
TableInfo.TableType.materializedViewand.foreignTablecases. The bucket splitter uses raw-value matching ("MATERIALIZED VIEW"/"FOREIGN TABLE") so this branch compiles independently against the current enum, but matview / foreign-table buckets stay empty until PR A merges and the schema layer returns those rows.let routines: [RoutineInfo] = []) inSidebarView. PR A will landPluginProcedureFunctionSupportonPluginDriverAdapter; once merged this branch rebases and the coordinator wires the actual array.PluginDriverAdapter.schemaPluginDriver.capabilities(already public on the adapter), so no changes to plugin protocol orPluginDriverAdapterare required from this PR.Test plan
sidebar.<uuid>.tables.expanded) seeds new per-kind key without losing user preference.Closes part of #1038 (UI half).