Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/metabase/metabase. Pull mirroring updated .
  1. Nov 06, 2024
  2. Oct 31, 2024
  3. Oct 30, 2024
  4. Oct 28, 2024
  5. Oct 21, 2024
  6. Oct 18, 2024
  7. Oct 17, 2024
  8. Oct 11, 2024
  9. Oct 02, 2024
  10. Sep 25, 2024
  11. Sep 02, 2024
    • Oisin Coveney's avatar
    • Phoomparin Mano's avatar
      feat(sdk): improve license, mock server and post-install for embedding cli (#47229) · d29aa557
      Phoomparin Mano authored
      
      * ask for tenancy isolation columns
      
      * deny all permissions for all users group
      
      * create new collections
      
      * add jwt group mappings
      
      * add the permissions step
      
      * add multi-tenancy message in helper text format
      
      * add permission graph
      
      * wire together permissions
      
      * use schema permissions
      
      * use fields from table metadata from query_metadata
      
      * add tenancy field reference
      
      * remove log messages
      
      * deny access to unsandboxed tables
      
      * make permission graph more explicit
      
      * deny access to sample database for customer groups
      
      * add unit test for permission graph
      
      * split permission groups and sandboxes
      
      * jwt settings and hard-coded user attributes
      
      * handle errors when updating sso mappings
      
      * add express api and user switcher
      
      * only fallback to api keys when license is invalid
      
      * add util to sample tenancy column values
      
      * conditional BASE_SSO_API imports
      
      * improve embedding error message
      
      * setup jwt configuration after license step
      
      * setup permissions at the last step
      
      * add missing import
      
      * update steps that requires license
      
      * fix incorrect imports
      
      * add missing useContext
      
      * handle permission update error
      
      * remove tenancyIsolationEnabled field
      
      * add tenancy column sampling
      
      * differentiate tenancy column query error
      
      * rename tenancyColumnValues to tenantIds
      
      * assign sampled tenant ids to user attributes
      
      * add tenant ids
      
      * define collection permissions
      
      * reference sandboxing group by name
      
      * update snippet to be same as the README
      
      * extract ask for tenancy columns to a separate step
      
      * use the customer_id attribute
      
      * query the table query metadata at origin
      
      * append tables correctly
      
      * improve error handling in table scanning
      
      * add retry logic to metadata fetching
      
      * only query metadata for selected fields
      
      * fix race condition with retry
      
      * update loading state and retries
      
      * update comments on jwt license
      
      Co-authored-by: default avatarMahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev>
      
      * filter the target table by id
      
      * highlight last selected tenant column
      
      * use breakout to get list of ids
      
      * temporary workaround to reload the whole page
      
      * update row value types
      
      * update row value types
      
      * ask if they want to setup a pro license
      
      * post-installation improvements for cli
      
      * block non-selected tables
      
      * remove the source-field from sandboxing
      
      * use the fk_target_field_id as instead of target.id
      
      * update unit test
      
      * add learn more message
      
      * install mock server dependencies
      
      * fix post-setup step formatting
      
      * fix text wrapping
      
      * skip tenancy columns and permissions if token is not provided
      
      * only show the server dir step when license is enabled
      
      * skip permission setup if there is no tenancy column
      
      * remove source-field as we only reference our own column
      
      * add runIf flag to skip steps
      
      * remove the gitignore mention as this is automatic
      
      * configure permission if there are some tenancy columns
      
      * make native permission types more strict
      
      * add notice about setting up local mb instance
      
      * support multiple tenancy columns
      
      * map the tenancy column name as the user attribute
      
      * add component import guide
      
      * fix deprecated punycode in node-fetch
      
      * warn on unsampled tables
      
      * show helper text on tenancy columns
      
      * allow sampling repeated tenant
      
      * add instruction to change directory into mock server
      
      * align the learn more message
      
      ---------
      
      Co-authored-by: default avatarMahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev>
      Co-authored-by: default avatarOisin Coveney <oisin@metabase.com>
      d29aa557
  12. Aug 21, 2024
  13. Aug 16, 2024
  14. Aug 13, 2024
    • Phoomparin Mano's avatar
      feat(sdk): generate sample react component with the embedding cli (#46538) · 4c3df61d
      Phoomparin Mano authored
      
      * add setup commands
      
      * fix settings definition
      
      * update environment variables for cli
      
      * handle instances not being ready
      
      * update error messages
      
      * add more specific loading messages
      
      * loading spinner state
      
      * improve error message
      
      * use a fixed demo setup token
      
      * remove extraneous spinner
      
      * update status checks
      
      * update container messages
      
      * update wait timing
      
      * create api keys
      
      * extract constants
      
      * remove manual steps
      
      * Add anonymous tracking + other things. will need to clean up
      
      * Modify SDK for better structure
      
      * remove line from print.ts
      
      * Update webpack.embedding-sdk-cli.config.js back to production
      
      * Add types and add quick note
      
      * Fix a typo
      
      * Add index file, simplify types, use an array
      
      * Add safer json parsing
      
      * use delay of 100ms between each setup call
      
      * Suggestions from review
      
      * ensure that cli works
      
      * Attempt to fix jest errors
      
      * Remove node-fetch from sdk code to hopefully get unit tests working again
      
      * add database connection
      
      * add connection details handling
      
      * refactor asking for database connection info
      
      * apply actual database id for syncing schema
      
      * fix failing database sync step
      
      * allow table selection
      
      * create model for each table
      
      * handle errors in model creation
      
      * fix incorrect model display name
      
      * create x-rays based on user data
      
      * consolidate instance setup message
      
      * workaround for inquirer eventemitter issue
      
      * add sample components
      
      * fix yarn.lock file
      
      * add sample components
      
      * set spinner to fail state when instance setup fails
      
      * use a transparent background by default
      
      * update cli welcome messages
      
      * add import notice
      
      * refactor imports
      
      * update snippet to add dashboard dropdown
      
      * cli add credential file to users .gitignore
      
      * add docs on quickstart
      
      * clear screen with console.clear
      
      * address code review feedback
      
      Co-authored-by: default avatarNicolò Pretto <info@npretto.com>
      
      * allow node 18 lts
      
      ---------
      
      Co-authored-by: default avatarOisin Coveney <oisin@metabase.com>
      Co-authored-by: default avatarNicolò Pretto <info@npretto.com>
  15. Aug 12, 2024
  16. Aug 06, 2024
  17. Jul 29, 2024
  18. Jul 24, 2024
  19. Jul 19, 2024
  20. Jul 18, 2024
  21. Jul 16, 2024
  22. Jul 15, 2024
  23. Jul 12, 2024
  24. Jul 11, 2024
    • Denis Berezin's avatar
      feat(sdk): Add event handlers docs, refactor handlers naming (#45374) · 7e6adfaa
      Denis Berezin authored
      * Add event handlers docs for SDK
      
      * Invert events logic and update documentation
      
      * Apply prettier
      7e6adfaa
    • Phoomparin Mano's avatar
      feat(sdk): support multiple interactive questions by decoupling from query builder reducer (#45133) · 49926e68
      Phoomparin Mano authored
      * create sdk load question
      
      * store question result in sdk context
      
      * remove dataset data type
      
      * update question
      
      * handle navigate to new card
      
      * add loading states
      
      * fix on query change
      
      * update question change logic
      
      * refactor question loading and query params
      
      * fix ad-hoc question in dashboards
      
      * extract useLoadQuestion into a separate hook
      
      * cleanup run question on load
      
      * revert changes in interactive question component
      
      * store original question in the question result state
      
      * turn the question into ad-hoc questions
      
      * refactor run question methods
      
      * add a separate isQueryRunning state for better ux
      
      * isQueryRunning should default to false
      
      * simulate re-running the query in unit tests
      
      * add tests for rendering multiple valid questions
      
      * refactor sync question method
      
      * extract raw series and computed pivot logic
      
      * add getCardAfterVisualizationClick
      
      * separate single and multiple question tests
      
      * fix import paths
      
      * is question native
      
      * pass queryResult instead of queryResults
      
      * temporarily remove checkNotNull for aggregation picker to avoid sdk crash
      49926e68
  25. Jul 10, 2024
  26. Jul 09, 2024
  27. Jul 08, 2024
  28. Jul 01, 2024
  29. Jun 26, 2024
  30. Jun 21, 2024
  31. Jun 20, 2024
    • Mahatthana (Kelvin) Nomsawadi's avatar
    • Phoomparin Mano's avatar
      fix(sdk): font size, color and padding in viz (#44283) · dab2d852
      Phoomparin Mano authored
      * funnel start color should be text-dark
      
      * change pivot table font size unit to em for scaling
      
      * change funnel and legend item unit to em
      
      * change funnel font size to em
      
      * change object detail font size to em
      
      * change gauge font size to em
      
      * add cartesian chart padding config
      
      * update docs
      
      * remove isEmbeddingSdk prop
      
      * simulate the 0.875em base font size
      
      * chart padding override should apply in query builder
      
      * add cartesian padding to stories
      
      * update readme docs
      
      * fix collection browser option in readme docs
      
      * fix pivot table font size scaling
      
      * update loki
      
      * update loki
      
      * use em for smart scalar
      
      * update chart default padding
      
      * revert smart scalar font size scaling due to measurement
      
      * dynamic font family and font size as defaults
      
      * pivot table
      
      * add more properties to sdk docs
      
      * make FONT_SIZES constant local
      
      * link to discussion on query builder extra spacing
      
      * enforce that font is passed to getLeftHeaderWidths
      dab2d852
    • Alberto Perdomo's avatar
      Update SDK README.md (#44427) · 0081f202
      Alberto Perdomo authored
      Remove warnings about not using MB versions in production. This is a left over from the time we were pointing to builds off master and RCs.
      0081f202
  32. Jun 19, 2024
    • Denis Berezin's avatar
      feat(sdk): Add interactive dashboards to embedding SDK (#44161) · fa320932
      Denis Berezin authored
      * Temp
      
      * Add support for saved questions
      
      * Try to fix question not found issue
      
      * Try to fix question not found issue
      
      * Fix unit tests
      
      * Add basic unit test
      
      * Fix unit tests
      
      * Fix unit tests, fix question not found issue
      
      * Review fixes
      
      * Review fixes
      
      * Refactor components structure, review fixes
      
      * Adjust readme
      fa320932
Loading