Commit Graph
808 Commits
Author SHA1 Message Date
Peter Evans 557135532c chore: call workspace applications builders and name the builder role (#6948)
* chore: call workspace applications builders and name the builder role in English copy

* chore: say who can configure a builder instead of naming the builder role next to it

* test: expect the reworded Slack bot warning

* chore: name roles the same way everywhere and say builder in snapshot errors
2026-12-02 08:55:45 +00:00
Bram 59fab074b5 Updated descriptions for 3.0 (#6979) 2026-12-01 20:37:32 +00:00
Bram 9d3d657b56 Prepare for 3.0.0 (#6961) 2026-12-01 19:18:09 +00:00
Bram cf0ec8e797 Latest translations for 3.0 (#6955) 2026-12-01 17:04:28 +01:00
Peter Evans ba7a06521e fix: stop reporting handled AI provider errors to Sentry (#6761) 2026-12-01 12:22:17 +00:00
Peter Evans 44aeb711f0 fix: stop dashboard charts failing to save a series sent without its chart type or aggregation (#6917)
* fix: stop dashboard charts failing to save a series sent without its chart type or aggregation

* fix: report a series without an aggregation as a configuration error when loading a chart
2026-12-01 08:53:33 +00:00
Przemyslaw Kukulski bb7ba42b90 fix: small template marketplace fixes (#6916)
* fix: small template marketplace fixes

* Review feedback
2026-11-30 21:08:04 +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
Przemyslaw Kukulski 06ba01b67a fix: user templates leave out synced table settings, shared links and mentions (#6837) 2026-11-30 13:33:30 +01:00
Bram 85f9e8e67d [2/2] Usage credit subscription: Measure AI usage (#6823)
* Measure AI usage

* Show the AI usage data of plugins per agent reply and AI values job

* Fixed feedback
2026-11-27 13:52:27 +00:00
Peter Evans cba704e8b7 feat: redesign the refinement popovers in the automation and dashboard sidebars (#6858) 2026-11-26 15:32:22 +00:00
Peter EvansandJeremie Pardou c152a16f92 feat: let Kuma create, change and remove data source filters from the filter form, the chat and MCP (#6544)
* feat: let Kuma create, change and remove data source filters from the filter form, the chat and MCP

* fix: allow earlier data sources in Kuma builder filters

* refactor: share targeted Kuma action endpoint

* refactor: derive service filter validation from filter types

* fix: reuse shared boolean values in service filters

* refactor: expose filter deprecation on backend types

* refactor: delegate formula examples to application types

* fix: allow Kuma to edit summary widget filters

* test: include summary widgets in filter tool contract

* fix: allow dashboard service filter groups

* test: allow dashboard filter groups in assistant prompts

* feat: enable inline Kuma for summary widget filters

* test: initialize roles for transactional synced table copies

* fix: reject table changes during Kuma filter generation

* fix: reject current node formulas in service filters

* perf: batch filterable data source discovery

---------

Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
2026-11-24 18:08:58 +00:00
Peter EvansandJeremie Pardou 95b892af41 feat: add automatic snapshot schedules (#6746)
* feat: add automatic snapshot schedules

* fix: show the count in relative date labels

* refactor: rename snapshot allowance setting to workspace

* feat: notify workspace admins when automatic snapshots fail

* feat: show the last automatic snapshot execution per application

* fix: simplify snapshot modal layout and capacity feedback

---------

Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
2026-11-24 14:12:03 +00:00
Jonathan Adeline 57c52d4636 feat: polish the dashboard builder (#6831)
* feat: remove the Dashboard Builder beta label

* feat: scroll newly added dashboard widgets into view

* feat: show a pending widget while dashboard creation is in progress

* fix(dashboard): keep widget creation previews in place

* docs(dashboard): link preview sizes to backend defaults

* fix(dashboard): reveal widgets added from filter actions
2026-11-24 17:10:15 +04:00
Jérémie Pardou b77ef4690c fix(dashboard): keep widgets visible while refreshing (#6797) 2026-11-24 08:02:37 +00:00
Peter EvansandJeremie Pardou f07d8c895e feat: set up dashboard filters from a table and create the widgets they filter (#6771)
* feat: set up dashboard filters from a table and create the widgets they filter

* feat: refine dashboard filter setup and widget association

Support multi-table filters, guided widget configuration, same-table condition copying in display order, and automatic linking defaults. Preserve independent target settings and undo/redo behavior.

* fix: show copied filter conditions after widget association

* test: cover guided dashboard widget creation from a filter

* test: cover dashboard filter copying across tables

* refactor: simplify dashboard filter configuration

* fix: restore dashboard filter links exactly on undo and redo

* feat: set up a new widget and how a filter narrows it down in one modal

* feat: fold the add-widget modal into collapsible sections that fit chart settings

* fix: cancel queued updates when destroying dashboard charts

* fix: reference dashboard option context by table

* refactor: rename dashboard table context provider

* fix: label dashboard table context as field options

* fix: shorten dashboard table options label

---------

Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
2026-11-23 15:00:35 +00:00
Davide Silvestri 114e0a04c8 feat: trigger automations and agents when a row comment is posted (#6787)
* feat: trigger automations and agents when a row comment is posted

* fix: verify row comment trigger access at setup and dispatch

* refactor: pass the trigger event source as a plain task argument

Drop the Celery headers and the per-type flag kept for the previous
release's workers: Agent Builder is behind a feature flag. A service type
names what it watches through get_event_source_id. Check a table's
trigger read permissions in one call, add the trigger's msgid and
shorten the changelog entry.

* feat: lock agent triggers the workspace's license doesn't cover

The configuration lists every trigger type the instance offers, and the
license is checked apart. A locked trigger shows switched off with
read-only settings that open the upgrade modal; it can still be renamed,
replaced by another type or deleted, and resumes once coverage returns.
Menus mark paid items with the lock badge, in Agents and Automations.

* address feedback

* fix: address second round of row comment trigger feedback

- Treat an integration the service list loads as None as trashed
- Restore a locked trigger as it was; license checked on edit and fire
- Drop a queued event whose trigger watches another source, no skip
- Disable the mention checkbox when the host's form can't be used
- Fence the comment event text as labelled JSON for agents
- Mention the license in the trigger API docs and error

* fix: address third round of row comment trigger feedback

- pass the run identity's name to the comment form from the agent host
- keep only server-decided data in service form choices
- log comments a misconfigured comment trigger skips
- mention the license in the remaining trigger type texts

* test: serialize comment trigger nodes with the user's table access
2026-11-23 14:58:35 +00:00
Davide Silvestri d822dd067a feat(agent): row comment tools, with a search shared by MCP and Kuma (#6760)
* feat(row comments): search comments across a database

Add RowCommentHandler.search_comments and the shared search_row_comments
tool. They return the comments on the rows of a database, newest first,
each with its table and row, narrowed by table, mentioned users, authors
and creation time. A user is given as an ID, part of a name, or 0 for the
user the tools act as.

Every search is index-driven. A mention search is one query that starts
from the mentions of the given users. Any other search reads the newest
comments of each table from two new indexes, (table, -created_on) and
(table, user, -created_on), added with RetryableAddIndexConcurrently.
Comments on trashed rows are dropped after a page is read, so the result
carries has_more instead of a total.

list_row_comments now also returns the user_id and the mentions of each
comment.

* feat(mcp): expose search_row_comments

Register the comment search as a read-only MCP tool in the database_read
group, next to list_row_comments, and document it.

* feat(agent): let a tool type be deactivated for a workspace

An Agent tool type can now tell that a workspace can't use it, through
is_deactivated and raise_if_deactivated, like service and node types do.
A deactivated tool stays in the Agent's available tools, marked
deactivated, so the client can show it as locked. It is left out of the
allowed tools, so a reply never offers it, and the configuration refuses
to allow it.

* feat(agent): show a deactivated tool as locked in the tool permissions

A tool the workspace can't use keeps its row in the Agent's tool
permissions. A lock button replaces its Allow checkbox and opens the
modal the tool's presentation type returns from getDeactivatedClickModal.
The presets and the counts only consider the tools the workspace can use.

* feat(agent): add the row comment tools

An Agent can now list the comments of a row, search the comments of a
database and post comments. Premium registers the three tools and their
presentation. A workspace without premium sees them locked, and the lock
opens the paid features modal on row comments.

The core tests that pin the Agent tool names and their presentation now
cover the core tools only; premium pins its own.

* feat(agent): tell the model who a private conversation is with

The tools of an Agent act as its identity, so the model had no way to
turn "me" into a user. The instructions of a private conversation now
name the person and their user ID. A conversation started by a trigger
names nobody. The name is collapsed to one short line because it is
user-controlled text.

* feat(assistant): let Kuma search row comments

Wrap the shared search_row_comments tool for Kuma, active in every mode
like the other database read tools, and add an eval case that asks for
the comments mentioning the user.

* fix(agent): require workspace RBAC for row comment tools in Agents and Kuma

* fix(row comments): accept an empty table list and odd digits in a search

An empty table_ids returned no comments while the empty lists of users
meant no filter. It now searches every table like an omitted one. A
reference such as "²" passed isdigit() and failed in int(); isdecimal()
reads it as a name.

* refactor(row comments): check the searched tables in one permission call

check_multiple_permissions raises the first denial itself, so the search
no longer evaluates a denied table a second time to get its error.

* fix(agent): refuse a deactivated tool by default

A tool type that only said it is deactivated was listed as locked but
could still be allowed and called. The base check now raises when the
type is deactivated, as the service and automation node types do. A type
can still raise its own error, like the one for a missing licence.

* fix(agent): tell an Agent only about the locked tools it was allowed

Every reply in a workspace without the licence carried a note about the
three row comment tools, also for an Agent that never had them or has no
workspace access. The note now names the tools in the Agent's allow list
that the workspace can't use, and is left out when there are none. The
tool type gives the reason and the handler writes the sentence. Kuma has
no allow list, so its tool group keeps the sentence naming all three.

* fix(agent): honor saved tool grants and row comment search permissions

* fix(assistant): end a scenario's enterprise licence with its eval case

A scenario's instance-wide licence stayed for every later case of the run, and the cached licence list hid it from its own case. The case's fixtures now add it, refresh the cache and remove it when the case ends. A licence that was already there is kept.

* fix(row comments): cap the page of the comment tools

A search without a mention filter reads the comments up to its page in every table, and a huge page overflowed the offset. Both comment tools stop at page 100, also in Kuma.

* fix(row comments): read a user reference the same way in the search and its step

The step of a search showed "0" when the model sent the acting user as text. The search and the step now share one parser. The description also says a name matches everyone whose name contains it.

* fix(agent): make a tool's lock a button only when it explains itself

A locked tool without a modal got a button that did nothing, and every locked tool kept a disabled Ask first checkbox that screen readers announced.
2026-11-19 13:13:32 +01: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
Peter Evans 864c6d6f51 feat: let visitors report abuse on published applications (#6715)
* feat: let visitors report abuse on published applications

* fix: let logged-in app users report published applications
2026-11-18 09:00:31 +00:00
Davide Silvestri 5169076065 feat: introduce User-backed workspace identities (#6556)
* feat: introduce User-backed workspace identities

Replaces workspace core.Agent subjects with identities stored as Django
Users, so permissions, execution and attribution use the same record.

- User.objects and WorkspaceUser.objects are human-only; permission and
  identity code opts in through objects_and_identities. is_human and
  is_identity classify a user at runtime.
- Login, tokens, seats, notification recipients, personal views and
  last-admin checks stay human-only. Roles, teams and field grants work
  for identities unchanged.
- Agent applications run as an identity, never as a person. Every shared
  tool rechecks the identity's authority on each call, and MCP refuses a
  tool that skips that boundary.
- Migrations add the profile metadata and index, remove the Agent model
  and delete or clear legacy Agent data: trash entries, role assignments,
  team memberships, integration authorizations and run-as bindings.
- Rename the management API, UI, events and feature flag to identity.

Squashed and rebased onto develop; the previous history is kept on
backup/6556-before-develop-rebase.

* refactor: remove generic subject options endpoint

* refactor: simplify identity selection and Agent run-as options

* feat: distinguish identity notification senders

* fix: restrict identity bindings to identity managers

* docs: record users and identities verification

* fix: restore snapshots as the person restoring

A restore checked the snapshot creator's permission and used the creator
to decide whether an Agent keeps its identity binding. It now checks the
person restoring, passed to the import as `restored_by`. `copied_by` stays
unset on restore, so credential checks keyed on it behave as on develop.

Restoring a snapshot whose creator was deleted works again. The copy rule
for identity bindings covers Agent run-as only; a copied Local Baserow
integration keeps its authorized subject.

* fix: leave settings pages the user may not open

A settings route without a permitted tab rendered an empty page, as the
Identities page did with its feature flag off. It now opens the first
page the user may see.

* fix: renumber the legacy Agent cleanup migrations

Develop added agent 0016 and integrations 0043, so the migrations that
clear legacy Agent run-as bindings and integration authorizations move to
agent 0017 and integrations 0044.

* test(agent): run the trigger self-event test as an identity

The test added on develop created a `core.Agent`, which this branch
removes. It now uses an identity user as the Agent's run-as subject.

* perf: load user types once per batched permission check

* refactor: state the stored subjects in each subject type

* fix: give every user a profile

* fix: keep identity attribution on rows copied in their workspace

* refactor: give people and identities their own subject type

UserSubjectType stays the type both are registered and stored under. It forwards what differs to HumanSubjectType and IdentitySubjectType, so get_specific_type is the only place in subject code that inspects the user type. The registry returns the specific type on request and get_by_model keeps returning the stored type, which never reads the profile.

An identity's membership is checked in one query instead of two.

* fix: keep the roles of identities when a database is duplicated

The role import read subjects through the model's default manager, which only returns people, so duplicating or restoring a database failed when an identity held a role on it. It now resolves the subject through the subject registry.

A subject that no longer exists is skipped instead of failing the whole duplicate or restore.

* refactor: look up a subject type from its content type in one place

* fix: reload a cached token whose profile is incomplete

A token cached by the previous release has a profile without the user type, which reads as not a person, so its requests were refused until the entry expired. The token cache now treats it as a miss, with the check the user cache already used.

* refactor: check the user type once where the check was repeated

The MCP endpoint loader, the personal view permission manager and the identity trash type each asked the same question several times. The rule that an identity is never selected by email moves from the team handler to the identity subject type.

* refactor: leave trashed workspaces out of the identity membership manager

WorkspaceUser.objects_and_identities was named after objects but also returned memberships of trashed workspaces, so callers filtered them by hand. It now follows the existing pair: it leaves trashed workspaces out, and objects_and_identities_and_trash includes them, as objects_and_trash does for people.

* test: state the behaviour of every user type

The table fails when a user type is added and says what has to be decided first. An unknown type is checked to be denied.

* refactor: refuse to say whether a stored user subject is interactive

The answer differs between a person and an identity, so reading it from the stored type would be wrong for one of them. It now raises and points to the specific type.

* refactor: lock the person in membership writes instead of checking the type

Leaving a workspace, removing a member and adding a user lock the user through the people manager, which refuses an identity or an unknown type in the same query. Nothing adds an identity through add_user_to_workspace, so its branch for identities goes. The last admin check compares the membership with the people who are admin, which needs no type check.

* test: leave no rows behind in the legacy authorization migration test

The test left an integration that pointed at a user that didn't exist and a workspace, in the database the migration tests share. Tests that ran after it then failed on the foreign key or on the workspace id. It now uses a real user and empties the two tables.

* docs: describe the subject types and compare the Subject table alternative

ADR 013 is shorter and states that people and identities each have a specific subject type under the stored auth.User type. It compares shared User storage with a Subject table that users and identities would both point to.

* chore: run the legacy run-as cleanup after the agent actions migration

Develop added agent migration 0017, so the cleanup becomes 0018 and depends on it.

* test: leave no rows behind in the legacy agent migration tests

Like the legacy authorization test, these left a workspace in the database the migration tests share, which a later test that creates workspaces with fixed ids collides with.

* fix: write and read the workspace role of an identity in one place

The role assignment API wrote the role of an identity through the membership update of people, which told every member of the workspace about it and stored Builder as MEMBER, while the identities API stored BUILDER and returned the stored value. Both now write through the identity handler, which stores the role like the role of a person, and the role is read with the resolver the workspace members use.

* fix: take no row lock in the membership writes of a person

Leaving a workspace locked the user before the membership while removing or updating a member locks the membership first, so the two could deadlock. The user type never changes and these operations refuse an identity, so the lock protected nothing: they now only check that the user is a person. Leaving no longer locks the admin memberships and removing a member no longer checks for the last admin, as before identities.

* fix: find an identity by its name only in the subject options

The search also matched the email and username, which for an identity hold an internal key, so searching a part of that key returned every identity.

* chore: run the identity migrations after the new ones on develop

Develop added core 0138, integrations 0044 and enterprise 0073, so the identity migrations become core 0139 and 0140, integrations 0045 and enterprise 0074 and depend on them.

* fix: keep the identity of a copied integration only for identity managers

A duplicated application or a restored snapshot kept the identity its Local Baserow integration acts as, without checking the person who made the copy. Restoring a snapshot could so bring back a binding an admin had removed. The copy now keeps the identity only when that person may bind identities, as the Agent application already did, and is otherwise authorized as that person.

* docs: follow the renumbered migrations and the copy rule in the test plan

The test plan named the identity migrations and their tests by their old numbers and still said a copied integration keeps its subject.

* test(agent): run the row trigger tests as an identity

The row trigger tests added on develop created a `core.Agent`, which this
branch removes. They now use an identity user as the Agent's run-as
subject, and the e2e fixture creates it through the identities endpoint.
2026-11-18 08:44:31 +00:00
Peter Evans eaf6971633 fix: exclude personal views from the Local Baserow integration (#6724)
* fix: exclude personal views from the Local Baserow integration

* fix: let undo and redo restore a view that has become personal
2026-11-17 14:13:25 +00:00
Peter Evans 4dcceef1d6 chore: require Node.js 24.15 or later and switch the shared IDE test configs from Jest to Vitest (#6676) 2026-11-16 10:58:21 +00:00
Bram 727772b03c Prepare for 2.4.3 (#6726) 2026-11-14 08:52:16 +00:00
Peter Evans 82f9a7f9d1 feat: add an HTTP request data source to the application builder (#6553)
* feat: add an HTTP request data source to the application builder
2026-11-12 09:36:00 +00:00
Bram 431c823fa8 Prepare for 2.4.2 (#6679) 2026-11-11 15:22:02 +01:00
alamin-br be71e3bce6 feat(mcp): add application builder tools and one create and update tool per application type (#6606)
* refactor(mcp): share the tool error messages

The row comment, row colour and audit log tools need licence errors to reach the client, and the item error helper outside automation.

* fix(assistant): show shared tool errors to Kuma

A licence or input error from a shared tool ended the chat run instead of reaching the model.

* feat(mcp): search the workspace

Lets MCP clients and Kuma find a table or row by name without walking every database.

* feat(mcp): read and post row comments

Lets MCP clients and Kuma read what people said about a row and add to it, in plain text.

* feat(mcp): change view sorts, field visibility and row colours

Lets MCP clients and Kuma configure views, and delete views and filters. list_views now returns the ids those tools take.

* feat(mcp): read the workspace audit log

Lets MCP clients and Kuma answer who did what in a workspace. It stays off until a user turns it on, even though it only reads.

* refactor(assistant): move the builder tool types out of the assistant

The builder tools need these types and helpers without pydantic_ai
or the assistant, so MCP can share them with Kuma.

* feat(assistant): make Kuma's builder writes undoable

Kuma's page, data source, workflow action and user source writes now appear in undo and the action log.

* fix(assistant): set up a new login page after undoing the old one

Undo trashes the login page but the builder still points at it, so setup skipped creating one.

* fix(mcp): run the field visibility change in a transaction

Over MCP and Kuma it failed on select_for_update, as they call tools outside a transaction.

* feat(mcp): add the application builder tool groups

Builder tools need their own groups and picker labels so users can switch them on separately.

* feat(mcp): offer the application builder read tools

Clients other than Kuma can inspect builders, pages, data sources, elements and actions.

* test(mcp): keep the no model calls check to the shared builder tests

Under a rootdir that excludes the enterprise tests, pytest applied the autouse patch of Agent to every test.

* test(mcp): prove the no model calls check runs and restore Kuma's not found hints

The folder check now resolves paths, and Kuma's list tools explain a missing builder or page again.

* feat(mcp): offer creating and updating builders and pages

Clients with builder_edit can set up an application builder and its pages. Kuma's
page tools now run the same create and update code, and keep their own results.

* feat(mcp): offer creating and updating builder data sources

The formula step that needs no model moves to the shared code, so MCP stores given
formulas and reports the rest. Kuma runs it, then repairs what is left with its model.

* fix(mcp): check builder formulas against values of the right type

Example values of the wrong type refused valid formulas, and over MCP no model can
fix that. Failures after a batch committed are now reported with their item.

* fix(mcp): check builder formulas without evaluating them

Example values can't stand in for every field type, so they refused valid formulas.
The check now looks at the formula's functions and paths against what the page has.

* fix(mcp): check nested builder formulas in linear time

Each nested get was visited twice, so a short formula could stall a request thread.

* feat(mcp): offer the application builder element tools

MCP clients can build page content without a model. Kuma runs the same create and
update code and repairs what it leaves.

* fix(mcp): store the values the element create tools are given

A default value or link URL was dropped with nothing reported; a negative size gave an internal error.
Column-name-wins is now opt-in, and update_element is marked destructive.

* fix(mcp): only take row colours a row can show

A row takes its colour from a CSS class per palette name, so a hex value reported success and coloured nothing.

* fix(mcp): undo a row colour that fails halfway

The tool adds to a view's colours, so a client retrying after an error would end up with a second colour.

* fix(mcp): show how a view's filters combine

A view matching any filter, or one with filter groups, read as one matching all of them.

* fix(mcp): mark set_view_sorts as overwriting

It replaces a view's sorts and an empty list removes them, so clients should confirm it.

* fix(mcp): read comments with a mention without a label

The API accepts such a mention, and one of them made every comment of the row unreadable.

* fix(mcp): refuse a blank workspace search

The API trims the query too, and a space would match most names.

* docs(mcp): say why reordered sorts are recreated

* test(mcp): expect how filters combine in the listed views

* feat(mcp): offer the application builder action, setup and theme tools

MCP clients can now wire up workflow actions, build a page in one call, add logins and set a theme.
Kuma's tools call the same functions and keep their results, repairing formulas after each phase.

* fix(mcp): handle bad input to the audit log tools

A reversed range and a blank query read as nothing having happened, and an unknown browser timezone ended Kuma's run.

* fix(mcp): read comments with no content

The API accepts such a comment, and one of them made every comment on the page unreadable.

* fix(mcp): show when a view's filters are switched off

Those filters hide no rows, so listing them as active misled the client.

* docs(mcp): correct what the view tools say they do

Row colours work on every view with rows, and Kuma was told to skip list_views when it needs the filters and colours.

* fix(mcp): leave IP addresses out of the audit log tools

Who did what doesn't need them, and Kuma sends tool results to the LLM provider.

* feat(mcp): add update_action and fix the builder action review findings

A refused notification or open_page value had no way to be corrected over MCP.
A shared page action could name a data source only one page has, which fails on click.

* fix(mcp): let clients read back action values and check open_page parameters

update_action could silently drop page parameters it couldn't show, and store ones the target page lacks.
Reads now give the values in the form update_action takes.

* fix(mcp): keep function-call values as formulas when update_action gets them back

A value list_actions shows like upper('abc') was written back as fixed text.
A custom-URL action no longer fails the page parameter check.

* feat(mcp): offer one create and one update tool per application type

A client asking for one application type should only get that type, and an
edit group should not reach the other types.

* fix(mcp): connect new automations to the workspace data

Row actions fail at run time without a Local Baserow integration, and Kuma's
old hook used to add it.

* fix: redo restores an automation after undoing its creation

An automation is trashed under its own type, so restoring it as an application failed and rolled back the whole undo group.
Undoing a delete and redoing a duplicate or template install had the same problem.

* feat(mcp): offer publishing a workflow

MCP clients could build a workflow but not make it run.
The list reported the draft copy, so a published workflow looked like a draft.

* fix(mcp): refuse publishing a workflow that can't do anything

An MCP client has no UI to stop it, and the workflow came back as live.
Clients also skipped confirmation for a tool that starts real effects.

* feat(mcp): offer pausing a workflow

A client could start a workflow over MCP but had no way to stop it.

* perf: delete older published workflow copies in the background

The delete took over 90% of a republish, in the transaction and on the thread
shared by MCP calls and websocket DB work.

* fix: keep the newest published copy of a paused workflow

The cleanup only kept live copies, so a paused or disabled workflow lost its copy and reported the wrong state.
pause_workflow no longer needs a local cache scope: the update reads the published copy uncached.

* perf: delete superseded copies on the export queue

Deferring the service deletes takes a 200 node copy from 22s to 1.2s.
A 60s countdown keeps the delete away from a row event still reading the just-disabled copy.

* fix(mcp): tighten application tool names, lookups and checks

Blank names, hidden applications and the unclear-request eval check slipped past the new application tools.

* test(mcp): cover builder tool schemas and the read only preset

Keeps Kuma-only parameters off MCP and shows the preset can't write.

* test: add a Kuma eval for a bare request to create an application

A request like this should make an application builder, not a database.

* docs: list the builder and application MCP tools and their test steps

Adds groups, defaults and destructive flags, the new tools, and the manual create-an-application test.

* test: drop tests another test covers and tighten the weak ones

Each dropped test had a covering test that asserts the same behaviour.
The routing test no longer hides a redirect behind a second call.

* test: add Kuma evals for dashboards, several applications, renames and action edits

Nothing called create_dashboard, update_* or update_action in the last eval run.

* fix: let Kuma create an application that has a purpose without asking for a name

Evals asked only for the name, and create_builder had lost the rule against inventing app records.
The setup_user_source description now says it reuses an existing source.

* docs: say MCP writes can't be undone where the action layer is described

The line said operations are undoable, which the builder section contradicts.

* fix: say an application, app or website means an application builder

Kuma and MCP clients could pick a database or dashboard tool for a plain request for an app.

* fix(mcp): refuse a builder formula that reads a row field by its name

A published page only loads fields its formulas name as field_<id>, so such a value
was stored with no report and rendered empty there. Kuma's repair now rewrites it.

* fix(mcp): point a button's click message to its notification action

A model asked to change the message a button shows rewrote the button's text and saw
only success. Descriptions say where that message lives, and the result names it.

* fix: ask first on a bare app request even though an app means a builder

"Application means builder" and "for my team" read as enough to create Team App.
The wording now says it only picks the tool, and who an app is for isn't a purpose.

* fix: show update_action's required thought in an example

On notification title edits the model left thought out and Groq rejected the call,
so the edit took two or three tries.

* fix(mcp): check what new and changed table columns read

A by-name column was stored and came back empty on the published page, with no signal to the client.

* fix(mcp): read a form element's default value from the row around it

At run time a record selector's default value reads the enclosing repeat, not its own rows.

* fix(mcp): refuse a user source table whose fields can't be used

A text field named Password made adding the password field an internal error, and a refused setup left an integration behind.

* fix(mcp): keep the given order of children in a container

Core puts each new child first, so one call's children came out reversed on both clients.

* fix(mcp): accept a file field's thumbnails in a formula

They are valid at run time, but the file field's schema leaves them out.

* fix(mcp): check a new row action's field values like an update does

A value like nosuchfn('x') was stored unchecked and failed only when the page ran.

* chore: remove the table button action hook that never created anything

It always returned no actions, so its result handling and the empty TYPE_CHECKING block were dead too.

* fix(mcp): mark update_action as destructive

Moving an action to another table clears its field values, so clients should ask first.

* docs: correct the builder tool descriptions and docs for MCP

They promised undo MCP doesn't have, named an unset setting, and left out the button note.

* fix(mcp): store plain field values on a new row action as fixed text

Only text that is or parses as a formula goes through the check; Alice no longer comes back empty.

* fix(mcp): list a page's elements in page order

A move showed in the page but not in the list. A move before a child of another place is refused.

* fix: point formula fields to the tool description

The field text claimed a $formula: prefix that MCP does not repair.

* fix(mcp): describe a field value so it is true on create and update

update_action refuses plain text with the same schema create_actions uses.

* fix(mcp): treat an empty place_in_container as unset when moving before a child

The move schema treats an empty place as unset, but this check refused it.

* fix(mcp): refuse an open_page action missing its page parameters

A new action without them stored a button that couldn't open its row and reported success; update_action already refused this.

* fix(mcp): create a child before the element given in its container

before_element_id was ignored once a parent was given, so the element went last.

* fix(mcp): move into a column's first place when none is given

The field says none means the default slot and create does this, but the move failed.

* fix(mcp): refuse moving an empty container into itself

The check for an element already last caught this case, so the move reported success.

* fix(mcp): make a valid example email for a role with spaces

A role name with a space or symbol made the example row fail, and with it the whole setup.

* fix(mcp): refuse a row_id on a data source that is neither a number nor a formula

Plain text was stored as a literal row id with no report, and on update it replaced a working value.

* fix(mcp): read a whole function call as a formula on a new action too

create_actions stored upper('abc') as text while update_action read it as a formula.

* fix(mcp): show a client the shared page's data sources and its ID

A header can only read a shared page data source, and a client couldn't list one or find where to create it.

* fix(mcp): let create_display_elements give a link's page parameters

Over MCP only setup_page could give them, so a link to a page with a path parameter was left broken.

* fix(mcp): refuse a link's new page when its parameters don't fit

update_element kept the old page's parameters, leaving a link that breaks when clicked.

* fix(mcp): say what a client can do when a link's new page doesn't fit

The refusal said to replace the link, but no tool deletes a builder element.

* fix(mcp): give a login page that's already set a working form

setup_user_source reported success on a set login page with no usable form, or one only logged-in visitors can see, and nobody could log in.

* fix(mcp): keep a sentence with a parenthesis as plain text

Order now (today only) was stored empty over MCP, against the docs saying plain text is fixed text.

Builder values now use the automation pattern, which keeps a whole spaced call like get ('x') as a formula.

* fix(mcp): refuse a new link whose parameters don't fit its page

The frontend hides such a link at run time. open_page and link updates already refuse it.

* fix(mcp): keep a fixed value that parses as a sum as plain text

A field value of 3/4 was stored as a formula showing 0.75, and a link parameter of 10/2 as 5.

Field values and link parameters now follow the title rule: calls and plain numbers or booleans only.

* fix(mcp): check every changed column when two share a name

Keyed by name, a bad formula on the first of two columns named Edit was stored unchecked.

* fix(mcp): list a column's children in the order the page shows them

Places were walked in insertion order, so a child added to the second column first was listed first.

* fix(mcp): refuse page parameters with a repeated name

The frontend compares the name lists exactly and hides the link or button if a name is there twice.

* fix(mcp): share the lookup that hides an application the user can't see

The same wrapper was copied in the four application types' tools.

* fix(mcp): remove a dead refresh action helper and a repeated form element block

The refresh helper's value was always overwritten, and four form elements built their label and default value the same way.

* fix(mcp): refuse form data on items of the shared page

At run time a shared element reads the form data of the page being shown, so a
header form's value is empty and its element or action counts as in error.

* fix(mcp): store an auth form's login button label as text

The frontend can't parse 'Sign in' as a formula, so visitors saw the default label
instead. Export and duplicate keep the value either way.

* fix(mcp): store page parameters in the order of the page they open

The frontend compares the names with _.isEqual, so a complete list in another order
hides the link or button from visitors.

* fix(mcp): make a link go to the page or URL an update gives it

Without a navigation type the stored one stayed, so visitors still went to the old
target.

* fix(mcp): refuse a menu item that links to a page with path parameters

Menu items have no parameter field, and one missing its parameters puts the whole
menu in error, which hides it from visitors.

* fix(mcp): refuse a row id on a data source that has none

A list_rows source dropped it and reported success. A get_row source does have a
search query, so that stays.

* fix(mcp): refuse a move before an element outside the given parent

It moved to the end and reported success. No Kuma prompt, eval or test depends on it:
on the base a parent made before_id ignored either way.

* fix(mcp): refuse a new field mapping on a trashed field

The mapping would be stored against a field no visitor's row can get. A mapping the
action already has on a trashed field can still be changed.

* fix(mcp): say when the login page's form uses another user source

The result reported success while people in the new table couldn't log in. A page at
/login found with no login page set now keeps its one form too, instead of a second.

* fix(mcp): mark the builder tools that overwrite stored values destructive

update_nodes, update_fields and update_widgets do. Clients only ask first when the hint
is set.

* fix(mcp): refuse element values the REST API refuses

level=99, format='html' and column_amount=500 reached the database with no error, and
rows=-1 gave "Internal error.". The limits are the serializers' and models'.

* chore(mcp): format the review fixes

* fix(mcp): keep what a restricted view hides out of the view tools

A member below builder could read a restricted view's filters, hidden sorts and colours from list_views, and a field's name from an error before permissions were checked.

* fix(mcp): replace a view's sorts one call at a time

Two calls could each read the old sorts and add to them, leaving a list neither asked for.

* fix(mcp): read a mention whose label isn't a string

The API accepts such a label, and one comment holding it stopped the row's comments from being listed.

* fix(mcp): limit the row comments of a call to 100

Each comment runs about nine queries in its own transaction, and a commenter could ask for any number.

* fix(mcp): show Kuma that set_field_visibility needs a field

Both clients now reject an empty list from the schema, so the checks after it can't run.

* docs(mcp): correct the audit log tools' licence and fields

An advanced licence also has the audit log, and entries no longer hold an IP address.

* test(mcp): run the missing formula case on a data source with a row id

A list_rows source now refuses a row id before any formula is generated.

* test(mcp): expect the builder tools that overwrite values to be destructive

* refactor(mcp): rename set_row_colours to add_row_colours

It adds to the colours a view has, while set_view_sorts replaces the sorts.

* fix(mcp): add a login form for the new user source beside another's

People in the new table can log in once the call succeeds, whichever way the login page
was found. This replaces the note and restores the two forms Kuma's test expects.

* fix(mcp): leave a refused field value out of a new row action

The empty placeholder was a live mapping, so each click wrote an empty string
over that field of a real row until someone fixed the formula.

* fix(mcp): refuse a header's pages that can't work

share_type 'only' with no pages hides a header on every page, and page_ids with
no share_type were ignored. An update has no page_ids, so it can only refuse.

* fix(mcp): refuse changing an action on a trashed page

The lookup only checked the application, so an action on a page in the trash
could still be changed.

* fix(mcp): keep a zero column gap and page size on a new element

0 is allowed, as on REST, but was replaced by the default of 20.

* fix(mcp): treat a whole function call on an element as a formula

A formula like upper('abc') read from list_elements and sent back was stored as
text, so the page showed the formula itself. Actions already follow this rule.
Also replaces the placeholder expression repeated on each element value.

* fix(mcp): share the parameter model and the stored formula reader

Two identical parameter models and three readers of a stored formula's text.

* chore(mcp): format the round's review fixes

* fix(mcp): refuse a page size of zero on tables and repeats

A page size of 0 fetches no rows and shows an empty element; the editor's
minimum is 1.

* fix(mcp): warn on publish about a row_id stored as an empty literal

update_nodes stores row_id='' as '', which the check for a missing row_id
didn't count as empty.

* fix(mcp): keep a field value's formula when its field id has spaces

The formula was stored under the stripped id and looked up under the raw one, so
' 12' lost its value with no report.

* fix: leave test clones out of the superseded copies task

A test run can pick up an older clone just before this task deletes it, so writing
its history entry fails. clear_old_history removes unused clones.

* fix(mcp): refuse style values the element columns can't hold

An overlong color or a radius or size past the column's limit gave "Internal
error.", and a negative radius, which the editor refuses, was stored.

* fix(mcp): treat a whole function call in search_query as a formula

upper('abc') from list_data_sources was stored as text when sent back, as elements
were. The create docstring also said plain text was left empty, which it isn't.

* fix(mcp): mark the application update tools destructive

update_table only renames and is marked destructive, as is update_page; these
overwrite a stored name too. update_builder also changes the login page.

* chore(mcp): format the round's review fixes

* fix(mcp): stop set_view_sorts deadlocking with a new sort

A new sort checks its view when it commits, which the view lock blocked while
the sort rows it needed were held. Sort writers now share a weaker view lock.

* fix(mcp): title add_row_colours Add row colours

* refactor(mcp): merge search_audit_log into list_audit_log

The two differed only by a text query and a 90 day cap. Timestamps now need an
offset, as nothing tells MCP the user's timezone.

* feat(mcp): let a date filter carry its timezone

MCP has no timezone for the user, so relative date modes would follow UTC. An
offset can't express those, so the caller names the IANA timezone.

* test(assistant): expect the login page to stay after undo

Develop creates the login page without an action, so undo no longer trashes it.

* fix(mcp): say a licence is missing when a tool needs one

The REST message reads like a permission problem, which sends users to the wrong fix.

* test(mcp): cover the licence message of the tool errors

* fix(mcp): mark tools that reach outside the workspace as open world (#6609)

ChatGPT's scan refused to publish create_views because it reported
openWorldHint false while public views, emails and redirects reach outside.

* fix(builder): refuse a reused user source without password login

A login form for it could never sign anyone in, yet the setup reported success.

* fix(automation): check a workflow under the lock that publishes it

A node deleted between the checks and the publication went live unchecked.

* fix(builder): cap how many items one builder tool call takes

A caller could ask for any number of elements or nested items in one call.

* test(assistant): fail evals that only look like they passed

A wrong dashboard name, a denied table search and a form mapping both fields to one input passed.

* fix(mcp): mark pausing a workflow and moving elements as destructive

Neither only adds: a pause drops events and a move changes existing placement.

* refactor(builder): read tables without the database MCP module

The shared builder layer shouldn't depend on one client's adapter.

* test(assistant): add an eval that changes a row action's mapping

update_action had no eval for the branch that writes rows.

* test(mcp): expect moving elements to be destructive
2026-11-09 15:08:40 +01: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
alamin-br 4654019e22 feat(mcp): add search, row comment, view config and audit log tools (#6593)
* refactor(mcp): share the tool error messages

The row comment, row colour and audit log tools need licence errors to reach the client, and the item error helper outside automation.

* fix(assistant): show shared tool errors to Kuma

A licence or input error from a shared tool ended the chat run instead of reaching the model.

* feat(mcp): search the workspace

Lets MCP clients and Kuma find a table or row by name without walking every database.

* feat(mcp): read and post row comments

Lets MCP clients and Kuma read what people said about a row and add to it, in plain text.

* feat(mcp): change view sorts, field visibility and row colours

Lets MCP clients and Kuma configure views, and delete views and filters. list_views now returns the ids those tools take.

* feat(mcp): read the workspace audit log

Lets MCP clients and Kuma answer who did what in a workspace. It stays off until a user turns it on, even though it only reads.

* fix(mcp): run the field visibility change in a transaction

Over MCP and Kuma it failed on select_for_update, as they call tools outside a transaction.

* fix(mcp): only take row colours a row can show

A row takes its colour from a CSS class per palette name, so a hex value reported success and coloured nothing.

* fix(mcp): undo a row colour that fails halfway

The tool adds to a view's colours, so a client retrying after an error would end up with a second colour.

* fix(mcp): show how a view's filters combine

A view matching any filter, or one with filter groups, read as one matching all of them.

* fix(mcp): mark set_view_sorts as overwriting

It replaces a view's sorts and an empty list removes them, so clients should confirm it.

* fix(mcp): read comments with a mention without a label

The API accepts such a mention, and one of them made every comment of the row unreadable.

* fix(mcp): refuse a blank workspace search

The API trims the query too, and a space would match most names.

* docs(mcp): say why reordered sorts are recreated

* test(mcp): expect how filters combine in the listed views

* fix(mcp): handle bad input to the audit log tools

A reversed range and a blank query read as nothing having happened, and an unknown browser timezone ended Kuma's run.

* fix(mcp): read comments with no content

The API accepts such a comment, and one of them made every comment on the page unreadable.

* fix(mcp): show when a view's filters are switched off

Those filters hide no rows, so listing them as active misled the client.

* docs(mcp): correct what the view tools say they do

Row colours work on every view with rows, and Kuma was told to skip list_views when it needs the filters and colours.

* fix(mcp): leave IP addresses out of the audit log tools

Who did what doesn't need them, and Kuma sends tool results to the LLM provider.

* fix(mcp): keep what a restricted view hides out of the view tools

A member below builder could read a restricted view's filters, hidden sorts and colours from list_views, and a field's name from an error before permissions were checked.

* fix(mcp): replace a view's sorts one call at a time

Two calls could each read the old sorts and add to them, leaving a list neither asked for.

* fix(mcp): read a mention whose label isn't a string

The API accepts such a label, and one comment holding it stopped the row's comments from being listed.

* fix(mcp): limit the row comments of a call to 100

Each comment runs about nine queries in its own transaction, and a commenter could ask for any number.

* fix(mcp): show Kuma that set_field_visibility needs a field

Both clients now reject an empty list from the schema, so the checks after it can't run.

* docs(mcp): correct the audit log tools' licence and fields

An advanced licence also has the audit log, and entries no longer hold an IP address.

* refactor(mcp): rename set_row_colours to add_row_colours

It adds to the colours a view has, while set_view_sorts replaces the sorts.

* fix(mcp): stop set_view_sorts deadlocking with a new sort

A new sort checks its view when it commits, which the view lock blocked while
the sort rows it needed were held. Sort writers now share a weaker view lock.

* fix(mcp): title add_row_colours Add row colours

* refactor(mcp): merge search_audit_log into list_audit_log

The two differed only by a text query and a 90 day cap. Timestamps now need an
offset, as nothing tells MCP the user's timezone.

* feat(mcp): let a date filter carry its timezone

MCP has no timezone for the user, so relative date modes would follow UTC. An
offset can't express those, so the caller names the IANA timezone.
2026-11-04 14:05:50 +01:00
alamin-br d5d93a12cb feat(mcp): add the dashboard tools (#6526)
* feat(mcp): add the dashboard tool groups

* feat(dashboard): share the dashboard list and create tools

* feat(dashboard): share the widget read tools

* feat(dashboard): share the widget write tools

* feat(mcp): offer the dashboard tools

* docs(mcp): list the dashboard tools

* fix(dashboard): keep chart series styles when a widget changes

Only the changed data source values are sent, and a series given at the same position keeps its id, so per-series chart types and colours survive. create_dashboards is capped at 20 names.

* fix(dashboard): address review of the dashboard tools

Chart aggregations, licence errors, series styles, clearing values, hidden items and
write permissions behaved differently from the UI and the automation tools.

* feat(assistant): let Kuma build dashboards

Kuma gets a dashboard mode with the shared widget tools, so it can add, change, read
and delete widgets and opens the dashboard after adding them.

* test(assistant): give the chart eval a premium licence

Charts need premium; without it Kuma asked about the plan instead of adding the chart.

* fix(assistant): name the tools that list dashboard and widget ids

Without them the argument fixer told Kuma to call list_dashboards, which it doesn't have.

* fix(assistant): answer dashboard questions from the widgets

Kuma sometimes added a widget or view filter to count something a chart already showed.

* fix(dashboard): address final review of the dashboard tools

A refused write kept earlier items, other users' personal views passed the check,
and broken widgets, wrong chart types and missing ids gave unhelpful errors.

* fix(dashboard): address review of the dashboard tools

The services validate the data source, Kuma creates dashboards without an
event the frontend can't handle, and the chart evals check the figures.

* refactor(dashboard): let widget types register their tool definitions

Charts and pie charts are premium, so their tool models, series handling and
series_config now live in premium instead of the open-source tools.

* fix(mcp): keep core.tools importable before Django is set up

asgi.py imports baserow.core.mcp before django.setup(), and core.mcp now
imports core.tools for its error mapping.

* fix(assistant): refresh db connections in the dashboard tools

develop now runs every Kuma toolset through AssistantFunctionToolset, which
checks the thread's database connection before each sync tool call.

* fix(dashboard): check the whole widget on partial updates

The service only checks an aggregation sent with its field, so a partial update
could save a widget that can't compute. Also restyle a chart whose series differ
from its type, and tighten the eval check for the Won count.

* test(dashboard): drop tests that only check constants and pydantic

They assert configured limits and pydantic behaviour that other tests already cover.
2026-11-03 12:52:34 +01:00
Bram d0571201ad feat: [2/5] Added semantic search vector indexing for text fields (#6450)
* Added semantic search vector indexing

* Introduced incompatible state

* Covered template scenarios

* Set data_schema in local baserow ingration

* Check if field is still enabled when updating

* Update docs about env var hash change

* Added enterprise query test

* Fixed index name
2026-11-03 11:41:13 +01:00
Bram 7ad0e13ffe Latest changes from Weblate (#6574) 2026-11-02 12:04:36 +00:00
Bram d27a8f7267 fix: translation variable names (#6480) 2026-11-02 12:34:52 +01:00
Bram a208062925 refactor: Only include actually used icons (#6537) 2026-10-29 15:16:35 +01:00
Jérémie Pardou efbd35c34f refactor(core): propagate export config through property serialization (#6503) 2026-10-28 17:58:22 +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
Peter Evans 3fb5483dec fix: harden integration checks (#6485) 2026-10-26 10:08:57 +00:00
Bram 60ce89199d [1/2] feat: Improve initial page load performance (#6433)
* Improve initial page load performance

* Fixed moment (calendar view) bug
2026-10-23 15:25:53 +02:00
Jérémie PardouandTsering Paljor 4049b1a391 feat: support most of field types in grouped data source (#6392)
Co-authored-by: Tsering Paljor <tsering@baserow.io>
2026-10-22 16:48:31 +02:00
Jérémie Pardou 0809c8f531 fix: propagate template export configuration (#6431) 2026-10-22 13:07:31 +02:00
Przemyslaw Kukulski 58a9449209 feat: create a user template and list it in "Your templates" (#6421)
* feat(jobs): Opt-in lock so a job type can refuse a cancel after its commit

* feat(create-user-template): Create a user template and list it in "Your templates"

* fix(create-user-template): Address review feedback

- Only the owner can open a user template; the slug endpoint returns 404
  otherwise and includes `type`.
- List templates through `/api/templates/?view=flat` instead of `/own/`.
- Rename the job's copy to `template_workspace`, renumber the migration to
  0132 after develop's core migrations, guard it like 0128, and move
  revision fields and metadata to the update PR.
- Clear references outside the selection instead of failing the import,
  lock the owner row against a concurrent delete, and keep leftovers
  tracked until they're deleted.
- Load workspace permissions only for the wizard, handle instances without
  categories, restore a running job before a failed one, and open the
  default template again in the template modal.
- Reuse existing export, cancel and serializer code, keep one icon list,
  remove overlapping tests, and give template fixtures a unique slug.
2026-10-22 12:05:04 +02:00
Tsering Paljorandpeter_baserow 98acd64960 feat: Dashboard sharing (#6408)
* Add backend changes: models, handler, etc.

* Add frontend share dashboard modal

* Add public dashboard endpoint

* Add frontend public dashboard view

* Add public dashboard auth

* Show the logo in the password page based on license

* Add abuse reporting and fix license check

* Fix tests

* fix tests

* Fix aggregation in public dashboard

* Fix styling on sharing options

* Ensure anonymous dashboard views only return the data it needs

* DRY public access token logic

* Add changelog

* Added UpdateDashboardSharingActionType to ensure audit log accurately records changes.

* Add e2e tests

* Remove old todo; creation-time check is sufficient

* Re-add request serializer field overrides

* fix test

* Ensure that the password protection modal can be persisted with an Enter keypress.

---------

Co-authored-by: peter_baserow <peter@baserow.io>
2026-10-22 09:07:48 +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
Przemyslaw Kukulski 0971ac4504 feat: data model for user templates (#6388)
* feat: data model for user templates (#6341)

* docs: ADR 008 template revisions

* fix: collision-aware duplicate template slug rename in 0128
2026-10-16 13:30:15 +02:00
Bram 99e9f0a9ab Prepare for 2.4.1 (#6368) 2026-10-13 14:45:44 +00:00
Peter Evans a507ea1439 Fix the hourly application user limit check timing out (#6311) 2026-10-08 14:30:48 +01: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