Commit Graph
120 Commits
Author SHA1 Message Date
Przemyslaw Kukulski 4852e32060 fix: show an error instead of an unhandled 429 when a page refresh is refused (#6982)
* fix: keep published page data when a refresh is refused

* Review feedback
2026-12-03 06:16:22 +00:00
Przemyslaw Kukulski 19bb477c64 fix: show apps and dashboards in signed-out template previews; user template previews run no data sources (#6841) 2026-11-24 12:56:08 +01:00
alamin-br 7d7e532e9d fix(builder): restore table columns, menu items and options on undo (#6739)
* fix: restore builder element columns, menu items and options on undo

The update action only snapshotted allowed_fields, so related rows saved in
after_update (table columns, menu items, choice and property options) were
left out and undo/redo had nothing to restore.

* fix: snapshot only updated element values and skip deleted page links on undo

Exporting every related collection on each update cost queries for unrelated
changes, and replaying a link to a page deleted since made the whole undo fail.

* fix: keep click actions and page links of builder elements through undo

Undo hard-deleted the click actions of removed columns and menu items, trashed
ones included, and replayed links to trashed pages or skipped style changes.

* fix: keep trashed page links and replayed click actions through undo

Clearing links to trashed pages unlinked them for good, click actions trashed
by an undo or redo were never restored, and Kuma's formulas leaked into the
undo snapshot through prefetched column configs.

* fix(builder): keep click actions consistent across element update undo

Undo could duplicate a restored action in the editor, leave it on the old page,
delete nested or other elements' actions, or fail on an unused page link.

* fix(builder): echo trashed click actions to the requester only on element updates

A direct delete already removed the action in the requester's tab, and an echo
could hide it again after a quick undo. Menu item uids kept by an update now come
from one helper.
2026-11-20 17:58:13 +01:00
Davide Silvestri 74d6625a49 feat(assistant): run Kuma replies in the background (#6383)
* feat(assistant): stream Kuma background replies over HTTP

Behind assistant_background_runs, commit and enqueue the message then follow
Redis on the existing POST/200 cumulative JSON response. Resume the same run
without sending the prompt again. Keep refresh, multi-tab discovery, onboarding
and durable outcome recovery in the Kuma adapter and UI integration.

Part of #6346

* Remove unused Kuma chat run response header

* Register Kuma with the shared async streaming router

* Always execute Kuma messages in background runs

* Use chat run constant enums in Kuma

Kuma's model_unavailable error code moves to its own run constants,
because the engine no longer defines run type specific codes.

* Move the tool executor into Kuma

Kuma is its only user, and it is specific to pydantic-ai agents, so it does
not belong to the shared chat run engine.

* Return nothing from Kuma's interruption warning hook

The engine now prunes a run whatever the hook does, so it no longer reports
whether the warning was kept.

* Stop patching the removed ChatRunBuffer.finish

* Fix and simplify Kuma's background run adapter

- Save "nothing changed" when the model was unavailable or the prompt
  never reached it.
- Keep the progress line after a reconnect and build the compatibility
  records from their models, with the right text for runs that did nothing.
- Delete the in-request path, its cache-key Stop and the event bus.
- Map a second message to 409 directly and return one run shape in the
  chat API.
- Fix docstrings, help texts and the POST schema; drop overlapping tests and
  share run test helpers.

* Fix and simplify Kuma's run follower in the browser

- Keep local-only messages on refresh and show a queued run as queued.
- Settle a request aborted before it is sent and never show raw error pages.
- Fall back to the API for a new view whose broadcast is late.
- Stop a run through the engine.
- Delete the reader for the previous backend, the old cancel call and the
  UI location history.
- Share run test helpers and drop overlapping tests.

* Tighten Kuma's e2e tests, CI setup and docs

- Prove a live resume after a reload and drop a test that proved nothing new.
- Keep Kuma's panel closed in every browser context through the storage state.
- Drop the unused OpenAI key from the e2e setup.
- Rewrite the background replies section of the AI assistant docs.

* Handle Kuma runs whose sender lost access, and other review fixes

- A queued run whose sender can no longer use Kuma ends as access_lost
  without calling the model.
- A chat keeps asking runs for a title while its title is provisional.
- Test that a run captures and saves its onboarding target.
- Pass Phoenix settings to the dev export worker; pin CI's Kuma stub to
  Node 24.22.1.

* Fix Kuma's browser edge cases found in the re-review

- A send whose stream is refused after its run started re-reads the
  chat and counts as accepted.
- A chat read that ends after another chat was chosen is dropped, and
  only a 4xx forgets the tab's stored chat.
- An unsaved outcome stays shown while its run is the chat's latest.
- The status line shows that Kuma is answering.
- Empty stopped or failed answers show only their outcome.
- Logout clears Kuma's chats, messages and pending navigation.

* feat(assistant): follow Kuma replies through shared chat runs

* refactor(assistant): remove obsolete stream-limit recovery

* fix(assistant): simplify Kuma cutover and preserve legacy Stop

* fix(assistant): preserve existing Kuma API contracts

* refactor(assistant): match stream event kinds

* refactor(assistant): simplify execution and navigation

* fix(assistant): show that Kuma is cancelling after Stop

* test(assistant): cover the stale refresh guard and trashed workspaces

* refactor(assistant): close the run follower and drop the unused baseline

* refactor(chat-runs): share the run-in-progress error code

* docs(assistant): document the run limit and the deprecated chat status

* fix(assistant): give a duplicated tab its own Kuma tab id
2026-11-18 11:21:31 +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
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
Peter Evans 58a04924fe feat: let builder data sources be tested and work without an integration (#6552)
* feat: let builder data sources be tested and work without an integration

* fix: return a clear error when testing a data source with a missing sort or filter field
2026-11-10 09:01:34 +00:00
Peter Evans 86a7c0d204 stop data source changes from remounting the page editor (#6376) 2026-10-20 13:29:16 +01:00
Tsering Paljor 674e4b12a8 feat: Add markdown support to more Builder elements (#6124)
* WIP

* Remove formula conversion related changes

* Move the file input click guard to formatted text component

* Move format types into their own components

* Use a shared markdown-it instance

* Move the formatter into data explorer

* Move minification logic into BaserowFormulaMinified

* Renderer should own the root element

* Ensure long choice names are truncated

* Ensure line height doesn't grow for paragraphs

* Add tests

* Add changelog

* Add specific tests for choice element
2026-10-09 09:36:32 +04:00
Jérémie Pardou 64de425120 fix(builder): authenticate SSO callbacks before SSR (#6198) 2026-10-07 10:38:23 +02:00
Bram 35866e79de All workspaces homepage [2/7] Added all workspaces page and sidebar (#5980)
* Added all workspaces page and sidebar

* Show error if workspace is not found

* Fixed feedback

* Fixed feedback

* Fix test
2026-09-23 22:44:24 +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
Jérémie PardouandTsering Paljor 40c18a3c9f feat: add separate domain for preview (#5682)
Co-authored-by: Tsering Paljor <tsering@baserow.io>
2026-09-09 08:53:47 +02:00
Peter Evans 00dc3ad544 feature: introduce further undo/redo support in builder (#5691) 2026-09-08 13:55:09 +01:00
Tsering Paljor 9e8e2639fe Revert changes around additional markdown support for Builder. (#6026) 2026-09-07 14:51:10 +04:00
Peter Evans c8f78278d8 bug: address further page corruption edge cases (#5798) 2026-09-04 13:59:54 +01:00
Tsering Paljor 50ad792796 feat: Allow markdown in more Builder elements and fields (#5957)
* Allow markdown in text collection fields.

* Add support for markdown format in more Builder elements and fields.

* Add tests

* Fix tests

* Fix test

* Fix frontend tests

* Remove markdown from tags for now

* Fix markdown rendering extra newline

* Ensure markdown with relative links don't do a full reload
2026-09-03 08:55:55 +04:00
Peter EvansandJeremie Pardou b70bc968db chore: (1/2) implement the graph system in the builder backend (#4706)
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
2026-06-25 10:09:24 +01:00
dimmur-brw 1d1e992b21 Improve websocket management when the connection is lost (#5355) 2026-06-23 22:25:52 +02:00
Davide Silvestri 41b17384a3 fix: avoid shared Vuex module state (#5576) 2026-06-23 17:01:47 +02:00
Jérémie Pardou 6d902bb127 feat: add membership management for all app types (#5419) 2026-06-10 10:17:50 +00:00
56943a3601 feat: add compact menu variant to Menu element (#4059)
---------

Co-authored-by: Tsering Paljor <tsering@baserow.io>
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
Co-authored-by: Jonathan Adeline <jonathan@baserow.io>
2026-06-03 17:32:23 +00:00
Jonathan AdelineandJeremie Pardou 060a85728c fix(builder): ignore hidden form fields when validating form container submit (#5305)
* fix(builder): ignore hidden form fields when validating form container submit
* Remove stale data from the store on component unmount
---------
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
2026-05-11 12:19:55 +00:00
Jonathan AdelineandJeremie Pardou 7a1b6b88ba feat: add drag & drop support in AB (#5031)
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
2026-04-08 07:30:43 +00:00
dimmur-brw 3a431d246c fix (nuxt): instance unavailable errors (#5064) 2026-04-07 07:18:29 +02:00
Davide SilvestriandClaude Opus 4.6 7bce809cbc feat(assistant) 2/3: add application builder tools for pages, elements, data sources, and actions (#4954)
* feat(assistant): add application builder tools module

Add 19 tool functions for creating/managing pages, elements, data sources,
and workflow actions in Baserow builder apps. Includes permission-checked
CRUD helpers, formula generation context, element type models with dispatch
tables, and routing rules for all builder operations.

* feat(assistant): add theme catalog, apply_theme, and theme templates

Add THEME_CATALOG with 20 theme definitions, ThemeName type, apply_theme()
helper, and auto-theme application on builder creation. Includes JSON and
ZIP template files for all themes.

* feat(assistant): register BuilderToolType and wire up imports

Register BuilderToolType in apps.py, consolidate ToolInputError in
builder.helpers, remove try/except guard on builder import in toolset,
and minor formatting fixes.

* feat(assistant): add builder page navigation and UI context

Add builder-page navigation handler in AssistantPanel, page name display
in AssistantUiContext, builder page context extraction in store, and
undo/redo scope dispatch for builder pages.

* test(assistant): add builder tools and eval tests

Add 55 unit tests for builder tools (pages, elements, data sources,
workflow actions, styles, themes), 4 element move tests, restore 3 theme
tests in core tools, and 11 LLM eval tests for builder scenarios.

* lint

* refactor(assistant): extract theme code for separate PR

Remove theme catalog, apply_theme, set_theme, and 20 new template files
to be re-added on pydantic-ai-pr3 as a focused theme PR.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(assistant): add missing application_type_registry import in core types

* fix(assistant): add prerequisite hint to create_display_elements and update builder evals

* feat(assistant): add view_id to data source create and update

Allow data sources to reference a database table view for filtering.
Instead of reimplementing the full filter model, this leverages existing
create_views + create_view_filters tools to set up filters on a view,
then links it via view_id.

* feat(assistant): add user source setup, role visibility, and login page

- Add setup_user_source tool: creates users table with fields and
  example rows, configures Local Baserow user source with password auth,
  creates login page with auth_form element, and sets builder.login_page
- Add update_builder core tool for application-level settings
  (login_page_id) and register it in all mode-aware toolsets
- Add role_type and roles fields to PageCreate, PageUpdate, PageItem,
  ElementItemCreate, and ElementUpdate for role-based visibility
- Add auth_form element type with user_source_id and login_button_label
- Enrich list_pages response with user_sources, available_roles, and
  login_page_id so the LLM knows what auth is configured
- Add 3 unit tests and 2 eval scenarios for user source setup

* fix(assistant): address copilot feedback

- Guard `update_single_element_formulas` against KeyError from
  `get_first_ancestor_of_type` (shared page elements), matching the
  existing guard in `update_element_formulas`
- Enforce XOR validation on UserSourceSetup for table_id/database_id
- Use `literal_or_placeholder` in notification/open_page workflow action
  kwargs so plain strings are properly quoted as formula literals
- Raise ToolInputError when table lookup via .first() returns None in
  data source and workflow action types
- Reorder page.js selectById to validate pageId before setting undo/redo
  scope

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(assistant): fix view type bugs in ViewItemCreate and from_django_orm

- Default `public` to False instead of requiring it
- Read grid `row_height` from ORM instead of hardcoding "small"
- Use `is None` check for required fields to accept valid falsy values

* fix(assistant): prevent shared header misuse and fix collection element formulas

Strengthen guidance so the AI doesn't place page-specific content in
shared headers/footers and correctly uses current_record instead of
data_source.<id>.0 for formulas inside table/repeat elements.

* fix: add pytest.skip to flaky test test_async_start_workflow_rate_limited_runs_eventually_disable_workflow

* fix: address feedback

* Revert "fix: add pytest.skip to flaky test test_async_start_workflow_rate_limited_runs_eventually_disable_workflow"

This reverts commit 39ca93eebf.

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-31 15:55:53 +00:00
Jonathan Adeline 7c88d30ada Fix sidebar application views selection (#4728) 2026-02-12 19:18:44 +04:00
Davide Silvestri 3e774f88f1 fix(realtime): Realtime updates for data sources and workflow actions (#4587)
* Add realtime signals for data-sources and workflow-actions

* Address feedback for data sources and other handlers

* Add realtime update for theme

* apply Peter's patch

* Fix flaky test
2026-02-03 10:54:20 +01:00
Tsering Paljor be28faa238 Nuxt migration: Fix guided tour and remove TODOs (#4551)
* Fix TODOs

* Add TODO MIG to add skeleton loader. Remove unused router.
2026-01-22 14:16:01 +04:00
716d43a9a8 Nuxt 3 migration (#4342)
Update the nuxt3 version.

Co-authored-by: Jonathan Adeline <jonathan@baserow.io>
Co-authored-by: Bram Wiepjes <bramw@protonmail.com>
Co-authored-by: Cezary <cezary@baserow.io>
Co-authored-by: Tsering Paljor <tsering@baserow.io>
Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io>
Co-authored-by: Bram <bram2w@users.noreply.github.com>
2026-01-22 10:27:19 +01:00
Peter Evans 08a896a7b8 Add a 'create new' link in the footer of the DataSourceDropdown. (#4349)
* Adding a 'create new data source' link in the footer of the DataSourceDropdown.

* Force a DataSourceCreateEditModal remount by setting a unique key. After an updated event has been emitted, we don't want to edit in the subsequent 'add new' click.
2025-12-11 08:26:26 +00:00
Jérémie Pardou 5a8d313e25 Fix form data init inside form elements (#4272) 2025-11-17 15:13:03 +01:00
Jérémie Pardou a57a666e43 Better fix for workflow action reactivity (#4242) 2025-11-13 21:03:28 +01:00
Jérémie Pardouandpeter_baserow cabf111040 Add element visibility condition (#4188)
Co-authored-by: peter_baserow <peter@baserow.io>
2025-11-12 12:11:41 +01:00
Jérémie Pardou 96d4d1bc65 feat: local baserow services return human field names (#4143)
See related issue.
2025-11-03 14:22:46 +01:00
Peter Evans e6c968536c Resolve collection element fetch bug 2025-09-09 14:06:46 +01:00
Jeremie Pardou bf5e3da7ed Fix sentry issue BASEROW-SAAS-WEB-FRONTEND-4A6 2025-08-05 10:33:46 +02:00
Jérémie Pardou d109762e88 Improve backend error feedbacks 2025-07-09 16:19:04 +02:00
Jérémie Pardou b199b2cc02 Fix some sentry bugs 2025-06-16 10:26:08 +02:00
Peter Evans d0061ee267 Rename the workflow action store 2025-06-09 09:02:15 +01:00
Jérémie Pardou 318d05a288 Add http action 2025-05-27 10:01:04 +02:00
Jérémie Pardou f648aae776 Add File input element 2025-04-28 15:52:44 +02:00
Jérémie Pardou a97987bfc0 Improve data source and dispatch endpoints performances 2025-02-19 09:42:10 +00:00
Jérémie Pardou 1a11d5a21c Final fix for workflow action with collection elements 2025-02-18 16:28:09 +00:00
Jérémie Pardou c19688bedb Fix broken pagination after filtering 2025-02-13 20:03:33 +00:00
Peter Evans 28844e1223 Resolve "Service filters pointing to trashed database fields can lead to an exception raised during dispatch." 2025-02-10 17:16:26 +00:00
Jeremie Pardou 44ba650275 Fix store issue on selected element in templates 2025-02-05 15:40:11 +01:00
Evren Ozkan 557b8966f8 Add query_parameters to pages 2025-02-03 15:37:04 +00:00
Peter Evans a8257f52d4 Resolve "Wrong record is updated when a Table element uses a filter or search" 2025-02-03 14:38:23 +00:00
Peter Evans 38738938f5 Resolve "Error in repeat and table elements after deleting link to table field" 2024-12-10 09:13:32 +00:00