Commit Graph
75 Commits
Author SHA1 Message Date
Peter Evans 63f3f4e11d feat: refresh the Santa's Logistics template with a dashboard, festive automations and a new look (#7013)
* feat: refresh the Santa's Logistics template with a dashboard, festive automations and a new look

* feat: add two festive agents to the Santa's Logistics template

* fix: show children only the replies Santa has approved

* fix: correct Santa's Logistics parcel counts, empty workshop bars and elf guidance
2026-12-03 09:46:32 +00:00
Bram ea5eb7805e Added agent templates (#6958) 2026-12-01 16:07:59 +00:00
Peter Evans 8bf8456b98 Updating the Incident Management template to include a dashboard and automation. (#6908) 2026-11-30 11:19:04 +00:00
Peter Evans 72b6355bac Adding the Supplier Quality template. (#6902) 2026-11-30 11:18:41 +00:00
Peter Evans 6628f52348 Add the Lab Operations template. (#6706) 2026-11-12 18:02:15 +01:00
Peter EvansandJeremie Pardou 31552d5e97 feat: show who effectively has access in the share dialog (#6463)
* 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>
2026-10-27 14:19:07 +00:00
Przemyslaw Kukulski fc3a9bb1d7 feat: descriptions for official templates (#6389)
* feat: descriptions for official templates

* fix: shorten template descriptions to fit two lines
2026-10-19 14:00:15 +02:00
Peter Evans 60eef39e87 Adding Agustin's PPWR template. (#6335) 2026-10-08 18:28:09 +02:00
Frederik Duchi ec10c08158 Payroll management template (#5335) 2026-07-07 14:44:21 +02:00
dimmur-brw b8c8d51a46 fix(backend): MCP create_rows does not fail when table has rich text fields with @mentions (#5494) 2026-06-15 17:50:25 +00:00
Frederik Duchi 0d0eb228c2 Update project management template (#5121) 2026-04-03 08:11:20 +00:00
Davide Silvestri 40c9f48081 feat (assistant) 3/3: add themes to templates and a set_theme tool (#4970)
* feat(assistant): add theme catalog, apply_theme, and theme templates

Add 20 new theme templates and theme infrastructure:
- THEME_CATALOG with 22 themes, ThemeName type, _load_theme_data(), apply_theme()
- BuilderItemCreate.theme field with auto-apply on creation
- set_theme() tool for changing themes on existing applications
- Unit tests and eval tests for theme functionality

* refactor(assistant): migrate theme evals to EvalChecklist pattern

Replace removed assert_no_tool_errors with EvalChecklist + count_tool_errors
in test_agent_creates_app_with_theme and test_agent_changes_theme. Remove
stale test_navigate_to_workspace test.

* refactor(assistant): move theme code from core/types to builder/themes

Theme catalog, apply_theme, and related helpers are a builder concern,
not core. Move them to tools/builder/themes.py so core never imports
from builder. Also make apply_theme return bool so set_theme can report
errors instead of silently claiming success, and fix "Thank youb" typo
across all 23 theme templates.

* refactor (AI field): remove langchain and use pydantic-ai (#5017)

* refactor(ai): replace langchain with pydantic-ai for LLM calls and structured output

Replace langchain dependency with pydantic-ai as the LLM abstraction
layer. Each GenerativeAIModelType now implements get_ai_model() returning
a pydantic-ai Model instance, and the base class provides prompt() and
prompt_structured() using Agent.run_sync().

- Remove langchain, langchain-openai, and direct openai/anthropic/mistralai
  deps (pydantic-ai-slim extras install them)
- Add prompt_structured() with PromptedOutput for Pydantic model output
  (e.g. BaserowFormulaModel)
- Add output_choices parameter to prompt() for constrained choice selection
  with fuzzy matching, compatible with all models including those without
  tool support
- Remove custom output_parsers.py (StrictEnumOutputParser, JsonOutputParser
  replacements)
- Update AI field job flow to use prompt(output_choices=...) for choice
  output and prompt_with_files fallback for file-based prompts

* refactor(ai): replace deprecated Assistants API with pydantic-ai multi-modal content

Replace OpenAI's deprecated Assistants API (file_search, threads, polling)
with pydantic-ai's native BinaryContent support. Files are now read from
storage and passed directly in the prompt as multi-modal content — no
upload/delete lifecycle needed.

- Add content parameter to prompt() for multi-modal file attachments
- Remove GenerativeAIWithFilesModelType abstract class and its upload/
  delete/prompt_with_files methods
- Remove get_client() from BaseOpenAIGenerativeAIModelType (no longer
  needed without file operations)
- Replace AIFileManager.upload_files_from_file_field() with
  get_file_contents() returning BinaryContent objects
- Simplify job_types.py: file+choice paths merge into single prompt()
  call with content and output_choices parameters
- Remove format_prompt/parse_output hooks (no longer needed)
- Remove FileId type alias and AIFileError exception
- Works with any provider that supports documents (OpenAI, Anthropic,
  Mistral, Google) instead of only OpenAI

* refactor(ai): unify prompt API into single method with output_type parameter

Merge prompt_structured() into prompt() via the output_type parameter:
- None (default): plain text response
- list[str]: choice selection with fuzzy matching
- Pydantic BaseModel/TypedDict: structured output via PromptedOutput

Remove prompt_structured(), output_choices parameter, and dead code
(format_prompt, parse_output hooks, AIFileError, FileId type).

* refactor(ai): clean file handling API with model type owning processing logic

Redesign file handling so the model type owns all file processing decisions
(embed vs upload, size limits, count limits) while the manager only reads
metadata from storage and provides a lazy reader callback.

- Add supports_files flag and prepare_files() to GenerativeAIModelType base
- OpenAI implementation: embeds images inline (BinaryContent, 50MB/500 limit),
  uploads documents (UploadedFile via Responses API)
- Use OpenAIResponsesModel instead of OpenAIChatModel for OpenAI provider
  (supports all file types via input_file/input_image)
- AIFileManager.prepare_file_content() collects metadata, passes lazy
  read_file callback — no data read until model type requests it
- Remove is_file_compatible/get_max_file_size from public API (moved into
  prepare_files)
- Add type hints throughout

* fix(assistant): fix generate_formula tests and grid view row_height

- Add output_type param to TestGenerativeAIModelTypePromptError.prompt()
- Return BaserowFormulaModel in test mocks instead of raw JSON string
- Use correct ORM field name row_height_size in grid view from_django_orm

* docs: add AI field test plan

* refactor(ai): improve docstrings, fix prompt signature and empty prompt handling

* refactor(ai): merge ERROR_OUTPUT_PARSER into ERROR_GENERATIVE_AI_PROMPT

The distinction between output parsing errors and prompt errors didn't
provide actionable info to the user. Both now surface as a single
ERROR_GENERATIVE_AI_PROMPT error code.

* refactor(ai): move value generation into AIFieldHandler with AIFile abstraction

Introduce AIFile dataclass that wraps serialized UserFile dicts with
lazy read_content(). Move the core generation logic from
AIValueGenerator._generate_value_for into AIFieldHandler.generate_value_with_ai
so the handler owns the full flow: prompt resolution, file preparation,
AI call, file cleanup, and choice resolution.

- prepare_files() now takes list[AIFile] and returns only processed files
- cleanup_files() mirrors prepare_files() for provider file cleanup
- delete_file() takes AIFile instead of raw file_id string
- AIFieldEmptyPromptError raised when prompt resolves to empty
- Delete AIFileManager (absorbed into handler + model type)

* docs: add AI field architecture overview

* fix(ai): handle missing files and partial upload cleanup in prepare_files

- OpenAI prepare_files() now catches per-file errors (missing files,
  upload failures) and skips them instead of failing the whole generation
- Handler cleanup uses ai_files instead of prepared so files uploaded
  before a mid-prepare failure are still cleaned up

* fix(ai): normalize LLM responses before choice matching

Strip quotes, markdown bold, backticks, and trailing punctuation from
model responses before fuzzy matching. Use case-insensitive comparison
so responses like "POSITIVE" correctly match "Positive".

* address feedback

* Address feedback
2026-04-01 10:41:10 +02:00
Frederik Duchi ad15983376 addition of templates with automations (#5046) 2026-03-31 15:57:38 +00:00
Frederik Duchi ce3d3f89af addition of 2 templates that use form views (#4899) 2026-03-03 10:45:15 +01:00
Frederik Duchi 6a1d587a79 added category most popular to the template (#4190) 2025-11-12 10:48:03 +01:00
Frederik Duchi 95b7f9bc1c Templates for 1.35.4 (next deploy) 2025-10-07 18:22:51 +00:00
Frederik Duchi 15b9554fca Addition of 2 templates + icon update of 2 templates 2025-09-29 10:51:43 +00:00
Frederik Duchi c742bb0529 addition of templates for webinars 2025-09-08 09:48:25 +02:00
Frederik Duchi 006de450ee addition of templates for 1.35 release 2025-08-26 11:30:30 +02:00
Frederik Duchi 46bd06cf49 Templates for 1.34 2025-06-02 12:42:05 +00:00
Davide Silvestri 5aaae67d3a Fix read_only properties in templates 2025-04-29 13:32:40 +00:00
Bram Wiepjes c44b3295ac "From template" onboarding step 2025-04-01 20:23:41 +00:00
Bram Wiepjes 5ec7c31101 Added Baserow, Eclipse, and Ivory theme templates 2025-03-18 21:36:31 +00:00
Frederik Duchi badb8cf884 addition of templates for 1.32 2025-03-07 08:18:57 +01:00
Frederik Duchi 1040c8e664 Templates for 1.31 2025-02-04 23:36:45 +00:00
Frederik Duchi 7e46ebd3f4 addition of templates for 1.30 release 2024-12-12 09:59:46 +01:00
Frederik Duchi c2c662ed95 templates for 1.29 release 2024-11-12 16:54:12 +01:00
Bram Wiepjes f36428a85f Removed citytrip and compressed city-tours.zip 2024-10-02 11:53:31 +00:00
Frederik Duchi b3b650b76e Templates for 1.28 release 2024-10-02 11:14:40 +00:00
Frederik Duchi d6a0674eb7 Addition of templates for 1.27 2024-08-30 10:46:14 +00:00
Frederik Duchi cd7992d391 fix of a lookup field on the Contacts table of the lightweight crm template 2024-08-28 13:38:17 +00:00
Frederik Duchi eca44ea79a updated templates with application to the new styling opportunities 2024-07-09 15:39:31 +02:00
Frederik Duchi 9022ee565a Updated and new templates for 1.26 2024-07-09 12:10:04 +00:00
Bram Wiepjes 8e1a4f6af5 Show full relationship and lookup names 2024-06-19 18:19:23 +00:00
Bram Wiepjes cd36161746 Merge branch 'templates-for-125-update' into 'develop'
update of templates for 1.25

See merge request baserow/baserow!2424
2024-05-28 18:41:57 +00:00
Davide Silvestri 441877f278 Resolve "Improve date filters by allowing multi step combinations" 2024-05-28 16:45:46 +00:00
Frederik Duchi b83b2f6921 update of templates for 1.25 2024-05-28 16:26:08 +02:00
Bram Wiepjes c446e0b888 Addition of templates for release 1.25 2024-05-22 11:26:49 +00:00
Frederik Duchi 7b1330624e Revamp of all templates categories 2024-05-21 10:02:27 +00:00
Jérémie Pardou b17daa1e49 Resolve "Add database + application templates" 2024-05-02 14:25:42 +00:00
Cezary Statkiewicz 725f42cffb typo fix: Local business -> Local Business in net promoter score template 2024-04-19 19:16:51 +02:00
Bram Wiepjes 5ebd73253f Added new templates for 1.23.1 2024-03-13 16:16:36 +01:00
Davide Silvestri af3ae6934c Resolve "Grid view crash with a lookup to a duration field" 2024-02-22 09:31:53 +00:00
Bram Wiepjes 50243c8010 Merge branch 'added-templates-for-1-22' into 'develop'
Added templates for 1.22

See merge request baserow/baserow!1952
2023-12-19 12:07:36 +00:00
Bram Wiepjes 6a7013b472 Added templates for 1.22 2023-12-19 12:07:36 +00:00
Eimantas Stonys 895039d1d3 Basic version of the Duration Field Type 2023-12-18 21:40:02 +00:00
Davide Silvestri aa9a793dbe Resolve "Created by field type" 2023-12-11 10:02:00 +00:00
Bram Wiepjes f6060f8966 Group rows by field in grid view 2023-11-06 15:14:11 +00:00
Davide Silvestri d9a96f5c7c Resolve "Remove the App pitch planner from the Elementary School Management template" 2023-11-03 12:21:00 +00:00
Bram Wiepjes f59ea512c8 Replaced template icons with Iconoir 2023-10-05 11:06:51 +00:00