* Update pro version to 2.4.44-alpha.9 (#10231)
Co-authored-by: Budibase Staging Release Bot <>
* Track installation and unique tenant id on licence activate (#10146)
* changes and exports
* removing the extend
* Lint + tidy
* Update account.ts
---------
Co-authored-by: Rory Powell <rory.codes@gmail.com>
Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
* Type updates for loading new plans (#10245)
* Add new quota for max users on free plan
* Split available vs purchased plan & price type definitions. Update usages of available prices and plans
* Type fixes
* Add types for minimums
* New `PlanModel` type for `PER_USER` and `DAY_PASS` (#10247)
* Add new quota for max users on free plan
* Split available vs purchased plan & price type definitions. Update usages of available prices and plans
* Type fixes
* Add types for minimums
* New `PlanModel` type for `PER_USER` and `DAY_PASS`
* Add loadEnvFiles to lerna config for run command to prevent local test failures
* Fix types in license test structure
* Add quotas integration to user create / delete + migration (#10250)
* Add new quota for max users on free plan
* Split available vs purchased plan & price type definitions. Update usages of available prices and plans
* Type fixes
* Add types for minimums
* New `PlanModel` type for `PER_USER` and `DAY_PASS`
* Add loadEnvFiles to lerna config for run command to prevent local test failures
* Fix types in license test structure
* Add quotas integration to user create / delete
* Always sync user count from view total_rows value for accuracy
* Add migration to sync users
* Add syncUsers.spec.ts
* Lint
* Types and structures for user subscription quantity sync (#10280)
* Add new quota for max users on free plan
* Split available vs purchased plan & price type definitions. Update usages of available prices and plans
* Type fixes
* Add types for minimums
* New `PlanModel` type for `PER_USER` and `DAY_PASS`
* Add loadEnvFiles to lerna config for run command to prevent local test failures
* Fix types in license test structure
* Add quotas integration to user create / delete
* Always sync user count from view total_rows value for accuracy
* Add migration to sync users
* Add syncUsers.spec.ts
* Prevent old installs from activating, track install info via get license request instead of on activation.
* Add usesInvoicing to PurchasedPlan
* Add min/max users to PurchasedPlan
* Additional test structures for generating a license, remove maxUsers from PurchasedPlan - this is already present in the license quotas
* Stripe integration for monthly prorations on annual plans
* Integrate annual prorations with test clocks
* Updated types, test utils and date processing for licensing (#10346)
* Add new quota for max users on free plan
* Split available vs purchased plan & price type definitions. Update usages of available prices and plans
* Type fixes
* Add types for minimums
* New `PlanModel` type for `PER_USER` and `DAY_PASS`
* Add loadEnvFiles to lerna config for run command to prevent local test failures
* Fix types in license test structure
* Add quotas integration to user create / delete
* Always sync user count from view total_rows value for accuracy
* Add migration to sync users
* Add syncUsers.spec.ts
* Prevent old installs from activating, track install info via get license request instead of on activation.
* Add usesInvoicing to PurchasedPlan
* Add min/max users to PurchasedPlan
* Additional test structures for generating a license, remove maxUsers from PurchasedPlan - this is already present in the license quotas
* Stripe integration for monthly prorations on annual plans
* Integrate annual prorations with test clocks
* Updated types, test utils and date processing
* Lint
* Pricing/billing page (#10353)
* bbui updates for billing page
* Require all PlanTypes in PlanMinimums for compile time safety
* fix test package utils
* Incoming user limits warnings (#10379)
* incoming user limits warning
* fix inlinealert button
* add corretc button link and text to user alert
* pr comments
* simplify limit check
* Types and test updates for subscription quantity changes in account-portal (#10372)
* Add chance extensions for `arrayOf`. Update events spies with license events
* Add generics to doInTenant response
* Update account structure with quota usage
* User count limits (#10385)
* incoming user limits warning
* fix inlinealert button
* add corretc button link and text to user alert
* pr comments
* simplify limit check
* user limit messaging on add users modal
* user limit messaging on import users modal
* update licensing store to be more generic
* some styling updates
* remove console log
* Store tweaks
* Add startDate to Quota type
---------
Co-authored-by: Rory Powell <rory.codes@gmail.com>
* Lint
* Support custom lock options
* Reactivity fixes for add user modals
* Update ethereal email creds
* Add warn for getting invite from code error
* Extract disabling user import condition
* Handling unlimited users in modals logic and adding start date processing to store
* Lint
* Integration testing fixes (#10389)
* lint
---------
Co-authored-by: Mateus Badan de Pieri <mateuspieri@gmail.com>
Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
Co-authored-by: Peter Clement <PClmnt@users.noreply.github.com>
* Tidy logic for creating initial component instances
* Add initial implementation of enriching empty settings
* Fix regression that prevented custom placeholders from working (#9994)
* Tidy up
* Add automatic naming of form fields when added
* Update missing required setting placeholder
* Improve error states and add ability to automatically wrap a component in a required parent type
* Fix crash in column editor and rename component placeholder to error state
* Select the parent component after adding it when wrapping a component with a missing ancestor
* Fix blocks and make fields require forms
* Improve empty component placeholder
* Lint
* command palette E2E
* tidy up
* Improve theming with spectrum badges and dedupe spectrum label usage
* Update data section nav to match designs and use panel component
* Fix main content layout in data section
* Update data section routing for tables
* Improve data section routing for tables to account for edge cases
* Update internal and sample datasource routing
* Update external datasource routing
* Update routing for queries and make a top level concept like everything else
* Update routing for views
* Fix undefined reference when deleting datasource
* Reduce network calls and fix issues with stale datasourcenavigator state
* Update routing for REST queries and unify routes for normal queries and REST queries
* Lint
* Fix links for queries from datasource details page
* Remove redundant API calls and improve table deletion logic
* Improve data entity deletion logic and redirection and fix query details keying
* Improve determination of selected item in datasource tree
* Update command palette to support new data routes
* Update command palette, fix keybind issues and updating loading state
* Lint
* Fix publish command and fix preview published app URL
* Fix BBUI import
* Lint
* Fix datasource navigator selected state not working for internal DB or sample data
* Update command palette to use ctr+k/cmd+k
* Update command palette to match new designs and add visible categories
* Restore missing styles£
* Use proper theme constants for changing theme in command palette
* Add command palette action for inviting users
---------
Co-authored-by: Martin McKeaveney <martinmckeaveney@gmail.com>
* Added tabs to the component settings section in the builder
* Review updates
* Update setting tab buttons to be size M and use a lighter font color when selected
---------
Co-authored-by: Andrew Kingston <andrew@kingston.dev>
* Add full undo/redo support for screens
* Add loading states to disable spamming undo/redo
* Add keyboard shortcuts for undo and redo
* Fix modals not closing in design section when escape is pressed
* Remove log
* Add smart metadata saving to undo/redo
* Add error handling to undo/redo
* Add active state to hoverable icons
* Fix screen deletion
* Always attempt to get latest doc version before deleting in case rev has changed
* Move undo listener top level, hide controls when on certain tabs, and improve selection state
* Add tooltips to undo/redo control
* Update automation section nav to match other sections
* Fix automation list padding
* Fix some styles in create automation modal
* Improve automation section styles and add undo/redo
* Update styles in add action modal
* Fix button size when creating admin user
* Fix styles in add automation step modal
* Fix issue selecting disabled automation steps
* Reset automation history store when changing app
* Reduce spammy unnecessary API calls when editing cron trigger
* WIP automation refactor
* Rewrite most automation state
* Rewrite most of the rest of automation state
* Finish refactor of automation state
* Fix selection state when selecting new doc after history recreates it
* Prune nullish or empty block inputs from automations and avoid sending API requests when no changes have been made
* Fix animation issues with automations
* Sort automations and refetch list when adding or deleting
* Fix formatting
* Add back in ability to swap between values and bindings for block inputs
* Lint
* Format
* Fix potential issue in design section when selected screen is unset
* Fix automation arrow directions everywhere, tidy up logic and fix crash when using invalid looping
* Lint
* Fix more cases of automation errors
* Fix implicity any TS error
* Respect _id specified when creating automations
* Fix crash in history store when reverting a change on a doc whose ID has changed
* Lint
* Ensure cloneDeep helper doesn't crash when a nullish value is passed in
* Remove deprecated frontend automation test
---------
Co-authored-by: Rory Powell <rory.codes@gmail.com>
* Rewrite position dropdown helper to properly work as a svelte action, improve performance and fix bugs
* Update action button styles
* Update spacing on some onboarding pages and update background gradient
* Prevent special characters in first app name
* Fix type in onboarding tour
* Default first app name and url to having a value
* Update text in first app onboarding file upload
* Fix double mounting of apps page causing issues and templates error
* Fix null app ID when creating your first app using data upload
* Fix app deletion not causing app list to be refreshed
* New App Onboarding
* Lint
* Move app creation onboarding into its own route
* Fix quiet action button variant
* Fix alt attribute background image flashing
* Update routing logic and redirects to show app creation onboarding
* Navigate to data rather than design upon initial app creation to allow tour to function properly
* Tidy up popover logic and remove tip functionality
* Fix binding popovers
* Lint
* Silence spammy warnings from the builder
* Exclude SVG files from rollup plugin image to fix spectrum icons
* Fix help menu icon colours not working in light themes
* Tweak help menu styles
---------
Co-authored-by: Andrew Kingston <andrew@kingston.dev>