* Show the first workspace settings page when the permissions load after the modal opens
* Show a spinner while the workspace settings modal loads and a message when it has no page.
* Stop a failed permissions fetch of an earlier opening from closing the reopened settings modal.
* Fix tests
* Give the workspace settings modal a minimum height so it doesn't grow once its page loads.
* feat: list every invitation link of a workspace in the workspace settings modal
* fix: show the table of view invite links, keep the list steady while searching and wrap its header
* Add ADR-013 for workspace level integrations
* Add implementation
* Improve context section and remove technical points
* Move bulk replacement point to v2
* Remove workspace-level ownership on import since manual promotion should handle this.
* Add a glossary section
* Do Lazy creation + Celery migration
* Remove demotion
* Tighten the Options considered section
* Add Decision describing where the integrations are managed
* Update implementation plan after changes to ADR
* Sync plan and adr
* Rename adr and implementation
* Add the shared application that owns workspace integrations
* Create the shared application of every workspace
* Let only workspace admins manage workspace integrations
* Let applications use the integrations of their workspace.
* Trash workspace integrations in their workspace.
* Copy workspace integrations into exports and keep them in duplicates.
* Workspace admins can share integrations with every application in the workspace.
* Load the shared application of each workspace in the frontend and keep it out of application lists.
* Manage workspace integrations from an Integrations page in workspace settings.
* Offer workspace integrations in the integration dropdowns of every application.
* Move promoted integrations to the workspace list in other open tabs.
* Let admins make an app's integration available to the whole workspace from its integration settings.
* Preselect a workspace integration for new nodes and data sources when the app has none of its own.
* fix tests
* Delete implementation file
* More fixes after rebase
* Fix tests
* Let builders of an application see and use the workspace integrations from it.
* Show the workspace integrations, read-only, in the integration settings of applications.
* Keep a dashboard's integration out of promotion to the workspace.
* Leave the shared applications out of the admin dashboard's application count.
* Create the shared application of the workspaces made by the fill commands.
* Say in the promotion modal that an integration nobody authorized will run as the promoting admin.
* Say in the promotion modal that undoing it won't make the integration run as the previous person again.
* Ignore integration ids in sample data when publishing copies the workspace integrations an app uses.
* Let only undoing a promotion move an integration out of the workspace.
* Let the shared application backfill stop itself after 5 minutes and skip workspaces another transaction has locked.
* Say in the workspace integrations settings that published applications and workflows keep their own copy until they're published again.
* Leave the shared application out of the assistant evals' application counts.
* Refresh the workspace integrations when the Builder's data, events, users and integrations panels open.
* Say that anything new using a promoted integration blocks undoing the promotion, even from its own application.
* Warn when a database button sends through a workspace integration with no host or token.
* Refuse roles and invitations on the shared application.
* Fix tests
* Show an application only the workspace integrations of types it can use.
* Say in the promotion modal what builders of other applications can do as the integration.
* Leave the shared application type out of the API docs for creating and updating applications.
* Check who receives a workspace integration event in one permission call.
* Say which workspaces have a shared application and who creates it.
* Let a redone promotion record what uses the integration again.
* Update docstrings
* Stop template visitors from listing the integrations of the template's workspace.
* Let database buttons find their own copy of a workspace integration after an import.
* Say what holds the workspace row lock while a shared application is created.
* Fix tests
* Stop the workspace integration form component from being made reactive.
* Make test runs use a new copy of the workflow after an integration it uses changes.
* Hide the Members settings tab from members who can't list the workspace members.
* Add changelog
* Fix migration conflict
* Fix migration conflict
* Fix test
* Update comments and ADR number
* Link to the workspace integrations from the sidebar's Settings menu.
* fix: refresh agent action errors when workspace integrations change
* fix: move workspace integrations into workspace settings
* fix: use share icon for workspace integration promotion
* refactor: use explicit shared application relations
* feat: centralize default integration selection
* refactor: share integration change notifications
* refactor: prepare integration mappings before import
* refactor: collect integration references during export
* refactor: prepare integration ownership changes without a new hook
* test: restore registered service model after mocking
* test: cover shared integration defaults in Builder
* test: include Slack in Agent workspace integration choices
* Fix migrations
* Stop template visitors from listing the workspace integrations through an application of the template.
* Only offer integrations of the user source's integration type when updating a user source.
* Say the workspace integration copy means published Application Builder apps and automation workflows.
* Use the same spacing under both integration settings sections and enlarge their headings.
* Keep the shared application out of automatic snapshot schedules.
* Fix test after rebase
---------
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
* feat: redesign sidebar workspace navigation
* feat: redesign the sidebar footer and account menu
Match the account menu to the sidebar prototype and reuse the admin
navigation in a submenu. Keep Add new above the footer while the
application list scrolls.
* fix: show the sortable indicator only when dragging
* feat: refine workspace sidebar application navigation
* feat: reorganize workspace sidebar shortcuts
* fix: isolate workspace sidebar menus and actions
* fix: cancel sortable drops on hidden lists
* fix(enterprise): allow retrying Direct support
* feat: simplify the workspace overview header
* fix: prevent horizontal overflow around the sidebar
Constrain animated tree groups to the width of the sidebar so long labels truncate. On narrow screens, let the sidebar expand over the content instead of reducing the usable page width.
* fix: fit workspace cards and creation menus on mobile
* test: keep the current table selected after reload
* fix: undo and redo edits across expanded sidebar applications
* fix: keep sidebar groups out of the tab order
* fix: highlight the active database in the tables tour
* feat: label workspace integrations in the settings menu
* fix: keep the workspace sidebar and guided tour usable on phones
* fix: undo sidebar row imports in the destination database
* fix: keep the guided tour highlight on the current step
* fix: show an empty state in the workspace picker
* fix: confirm workspace deletion before moving it to trash
* feat: open registered workspace settings tabs from the sidebar
* fix: keep the sidebar logo the same size across workspaces
---------
Co-authored-by: peter_baserow <peter@baserow.io>
* feat: add permanent workspace invite links behind the rbac_improvements feature flag
* feat: ask logged-in users to confirm before joining a workspace through an invite link
* feat: make the invite link code length configurable with a default of 12 and a minimum of 7
* feat: let admins name invite links so they remember what each one is for
* feat: show only the invite path in the link column to make room for the name
* fix: harden invite links and let people sign up through them with single sign-on
* fix: ask people who sign up through an invite link with single sign-on to confirm joining
* feat: let invite links raise a member's role after they confirm, without ever lowering it
* fix: move shared clipboard helper into core
* fix: validate workspace invitation link roles
* refactor: share confirmation modal across core features
* refactor: use literal frontend translation keys
* fix: label invitation route Invite links
* fix: copy invitation links when clicking their paths
* fix: align invitation migration with latest develop
---------
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
* fix: accept workspace invitations only with the emailed token or a verified email
Accepting by id only compared the username with the invited address, which anyone can
register without verifying it. The emailed token now proves ownership and verifies the
email; without it, the user's email has to be verified.
* fix: require a verified email to reject invitations and keep accept visible
Rejecting still only checked the username, so whoever registered the invited address could delete the invitation. Accept stays visible after a verification error so it works once the email is verified.
* fix: hide accept for unverified users, allow reject, skip the check without SMTP
Without an email backend neither the invitation nor a verification email arrives, so the check can't be met.
Signing up from the invitation link verifies the email, so the user is signed in even when verification is enforced.
* fix: leaving a workspace hangs and removing the current user deletes the wrong workspace
* show who effectively has access in the share dialog
* optimise the effective access query
* add a loading spinner for the effective access too
* fix: navigate inherited access within the sharing modal
* fix: restore invitation popup and scrollable access lists
* fix: return accurate team counts in scope access lists
* refactor: centralize subject avatar rendering and styling
* fix: keep team counts in field permissions and restore template icons
---------
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
* feat: align management pages with the refreshed table design
* feat: refresh agent dialogs using shared UI components
* test: cover refreshed management pages and agent dialogs
* fix: use the standard UI modal for agent management
* feat: expand member rows with available role details
* Revert "feat: expand member rows with available role details"
This reverts commit e0516c6ce43896508b918db10b028f1cdf88c29b.
* docs: show scoped member roles in CrudTable stories
* fix: align tab labels with badges
* fix: define management role icons in the role registry
* fix: reuse shared name abbreviations in management tables
* style: format management tables and tabs for CI
* test: preserve agent totals and tab badges after rebase
* Implementing the new invite-to-scope design and functionality.
* Simplifying the invitation acceptance, we don't need the redirect.
* Fix the action type description
* Addressing my own review feedback, and making sure the workspace invitation form behaves like the scoped one.
* Further tweaks after testing edge cases manually
* Lint fix
* Taking a DRYer approach to validating the subject chips.
* Lint fix
* Addressing feedback
* fix: block invitation batches containing invalid emails
Malformed addresses could be silently cleared after a partial batch send.
Keep them visible and block submission until corrected or removed.
* fix: respect workspace invitation permission in scope sharing
Scoped Admins could attempt email invites denied by workspace permissions.
Gate new-email invitations while keeping existing subjects assignable.
* feat: unify workspace and scoped access lists
Workspace and scope lists duplicated markup and lacked consistent controls.
Share rows, add workspace edit/cancel actions, and cap lists at six rows.
* fix: reconcile invitation branch with develop
Develop enables agents and adds an Enterprise migration at the same number.
Align invitation subjects and renumber the branch migration after develop.
* refactor: resolve workspace user roles in the backend
The frontend duplicated the backend mapping from basic roles to RBAC roles.
Expose role_uid in user payloads and reuse it for inherited access counts.
* fix: validate invitation emails before submission
The permissive database validator let malformed invitation addresses reach the API.
Use the existing strict validator for email suggestions, chips, and batch submission.
* fix: align invitation input focus styling
The invite input used a gray border tied to whether suggestions were open.
Use the standard blue border with focus-within so Escape preserves the focus highlight.
* feat: limit email invitation batches
Large invitation batches can exhaust the sending allowance partway through.
Default to five new emails per batch, configurable, with a message before submission.
* feat: let roles declare the invitation default
RBAC invitations should default to Viewer without Enterprise-specific logic in core.
Let role types declare the default: Member for basic workspaces and Viewer for RBAC.
* refactor: keep invitation role semantics in their owning modules
Core invitation UI should not interpret Enterprise role IDs or depend on Database roles.
Move basic roles to core and let Enterprise supply invitation subtitles through role metadata.
---------
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
* feat: retire AI provider flag and add rollout audit
* test: remove obsolete AI provider flag setup and docs
* chore: clean up AI provider configuration and tests
* feat: deprecate legacy AI provider environment configuration
* docs: explain AI provider migration sizing and timing
* docs: mark AI provider migration audit for removal
* docs: explain AI provider migration audit usage
* fix: log AI provider env deprecations after logging setup
log_ai_provider_env_deprecations() ran at the tail of _setup_health_checks(),
which ready() calls before setup_logging(). The notice went out through
loguru's default sink and missed BASEROW_BACKEND_LOG_LEVEL, the Baserow
format, and the OpenTelemetry log exporter, so operators shipping logs to a
collector never saw it.
Also drop two references the flag removal invalidated: the getEffectiveAIAgentModels
JSDoc still described filtering as conditional on the removed provider flag, and
the AI field architecture doc still pointed provider authors at the deleted
legacy workspace-setting hook. That doc now names BuiltInGenerativeAIModelType,
which is what grants an integration override model inheritance.
* fix: reuse environment AI settings in generation workers
* feat: import legacy AI provider settings on upgrade
Removing the ai-providers flag makes database-backed providers the default, which
would leave every existing installation on an empty AI providers page with a
management command as the only way to populate it. A data migration imports the
environment and each workspace's stored settings instead, so a standard upgrade
needs no commands.
Both scopes are imported in one migration. Legacy workspace settings replaced the
instance ones entirely, while database providers inherit, so each imported workspace
is also switched off the instance provider of the same type. Without that a workspace
would silently gain models billed to the instance account.
Settings that cannot fit their columns are skipped and logged rather than raising
DataError and rolling back the whole upgrade. The migration reverses as a no-op
because the previous version does not read these tables, so deleting rows would only
discard edits made during a rollback window.
migrate_ai_provider_settings stays as the recovery path and now shares its planning
logic with the migration, so both agree on which legacy settings are complete. It
deliberately does not switch workspaces off inherited providers, and warns instead.
* chore: remove the temporary AI provider audit command
audit_ai_provider_settings existed to inventory legacy configuration before a manual
import. The upgrade now imports automatically, so the command has no remaining step
to support. Removal was already tracked in #5749.
* docs: reduce AI provider docs to lasting behaviour
The upgrade procedure, rehearsal plan and sizing query described a one-time
transition and do not help anyone after the release; they live in the pull request
instead. What remains explains how providers work: the two scopes, how they combine,
the inheritance switch, what the deprecated environment variables still do, and how
integration overrides and published applications behave.
Also corrects claims that no longer hold: published applications keep materialised
credentials only when they were published before the upgrade, the import is no longer
optional, and a workspace-owned provider suppresses the environment fallback too.
* docs: shorten the AI provider changelog entries
Bullet points render as single list items under the entry. The released entries
average around twenty characters; these ran to four hundred, so the detail belongs
in the AI providers guide rather than the changelog.
* docs: clarify where imported AI credentials are stored
The previous wording implied Baserow's own exports carry provider credentials.
They do not: AIIntegrationType lists ai_settings as a sensitive field and
ImportExportConfig excludes those by default, and AIProviderConfig is not part of
any export path.
* docs: explain the AI provider upgrade and where to configure providers
State that the upgrade imports the BASEROW_* provider variables once and no longer
reads them, list the exceptions, and give the exact navigation for instance admins
(Admin tools -> AI providers) and workspace admins (workspace Settings -> AI
providers). Map each deprecated variable to the field that replaces it.
* fix: renumber the legacy AI provider import after 0121_agent
Develop's core 0121_agent and this branch's import migration both depended on
0120, leaving two leaf nodes, so migrate refused to run and the startup check and
E2E shards failed. The import is now 0122 and depends on 0121_agent.
* feat: remove the legacy workspace generative AI settings endpoint
GET/PATCH /api/workspaces/{id}/settings/generative-ai/ had no caller left, yet a
PATCH was still honoured for any provider type without a workspace provider and
never shown in the AI providers UI. Remove it with the handler parameter,
receivers and frontend handler that only it could trigger.
* fix: stop instance AI provider changes from fanning out per workspace
An instance-level change queued one Celery task per 25 workspaces behind a global
blocking lock, sent a payload to every connected user, and made the premium receiver
serialize every AI field on the instance. Instance changes now notify staff only;
other users see them after a reload. The render lock is per scope, and the in-use
guards no longer read one row per workspace.
* fix: keep inherited Kuma when a workspace switches off the instance provider
The upgrade switches imported workspaces off the same-type instance provider, which
made an inherited instance Kuma model invalid there, so Kuma fell back to the
deprecated env model or turned off. Inheriting the instance Kuma selection now
ignores workspace switch-offs; explicit workspace selections stay strict and are
the only ones that block a switch-off.
* fix: skip malformed Ollama URLs during AI provider migration
* fix: preserve skipped legacy AI provider connections
* test: cover independent legacy AI workspace connections
* fix: skip malformed legacy AI provider settings
* fix: move legacy AI import after current core migrations
The linear rebase omitted the migration renumbering from the previous merge commit, while develop advanced through core 0124. Rename the existing AI import to 0125, depend on 0124, and update its historical migration test so core has a single leaf.
* feat: report AI provider model usage per feature type
Feature types now count the rows they store referencing a provider model,
so the admin can be warned before disabling, deleting or narrowing one
instead of being blocked. Counting is by provider type and model
identifier because consumers do not store the provider row id, which
makes the result an upper bound: fit to warn, never to block.
Default-model features are excluded, their RESTRICT foreign key already
blocks the change.
* feat: count AI field and AI Agent references to a provider model
Both features store a provider type and model identifier per row rather
than a reference to the model, so nothing told an administrator what a
model change would break. They now count their own rows, skipping every
consumer whose owner is trashed: a field's table, database or workspace,
and an agent service's automation node, builder workflow action,
integration or application.
* feat: expose AI provider model usage over the API
GET /ai-providers/models/<id>/usage/ reports the per-consumer counts to
warn about and, separately, the default-model features that refuse the
change outright. Kuma holds a restricted foreign key, so naming it up
front lets the client say which selection to repoint instead of letting
the admin discover it through a generic error.
Permissions and scoping mirror the sibling model endpoints, so a
workspace-scoped caller cannot read an instance model's usage.
* feat: warn before an AI model change breaks its consumers
Disabling, deleting, renaming or narrowing a model now names what
depends on it and proceeds on confirmation. Disabling was entirely
unguarded before, and a rename orphans consumers just as thoroughly as
a delete because they persist the identifier string.
The counts are an upper bound: an instance model and a workspace model
sharing an identifier are indistinguishable to a consumer, so the copy
says a feature uses the model rather than claiming it will break. A
failed lookup degrades to the plain confirmation instead of trapping
the administrator.
* fix: keep an unavailable AI model visible in the AI field form
The form dropped a saved provider or model as soon as it stopped being
available, leaving empty dropdowns that hid what the field had been
configured with. It now retains the saved selection, disabled and marked
unavailable, the way the AI Agent node form already does, while the
validator keeps reading the genuine list so the field cannot be saved
until a real model is picked.
* docs: describe the AI provider model usage warning
* refactor: drop redundant blocking feature types from model usage
The usage endpoint pre-announced the features whose selection refuses a
change, but ERROR_AI_PROVIDER_MODEL_IN_USE already names them and the
frontend already renders that detail. Worse, the modal applied the list
only on rename, the one path that is never refused: Kuma holds a foreign
key to the model row, so the selection follows the rename instead of
breaking. The same claim was in the installation docs; both are corrected
to say what actually happens.
Also drop the `trashed=False` filters from both model reference counts.
AIAgentService.objects and AIField.objects are no-trash managers, so the
generated SQL already excludes trashed rows.
Rename the endpoint's operation id to get_ai_provider_model_usage: the
documented response is an object, not a list.
* fix: address Qodo review of the model usage warning
Count a service only while a live owner still reaches it. The previous
exclusion dropped the whole service as soon as any related builder action
was trashed, so a service shared by a live and a trashed action vanished
from the warning. Both owner managers already encode which ancestors count
as trashed, so the check reuses them through EXISTS instead of restating
the rules.
Treat a failed usage lookup as unknown rather than zero. Returning empty
counts made every caller skip its confirmation, letting a rename orphan
consumers with no warning at all; the dialog now says the check failed and
still lets the admin proceed.
Cover fetchModelUsage directly: payload forms, workspace scoping and the
snake_case to camelCase mapping had no store test.
* feat: per-feature and workspace-level AI model settings
Baserow could only point every AI feature at one instance-wide model. An
administrator can now register provider models, declare which AI features each
model may serve, and pick the default model per feature; a workspace admin can
inherit that choice, override it, or disable the feature locally.
The assistant resolves its model once per logical request and threads that
snapshot through its nested agents and tools, so a single run can no longer
re-read settings repeatedly or pick a model other than the one it validated.
The scoped provider state is memoized for the duration of a request, keeping
workspace serialization from loading it once per workspace.
Also:
- add Google and Groq provider types, and keep these database-only providers
out of the legacy workspace settings they cannot round-trip through;
- prune orphaned feature selections so an unloaded feature type's RESTRICT FK
no longer blocks provider and model deletion;
- record whether a configured model answers text and tool-calling probes, and
invalidate that result when its credentials or identifier change;
- broadcast provider and availability changes over the existing realtime
channel so open clients update without reloading;
- read the assistant model from the shared configmap, so frontend pods no
longer miss it on Helm installs.
Manual test instructions live in docs/testing/kuma-model-settings-test-plan.md.
* fix: address AI provider settings review feedback
* feat: add workspace AI providers for AI fields
* fix: address workspace AI provider review feedback
* fix: address remaining AI provider review feedback
* fix: resolve core migration conflict
* fix: stabilize premium AI provider tests
* address feedback for local imports
* fix: remove workspace invite messages and pending cap
Workspace invitations no longer accept custom messages, which removes the main spam payload from the flow. Drop the BASEROW_MAX_PENDING_WORKSPACE_INVITES limit because deleting and recreating invites made it ineffective.
* Update backend/src/baserow/core/migrations/0114_alter_workspaceinvitation_message.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Ignore ai models that have no settings
* Ensure GenerativeAIModelType has a base getSettings() that returns an empty array
* Don't show override settings when there is nothing to override.
* Add docstring