Commit Graph
158 Commits
Author SHA1 Message Date
Davide Silvestri 7c97626046 fix: stop the guided tour from crashing when its steps change (#6942)
* fix: stop the guided tour from crashing when its steps change

Fixes #6941

* fix: re-prepare the guided tour step when the step at its index changes
2026-12-02 10:33:35 +01:00
Davide Silvestri aacb878968 fix(database): run realtime refresh callbacks when no view is selected (#6944)
* fix(database): run realtime refresh callbacks when no view is selected

Fixes #6943

* fix(database): add created and restored fields when no view is selected

view/getSelected is {} without a selected view, so the field_created and
field_restored handlers looked up an undefined view type and threw. Use
view/hasSelected instead, and cover both events on a table page without views.
2026-12-01 13:38:24 +01:00
Przemyslaw Kukulski 67101593d4 fix: apply view field visibility to ad hoc filters, sorts and aggregations (#6913) 2026-11-30 17:07:59 +01:00
Jonathan Adelineandpeter_baserow a8bf3b73ae feat: redesign app sidebar (#6798)
* feat: redesign sidebar workspace navigation

* feat: redesign the sidebar footer and account menu

Match the account menu to the sidebar prototype and reuse the admin
navigation in a submenu. Keep Add new above the footer while the
application list scrolls.

* fix: show the sortable indicator only when dragging

* feat: refine workspace sidebar application navigation

* feat: reorganize workspace sidebar shortcuts

* fix: isolate workspace sidebar menus and actions

* fix: cancel sortable drops on hidden lists

* fix(enterprise): allow retrying Direct support

* feat: simplify the workspace overview header

* fix: prevent horizontal overflow around the sidebar

Constrain animated tree groups to the width of the sidebar so long labels truncate. On narrow screens, let the sidebar expand over the content instead of reducing the usable page width.

* fix: fit workspace cards and creation menus on mobile

* test: keep the current table selected after reload

* fix: undo and redo edits across expanded sidebar applications

* fix: keep sidebar groups out of the tab order

* fix: highlight the active database in the tables tour

* feat: label workspace integrations in the settings menu

* fix: keep the workspace sidebar and guided tour usable on phones

* fix: undo sidebar row imports in the destination database

* fix: keep the guided tour highlight on the current step

* fix: show an empty state in the workspace picker

* fix: confirm workspace deletion before moving it to trash

* feat: open registered workspace settings tabs from the sidebar

* fix: keep the sidebar logo the same size across workspaces

---------

Co-authored-by: peter_baserow <peter@baserow.io>
2026-11-23 20:42:20 +04:00
Bram a208062925 refactor: Only include actually used icons (#6537) 2026-10-29 15:16:35 +01:00
Bram 42371d6beb feat: Add skeleton loading animation and make pages load instantly (#6023) 2026-09-09 11:03:03 +02:00
Przemyslaw Kukulski 9c14b5804e fix: add workspace permission checks to data sync type properties endpoint (#5972) 2026-09-07 11:31:42 +02:00
Davide Silvestri 5f6130f86a feat(database): allow specific users and teams to edit fields (#5795)
* feat(database): add specific subjects to field permissions

* fix(database): separate internal RBAC roles

* address feedback; make file import more robust passing the import_fields instead of relying of implicit order
2026-08-24 15:28:24 +02:00
Bram 92ce535aba feat: Report abuse in public views (#5766) 2026-07-29 13:24:21 +02:00
dimmur-brw b4a9872f62 fix: resolve search/filter/sort race condition in grid view refresh (#5765) 2026-07-24 12:15:13 +02:00
Davide Silvestri 0aa7147db3 Collapsible group-by grid view (#5470)
* feat: add collapsible group-by grid view

* fix: address copilot feedback, plus some other cleanup/fixes

* fix: harden grid e2e navigation

* Add e2e tests; improve performance; clean up code

* feat: show resolved values for reference fields in group-by headers

- Resolve collaborator, link-row and select group values to renderable display
  objects in the group-by data API, batched once per field per page (O(1) lookups,
  no per-group queries).
- Order many-to-many groups identically to the rows via correlated-subquery
  ordering, since the relation column is shadowed by the aggregated array
  annotation in group-by queries.
- Render the display values as chips in the group-by banner via dedicated
  multiple-select / multiple-collaborators components; shrink the collaborator
  badge, reduce the field-name size and keep the label on one line.

* fix: group many-to-many fields by their set of values

Grouping a grid by a collaborator, multiple-select or link-row field
produced empty groups with orphaned rows and duplicate headers for the
same set of values. The group key (an id array) was order-sensitive: the
backend's aggregated array order was unstable row-to-row and the cell
appends new values, so an optimistically-created group's key diverged
from the server's and rows were rejected by rowBelongsToGroupBySection.

- pathKey and the group-row Vue keys now sort m2m id arrays numerically,
  so a group is identified by its set of ids, not their order.
- The backend aggregates the group value ordered by related id and sorts
  the group's unique value, making grouping deterministic and set-based.
- Optimistically-emptied groups (row_count 0) are no longer rendered (the
  node is kept for reconciliation), and the leading group gap is fixed so
  the first visible group has no spurious gap.
- A newly created collaborator group resolves its badge name from the
  workspace store instead of requiring the name on the value.

* fix: keep cell multi-select when dragging in a group-by view

A multi-select drag ends with a click whose target is the rows
container (the common ancestor of the dragged cells). cancelMultiSelect-
IfActive cancels the selection unless that container is recognised as
part of the rows area, but its whitelist only knew the flat-grid classes
(grid-view__rows / grid-view__row). The collapsible group-by feature
renders rows in grid-view__group-by-rows containers, so the post-drag
click was treated as "outside the rows" and the selection was cleared on
mouseup. Add the group-by row containers to the whitelist.

* test: expect emptied group-by banners to disappear

The optimistic empty-group hiding (a group disappears once its last row
moves out) made the e2e contract that kept the emptied source group
visible at row_count 0 obsolete. Update the 2.2.7/2.4.4 assertions to
expect the emptied group's banner to be gone (new expectNoGroupByBanner
helper), and correct the tree-maintenance comments: the node is still
kept for reconciliation, but the layout no longer renders its banner.

* perf: load the collapsible group-by grid in one bounded request

Grouping a wide table by many fields took several seconds and a request
waterfall to render the first screen. The group tree was fetched one HTTP
request per depth, a budget that ran out before reaching any leaf forced
a per-parent fallback, and the rows endpoint resolved group-by metadata
unconditionally.

Backend
- Walk the descendant tree with one batched windowed query per group-by
  level (get_group_by_data_for_parents) instead of one query per parent,
  so a single include_descendants request returns the whole visible
  subtree in O(depth) queries.
- Scale the descent window to the viewport: row_budget = ceil(limit /
  depth). A deep group-by stacks each leaf row under its ancestor
  banners, so far fewer leaf rows fill the first screen; the window now
  returns a viewport-sized slice (~264 -> ~68 groups on a 12-level grid)
  and the rest lazy-loads on scroll.
- Gate the rows endpoint's group-by metadata behind
  include=group_by_metadata so it is not computed when unused.
- Resolve reference/link-row display values in one id__in query per field
  across all pages instead of once per page.

Frontend
- Initial load issues one group-by-data prefetch and one viewport rows
  request; expand mode no longer takes the per-depth path.
- Cap the banner indent (<=50px) and shrink the per-level arrow spacing
  as the group-by count grows, keeping the count aligned and the field
  name ellipsised; render multi-level loading skeletons for the
  not-yet-loaded levels.
- Guard walkPage against a cyclic page-resolution stack overflow and keep
  activeGroupBys filtered to fields that still exist.

Plus e2e env isolation (configurable ports, cookie prefix) and docs.

* fix: address review feedback

Addresses the review comments on the collapsible group-by grid PR.

- Gate the group-by add-row "+" on the same condition as the flat grid
  (not read-only, not a one-way data sync, has create-row permission), so
  it no longer renders buttons that error on click for data-sync tables.
- Show the "(Empty)" label for empty array-valued groups (multiple select,
  link row, collaborators), matching the text-field behaviour.
- Stop the flat-grid row placeholder from rendering in group-by mode
  (v-else-if instead of v-else).
- Render formula group-by headers via the result field type's group-by
  component instead of RowCardFieldFormula, removing the dev-only
  "Missing required prop: row" Vue warning.
- Keep the cell selected at the first/last field for both Tab and arrow
  keys (restore the pre-refactor behaviour); navigating past the edge no
  longer drops the selection in either flat or group-by mode.
- Re-enable and de-flake the "sorted add outside buffer" e2e test: assert
  on the re-resolved last row instead of a snapshotted renderedRowCount()
  index, which raced with the create-confirmation re-render in CI.

* fix: keep rows inserted below in a grouped grid view in their group

Insert-below and add-row in a grouped view now derive the new row's group
path from the neighbouring row, so it inherits all writable group-by values
and lands in the same group; `before` is set only when the next row shares
that group.

* feat: soft-cap adding group-bys at 5 in the view UI

Once a view reaches 5 group-bys the add button is disabled with a tooltip;
views that already have more keep working and only offer to remove them.

* limit group-bys; fix css

* refactor: polish code and comments

* fix: address Bram's feedback

* feat: add vertical gap between sibling sub-groups and indent banner labels with their chevron

* fix: address remaining feedback

* fix: row-coloring and fixed-height for add-row

* fix: address Bram's feedback v2

* fix regression in last commit

* fix: address grid group review comments
2026-07-03 09:09:52 +02:00
Bram 2009deca91 feat: Adds option to keep synced rows when they are deleted in source (#5612) 2026-07-02 16:22:34 +02:00
Bram edb06c290b feat Show matching restricted view filters and allow setting default values (#5149) 2026-05-19 11:34:29 +02:00
Davide Silvestri 03ffed6dba refactor: migrate table import to centralized job store with reload restore (#5264)
* feat: add dynamic concurrency limit for file import jobs

Override can_schedule_or_raise() on FileImportJobType to enforce:
- max 1 running import per table (existing table imports)
- max 1 running new-table-creation per database
- global max_count cap

Follows the same pattern as GenerateAIValuesJobType.

* refactor: migrate table import and data sync to centralized job store

Replace the deprecated jobProgress mixin with the job mixin in
ImportFileModal, CreateTable, CreateDataSync, and the shared dataSync
mixin. This enables:

- Restore running jobs after page refresh via loadRunningJob()
- Cancel support via the job mixin's cancelJob()
- Centralized polling through the Vuex job store

Also enriches FileImportJobType with lifecycle callbacks, disables type
selectors during import/sync, and exposes table_id in DataSyncSerializer
for job matching.

* feat: store importer metadata on FileImportJob for UI restore

Add importer_type and original_file_name fields to FileImportJob so the
frontend can show which importer and file were used when restoring a
running job after page reload. Both fields are passed through from the
table create and import API endpoints.

* test: add e2e test for CSV import restore after page reload

Uploads a large CSV, starts the import, reloads the page, reopens the
modal, and verifies the file name and cancel button are visible.

* fix: defensive handling when backend job data is missing new fields (pre-deploy jobs)

* test: verify cancel button stops the running import job

* test: add e2e test for CSV import into existing table restore after reload

* fix: address PR review — filter data sync jobs by database, restore importer type, prevent chooser click during import

* fix: reset importer selection after cancelling an import job

* address copilot feedback; fix tests

* fix: address review — database=table.database, opaque importer_type docs, avoid double goto for Firefox

* fix: stabilize e2e tests for Firefox — wait for job in store, use larger CSV

* feat: add on_cancelled hook and data sync cancellation support

Add on_cancelled lifecycle hook to the job system, invoked after a job
is cancelled. The data sync job type uses it to trash the table when a
first sync is cancelled before completing. Bump max_count to 3 and add
can_schedule_or_raise for per-data-sync concurrency. Frontend gets a
cancel button, optimistic table cleanup, and store lifecycle hooks.
Rework importer metadata migration to use ZDM-safe TextField(null=True).

* address copilot feedback

* address feedback
2026-05-12 17:29:25 +02:00
Matt Van HornandMatt Van Horn 1e91a0e16c fix: update example data in JSON and XML import dialogs (#5016)
* fix: update example data in JSON and XML import dialogs

Replace placeholder data (Tove/Jani notes) with clearer contact
records (name/email/phone) that better demonstrate the expected
import format for new users.

Fixes #2953

* changelog: add entry for import dialog example data fix

Addresses review from @stribny: PR was missing a changelog entry.
Added a bug-type entry under changelog/entries/unreleased/bug/
referencing issue #2953.

---------

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
2026-05-07 14:16:59 +02:00
Bram 3b56679cb8 feat: Add Excel import (#5265) 2026-05-06 14:34:44 +02:00
Jonathan AdelineandPeter Evans b1a287aceb fix: import preview (#5253)
----
Co-authored-by: Peter Evans <peter@baserow.io>
2026-04-22 15:03:12 +00:00
dimmur-brw 3a431d246c fix (nuxt): instance unavailable errors (#5064) 2026-04-07 07:18:29 +02:00
Bram c264f91085 feat (View level permissions): Default view values (#5058) 2026-04-03 12:15:26 +02:00
Bram 6a4b56174d feat (View level permissions) [4/6]: Hidden fields (#5007) 2026-03-31 20:54:10 +02:00
Bram 019d02e93d feat: edit row via form view field (#4886) 2026-03-17 09:44:33 +01:00
Petr Stříbný d697a86bd0 Handle missing parsedData in reloadPreview() (#4845) 2026-02-23 11:24:07 +01:00
Petr Stříbný a3f58fcbb5 Fix onboarding empty paste table data (#4829) 2026-02-19 17:40:24 +01:00
dimmur-brw c46be3919a Replace $el with refs in GridView (#4803) 2026-02-19 11:21:44 +01:00
Jérémie Pardou d8cf0e26cd Fix crash while refreshing a view (#4809) 2026-02-18 22:18:41 +01:00
Jonathan Adeline 3d0808f852 fix form submission (#4742) 2026-02-12 20:19:29 +04:00
dimmur-brw 608a4a52d2 Various fixes for nuxt3 migration (#4604) 2026-02-11 11:29:32 +01:00
Jérémie Pardou ee21b017f2 Fix more frontend unit tests after nuxt migration (#4591) 2026-02-09 10:52:47 +01:00
Davide Silvestri e703b3466d chore: fix env vars customizations in all-in-one image (#4614)
* Fix production images

* Please linter and fix the use of the linter cache

* Polish frontend commands

* Remove build-local

* Fix dev server

* Address copilot feedback
2026-02-04 15:20:26 +01:00
Petr Stříbný c1a6eaed23 Fix field mapping when importing CSV (#4521) 2026-01-28 11:12:54 +01:00
dimmur-brw ab77d480cb Fixes for grid and other views (#4575) 2026-01-23 08:09:23 +01: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
Bram 8d25a43324 Add new formula editor 2025-11-11 12:47:46 +04:00
Bram Wiepjes efab3a05a8 PostgreSQL two-way data sync 2025-08-21 20:15:49 +00:00
Bram Wiepjes c5475a37fb Fix row coloring adhoc filtering and permissions bug 2025-08-18 13:30:53 +02:00
Przemyslaw Kukulski a422b9d1ad Skipped fields during CSV import overwrite table data 2025-07-31 19:49:06 +00:00
Bram Wiepjes 35a3793dad Auto add new data sync properties 2025-06-10 11:51:34 +00:00
Przemyslaw Kukulski a80114b556 Be able to specify a default value on multiple select field 2025-05-15 13:32:39 +00:00
Davide Silvestri 87848ac91d Resolve "Field level edit permissions" 2025-04-29 14:25:11 +02:00
Davide Silvestri 668198b15c Uniform fieldType.isReadOnly in the frontend 2025-04-18 10:45:17 +02:00
Bram Wiepjes aa2402b7c7 [3/4] Update Gallery and Kanban view styling 2025-04-17 11:28:09 +00:00
Bram Wiepjes 80b2d18267 Merge branch 'updated-header-styling' into 'develop'
[1/4] Updated the header styling

See merge request baserow/baserow!3337
2025-04-16 17:23:56 +00:00
Bram Wiepjes cec8c4319a [1/4] Updated the header styling 2025-04-16 17:23:56 +00:00
Przemyslaw Kukulski 9cee7ef17a Be able to specify a default value on boolean field 2025-04-15 08:49:10 +00:00
Bram Wiepjes eb5c734a0a Introduce guided tours 2025-04-01 20:52:11 +00:00
Cezary Statkiewicz a5145514a6 2213 upsert in table import 2025-03-18 20:58:54 +00:00
Davide Silvestri 845d4677db Resolve "Row enters view webhook event type" 2025-03-14 15:06:52 +01:00
Przemyslaw Kukulski e50aab9191 Fix no file selected error in table importer (csv/json/xml) 2025-03-07 09:57:04 +00:00
Cezary Statkiewicz b1c2f59bcb #3331 better error handling in database app UI 2025-02-26 12:37:45 +00:00
Jonathan Adeline a58e6a3300 Vuelidate upgrade 2025-02-17 13:17:35 +00:00