Commit Graph
7 Commits
Author SHA1 Message Date
Jonathan Adelineandpeter_baserow d443af3b4e feat: add an Enterprise HTML element (#6658)
* feat: add an Enterprise static HTML element to the Application Builder

* fix: validate widget markup across imports and browser rendering

* test: refresh the E2E database fixture for the HTML element

* fix: follow browser rules for duplicate attributes and URL lists

* feat: show the embed preview hint on custom HTML elements

* docs: explain how to add widget scripts in the HTML element form

* chore: align HTML element changelog with repository conventions

* feat(builder): render HTML in a sandboxed editor preview

* fix(builder): remove excess HTML editor preview spacing

* fix(builder): match empty HTML and iframe styling

* fix(builder): flag empty HTML element sources

* docs(builder): generalize HTML source helper text

* docs(builder): clarify HTML helper script options

* docs(builder): keep external script helper vendor neutral

* feat(builder): validate HTML source immediately in the editor

* refactor(builder): simplify HTML element as trusted custom code

* docs(builder): shorten HTML source helper

* feat(builder): support formulas in the HTML element

* style(builder): format the HTML element migration

* Tweak the FormulaField migration. Add a placeholder to the formula field in the frontend.

* Bump the HTMLElement migration IDs.

* fix(ci): align E2E fixture with renumbered HTML migration

---------

Co-authored-by: peter_baserow <peter@baserow.io>
2026-11-12 16:09:53 +04:00
alamin-br 5275ede481 fix: make SMTP and Slack integration credentials write-only (#6072)
* fix: make integration credentials write-only in the API

The SMTP password and Slack bot token were returned in plain text by the
integration API and broadcast to every collaborator over the websocket.

* fix: record integration config changes in the undo log

The exclude list used sensitive_fields, which for SMTP covers every field,
so undoing an SMTP integration update restored nothing.

* fix: require the SMTP password when the connection target changes

Keeping the stored password while changing host, port or use_tls let a
user redirect it to a server of their choosing, or downgrade the
connection so it crossed the wire in the clear.

* fix: refresh integration state from the update response

The has_password and has_token flags are derived server side and nothing
else refreshes them for the user who made the change.

* feat: keep the saved SMTP password when it is not retyped

The API no longer returns the password, so the form must distinguish an
untouched field from a deliberate clear.

* feat: keep the saved Slack bot token when it is not retyped

Also mask the input, which rendered a bearer credential in plain text.

* feat: explain why an integration credential must be re-entered

* chore: add changelog entry for write-only integration secrets

* test: cover write-only integration secrets end to end

Unit tests on either side cannot see the seam between the form omitting an
untouched credential and the backend reading an omitted one as keep.

* fix: correct Slack integration copy and defaults for write-only tokens

The summary read the token itself, so a configured bot showed as not
configured, and the create warning told users the token could be read
back through the API.

* fix: keep every sensitive field out of the integration action log

Narrowing the exclude list put the SMTP host into a replayable log while
the credential stayed out, so a recorded target change could be replayed
onto a password supplied later by someone else. It also wrote the AI
integration's provider API keys into the action and audit logs.

* fix: keep integration secrets required when there is nothing to keep

Making every secret optional so an update need not retype it also made the
Slack token optional on create, where no stored value can be kept.

* fix: never use the instance SMTP account for an integration

Django's SMTP backend replaces a None username or password with the instance's own.

* fix: read has_token when checking a Slack bot in button field actions

* fix: list writable credentials in the integration request schemas

Also keep the blank error code for an empty token on create.

* docs: correct integration secret comments and changelog

* style: format button field action list spec

* fix: validate integration updates as partial

Keeps secrets required on create so the schema matches the server, and
drops the None stripping and view-level secret check it made redundant.

* docs: cross-reference the two secret_field_dependencies

* docs: describe the write-only contract of integration secrets

The copy stops a base serializer's extra_kwargs leaking into the type's
shared dict, which made name optional on the create serializer.

* docs: move integration secret reasoning into docstrings

* fix: name the credential generically in the retype message

* test: select the SMTP password input by type

* test: expect the credential wording in the retype e2e

* fix: document integration updates as partial

The update validates with partial=True, but its per-type schema components
still listed token and host as required.

* fix: let undo restore non-credential SMTP settings

Only secrets and the targets they protect stay out of the action log, so an
SMTP username change can be undone. Types without secrets still exclude every
sensitive field.

* docs: point sensitive_fields readers to secret_fields

sensitive_fields does not hide a field from API responses, so new
integration credentials need secret_fields too.
2026-09-14 16:07:05 +02: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 bc8c5e825c chore: add an element visibility e2e test (#5674) 2026-07-22 19:03:58 +01:00
Jeremie Pardou 67cf463045 Add e2e tests 2025-05-16 20:52:50 +02:00
Evren Ozkan 557b8966f8 Add query_parameters to pages 2025-02-03 15:37:04 +00:00
Jérémie Pardou 63117027a6 Add builder first e2e tests 2024-11-14 12:30:42 +00:00