Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/metabase/metabase. Pull mirroring updated .
  1. Dec 10, 2024
  2. Dec 03, 2024
  3. Nov 27, 2024
    • github-automation-metabase's avatar
      feat(sdk): make tooltips themeable (#50457) (#50596) · 9af0d46d
      github-automation-metabase authored
      
      * add background-inverse color mapping
      
      * add tooltip themes
      
      * tooltip theming
      
      * apply to echarts tooltip
      
      * update tooltip default color
      
      * update tooltip defaults
      
      * add sdk color mapping
      
      * add additional theme colors
      
      * add echarts tooltip story
      
      * add loki tests
      
      * remove background-inverse theme color option
      
      * add to docs
      
      * use ChartTooltipRoot for story and update loki snapshot
      
      * update secondaryTextColor docstring
      
      * fix unit tests
      
      Co-authored-by: default avatarPhoomparin Mano <poom@metabase.com>
      Unverified
      9af0d46d
  4. Nov 23, 2024
  5. Nov 21, 2024
  6. Nov 13, 2024
  7. Nov 12, 2024
  8. Nov 07, 2024
  9. Nov 04, 2024
    • Phoomparin Mano's avatar
      feat(sdk): ability to enforce the destination collection to save to and hide... · de559f49
      Phoomparin Mano authored
      feat(sdk): ability to enforce the destination collection to save to and hide the collection picker (#49251)
      
      * add ability to hide the collection picker
      
      * add save options
      
      * make sure collectionId is fresh
      
      * update sdk question form component
      
      * make collectionId accept null
      
      * apply saveOptions to sdk components
      
      * revert to use initialCollectionId as context name
      
      * target the correct collection id
      
      * add e2e tests
      
      * update e2e tests
      
      * move into within
      
      * update test
      
      * remove collectionId from default args
      
      * revert e2e of hide columns
      
      * make e2e helper more generic
      
      * use saveToCollectionId prop to save to a specific collection
      
      * update e2e tests
      
      * update comment formatting
      
      Co-authored-by: default avatarMahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev>
      
      * clean up leftover changes from an earlier version
      
      * readme update
      
      * indicate that saveToCollectionId is only applicable to static questions
      
      * revert QuestionEditor.isSaveEnabled defaults
      
      * update comment format
      
      * remove unused initialCollectionId prop
      
      * experiment: try to fix failing custom-columns e2e
      
      ---------
      
      Co-authored-by: default avatarMahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev>
      Unverified
      de559f49
  10. Oct 29, 2024
  11. Oct 24, 2024
  12. Oct 18, 2024
  13. Oct 14, 2024
  14. Sep 25, 2024
  15. Sep 03, 2024
  16. Sep 02, 2024
  17. Aug 21, 2024
  18. Aug 20, 2024
  19. Aug 16, 2024
  20. Aug 14, 2024
    • Phoomparin Mano's avatar
      fix(sdk): optimistic update query builder and update questions in notebook (#46652) · 3df927c9
      Phoomparin Mano authored
      
      * update question state
      
      * update question state
      
      * reload metadata for runQuestionOnNavigate
      
      * fix runnable queries
      
      * fix cannot run question
      
      * extract question predicate functions to question.ts
      
      * update types
      
      * create utils subfolder for query builder
      
      * fix query builder predicate imports
      
      * naming tweaks to be more self-explanatory
      
      * document the non-intuitive loadQuestion useEffect
      
      * change imports to support metric
      
      * remove unused import
      
      * revert originalQuestion check to try to fix e2e failures
      
      ---------
      
      Co-authored-by: default avatarOisin Coveney <oisin@metabase.com>
      Unverified
      3df927c9
    • Romeo Van Snick's avatar
      Automatically select offset breakout or move it to the front (#46573) · 9fa749d6
      Romeo Van Snick authored
      * Add defaultTemporalBucket helper
      
      * Add helper to pick default breakout
      
      * Move breakout to the front or add one if it does not exist
      
      * Add updateQuery to AggregationPicker props
      
      * Add tests for creation and reordering of temporal breakouts
      
      * Reuse defaultTemporalBucket in withDefaultTemporalBucket
      
      * Reorder query operations to make sure the correct names get generated
      
      * Remove dependency on referential equality of breakout
      
      * Rename updateQuery to onQueryChange
      
      * Remove onAddAggregations and onUpdateAggregation for onQueryChange
      
      * Extract query update in to separate function
      
      * Remove on{Add,Update,Remove}Aggregation in favor of onQueryChange
      
      * Remove aggregations from summarize details
      
      * Fix e2e tests
      
      * Remove conflicting test
      
      * Fix recent clause in unit tests
      
      * Fix superflouous check for columnAndBucket
      
      * Future proof breakout check
      
      * Remove reliance on details in the useSummarize hook
      
      * Remove details in unit tests
      
      * Removal of default summarization should not trigger a query change
      Unverified
      9fa749d6
  21. Aug 12, 2024
  22. Aug 02, 2024
  23. Jul 29, 2024
  24. Jul 25, 2024
  25. Jul 24, 2024
    • Phoomparin Mano's avatar
      fix(sdk): support React 17 backwards compatibility (#46012) · 3ceac07d
      Phoomparin Mano authored
      * polyfill useSyncExternalStore for React 17
      
      * adds the shim
      
      * use ReactDOM.render instead of createRoot for backwards compat
      
      * use createRoot for React 18 environment
      
      * refactor renderRoot compatibility
      
      * remove semver dependency
      
      * add small test for version
      
      * use the same check for react 17
      Unverified
      3ceac07d
  26. Jul 15, 2024
  27. Jul 11, 2024
    • 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
      Unverified
      49926e68
  28. Jul 09, 2024
  29. Jul 03, 2024
  30. Jul 01, 2024
  31. Jun 28, 2024
  32. Jun 27, 2024
Loading