Commit Graph
404 Commits
Author SHA1 Message Date
Davide Silvestri 2052bcf176 fix: don't report a row fetch cancelled by a gallery or timeline refresh (#7016)
A search or filter change refreshes the view and cancels the pending
fetch of newly visible rows. The fetch threw RefreshCancelledError, but
the gallery and timeline views dispatch it without awaiting, so it was
reported as an unhandled rejection (BASEROW-SAAS-WEB-FRONTEND-7T). The
refresh loads the visible rows itself, so the cancelled fetch now just
returns.
2026-12-02 16:18:53 +01:00
alamin-br 94e374dbac fix: don't open a linked row after its cell or modal is closed (#6992)
The linked row modal can be unmounted while it fetches the row, which
left its modal ref null and threw on show.
2026-12-02 13:50:20 +01:00
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
Bram 59fab074b5 Updated descriptions for 3.0 (#6979) 2026-12-01 20:37:32 +00:00
alamin-br 71e30fc7ee fix: don't throw when a grid cell or context is gone before it's cleaned up (#6957)
A cell unmounted in the same render it was mounted in has no cell ref yet, and a
context can be hidden after an awaited request outlived it (Sentry FE-BX, FP, FN).
2026-12-01 18:01:30 +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
Tsering PaljorandJeremie Pardou 250748c8dc feat: Workspace level integrations (#6547)
* Add ADR-013 for workspace level integrations

* Add implementation

* Improve context section and remove technical points

* Move bulk replacement point to v2

* Remove workspace-level ownership on import since manual promotion should handle this.

* Add a glossary section

* Do Lazy creation + Celery migration

* Remove demotion

* Tighten the Options considered section

* Add Decision describing where the integrations are managed

* Update implementation plan after changes to ADR

* Sync plan and adr

* Rename adr and implementation

* Add the shared application that owns workspace integrations

* Create the shared application of every workspace

* Let only workspace admins manage workspace integrations

* Let applications use the integrations of their workspace.

* Trash workspace integrations in their workspace.

* Copy workspace integrations into exports and keep them in duplicates.

* Workspace admins can share integrations with every application in the workspace.

* Load the shared application of each workspace in the frontend and keep it out of application lists.

* Manage workspace integrations from an Integrations page in workspace settings.

* Offer workspace integrations in the integration dropdowns of every application.

* Move promoted integrations to the workspace list in other open tabs.

* Let admins make an app's integration available to the whole workspace from its integration settings.

* Preselect a workspace integration for new nodes and data sources when the app has none of its own.

* fix tests

* Delete implementation file

* More fixes after rebase

* Fix tests

* Let builders of an application see and use the workspace integrations from it.

* Show the workspace integrations, read-only, in the integration settings of applications.

* Keep a dashboard's integration out of promotion to the workspace.

* Leave the shared applications out of the admin dashboard's application count.

* Create the shared application of the workspaces made by the fill commands.

* Say in the promotion modal that an integration nobody authorized will run as the promoting admin.

* Say in the promotion modal that undoing it won't make the integration run as the previous person again.

* Ignore integration ids in sample data when publishing copies the workspace integrations an app uses.

* Let only undoing a promotion move an integration out of the workspace.

* Let the shared application backfill stop itself after 5 minutes and skip workspaces another transaction has locked.

* Say in the workspace integrations settings that published applications and workflows keep their own copy until they're published again.

* Leave the shared application out of the assistant evals' application counts.

* Refresh the workspace integrations when the Builder's data, events, users and integrations panels open.

* Say that anything new using a promoted integration blocks undoing the promotion, even from its own application.

* Warn when a database button sends through a workspace integration with no host or token.

* Refuse roles and invitations on the shared application.

* Fix tests

* Show an application only the workspace integrations of types it can use.

* Say in the promotion modal what builders of other applications can do as the integration.

* Leave the shared application type out of the API docs for creating and updating applications.

* Check who receives a workspace integration event in one permission call.

* Say which workspaces have a shared application and who creates it.

* Let a redone promotion record what uses the integration again.

* Update docstrings

* Stop template visitors from listing the integrations of the template's workspace.

* Let database buttons find their own copy of a workspace integration after an import.

* Say what holds the workspace row lock while a shared application is created.

* Fix tests

* Stop the workspace integration form component from being made reactive.

* Make test runs use a new copy of the workflow after an integration it uses changes.

* Hide the Members settings tab from members who can't list the workspace members.

* Add changelog

* Fix migration conflict

* Fix migration conflict

* Fix test

* Update comments and ADR number

* Link to the workspace integrations from the sidebar's Settings menu.

* fix: refresh agent action errors when workspace integrations change

* fix: move workspace integrations into workspace settings

* fix: use share icon for workspace integration promotion

* refactor: use explicit shared application relations

* feat: centralize default integration selection

* refactor: share integration change notifications

* refactor: prepare integration mappings before import

* refactor: collect integration references during export

* refactor: prepare integration ownership changes without a new hook

* test: restore registered service model after mocking

* test: cover shared integration defaults in Builder

* test: include Slack in Agent workspace integration choices

* Fix migrations

* Stop template visitors from listing the workspace integrations through an application of the template.

* Only offer integrations of the user source's integration type when updating a user source.

* Say the workspace integration copy means published Application Builder apps and automation workflows.

* Use the same spacing under both integration settings sections and enlarge their headings.

* Keep the shared application out of automatic snapshot schedules.

* Fix test after rebase

---------

Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
2026-11-27 15:49:32 +04: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
Davide Silvestri 23f328cb19 feat(database): assign identities to rows and mention them in comments (#6619)
* feat(database): assign and mention identities behind a field option

- Collaborator fields get `include_identities` and long text fields
  `long_text_include_identities`, both off by default.
- With the option on, active identities of the workspace can be assigned
  or suggested as mentions; they are shown with their icon and renamed
  in realtime, and they never receive notifications.
- Turning the collaborator option off backs up the column, deletes the
  identity assignments and strips identities from the view defaults, so
  the update can be undone.
- Identities can author row comments and be mentioned in them.
- Exports write an identity as `Name <identity>`.

* refactor: hide internal emails in collaborator exports through one check

* fix: import a personal view only for a person, without a query per owner

* fix: show collaborator identities with the icon of the user subject type

* refactor: drop a redundant local import of the core handler

* fix: unify identity icons and space field options

* fix: keep identity field menus and saved mentions readable

* fix: limit identity mention suggestions to row comments

* perf: prefetch available collaborators once per workspace

* fix: use workspace members as authors of generated rows

* fix: resolve linked collaborator values by member email

* fix: use workspace collaborators for field pickers and paste

* refactor: move identity avatar styles to the avatar stylesheet

* fix: address review feedback on identity collaborators
2026-11-18 22:53:44 +01:00
216d724aa3 Add dashboard text filter widgets (#6572)
* feat: add dashboard input filters and connected widget filtering

* style(dashboard): refine filter widget layout and resize handles

* fix: hide optional labels in dashboard filter settings

* feat(dashboard): resolve dropdown filter values from formulas

* feat(dashboard): add input and dropdown filter settings with cached options

* style(dashboard): use segmented control for filter type

* style(dashboard): remove separator above filter type

* style(dashboard): align filter settings field spacing

* feat(dashboard): support list-valued dropdown filters

* feat(dashboard): add single and multiple selection controls

* feat(ui): allow item cards without an icon

* feat(dashboard): simplify filter target configuration

* fix(ui): position floating dropdowns around their trigger

* feat(dashboard): simplify widget filter condition editing

* style(dashboard): streamline filter sidebar settings

* style(dashboard): clarify filter action buttons and spacing

* test(dashboard): align widget fixture with card rendering

* chore(changelog): document dashboard filters

* fix: preserve dashboard filter links across trash and restore

* fix: merge pending dashboard widget saves and settle all callers

* fix: match individual values in dashboard multi-select filters

* style: refine dashboard clear selection button

* feat: show dashboard filter cases as tabs with condition counts

* fix: limit dashboard refresh waits to dependent widget saves

* refactor: share the builder and dashboard item picker

* style: improve the dashboard text filter illustration

* feat: show inherited dashboard filters in widget refinements

* test: include table schemas in dashboard source responses

* fix: defer builder element availability checks until picker opens

* test: use shared item picker selectors in end-to-end tests

* feat: show Select actions for dashboard filter option fields

* feat: choose dashboard filter defaults from available options

Reuse cached options for single and multiple default selections and place the default picker below Filter values. Store multiple defaults as JSON lists while preserving existing string defaults.

* fix: clear dashboard filter defaults when options change

Save the new options and cleared default together so undo restores both. Ignore unchanged formula values and leave option refreshes unaffected.

* fix: persist filter defaults when switching selection modes

* fix: normalize dashboard filter defaults at the write boundary

* fix: preserve active filter selections when switching modes

* fix: remove unavailable dashboard filter defaults

* fix: reconcile filter defaults when dashboard options load

* fix: roll back filter selections independently of other widget saves

* fix: preserve explicit filter selections during failed saves

* fix: align dashboard filter input and dropdown dimensions

* feat: indicate when dashboard widget results are filtered

* feat: toggle dashboard filters for individual widgets

* feat: confirm and reset widget filters when changing tables

* fix: use source context data for dashboard filter options

* refactor: resolve dashboard filter options in the frontend

* refactor: organize dashboard filter providers and lifecycle hooks

* test: align dashboard context schema expectations

* fix: accept formula validation context in dashboard providers

* refactor: share dashboard update hooks and table selection

* refactor: configure nested dashboard formulas with shared field

* test: use grouped table selector in button field workflows

* refactor: validate dashboard runtime data through providers

* refactor: share formula property extraction across dashboard and builder

* refactor: delegate filter status to service types

* refactor: simplify dashboard restoration hooks and request cache

* perf: cache dashboard property extraction per widget

* refactor: resolve dashboard runtime filters through widget hooks

* refactor: rely on request transactions for dashboard source updates

* perf: share dashboard widget lookups and validation per request

* refactor: resolve dashboard context sources through handler

* refactor: validate dispatch data through every provider

* refactor: extract dashboard properties using source handler

* refactor: validate dashboard source ownership when saving formulas

* refactor: apply dashboard filters as additional AND groups

* refactor: store dashboard widget filters in relational models

* refactor: share grouped filter conversion and persistence

* refactor: delegate empty summary values to aggregation types

* refactor: place dashboard settings separators in data forms

* refactor: defer dashboard source formula imports

* fix: expose table field options for all data source types

* fix: scope dashboard cache signals to dashboard models

* feat: support option labels in selection filters

* fix: preserve summary widget spacing in edit mode

* test: preserve selection labels during filter imports

* fix: harden dashboard filters on public dashboards and select label view filters

* fix: keep dashboard filter imports, settings and stored links consistent

* fix: accept stale multi-value selections and validate inactive dashboard filter conditions

* feat: gate dashboard filter creation behind a feature flag

* feat: default dashboard filter conditions to their widget value

* fix: explain when the formula data explorer is empty

* test: use grouped table selector for agent triggers

---------

Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
Co-authored-by: peter_baserow <peter@baserow.io>
2026-11-18 15:22:53 +00:00
Davide Silvestri 42803f23ca feat: record and show the identity kind in history and pickers (#6620)
* feat: record and show the identity kind in history and pickers

- Snapshot the user type of the actor on row history, workflow history
  and audit log entries, and return it from their APIs.
- Show the identity icon in row and workflow history, list identities in
  their own section of the audit log actor filter and count them per role
  in inherited access.
- Load every identity in the team and access pickers through the
  paginated subjects endpoint, which now returns the workspace role.
- Give identities premium features from the workspace or instance
  licence instead of a seat.

* feat: record identity management in the audit log

Creating, updating and deleting an identity go through registered
actions, so the audit log shows who did it, with the identity's name and
role before and after an update. The actions are not undoable.

* fix: export an identity by its name in created by and last modified by

* fix: record the values an identity update replaced from the locked row

* fix: check the owner of an imported personal view without a query

* fix: show an identity with the avatar and icon of its subject type

* fix: audit an identity update by what it changed

* feat: include the actor's user type in the audit log export and tool

* test: cover a row history actor of an unregistered type

* test: name the history migration test after what it checks
2026-11-18 14:39:43 +01:00
alamin-br d63c32fa7a fix: require read access to the linked table for joins and link writes (#6608)
* fix: require read access to the linked table for joins and link writes

A token or restricted role limited to one table could read a linked table through
joins, and read its primary values by linking rows.

* fix: batch linked table checks and cover the remaining link write paths

Checks now run once per linked table so queries stay flat, and token batch results no longer take the last table's outcome.
Undo, skipped import columns and restricted-view self-links work again; upsert names and view default links are checked.

* fix: authorize link row view defaults when they are saved

An unreadable default on a shared view blocked everyone from adding rows there, so saving a new one now needs linked-table read.
Personal views keep the check on row creation because their owner configures them.

* fix: link the checked rows and explain linked table denials

Names were resolved again after the check, ids of missing rows passed it,
and the UI sends view defaults as values. Denials now name the linked table.

* fix: resolve self-link names per field and recheck trusted link defaults

Name lookups ran once per row in batch writes, and saved link defaults stayed
trusted after the field's linked table or the view's ownership changed.

* fix: check the linked table for link filters, assistant row tools and batch services

A link row filter and the assistant's row tools returned names of rows from a
table the user can't read, and batch services validated links before the check.
A default kept from another field type could be re-saved without the check.

* fix: restore removed link defaults on undo and refresh them in open views

Removing defaults on a link target change lost them on undo and left open
views sending the old value. Copying defaults into a view that trusts them
skipped the linked table check.
2026-11-17 09:17:33 +01:00
Davide Silvestri 26ff58a3d9 feat(agent): let agents send emails through configured actions (#6720)
* feat(agent): add configurable send email actions

* fix(agent): send what an action call showed and harden actions

Review fixes for the send email action.

- Resolve an action call's formulas once and carry the values from the
  held call to its dispatch, so the approved preview is exactly what is
  sent. DispatchContext.resolved_values lets a dispatch skip resolving
  the formulas of that service again.
- Deny an approved call when its integration changed, or when it comes
  back without the values its approver read.
- Let the AgentActionType base own configuration checks, preview and
  dispatch. A type only supplies its defaults and readable values.
- Reserve the mcp<number>_ names of connected app tools, and accept any
  valid input name, run_ctx included.
- Keep whole numbers whole in Number inputs.
- Add BASEROW_AGENT_MAX_ACTIONS_PER_AGENT, unset by default, and load an
  agent's actions in a constant number of queries.
- Order and label an action's fields from its presenter in the step
  card and in configuration errors.
- Replace the plan with docs/development/agent-actions.md.

* fix(agent): show what a saved action returns and drop undone errors

- A debounced save updated a copy the action card doesn't render, so the
  configuration errors the server found never showed. Save through the
  object the list renders.
- Clear a rejected edit's error once the edit is undone.
- Word the action limit so it also reads well with a limit of one.

* test(database): update decorator tooltip snapshots for edge-aware tooltips

The tooltip directive now keeps top and bottom tooltips inside the
viewport and positions their arrow, which changes the inline style the
two decorator tooltip snapshots record.

* fix(agent): mark an action formula with a refused argument as invalid

A function's argument check raises Django's ValidationError, which the
readiness check let through. A formula like minus('abc', 1), stored by
an import, then failed the action list, the configuration and every
reply instead of showing the action as misconfigured.

* fix(agent): start an email action on the instance server only if it delivers

The starter asked the looser question the builder and automations use,
while the readiness check asks whether a message is delivered. With a
backend that only prints, a new action opened on the instance server
and was unavailable straight away.

* fix(agent): name a deleted action in the trash

* fix(agent): read a negative agent limit as no limit

A limit of -1 was kept as a limit, so nothing could be added: no action
with BASEROW_AGENT_MAX_ACTIONS_PER_AGENT, no reply with
BASEROW_AGENT_MAX_ACTIVE_RUNS_PER_WORKSPACE. Both now treat 0 or less
as no limit, like the trigger caps.

* feat(agent): ask first by default before an action runs

A new action sent as soon as it was added, so anyone chatting with the
agent could have it email any address. Built-in tools that change data
and MCP tools already start with Ask first on; every action now does
too, at the model level so the next action types inherit it.

* fix(agent): tell the approver's own session when "Always allow" applies

Approving with "Always allow" turned Ask first off on the server, but
the realtime event skipped the approver's session as if it had edited
the action itself. The Actions card kept showing Ask first on while
emails went out. No session made this edit, so every session is told.

* fix(agent): show an action call in full to whoever approves it

The approval preview kept 10 recipients and 1,000 characters while the
call sent everything. An action's step now shows every value, never
shortened. Limiting what a call may send is left to a follow-up.

* fix(agent): apply every action event a reconnect replays

Action events all write to one slot of the agent, and the watcher only
saw the last value of a tick. A reconnect replays what it missed in one
loop, so an action another user created was lost when a later event
followed it. The watcher now runs on every write.

* fix(agent): reload the configuration when the agent gains or loses an action

Actions count as tools for web search, but nothing refetched the
configuration when one was added, switched, repaired or deleted, here
or by another user. On a model that can't search while it uses tools,
the web search setting stayed stale until a reload. The Actions section
now emits the reload other sections already use, only when the agent
gains its first callable action or loses its last.

* docs(agent): leave the limits of a call to its action type

What a call may send and what its preview shows is for each action type
to limit. Send email limits neither yet.

* fix(agent): mark a stored formula that can't be checked as invalid

A formula nested too deeply raised RecursionError in the readiness check,
so listing the actions, the configuration and every reply failed. Any
failure to check a formula now marks its field as invalid, as a stored
formula can make the parser or a function's own check raise anything.

* fix(agent): keep an approval when its integration is renamed or moved

The approval key digested the whole exported integration. Its name and
its place in the list don't change where a call is sent, and the place
of every integration can change when another one is added or moved.

* fix(core): keep the custom scrollbar in WebKit browsers

Since Chromium 121 the standard scrollbar properties replace the
::-webkit-scrollbar rules, so the rich text editor lost its 10px thumb.
The standard properties now only apply where those rules don't exist.
Stylelint is told that a mixin's body ends up inside a rule.

* chore(agent): name the collapse-all button after its block
2026-11-16 14:41:41 +00:00
Davide Silvestri 313156b6ea fix(database): group date-only created on and last modified fields by day (#6618)
* fix(database): group date-only created on and last modified fields by day (#6616)

* fix(database): sort grouped date rows by their group key (#6616)

* fix(database): align date groups and audit date sorting

* fix(database): align audit date filter values with sorting

Implement the companion get_value_for_filter required by custom get_order. Normalize date-only values to the UTC-day ordering key while preserving full timestamps and nulls, with SQL regression coverage.

* fix(database): harden date grouping and view indexes
2026-11-06 18:29:38 +01:00
Przemyslaw Kukulski 308919f3d4 fix: keep input made before the page finished loading (#6627) 2026-11-06 13:50:48 +01:00
Davide Silvestri ca3d710b3b feat(agent): choose the identity an Agent runs as (#6540)
* feat(agent): choose the identity an Agent runs as

Agents can run as one of the workspace's Agent identities or with no
workspace access. The tools that act with the identity's permissions
come next.

* fix(agent): refresh the run-as identity label

* fix(agent): flag deleted run-as identities in configuration

* feat(agent): explain unavailable workspace identities

* refactor(agent): return a typed configuration object

* fix(agent): handle run-as identity permissions and lifecycle

* refactor(agent): use constants for readiness and state checks

* fix(agent): record before and after configuration values

* refactor(agent): move configuration transaction to API view

* fix(agent): batch run-as identity invalidations

* test: use real debounce in views admin tests

* fix(agent): keep run-as choices within the viewport

* perf: reuse permission data within batches
2026-11-05 09:16:14 +01:00
Przemyslaw Kukulski 2f17b58e1c feat: download a user template (#6477)
* feat: download a user template

* Review feedback

* Review feedback 2
2026-11-03 07:49:04 +01:00
Bram 236249fe62 Allow editors to copy the view configuration into personal view (#6541) 2026-10-29 21:47:49 +01:00
alamin-br e53694bfec fix: cap the page size of view row listings (#6489)
* fix(backend): cap page size on view row listings and the agents list

Grid, gallery and timeline row listings (including public views) and the agents
list accepted any page size, so one request could serialize a whole table.
Kanban limit/offset now reject negative values instead of erroring.

* fix(frontend): keep view row requests within the row page size limit

Grouped grid ranges can span collapsed groups and exceed the limit the backend
now enforces, so grid requests are split into chunks and merged. Gallery and
timeline request sizes are capped to the configured limit.

* fix(backend): cap kanban limits and keep default page sizes within the limit

Kanban limits were unbounded, and a default page size above a lowered
BASEROW_ROW_PAGE_SIZE_LIMIT made requests without a size fail.

* chore: add changelog entry

* fix(frontend): fetch grouped grid rows per visible section

One range from the first to the last visible section also fetched every row
of the collapsed groups in between, split into thousands of capped requests.

* fix(frontend): fill the visible gallery and timeline range under a small page size limit

Capping the request size left visible rows as placeholders when the limit was
smaller than the visible range.

* fix(frontend): keep kanban row requests within the page size limit

The kanban store always asked for 24 rows, so it stopped loading when the limit
was set lower.

* fix(premium): return no rows when kanban or calendar grouping has no group to fetch

With no matching select option or an empty date range, the empty filter selected
every row of the queryset without the view filters applied.

* fix(frontend): refresh grouped grid rows per visible section

The refresh fetched one range across all visible sections, so a large
collapsed group in between turned into thousands of capped requests.

* chore: mark the page size limit changelog entry as a breaking change

Requests above the limit now return a 400 instead of rows.
2026-10-28 15:00:55 +00:00
Przemyslaw Kukulski 356f9a9da6 feat: install a user template (#6460)
* feat(install-user-template): Install a user template

* Review feedback

* Review feedback v2
2026-10-28 14:07:20 +01:00
Bram 8353d65c5f refactor: [1/5] Prepare for semantic search (#6470)
* Made pending search data updates reusable

* Added field extension hooks

* Moved embeddings and text chunking to core

* Fixed feedback
2026-10-28 10:03:02 +01:00
alamin-br 7e1eca2ea8 fix: match no rows for invalid id values in view filters (#6488)
* fix(backend): match no rows for an invalid single select equal filter value

A non-integer value made the filter a no-op, so every row matched. It now matches
nothing like the is-any-of filter; empty values still disable the filter.

* fix: match no rows for invalid id values in has and is view filters

Link row has, collaborators has and user is matched every row on a non-integer value.
Id values now use the frontend integer rule, so formula fields no longer get a raw
value in the jsonpath and realtime matching agrees with the backend.

* chore: add changelog entry

* fix: parse link_row_has ids with the frontend ASCII digit rule

Keeps the backend and realtime matcher in agreement for fullwidth or superscript digit tokens.
2026-10-27 11:00:55 +01:00
Jonathan Adeline 985f1a26fb feat: redesign CrudTable with expandable rows and improved empty states (#6292)
* test: add CrudTable Storybook states

* feat: refresh shared CrudTable design and empty states

* feat: add expandable CrudTable rows with scoped details

* fix: center CrudTable pagination and improve empty state actions

* feat: add helpful empty states for teams members and invites

* fix: isolate CrudTable cell bindings and distinguish empty pages

* test: update view admin assertions for CrudTable row groups

* docs: demonstrate scoped member roles in CrudTable stories

* docs: simplify expandable CrudTable stories

* docs: consolidate narrow CrudTable stories

* docs: remove CrudTable development guide

* feat: demonstrate role removal in CrudTable stories
2026-10-21 20:04:54 +04:00
Jonathan Adeline 4fda533102 feat(builder): add optional search to choice dropdowns (#6283) 2026-10-21 19:39:39 +04:00
Jérémie Pardou 93eeb19dcb feat: run Local Baserow integrations as Agents (#6064)
* Run Local Baserow integrations as Agents

* fix tests

* feat(core): add reusable subject options endpoint

* Add beta badge

* fix(audit-log): require actor type with actor id

* fix(audit-log): avoid duplicate actor export columns

* fix(audit-log): guard deprecated actor fields

* Restore the feature flag

* fix tab alignement

* fix(integrations): reject trashed authorized agents

* Fix migration conflict

* fix(audit-log): assert structured validation error

* fix(database): support agent row deletion trash entries

* fix(database): support agent row notifications

* fix(core): enforce subject option permissions

* chore: fix formatting after rebase

* fix(core): include agents in member totals

* fix(database): batch row history actor migration

* fix(integrations): handle trashed authorized agents

* fix(core): remove untranslated subject labels

* chore: move nodes around

* test: mock integration registry in AI agent service tests

* fix: resolve database migration conflict

* Add changelog entry

* feat: use typed subjects for local Baserow integrations

* fix: make audit actor migration retry-safe

* fix: retain historical audit actors

* Please linting

* fix: use canonical local integration subjects

* fix: order listed workspaces

* fix: validate current user integration authorization

* fix: preserve integration authorization on update

* docs: clarify migration deployment compatibility

* fix: paginate local baserow agent selection

* fix: validate selectable subject options

* fix: preserve integration authorization on update

* fix: show saved integration user in subject dropdown

* fix(enterprise): protect team subject options

* fix(builder): redispatch data sources for trashed agents

* fix(database): split row history actor backfill

* fix(enterprise): require audit log actor type

* fix(enterprise): use audit log actor options

* fix(core): prevent blank agent names

* fix(integrations): resolve migration conflict

* fix(integrations): pass SMTP preparation context

* docs: clarify migration rollout guidance

* fix: handle trashed integration subjects

* fix: reuse local integration authorization column

* fix: allow unconfigured local integrations

* fix: only update changed integration values

* fix: cache local integration subjects

* fix: sort field permission subjects by name

* fix: include historical audit log actors

* fix: center grow tab labels

* chore: remove unused AI providers flag

* fix: support agent file uploads

* Please linter

* fix: initialize integration edit values

* fix: preserve integration authorization updates

* fix: bound audit log actor pagination

* fix: support legacy local integration fixtures
2026-10-19 10:38:57 +02:00
Davide Silvestri ca2f3e1115 fix: keep public and restricted views in sync when linked-table changes move rows (#6339) (#6378)
* fix: keep public and restricted views in sync when linked-table changes move rows (#6339)

- Dependency cascades now send rows_deleted / rows_created to publicly shared
  and restricted views when a row leaves or enters their filters. The decision
  is made inside the transaction, from a before snapshot read under the row lock.
- Only tables with such a view filtering on a field the cascade changes pay for
  this. The check is an EXISTS inside the existing snapshot read, so other tables
  run the same queries as before and take no extra lock.
- Snapshot reads match ids read from the link tables with id = ANY(ARRAY(...)),
  which avoids a full primary key walk. A row the cascade updated before
  snapshotting it never gets an enter/leave decision.
- Fields a cascade changes without an UPDATE (link values) are tracked across
  the transaction. Views filtering on them are skipped, and those values are
  left out of rows_deleted. This replaces the cell_values_come_from_other_tables
  field type flag.
- Cascades over the realtime limit also refresh publicly shared and restricted
  views (force_view_rows_refresh), not only workspace members.
- On realtime deletes, the client removes rows it already holds by id. When the
  payload lacks a value it needs to place an unheld row, it leaves counts as
  they are.
- Creating a linked row from a link cell no longer sends a redundant PATCH,
  which failed in restricted views.

* test: keep only the essential #6339 tests and trim docstrings

Merge overlapping tests into shared builders and parametrized cases. Keep one
test per behaviour, and keep the exact security assertions. Cut new docstrings
and comments down to the non-obvious why.

* fix: keep a link created from the link-cell modal in the cell (#6339)

Skipping the redundant PATCH also skipped the only local write of the
new link, so a later pick or remove PATCHed a stale list and unlinked
the created row. The link is now applied locally through the same store
path realtime uses; only the PATCH is skipped.

* fix: let a cascade decide only rows nothing else wrote in the transaction (#6339)

A broadcast decided enter and leave from its first snapshot of a row
and cached the result, so another write in the same transaction made
it send rows or values a public or restricted view never showed: a
direct edit after the cascade, a row created or edited before it, the
other rows after close() split the broadcast, or a cascade inside a
savepoint.

The transaction's writes are now tracked per table. At commit, a
broadcast drops every row something else wrote: rows written directly
keep develop's direct-path events, and rows of a savepoint split or of
a bulk write get none. close() is gone.

Also pins the no-lock gate's filters_disabled and changed-link cases.

* chore: shorten the #6339 changelog entry
2026-10-19 09:39:10 +02:00
alamin-br 3e084aceb4 docs(adr): rewrite ADR 006 in the ADR template format (#6337)
* docs(adr): rewrite ADR 006 in the ADR template format

Folds the phase amendments into the main sections and trims the record to the decisions.

* docs: point ADR 006 references at the rewritten sections

Drops references to points the trimmed record no longer covers.

* docs(adr): drop implementation details from ADR 006

* docs(adr): state the unwritable-field rule in ADR 006

Comments cite it as section 4's stricter rule.

* docs(adr): apply review suggestions to ADR 006
2026-10-09 11:21:26 +02:00
Davide Silvestri 89184e9b27 fix: stop editing rows hidden by restricted view filters (#6217)
* fix: stop editing rows hidden by restricted view filters

Cancel edits still queued for a row that the backend reported as hidden,
including pasted values, in grid, gallery, timeline, kanban and calendar,
so they are neither sent nor put back on screen. Close the row modal when
its row gets hidden in a restricted view; other views keep it open.

* test: cover builders and ignore broadcast order in restricted view tests

* test: add e2e tests for restricted view row visibility

Cover creating, editing, pasting and dragging rows in a restricted view
while the HTTP response is held after the server commits, the row modal
closing only in restricted views, and view default values.

* fix: hide rows created with the grid's floating add button when filtered out

createNewRowConfirmed used the single-row endpoint, which doesn't return
hidden_row_ids, so a restricted editor kept a row the view's filters
exclude. Create it through the batch endpoint and report hidden rows like
the other create paths.

* test: expect the batch endpoint for the grid's floating add button

* fix: cancel queued kanban edits when a drag hides the card
2026-10-08 09:23:06 +02:00
Peter Evans 2e6c3fa56c Harden the HTTP request service's response handling. (#6255) 2026-10-05 14:10:43 +01:00
Davide Silvestri fc6bfb299b feat(database): format AI field text output as rich text (#6221)
* feat(database): format AI field text output as rich text

AI fields with text output can store rich text, reusing the rich long
text editor without mentions or images. New AI fields default to it in
the create form; existing fields, API clients and old imports stay
plain. Rich fields add a one-line formatting instruction to the prompt.

Also:
- forward row-modal edits of AI fields, which were never saved
- keep image markdown as literal text when images are off, instead of
  reducing it to its alt text and losing the URL on save
- escape user file image references as `![alt]\[name]` so a reference
  nested in another's alt text can't stay live
- return 400 instead of 500 when a PATCH would make a primary field
  rich text

Closes #6220

* fix: preserve reference image URLs in rich text

Defined Markdown image tokens carry their destination and title separately
from the raw reference marker. Keep that data as self-contained literal
inline text when image nodes are disabled, and align the preview behavior.

Add parser, AI row persistence, and browser regressions while preserving
internal file references and the existing inline-image path.

* fix: handle AI field changes during generation
2026-10-05 09:17:09 +02:00
dependabot[bot]andDavide Silvestri 5188e33168 chore(deps-dev): bump @nuxt/test-utils from 4.0.3 to 4.3.2 in /web-frontend (#6273)
* chore(deps-dev): bump @nuxt/test-utils in /web-frontend

Bumps [@nuxt/test-utils](https://github.com/nuxt/test-utils) from 4.0.3 to 4.3.2.
- [Release notes](https://github.com/nuxt/test-utils/releases)
- [Commits](https://github.com/nuxt/test-utils/compare/v4.0.3...v4.3.2)

---
updated-dependencies:
- dependency-name: "@nuxt/test-utils"
  dependency-version: 4.3.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* test: adapt frontend specs to @nuxt/test-utils 4.3.2

4.1.0 no longer passes the `import` condition to test workers, so resolve packages with import.meta.resolve (nuxt only exports `import`). The test environment now also adds an empty #teleports div to the body snapshot.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Davide Silvestri <silvestri.eng@gmail.com>
2026-10-02 09:37:27 +00:00
Davide Silvestri 331910f62e fix(database): anchor the floating add row button to the view (#6222)
* fix(database): anchor the floating add row button to the view

Position the + button absolute to the gallery, grid and timeline view
containers instead of fixed to the viewport, so it stays inside the view
when a side panel narrows it.

* chore(storybook): replace fixed with absolute in ButtonFloating story
2026-09-30 16:30:54 +02:00
alamin-br aedbdfcfd3 fix(database): guard grid against missing and stale cell values (#6207)
* fix(database): guard grid against missing and stale cell values

Grouped rows now get newly created fields, sorts treat a missing or null cell
as empty, and rich text cells tolerate a value of the previous field type.
Rows in collapsed groups resolve their group from the section key.

* fix(database): address review findings on grid cell guards

Key an undefined group value like null so pathFromKey can parse it, remove
deleted rows from collapsed groups, and sort present-but-undefined cells and
empty multiple select or collaborator formulas as empty.

* refactor(database): drop empty value for formula types that cannot be sorted

Multiple select and collaborator formulas cannot be sorted or grouped by, so a missing cell never reaches their sort.

* fix(database): sort zero in array formulas as a value

The element check treated 0 as missing, so [0] tied with [] and with other numbers.

* fix(database): keep grouped row caches shared and sort null cells as empty

addField now reuses one copy per row, so an edit reaches both sectionRows and
absoluteRows. The sort wrapper also replaces null cells.
2026-09-30 15:16:52 +02:00
alamin-br f594e12c0f feat(database): button field - send email through an SMTP integration (#6208)
* feat(database): let a button email send through an SMTP integration

SaaS turns instance SMTP off, which left the email action unusable there.

* feat(database): flag a button email with nothing to send through

An email set to an unavailable instance server or a missing integration fails on every click.

* test(database): cover email actions carrying an SMTP integration through import

* feat(database): pick an SMTP integration for a button email

The backend now lets a button email send through an SMTP integration, so the form offers the dropdown and says when the instance cannot send.

* fix(database): let a stale instance email switch to an integration

With the instance choice hidden the saved true value stayed, so the integration was dropped by the backend.

* docs: record that button emails can use an SMTP integration

SaaS turns off instance SMTP, so the 4b revisit trigger fired.

* test(e2e): the button email form offers an SMTP integration

The form now matches the builder's instance/integration choice.

* fix(database): refresh open button editors when an integration is updated

A renamed or reconfigured integration left the editors of the buttons using it stale.

* fix(database): keep a button email's integration choice from blocking a save or a click

Switching to the instance failed when the old integration was trashed or unreadable. A trashed, missing or hostless integration only failed after earlier actions ran.

* fix(database): refuse button emails that cannot send and keep the chosen sender

A stored instance choice was lost on any save while instance SMTP was off, and a named integration was dropped where the instance only prints mail.
Clicks through an integration with no From or a non-public host are refused before anything runs.

* fix(database): stop the button email form from editing actions on open

The shared SMTP form rewrote a stored instance choice on mount, so opening an editor during an SMTP outage changed actions, and the builder and automations saved on view.
The form is back to develop's behaviour unless the button passes its new prop.

* chore: drop the changelog entry for button email integrations

The button field is not released yet, so its own changelog entry covers this.

* fix(database): let a button email's SMTP integration be edited

A database has no integrations page, so the dropdown is the only place to edit one, as with the Slack action.
2026-09-29 16:50:45 +00:00
Davide SilvestriandBram Wiepjes 8b84fdd02c fix: prevent duplicate rows in restricted views (#6199)
* fix: report rows hidden by restricted view filters in batch responses

Compute row_ids_not_visible_in_view with one filter query in the API instead
of reusing visibility stashed by the realtime receivers, so dependent formula
and lookup filters are evaluated after the update. Ignore views of another
table.

Move kanban drag and grid cross-group drag to the batch update, so a row
dragged out of a restricted view is hidden and the move call is skipped.
Merge the frontend helpers into reportRowsNotVisibleInView and remove hidden
rows even when they don't match the active grid search.

* refactor: rename row_ids_not_visible_in_view to hidden_row_ids

---------

Co-authored-by: Bram Wiepjes <bramw@protonmail.com>
2026-09-29 18:03:05 +02:00
Davide Silvestri 157f586602 feat(database): add a floating add row button to the grid view (#6193)
* feat(database): add non-optimistic createNewRowConfirmed grid store action

* feat(database): add floating add row button to the grid view

* test(e2e): cover the grid floating add row button

* chore: add changelog entry for the grid floating add row button

* test(database): update page snapshots for the grid floating add row button

* test: tighten floating add row button assertions

* fix(database): keep the grid floating add row button above the footer
2026-09-29 09:17:20 +02:00
dimmur-brw 5d0bef8f7a feat: enable image embedding in rich text fields (#5775) 2026-09-28 13:57:41 +02:00
alamin-br 2dd4defb3b feat(database): run a button click with external actions as a job (#6164)
* fix: keep every button action card in place after a save

A retyped action can keep its id, and an action created by an earlier
save still carries its client id, so the refetched list must keep the
client id of every buffered action rather than only the created ones.

* feat(jobs): let a job type choose its Celery queue

* test: assert the job enqueue through apply_async

* refactor(database): expose the button click pre-checks on the service

* refactor(database): share the button click payload and outcome mapping

* feat(database): run a button click with external actions as a job

* fix(database): map click races on the job and assert the audit entry

* feat(database): answer a click with external actions with a job

The request returns 202 and the job runs the sequence, so a slow endpoint
holds a Celery worker instead of a WSGI one.

* fix(database): give a capped click its slots back and cover the denied job

* refactor(database): raise a plain exception for a denied click job

* chore: consume the button_dispatch queue on the default worker

* chore: add the button_dispatch queue to the Zed worker launch config

* feat(database): wait on the job of an accepted button click

* fix(database): stop waiting on a button click job after a deadline

* test(e2e): a slow endpoint no longer blocks the grid during a click

* test(e2e): name the second-button test for what a single worker can prove

* test: assert the airtable import job enqueue through apply_async

* chore: changelog for the button dispatch job

* fix(database): keep the clicker's IP and session on a button click job

The audit log and analytics read both from the user, which the job only restores through these mixins.

* fix(database): fail a button click job whose field or table was trashed

* fix(database): serialize the busy check of a click with its job creation

Two racing requests could both see the cell free and each start a job, so a single worker sent every request twice.

Also drops the budget bookkeeping from the inline path, which no longer reaches outside Baserow.

* test: assert a refused dispatch check records no audit entry

* docs: say a button click job shares the default worker with realtime updates

Also adds the automation_workflow and button_dispatch queues to the example supervisor config.

* fix(database): check a button click job once more at the deadline

The job store stops polling before the deadline, so a job that finished unseen was reported as still running.

* test: cover an accepted click in the row modal and on a card

* refactor(database): ask the service whether a cell has a click in flight

The view queried the job table itself; the check belongs beside the
other dispatch rules in the service.

* fix(database): run only the action list a click was accepted with

The request checks and charges one list; the job re-read the field's
current one, so an action added while the job waited ran unchecked and
an added external one sent without a rate-limit slot.

* fix(database): keep queued button clicks sane across crashes, retypes and trash

A dead worker's job no longer blocks its cell until cleanup, a retype no longer deletes a queued job, and a trashed database refuses the click.
Core permission refusals use the API's wording. The cell lock is shared and the unused refund plumbing is gone.

* fix(database): stop a queued button click from sending twice or unchecked

A late or replica-blind click no longer repeats its requests, a retype to external is caught, and a quota refusal answers in the request.
Slots come back when no job row was written, and the stored answer is safe for jsonb.

* fix: keep polling a button click job after one failed poll

A click waits on the job store, which stopped for good after a single failed poll. A settled click's job is dropped so the store stops polling it.

* fix(database): stop a cancelled button click between actions

The owner can cancel a running job, and later actions still ran. The last job check at the deadline is bounded too, so a hung request cannot keep the button spinning.

* test: cover a job's answer reaching Open URL and a click edited while queued

* fix(database): let a click job finish when its button is retyped mid-run

The worker's save wrote the old field id back and failed. Timeouts and unmapped failures no longer name the job type, and a job that is already final leaves the store.

* fix(database): run button click jobs on the export queue

Review feedback: the celery queue is for fast tasks, and a new queue needs every self-hosted worker changed.
Also strips lone surrogates from the stored answer, moves the enqueue rules into the service and drops the unused websocket id.

* fix(database): drop a waiting button click on logout or table switch

A job can end minutes after the click, when its toast or Open URL no longer belongs to the page.

* chore: drop the changelog entry for #6134

The button field has not shipped yet, so there is no fix to announce.

* fix(database): point a click job at the base field

A retype deletes the button row, so a job pointing at it had to be
nulled first, and a click landing meanwhile failed the retype.

* fix(database): keep a button spinning for its job after a reload

The spinner only knew about clicks made in this page, so a reload
dropped it while the job ran and a second click got the 409 toast.

* fix(database): ignore a late job_started for a settled button click

On a single worker the broadcast reaches the clicking tab after the job
ended, and its started copy spun the button again until the next poll.

* docs(database): correct the dispatch signal and e2e comments

The signal's first send for a job click happens before the enqueue lock.
2026-09-28 11:13:42 +02:00
alamin-br b8caade86a fix(database): open new-tab URL buttons in Safari (#6171)
* fix(database): open new-tab URL buttons in Safari

Safari blocks window.open once the dispatch request has returned, so the
button opens the tab on click and the Open URL action navigates it.

* fix(database): take opens_new_tab from the field after saving actions

The action list is stale when refreshing it fails.

* test(database): match button flags by label, not list order

* fix(database): leave no empty tab for mailto and tel button URLs

Such URLs hand off to another app, so they navigate the current page and
the placeholder tab is closed. Covers opens_new_tab in the broadcast test.
2026-09-25 17:54:39 +02:00
Davide Silvestri 64c9fff85e feat [6/8]: prepare AI provider management for rollout (#6070)
* feat: retire AI provider flag and add rollout audit

* test: remove obsolete AI provider flag setup and docs

* chore: clean up AI provider configuration and tests

* feat: deprecate legacy AI provider environment configuration

* docs: explain AI provider migration sizing and timing

* docs: mark AI provider migration audit for removal

* docs: explain AI provider migration audit usage

* fix: log AI provider env deprecations after logging setup

log_ai_provider_env_deprecations() ran at the tail of _setup_health_checks(),
which ready() calls before setup_logging(). The notice went out through
loguru's default sink and missed BASEROW_BACKEND_LOG_LEVEL, the Baserow
format, and the OpenTelemetry log exporter, so operators shipping logs to a
collector never saw it.

Also drop two references the flag removal invalidated: the getEffectiveAIAgentModels
JSDoc still described filtering as conditional on the removed provider flag, and
the AI field architecture doc still pointed provider authors at the deleted
legacy workspace-setting hook. That doc now names BuiltInGenerativeAIModelType,
which is what grants an integration override model inheritance.

* fix: reuse environment AI settings in generation workers

* feat: import legacy AI provider settings on upgrade

Removing the ai-providers flag makes database-backed providers the default, which
would leave every existing installation on an empty AI providers page with a
management command as the only way to populate it. A data migration imports the
environment and each workspace's stored settings instead, so a standard upgrade
needs no commands.

Both scopes are imported in one migration. Legacy workspace settings replaced the
instance ones entirely, while database providers inherit, so each imported workspace
is also switched off the instance provider of the same type. Without that a workspace
would silently gain models billed to the instance account.

Settings that cannot fit their columns are skipped and logged rather than raising
DataError and rolling back the whole upgrade. The migration reverses as a no-op
because the previous version does not read these tables, so deleting rows would only
discard edits made during a rollback window.

migrate_ai_provider_settings stays as the recovery path and now shares its planning
logic with the migration, so both agree on which legacy settings are complete. It
deliberately does not switch workspaces off inherited providers, and warns instead.

* chore: remove the temporary AI provider audit command

audit_ai_provider_settings existed to inventory legacy configuration before a manual
import. The upgrade now imports automatically, so the command has no remaining step
to support. Removal was already tracked in #5749.

* docs: reduce AI provider docs to lasting behaviour

The upgrade procedure, rehearsal plan and sizing query described a one-time
transition and do not help anyone after the release; they live in the pull request
instead. What remains explains how providers work: the two scopes, how they combine,
the inheritance switch, what the deprecated environment variables still do, and how
integration overrides and published applications behave.

Also corrects claims that no longer hold: published applications keep materialised
credentials only when they were published before the upgrade, the import is no longer
optional, and a workspace-owned provider suppresses the environment fallback too.

* docs: shorten the AI provider changelog entries

Bullet points render as single list items under the entry. The released entries
average around twenty characters; these ran to four hundred, so the detail belongs
in the AI providers guide rather than the changelog.

* docs: clarify where imported AI credentials are stored

The previous wording implied Baserow's own exports carry provider credentials.
They do not: AIIntegrationType lists ai_settings as a sensitive field and
ImportExportConfig excludes those by default, and AIProviderConfig is not part of
any export path.

* docs: explain the AI provider upgrade and where to configure providers

State that the upgrade imports the BASEROW_* provider variables once and no longer
reads them, list the exceptions, and give the exact navigation for instance admins
(Admin tools -> AI providers) and workspace admins (workspace Settings -> AI
providers). Map each deprecated variable to the field that replaces it.

* fix: renumber the legacy AI provider import after 0121_agent

Develop's core 0121_agent and this branch's import migration both depended on
0120, leaving two leaf nodes, so migrate refused to run and the startup check and
E2E shards failed. The import is now 0122 and depends on 0121_agent.

* feat: remove the legacy workspace generative AI settings endpoint

GET/PATCH /api/workspaces/{id}/settings/generative-ai/ had no caller left, yet a
PATCH was still honoured for any provider type without a workspace provider and
never shown in the AI providers UI. Remove it with the handler parameter,
receivers and frontend handler that only it could trigger.

* fix: stop instance AI provider changes from fanning out per workspace

An instance-level change queued one Celery task per 25 workspaces behind a global
blocking lock, sent a payload to every connected user, and made the premium receiver
serialize every AI field on the instance. Instance changes now notify staff only;
other users see them after a reload. The render lock is per scope, and the in-use
guards no longer read one row per workspace.

* fix: keep inherited Kuma when a workspace switches off the instance provider

The upgrade switches imported workspaces off the same-type instance provider, which
made an inherited instance Kuma model invalid there, so Kuma fell back to the
deprecated env model or turned off. Inheriting the instance Kuma selection now
ignores workspace switch-offs; explicit workspace selections stay strict and are
the only ones that block a switch-off.

* fix: skip malformed Ollama URLs during AI provider migration

* fix: preserve skipped legacy AI provider connections

* test: cover independent legacy AI workspace connections

* fix: skip malformed legacy AI provider settings

* fix: move legacy AI import after current core migrations

The linear rebase omitted the migration renumbering from the previous merge commit, while develop advanced through core 0124. Rename the existing AI import to 0125, depend on 0124, and update its historical migration test so core has a single leaf.
2026-09-25 17:05:10 +02:00
alamin-br bf4179d759 feat(database): plugin hooks for button field action list (#6174)
Lets a plugin add components next to each action type in the dropdown and
next to the Actions heading, so SaaS can show what an action costs.
2026-09-25 13:18:14 +02:00
alamin-br a3095f807e feat(database): remove the button field feature flag (#6149)
* feat(database): remove the button field feature flag

The field ships in the next release, so creation, conversion and the
workflow action endpoints no longer check FF_BUTTON_FIELD.

* chore: drop leftover button field flag references

The 403 schemas and comments still described the removed gate.
2026-09-23 16:17:20 +02:00
alamin-br 9b4fbdff7e fix: button field follow-ups from the #6086 review (#6135)
* fix: keep a button action card open when its save finishes

A created action is keyed by its new id once the list is refetched, which closed the card while the context was still on screen.

* fix: give the button action error a line height

* fix: outline the selected button field cell

* fix: name the button actions that ran before one failed

Completed actions are not rolled back, and the old message left the clicker to assume nothing had happened.

* fix: disable a button field for users who may not click it

The dispatch operation is now scoped to the field, which is the only id a cell has to ask with. Roles attach no lower than the table, so one check on the field answers the same as one per action.

* fix: refetch permissions when a field is created or restored

A role on the table or database lists the fields it covers, so a field
added after the page loaded was refused by every field scoped check
until a reload.

* test: cover the disabled button in the row modal and on a card

* fix: keep a button action card in place while its save finishes

The refetched list keyed a created or retyped action by its new id, so
its card remounted and the editor scrolled to the top mid-save.
2026-09-23 16:00:14 +02:00
alamin-br 12779fd6eb feat: report button field clicks to PostHog and OpenTelemetry (#6121)
* feat: send a signal for every button field action dispatch

* feat: send a signal with the outcome of every button click

* feat: let plugins refuse a button click before it runs

* feat: send button clicks to PostHog with their outcome

* fix: log failed button field signal receivers by class only

* feat: send button action editor changes to PostHog

* feat: trace button field dispatch and record click metrics

* fix: keep dispatch failure text out of button field spans

* feat: report button client action results to PostHog

* chore: changelog for button field analytics

* fix: count plugin refusals and interrupted clicks correctly

Outcome now starts as ERROR so a click interrupted before completion
or before the except handler runs is never counted as completed.
Also pins the plugin-refusal-to-DENIED mapping with a test, and adds
field to workflow_action_dispatched so a SaaS receiver does not have
to query it back off workflow_action.

* fix: count a Django PermissionDenied refusal as denied

DRF answers it with a 403, so a plugin refusing a click with it was reported as an error.

* fix: keep editor analytics types out of stored undo params

The previous version can't load params it doesn't know, so an undo landing on it during a deploy would fail.

* fix: tighten what button click analytics report

Outsiders' clicks, missing rows, HTTP error statuses, crash positions and refusals on the click span were reported wrong or not at all.

* fix: keep external button action URLs out of traces

The requests instrumentation's client span recorded the full URL, query string included, and sent the trace id to the endpoint.

* fix: read an HTTP action's status code for the action metric

The HTTP service keeps the remote status in the result data, so remote errors and timeouts were counted as ok.

* fix: count an action cut short by a worker timeout

A BaseException skipped the per-action signal and the failed position.

* chore: drop the button click analytics changelog entry

* fix: let the click duration histograms reach a timeout

The default buckets stopped at 10s, while an HTTP action may wait 120s and its watchdog twice that.

* fix: report endpoint refusals and log observers by class

A completed click now counts the actions whose endpoint answered with an error status, and the per-action signal logs a failing receiver the way the click signal does.
2026-09-23 12:57:34 +02:00
alamin-br 8d389cd0e8 fix(database): Show when a button field needs reconfiguring (#6114)
* feat: report when a button's row action points at the trash

* fix: keep a row action's mapping on a trashed field across edits

* fix: update buttons in other tables when their target is trashed

* feat: disable a button cell that needs reconfiguring

* feat: flag a row action that writes to a trashed field

* docs: describe the button reconfigure state in ADR 006

* test: cover a button healing when its mapped field is restored

* test: keep failing-click tests clickable under the reconfigure state

Give "Broken" and "BrokenChain" a table-targeting action that fails at
dispatch instead of one with no table, so requires_reconfiguration
stays false and the original click/toast assertions still run.

* perf: look up a button's own services in the reconfigure check

The uncorrelated subqueries scanned every upsert row service in the
instance, which the builder and automations share.

* perf: load mapped fields in one query when saving and serializing mappings

Update responses and realtime payloads read each mapping's field for
`trashed`, and saving looked each field up separately.

* fix: let undo restore the values of a mapping on a trashed field

The kept mapping was skipped, so replaying the exported mappings left its
current value and enabled flag in place.

* perf: skip the button lookup when no service depends on a trashed item

Every table and application created, and every field trashed, joined all
button fields and their actions even when no service pointed at it.

* fix: only offer restoring the field to heal a trashed field mapping

A permanent delete is cleaned up later without a broadcast, so an open
page never learns the action works again.

* fix: show the full label of a grid button that needs reconfiguring

The tooltip span shrink-wrapped the button, so its 90% max width
resolved against the span and cut the label short.

* fix: put a button using a trashed integration in the reconfigure state

The dispatch refuses a service whose integration is in the trash, so the
button now says so up front and open grids update on trash and restore.

* fix: update open grids when emptying the trash heals a button

Permanently deleting a trashed field or integration ends the reconfigure
state without any broadcast, so the cell stayed disabled until a reload.

* docs: note trashed integrations and permanent deletion in ADR 006

* fix: count a missing integration a button action needs

Deleting a trashed Slack bot left the action with none and re-enabled a
button that still fails. Also skips integrations outside a database, keeps
service lookups as subqueries, and stops a failed deletion leaking state.

* docs: note a missing required integration in ADR 006

* test: wait for a button field save to finish before moving on

The save sends the field update and each action call in sequence. A test
that navigated right after clicking Save could cancel the order call, so the
Stale button kept its old order and never navigated.

* fix: replace a row action's mappings with exactly what the payload sends

Keeping trashed mappings the payload left out stopped undo from removing them
and made undo raise on a mapping it had removed. The editor now sends them back.

* fix: leave the reconfigure flag out when the field refresh after a save fails

The mount-time value was written over whatever a broadcast had set since.

* fix: update buttons mapping a link field to a table that is trashed

Trashing a table trashes the link fields to it in other tables without a field_deleted signal.

* perf: send the buttons of a table in one message with their flags annotated

Every field_updated refreshes the grid, and an unannotated button cost queries of its own.

* fix: put a button whose target table is in a trashed workspace in the reconfigure state

An action can target a table in another workspace, and the dispatch refuses one whose workspace is trashed.

* fix: leave the buttons of a new table or database out of its broadcast

Duplication, template installs and imports send the created signals too, and nobody has the copy open.

* perf: pair each button service lookup only with the actions it backs

Also stop the early check deduplicating its UNION, and test that permanently deleting a builder integration never looks up buttons.

* fix: name each action that needs reconfiguring in the button editor

The field flag is now whether any action has the per-action flag, so the
editor can point at a trashed table, database or integration too.

* fix: keep the button flags out of the cached table model

They depend on other tables, so a model cached for the button's table served
them stale. They are now annotated only where fields are fetched to serialize.

* test: make the shared grid view private again after the public view test

A public view hides a field created in it until its editor closes, so the
retry test that runs later never saw its column.

* fix: update buttons mapping a link field to a table deleted from the trash

Deleting the table deletes the link fields to it and their mappings, with no signal of their own.

* fix: send a restored workspace's dependent buttons once and leave its own out

The once-per-restore check now keys the waiting on-commit callback by workspace id instead of relying on a shared Workspace instance.

* perf: leave a button's action state out of a service's table schema

The grouped aggregate rebuilds that schema uncached per property, and each
flag now cost a query per button. Nothing reads them from the schema.

* refactor: read an action's reconfigure flag straight from its definition

* fix: update buttons mapping a link field whose related field is purged

Emptying the trash for a link field also deletes its related field and that
field's mappings, which left buttons mapping it disabled until reload.

* fix: drop a mapping whose field was deleted from the trash on save

An open editor or an undo still sends the purged field's id, so every save
failed until reload. Fields that still exist elsewhere are still refused.

* fix: match no button for a lookup with no action model

An empty model list left the action filter empty, which matched every action
and would have sent every button in the instance.

* test: describe mappings replaced by the payload after a table change

The table change test sent no mappings, so it did not show a new table's
mapping replacing the old table's trashed one.

* fix: name a button action's trashed table instead of its fields

Trashing a table marks all its fields trashed, so the editor asked to restore a
field that only restoring the table brings back. The 404 from the fields fetch
now marks the table missing, and the action says so rather than a toast.

* fix: drop a mapping on another workspace's field instead of refusing it

Refusing it told the editor that the field exists.

* perf: send a button's state on its own realtime message

A `field_updated` makes the client refetch the whole grid, which for a flag
that says nothing about the rows throws away what someone is typing. The
signal also gives the enterprise restricted views a place to mirror from.

* fix: update buttons when a workspace is purged without being trashed

`delete_expired_users` and the admin panel delete a workspace outright, so
the `workspace_deleted` that would have flagged the buttons pointing into it
never goes out. A snapshot's application expires the same way.

* fix: flag an update row action that names no row

Every click on it is refused, so to the person clicking it is no different
to a target in the trash, but the button stayed enabled.

* fix: clear the server's reconfigure verdict when an action is edited

It describes the action as it was read, so the warning stayed up after a fix
until the save landed. Changing the type already dropped it by rebuilding.

* docs: name every cause of the button reconfigure state

The field and action descriptions each left one out, so they disagreed with
ADR 006 and with each other.

* test: expect the rowless button to render disabled

The server now flags an update row action with no row id, so the click the test made never lands.

* perf: serialize button fields once for all restricted views

Each serialization runs the reconfigure and action queries, which repeated for every view.

* perf: skip purged buttons and merge purge broadcasts

Buttons deleted with their container were collected for nothing, and a workspace purge
also purges its tables, so one button could be sent twice.

* fix: bump the global cache version

The button field schema dropped its action state, and cached schemas would keep the old shape.

* fix: keep the reconfigure verdict while the integration is unchanged

A trashed integration is missing from the list, so the verdict is the only warning.
2026-09-21 14:29:18 +02:00
dependabot[bot]andDavide Silvestri 13295a03d4 chore(deps-dev): bump happy-dom from 20.8.9 to 20.14.5 in /web-frontend (#5991)
* chore(deps-dev): bump happy-dom from 20.8.9 to 20.14.5 in /web-frontend

Bumps [happy-dom](https://github.com/capricorn86/happy-dom) from 20.8.9 to 20.14.5.
- [Release notes](https://github.com/capricorn86/happy-dom/releases)
- [Commits](https://github.com/capricorn86/happy-dom/compare/v20.8.9...v20.14.5)

---
updated-dependencies:
- dependency-name: happy-dom
  dependency-version: 20.12.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix upgrade issues

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Davide Silvestri <silvestri.eng@gmail.com>
2026-09-18 10:09:51 +02:00
Davide Silvestri 479e616ee9 feat: add columns layout to grouped grid views (#6022)
* feat: add columns layout to grouped grid views

* test: strengthen Columns layout coverage

* fix: remove doubled vertical border on group column spans

The group-by divider already draws a full-height line at each level
boundary, so the span's own border-right rendered a second adjacent
line in the body but not in the header.

* chore: renumber group_by_layout migration after rebase

Develop added 0221 and 0222 in the meantime, so the branch migration
forked the graph into two leaf nodes.

* refactor: rename banner group layout to section
2026-09-17 17:50:14 +02:00
Jérémie PardouandTsering Paljor 1874ac19f4 feat: port grouped aggregations data source to builder (#5546)
Co-authored-by: Tsering Paljor <tsering@baserow.io>
2026-09-17 07:41:59 +00:00
alamin-br 25335530f8 feat: undo for button field action configuration (#6086)
* feat: undo for button field action configuration

Creating, editing, reordering and deleting a button's actions bypassed undo, so Ctrl+Z restored the field but not its actions.

* fix: keep button action undo working across edits and type changes

A type change dropped trashed actions and gave restored ones new ids, so redo failed.
A reopened editor kept stale card values and could revert an undo on save.
A concurrent delete of one action returned a 500.

* test: e2e coverage for button field action undo

Covers one undo reverting a whole editor save, redo, and redo after a field is changed into a button.

* fix: skip the order call when a button save keeps the order

Each call adds an undo step, and an undo group only reverts 20 of them.

* docs: document create_instance_from_serialized parameters

* fix: keep sensitive fields when undoing a button action type change

A type change deleted the old service, and undo rebuilt it from logged values that leave sensitive fields out.
The replaced service is now kept until the undo step is cleaned up.

* fix: remove a button action's trash entry when the action is deleted

A field changing away from a button deleted its trashed actions but left their entries listed in the trash.

* fix: harden button action undo around secrets and field type changes

Field backups logged action secrets, undo reattached integrations unchecked, and a field type round trip broke redo.
Sensitive-only edits added empty undo steps, and the delete race error could never be reached.

* fix: rebuild button action cards when the editor is cancelled

Each card copies its values once, so a cancelled edit stayed visible and could be saved later.

* fix: skip undo of a button action already restored from the trash

* fix: restore a deleted button action to its old position on undo

* fix: check the workflow when undo brings back a start workflow action

* perf: check a kept button action service in one query

* fix: name a trashed button action by its position

* chore: invoke button action types through the action registry

* fix: send a button save too big for one undo group ungrouped

* docs: spell out what button action undo leaves unreverted
2026-09-16 18:48:00 +02:00