Repository navigation
feat: table view, Spaces/Connections settings pages, UI fixes - #108
Merged
Merged
Conversation
…Space Settings - Settings gains Spaces and Connections pages: edit/create Spaces, edit/create connections, import from DBeaver or .env, export connections without passwords. - Opening Settings stays in the active Space instead of jumping to another Space that already has a Settings tab. - Result tab label and count are centred together, tabs keep their padding when crowded, and the sidebar search box and Connections header share a gutter. - Test-only ui_inspect module: dump element bounds of a headless render and assert alignment, centring and padding; covers the fixes above.
…ults by default - Opening a table (single click in the object tree, the palette, or the ER diagram) shows its rows at full height with a WHERE box, a sort picker and a SQL button that opens the view's full query in a normal query tab. An already open view of the same table is focused instead of duplicated. - Table views are saved with the Space and reload their rows when first shown after a restart; the toolbar shows Refresh instead of Run for them. - Query tabs give the results 65% of the height by default and remember the divider position the user drags to.
… sidebar + - In the object tree a single click expands a table to its columns and a double click opens it as a table view (tooltip updated in all locales). - The table view's sort direction arrow sits right after the sort button without overlapping it (a negative margin made their hit areas overlap). - The Connections header row uses the search box's 12px gutter on both sides, so the + button no longer reaches 4px past the search box. - ui_inspect tests cover both: sort/arrow touch without overlapping, and the + button and search box share a right edge.
- Table views drop their own sort dropdown; the bar keeps only WHERE and SQL. Clicking a column header's sort icon re-runs the view with ORDER BY, the header arrow shows the view's order (also after a restart), and loaded rows are never reordered in memory. - Every grid cycles ascending -> descending -> none, worked out from the sort shown rather than the table library's own none -> descending -> ascending. - Query tabs still sort loaded rows in memory, now by column type: numbers by value (9 < 10, negatives, decimals, big integers), NULL first, other types as text.
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.
What
ORDER BY. An already open view of the same table is focused, not duplicated. The view, with its WHERE and sort, is saved with the Space and loads again when first shown after a restart..envfile, and export connections as JSON without passwords.9 < 10).+button share one gutter.Notes
shell/ui_inspect.rs: renders a view headless, dumps element bounds to JSON and asserts alignment and padding. The alignment fixes above are covered by it..envonly.cargo fmt --check, both clippy runs andcargo shearare clean.cargo test -p appand-p locus-core --libpass. The locus-core integration tests need a live database and were not run.Minor changeset included.