mirror of
https://github.com/baserow/baserow.git
synced 2026-12-06 01:08:32 +00:00
* 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>
2.2 KiB
2.2 KiB
Feature flags
Baserow uses basic feature flags currently to allow unfinished features to be merged and/or released.
Available Feature Flags
Add/remove features flags to the list below:
identities— workspace identity creation; enable only after all old backends and workers have drained, as described in ADR 013.dashboard-filters— creation of dashboard filter widgets (existing widgets remain available).user_templates— template marketplace: the new template browser and user templates.agent-builder— Agent application creation.
Enabling feature flags
To enable specific feature flags set the environment variable
FEATURE_FLAGS=feature1,feature2,feature3. Using just this would look like:
FEATURE_FLAGS=feature1,feature2,feature3 just dc-dev up -d
You could also add the variable to your .env.docker-dev file (for Docker development)
or .env.local file (for local development).
Enabling all feature flags
Use the * feature flag to enable every single feature flag without having to specify
each one.
FEATURE_FLAGS=* just dc-dev up -d
Naming convention
Feature flags should be:
- Alphanumeric with dashes.
- Not start or end with spaces (flags from the env variable will be trimmed for ease of use).
- Unique per feature.
Creating a feature flag
In the Backend
# Add variable with feature flag to baserow.core.feature_flag in format
# FF_<FEATURE_NAME> = "feature_name"
# i.e.
FF_FEATURE1 = "feature1"
# In your feature file import flag you need and feature flag function
from baserow.core.feature_flag import FF_FEATURE1, feature_flag_is_enabled
# Use to check if feature is enabled
if feature_flag_is_enabled(FF_FEATURE1):
# do the feature
# or if you want to raise exception if the feature is not enabled
feature_flag_is_enabled(FF_FEATURE1, raise_if_disabled=True)
In the Web-frontend
// add feature flag variable in @core/plugins/featureFlags.js in format
// FF_<FEATURE_NAME> = "feature_name"
// i.e.
export const FF_FEATURE1 = "feature1";
methods: {
someComponentMethod();
{
if (this.$featureFlagIsEnabled(FF_FEATURE1)) {
// do the feature
}
}
}