Commit Graph
13 Commits
Author SHA1 Message Date
Davide Silvestri 9d8f54bca9 fix: field drag-and-drop offset and text selection with group-by active (#5194)
Include activeGroupByWidth in crossSectionDraggingOffset so the drag
placeholder and target indicator account for the group-by column width.
Prevent default on mousedown to stop browser text selection during drag.
2026-04-14 14:50:49 +02:00
Davide SilvestriandBram Wiepjes 7781461158 feat (database): add pin/freeze columns for grid view (#5055)
* feat: add pin/freeze columns for grid view

Allow users to freeze up to 4 columns on the left side of the grid view
by dragging a handle at the divider between frozen and scrollable sections.
Frozen columns stay visible while scrolling horizontally.

- Add `frozen_column_count` nullable field to GridView model (null = 1)
- Register in GridViewType (allowed_fields, serializer, export/import)
- Update leftFields/rightFields computed to split by frozen count
- Add GridViewFreezeHandle component with drag-to-snap interaction
- Enable per-field width handles on frozen section
- Support cross-section field dragging (reorder across freeze boundary)
- Hide freeze handle in read-only/public/template views
- Disable frozen columns when group-bys are active

* fix: multi-cell selection offset with frozen columns

The selection used section-relative field indices in GridViewRow while
the store held absolute indices, causing selections to render on the
wrong columns when frozen columns were active.

* fix: update test snapshots and minor cleanup for freeze columns

Update Vitest snapshots to include the conditional GridViewFieldDragging
component comment. Fix justfile update-snapshots recipe for Vitest.
Minor template formatting in GridViewFreezeHandle.

* fix: address review feedback for freeze columns

- Filter hidden fields in leftFields/checkCanFitFrozenColumns so
  frozen_column_count refers to visible fields only
- Filter hidden fields in GridViewFreezeHandle sortedFields/boundaries
  so hidden fields don't affect drag snapping or max count
- Add null guard for closest('.grid-view') in freeze handle drag
- Remove unused tooltip i18n key from en.json
- Fix double border at freeze boundary by removing border-right on
  last column and placeholder in the frozen (left) section
- Add frozen_column_count to test assertions for serialized grid views

* fix: redesign freeze handle with improved drag UX

Replace the blue dot with a solid pill grip that follows the cursor,
make the drag line follow the mouse freely with a snap preview line
at the nearest column boundary, and add hover hint tooltip. Disable
hover visuals during multi-cell selection.

* address feedback

* address feedback v2

* address copilot feedback

* Changed `grid-view__freeze-handle-grip` transition time

* Revert last child change

* Change line break comment

* fix: address feedback v3

---------

Co-authored-by: Bram Wiepjes <bramw@protonmail.com>
2026-04-08 10:58:26 +02:00
716d43a9a8 Nuxt 3 migration (#4342)
Update the nuxt3 version.

Co-authored-by: Jonathan Adeline <jonathan@baserow.io>
Co-authored-by: Bram Wiepjes <bramw@protonmail.com>
Co-authored-by: Cezary <cezary@baserow.io>
Co-authored-by: Tsering Paljor <tsering@baserow.io>
Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io>
Co-authored-by: Bram <bram2w@users.noreply.github.com>
2026-01-22 10:27:19 +01:00
Przemyslaw Kukulski 9f769d5e3c Resolve "Primary field becomes invisible when set to a hidden field" 2024-11-08 14:03:51 +00:00
Bram Wiepjes f8bac3ffb8 improved mobile grid view by making the primary field not sticky 2022-11-24 21:23:30 +00:00
Bram Wiepjes d1c8fc79a7 Added threshold to the field drag and drop 2022-09-26 17:28:20 +00:00
Bram Wiepjes d234625d59 Fixed field dragging read only bug 2022-07-27 10:56:32 +00:00
Jrmi 47d5769051 Add basic field duplication 2022-07-24 20:17:47 +00:00
Jrmi 867304c0fa Resolve "keyCode property of key events is deprecated and shouldn't be used" 2022-05-11 13:36:21 +00:00
Bram Wiepjes 54874601db Resolve "Add filter and sort to the publicly shared grid view" 2022-01-11 21:43:37 +00:00
Bram Wiepjes c9fbfb714f Resolve "Ordering of rows by drag and drop" 2021-05-07 09:49:31 +00:00
Bram Wiepjes 2e56808b0e Resolve "Database templates" 2021-04-08 14:30:26 +00:00
Bram Wiepjes 9728b64df0 Resolve "Ordering fields per grid view" 2021-03-12 13:46:22 +00:00