This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Aug 14, 2024
-
-
Mahatthana (Kelvin) Nomsawadi authored
* Remove unpassed props * Add tests * Theme mantine date picker
-
- Aug 13, 2024
-
-
Mahatthana (Kelvin) Nomsawadi authored
* Fix tooltip styles leaking to popover * Fix snapshot now showing the tooltips and dropdowns * Update the loki snapshot using built storybook for consistency
-
- Aug 12, 2024
-
-
Denis Berezin authored
-
- Aug 08, 2024
-
-
Emmad Usmani authored
* automatically use compact formatting for pie chart total * add story and snapshots
-
Mahatthana (Kelvin) Nomsawadi authored
Follow-up milestone 2 for [Epic] Re-design transparent theme for static embedding and public links (#46491) * Update new Metabase base colors * Make hover and selected state consistency * Fix wrong embed frame border color * Refactor: extract props * Fix border color * Fix pivot table cell hover color * Fix smart scalar text contrast * Add smart scalar tests + update text color design * Theme dashboard card menu * Remove dashcard action menu tests since they don't work in loki * Fix storybook background color for dark theme * Update loki snapshots * Disable untestable tests * Make sure all storybook inherit all necessary base styles * Skip untestable tests * Update loki snapshots
-
Mahatthana (Kelvin) Nomsawadi authored
* Sync storybook colors with the main app * Fix Metabase badge color * Fix wrong mixed brand colors * Add mistakenly removed colors * Update comments * Correct `brand-light` color * Fix wrong Mantine button color when passing `color` prop * Update loki snapshots
-
- Aug 07, 2024
-
-
Aleksandr Lesnenko authored
* bump loki tolerance * fix loki-update command * Update Loki Snapshots --------- Co-authored-by:
Metabase Automation <github-automation@metabase.com>
-
Emmad Usmani authored
* truncate total text in pie chart * add story * Update Loki Snapshots * add e2e test --------- Co-authored-by:
Metabase Automation <github-automation@metabase.com>
-
- Aug 05, 2024
-
-
Mahatthana (Kelvin) Nomsawadi authored
* Update popover dark theme on part of ParameterFieldWidget (#45813) * Add filter visual tests * Simplify embed CSS colors * [WIP] theme filter popover * Move theme to global node, so it affects portal too * Fix embed colors * Theme part of ParameterFieldWidget * Add story for parameter with dropdown * Update loki snapshots * Update more popover style * Update loki snapshots * Remove outdated snapshots * Update loki snapshots with production build * Fix loki not working with `userEvent` * Theme mantine popover * Improve dark theme text-brand visibility * Update loki snapshots from master change * Fix new colors not working in SDK * Fix flaky Loki tests * Filter popover dark theme part 2 (#46284) * Theme Date all options * wip add month and year filter * Fix wrong CSS custom property declaration * Test hover state * Update Loki snapshots * Theme date month and year * Add quarter and year tests * Theme date single and date range * Style relative date * Update frontend/src/metabase/admin/datamodel/components/filters/pickers/DatePicker/DatePickerHeader.styled.tsx Co-authored-by:
Denis Berezin <denis.berezin@metabase.com> --------- Co-authored-by:
Denis Berezin <denis.berezin@metabase.com> * Complete theming filter popover night mode (#46365) * Style unit of time and number widget * Attempt to fix flaky Loki snapshots * Address white background checkbox on dark theme * Style search filter single value * Fix mis color * Update snapshots * Remove duplication on play functions since they're long * Milestone 2 polishing (#46382) * Matches the footer padding with header padding * Update snapshots * Add E2E to prevent further problem * Try to reduce flaky Loki tests * Remove unused color shades (#46421) * Update no results illustration to work better on dark theme * Update loki snapshots --------- Co-authored-by:
Denis Berezin <denis.berezin@metabase.com>
-
Kamil Mielnik authored
* Refactor dashboard helpers to TypeScript * Reuse existing helper * Refactor cy.createQuestionAndDashboard to a function helper - there was no good place to put it, so I also created new helpers/api directory - and I moved all helpers using cy.request (with 1 exception, where a CSV download helper also does a bunch of assertions) in there * Merge TS command definitions into a single file * Export types * Make dashboardDetails optional * Export StructuredQuestionDetails * Remove duplicated function * Extract createNativeQuestion to separate file - 1 exported helper per file, no exceptions! * Reuse const * Add test for unit of time parameters * Improve assertions * Extract createDashboardWithParameters * Add tests for time parameters * Fix hardcoded parameter_mappings ids * Format code * Extract checkButtonVisible * Improve test names * Add tests for location parameters * Reuse const * Update test name * Add WidgetStatusButton * Add unit tests for WidgetStatusButton * Rename handler * Remove redundant assertions * Add iconSize prop * Fix styling * Replace WidgetStatusIcon with WidgetStatusButton - Remove WidgetStatusIcon * Fix tooltip issue * Fix tooltip for good * Use default compact button size * Prevent overflow * Fix alignment issues in parameter sidebar - Remove iconSize prop - Simplify StatusConfig * Update padding in Unit of Time input to make it consistent with other inputs in dashboard parameter sidebar * Update unit tests * Rename WidgetStatusButton to WidgetStatus * Explicitly specify what is a button * Update helpers in tests * Update when buttons are displayed according to the new spec, update tests * Simplify label * Remove utils * Adjust padding * Update reset icon * Make the button gray when color is undesired * Remove old definitions * Add missing export * Remove unused type * Add test for location (single value) * Add test for id (single value) * Add more assertions * Add test for id (multiple values) * Improve name * Add tests for number (single and multi value) * Add tests for text (single and multi value) * Rename file * Update comment * Update test name * Use unique ids * Use new color name * Add a test for chevron icons alignment * Lift className up * Make types more specific * Sort attributes * Revert "Make types more specific" This reverts commit 2e6994b5. * Revert "Use new color name" This reverts commit 2cc68df6. * Remove TODO * Introduce editFilter util, refactor chevron assertions to work with any number of chevrons * Connect label to the default value input in ParameterSettings * Add a whitespace in the default value label when required "(required)" is shown * Add parameter sidebar tests for unit of time * Add parameter sidebar tests for date filters * Extract checkParameterSidebarDefaultValue * Add parameter sidebar tests for location - single values * Add parameter sidebar tests for location - multiple values * Use constants for test case names * Add parameter sidebar tests for id parameters - single values * Add parameter sidebar tests for id parameters - multi values * Add parameter sidebar tests for number parameters - single values * Add parameter sidebar tests for number parameters - multi values * Add parameter sidebar tests for text parameters - single values * Add parameter sidebar tests for text parameters - multi values * Extract checkDashboardFilters * Use checkDashboardFilters in time parameters * Use checkParameterSidebarDefaultValue in checkDashboardFilters * Use checkDashboardFilters everywhere * Sort helpers * Rename checkDashboardFilters to checkDashboardParameters * Rename checkOnlyOneButtonVisible to checkStatusIcon * Add test suite for sql filters, coverage for text filter - single value * Add a whitespace in the default value label when required "(required)" is shown - SQL filters - Similar to 930dd3a5 * Add test suite for sql filters, coverage for number filters * Add test for sql filters - date * Remove unused things, rename placeholder to labelOrPlaceholder * Apply label only to 1 input * Add test for sql filters - field parameters * Fix date tests * Make all sql filters tests work * Add assertions for required without default in text filters * Add assertions for required without default in date filters * Add assertions for required without default in field filters * Allow clearing required SQL filters without default value * Add a test to ensure comma-separated numeric values work * Update unit test * Update helper * Update e2e tests * Use != null and == null checks with defaultValue instead of just checking if its truthy/falsy * Run `yarn test-visual:loki` and then `yarn loki approve` - see https://metaboat.slack.com/archives/C505ZNNH4/p1721289287037069 * Use parameterHasNoDisplayValue to account for empty strings * Run `yarn test-visual:loki` and then `yarn loki approve` after merging master - see https://metaboat.slack.com/archives/C505ZNNH4/p1721289287037069 * Run `yarn test-visual:loki` and then `yarn loki approve` - see https://metaboat.slack.com/archives/C505ZNNH4/p1721289287037069 * Run `yarn test-visual:loki` and then `yarn loki approve` - see https://metaboat.slack.com/archives/C505ZNNH4/p1721289287037069
-
Emmad Usmani authored
* add both option for pie chart percentages * create story snapshot
-
- Aug 02, 2024
-
-
Emmad Usmani authored
* add pie.decimal_places setting * add unit spec * add stories * Update Loki Snapshots * add placeholder text --------- Co-authored-by:
Metabase Automation <github-automation@metabase.com>
-
Aleksandr Lesnenko authored
* fix pivot table missing horizontal scroll * spec * Update Loki Snapshots --------- Co-authored-by:
Metabase Automation <github-automation@metabase.com>
-
Nicolò Pretto authored
* update embed frame pdf button colors to use --mb-color- vars * change download pdf button color to brand color * testing adding the images that actually differ
-
- Jul 31, 2024
-
-
Emmad Usmani authored
* echarts pie * setup rendering pipeline for static pie chart (#43547) * setup rendering pipeline for static pie chart * remove more donut code from BE * compute viz settings for static pie chart (#43548) * compute viz settings for static pie chart * create chartModel for pie chart (#43549) * create chartModel for pie chart * render static pie chart (#43550) * render static pie chart * render static pie chart legend (#43551) * disable animation * alter static-viz pie chart be tests to account for echarts-impl The old implementation had a different implementation for legends, separate from the 'categorical/donut' js render. Echarts nicely combines the legend into the pie render, so we don't need to worry about that stuff anymore. Instead, I've written a simple set of assertions on the echarts pie implementation now. * Get rid of this test that was attempting to use old code path * echarts pie * One last spot where we don't need old pie stuff anymore. * add loki specs * save snapshots * fix small slices disappearing * update snapshots * add repro story for exteremely small slice * add snapshot * fix rounded total * fix percent formatting in legend * fix date dimension formatting * fix binned and relative date dimension labels on legend * add specs and snapshots for null and unaggregated dimensions * hide overlaping labels on chart * fix null dimension color * show error when metric column has a negative value * move legend to botom * make dot margin smaller * add columns to legend * sort legend vertically * dont use grid if only one row for legend * never hide legend in static viz * fix empty column culling * show single legend item * add long dimension name story * fix long dimension name in legend * right justify percentages in legend * remove negative error and re-add stories * handle negative values * create chart definition for dynamic pie chart * render chart with responsiveness * add comment for borderWidth calculation * center legend * fix legend centering * add story for missing currency formatting * fix missing currency formatting * fix graalvm crashing * fix column settings computation * add another currency formatting repro * fix wrong order of col settings computations * convert colors to hex * fix colors missing from viz settings * temp todo comment * fix colors in dynamic viz * update snapshots * fix crashing due to invalid dimension/metric setting * fix chart crashing for boolean dimension with labels on chart * add repro * fix regression in label formatting * fix labels on small slices * update specs * emphasis state for slice hover * recreate old label hiding logic * include height measurement in getIsLabelVisible * move d3 slices to chart model * fix labels on static viz * wip basic hover state and tooltip * fix emphasis style getting stuck by memoizing everything * update total display value * fix stuck emphasis by setting notMerge to false for pie only * handle other slice in tooltip * fix bugs in total graphic * use OTHER_SLICE_KEY const in static viz legend * implement legend and connect to hover state * implement click actions * fix slice not clickable * handle all zero slices * add repro * update specs * update pie_chart.cy.spec.js * update chart_drill.cy.spec.js * add repro for single column legend * use minimum 2 legend columns * fix legend text overlap * use more margin for single row legend * update specs * add repro for 28568 * add repro for 38424 * fix percent label not showing on large slices * hide total text when chart is small * replace comment about animations * show warning for mixed positive and negative values * delete old chart files * fix type errors * update d3 import * update specs * remove branch from uberjar.yml * dont put single slice into other * fix lint errors and pie render test * update more d3 imports * remove unused settings * revert preview-card-width change * remove unused import * remove majorWidth option from formatting * use debounceLeading refresh mode in ChartWithLegend * remove TOTAL_GRAPHIC_OPTION constant * delete unit test for pie chart * fix failing test by doing set comparison instead * fix typo in comment * remove SUNBURST_SERIES_OPTION constant * fix lint by removing unused eslint-disable * move default color computation to getValue * fix static pie test to show that we will always render the legend * update pie border color for night mode and embedding * fix styles for embedding case and add stories * skip embedding stories --------- Co-authored-by:
Adam James <adam.vermeer2@gmail.com>
-
- Jul 17, 2024
-
-
Mahatthana (Kelvin) Nomsawadi authored
* refactor: Simplify code (#44275) * Remove dead code * Remove values same as default options * Simplify hook API: Removing unused argument * review: Remove redundant code * Update look and feel copy (#44277) * Update static embed tab name * Update copies + rearrange settings * Use Mantine Select * Fix E2E tests by applying new copies * Fix unit tests * Fix more E2E tests * review: Add a comment on Mantine `value` quirk * Adjust spacing and relevant tests * Move `transparent` theme to its own toggle option (#44362) * Reorder the function to match the visual order * Make function name consistent * Introduce the new background option (do nothing yet) * Remove redundant exports * Tighten up values to reduce confusion * Make the parameters order consistent * Only show background option on dashboads (spec) * Allow dashboard embed background to be transparent * Make filter background and header/footer transparent * Fix type error * Fix unit tests * Fix E2E tests * Fix checkerboard pattern not showing when no background * Add unit tests * Add missing copy update * Remove remnants from outdated solutions within the PR * Improve code comment references * Fix E2E tests since the last copy change * Fix type errors from merging master * Update light theme style (#44488) * Add background to dashboard filter on light theme * Make position sticky works with transparent background * Fix sticky filters not working on theme=transparent * Fix unit tests * Simplify IntersectionObserver components + fix E2E tests * Add storybook for embedded dashboard * Clarify the use of ExplicitSize context * Remove unused code * Formatting * Review: Better mock `isWithinIframe` * Update dark theme to match the new design (#45134) * Update light theme checkerboard colors * Update checkerboard colors * Consolidate dashboard light/dark border style * Use `--mb-color-text-primary` for light theme dashboard * Update embed dashboard dark theme primary color * Migrate dashboard text-secondary color * Migrate text-tertiary color * Migrate gold, axis, and split line to CSS custom properties * Fix failed e2e tests * Fix static viz not working * Update loki snapshots * Remove unnecessary CSS custom property * Make diff more consistent * Address review: reusing type * Support backward compatibility when passing `theme=transparent` (#45214) * Match preview query with the actual code query * Handle backward compatibility when `theme=transparent` on dashboard * Add unit tests * Address review: Make tests less repetitive * Update Metabase banner upsell UI (#45424) * Prepare folder for nested components * Update upsell UI - add `fullWidth` variant - align title to the left * Fix Upsell banner having horizontal scroll on full width * Add new Metabase banner upsell component * Fix unit tests * Address review: Fix typo Co-authored-by:
Ryan Laurie <30528226+iethree@users.noreply.github.com> * Address review: Move upsel UI to `admin/upsells` Co-authored-by:
Ryan Laurie <30528226+iethree@users.noreply.github.com> * Remove unnecessary ESLint disable comment We can remove it since the file is in admin folder, and is already excluded from the rule. * Address review: remove default value property Co-authored-by:
Denis Berezin <denis.berezin@metabase.com> * Address review: Extract magic number --------- Co-authored-by:
Ryan Laurie <30528226+iethree@users.noreply.github.com> Co-authored-by:
Denis Berezin <denis.berezin@metabase.com> * More UI updates (#45450) * Update dark theme text colors to match the new design * Update powered by metabase logo * Update loki snapshots * Fix unit tests * Fix formatting * Fix wrong dark theme metabase logo badge color * Address review: Compress SVG with svgo Co-authored-by:
Denis Berezin <denis.berezin@metabase.com> * Fix E2E tests * Update loki snapshots * Clarify Metabase base colors with comments --------- Co-authored-by:
Denis Berezin <denis.berezin@metabase.com> * Add more tests (#45628) * Add static embed question stories * Add loki snapshots * Add transparent theme for static dashboard tests * Add transparent theme tests for static questions * Assert `background` option in analytics tests * Remove tests for logic that has been moved * Update loki snapshots * Fix failed E2E tests from merging master --------- Co-authored-by:
Ryan Laurie <30528226+iethree@users.noreply.github.com> Co-authored-by:
Denis Berezin <denis.berezin@metabase.com>
-
- Jul 12, 2024
-
-
Aleksandr Lesnenko authored
-
- Jul 11, 2024
-
-
Aleksandr Lesnenko authored
* handle duplicated funnel chart steps * fix import
-
- Jul 09, 2024
-
-
Aleksandr Lesnenko authored
-
- Jul 08, 2024
-
-
Aleksandr Lesnenko authored
* fix combined cards crash when some cards have invalid viz settings * fix mock column was not metric * ensure combined scalar column has proper type to handle the case when the card returns empty results
-
- Jul 01, 2024
-
-
Aleksandr Lesnenko authored
* support sorting on funnel bar charts * fix funnel bar row display setting * spec
-
- Jun 28, 2024
-
-
Denis Berezin authored
* Upgrade visx packages * Fixup some dependencies * Fix textarea styles * Fix charts diff
-
- Jun 26, 2024
-
-
Phoomparin Mano authored
-
- Jun 25, 2024
-
-
Emmad Usmani authored
* fix pivot horizontal scroll * fix scroll on dashboard * add e2e test * fix unit tests * fix e2e test
-
- Jun 21, 2024
-
-
Denis Berezin authored
* Add global styles to storybook, fix default fonts display * Update loki testing screenshots
-
- Jun 20, 2024
-
-
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
-
- Jun 17, 2024
-
-
Jesse Devaney authored
* refactor: de-duplicate variable usage * fix incorrect goal-line plotting in pow and log y-axis scales * add Loki variants to validate and enforce desired behavior * update loki snapshots
-
- Jun 14, 2024
-
-
Aleksandr Lesnenko authored
* fix charts crash in safari when dataset timezone is not in iana format * Update Loki Snapshots * better fix: apply offset instead of finding a timezone with such offset * remove unused specs * Update Loki Snapshots * review --------- Co-authored-by:
Metabase Automation <github-automation@metabase.com>
-
- Jun 13, 2024
-
-
Phoomparin Mano authored
* apply cell background color * add id column overrides * do not add transparency to id column cell when overridden * fix static dashboard theming * update loki reference image * add style resets and regenerate loki snapshots * add style resets and regenerate loki snapshots
-
Aleksandr Lesnenko authored
* fix area step * specs
-
- Jun 06, 2024
-
-
Jesse Devaney authored
* fix RowChart XAxis ticks formatter - remove scaling from x-axis tick values like we did for y-axis tick values in ECharts charts * add loki variant
-
Phoomparin Mano authored
* highlight id cell column * add simpletable stories * add simple table test data * add loki reference image * Update frontend/src/metabase/visualizations/components/TableSimple/TableCell.styled.tsx Co-authored-by:
Denis Berezin <denis.berezin@metabase.com> --------- Co-authored-by:
Denis Berezin <denis.berezin@metabase.com>
-
Aleksandr Lesnenko authored
* make compact formatting consistent across all series * fix rebase
-
- Jun 05, 2024
-
-
Jesse Devaney authored
* return empty string so non-empty labels do not get hidden by empty labels * fix function name * apply scaling in transformed dataset * add missing option to OptionsType * fix double scaling * add column scaling to waterfall transformed dataset * add column value scaling to dataset transform * fix stacked bar segment labels not responding to column scaling * fix tooltip values displayed * since scaling as added to transformedDataset, use transformedDataset for formatters * revert changes to display percentage instead of absolute value * fix stacked data labels * add loki variant for custom y-axis range with column scaling * fix stack segmented label formatters compact calculation * scale original dataset and use that instead of modifying transformedDataset * update loki snapshots * fix scatter plot dataset scaling * fix tooltip values being double scaled * add E2E test to validate behavior * add helper for not duplicating the column scaling * port multiple y-axis metrics with column scaling fixes to RowChart * add waterfall and scatterplot loki variants * fix type errors and failing unit tests * fix failing unit tests * update loki snapshots
-
Aleksandr Lesnenko authored
* set min bar height for non-zero values * fix y-axis split logic uses transformed dataset instead of actual data
-
- Jun 04, 2024
-
-
Phoomparin Mano authored
* support test utilities in sdk import * add relative unit default chart font size in embedding defaults * make font size follow sdk root * feat(sdk): add font size settings to axis ticks * feat(sdk): add font size settings to series labels * re-add hasTimelineEvents from merge commits * apply default font size at the theme level * add table header cell font size * calculate cell font size based on 12.5px * rename theme.chart to theme.cartesian * refactor visualization theme * refactor default viz theme * remove chart style config * add goal line * pass font size to chart measurements * use px as reference unit * support row chart viz * add missing echarts font size * add table cell font sizes * use css variables for funnel color * fix theme type in smart scalar story * add bar chart to storybook for visual test * add line chart to storybook for visual test * add loki reference images * add loki reference images for row chart * add loki shared reference images to stories filter * update loki reference image * synchronize base font size * add theme provider to funnel test setup * add missing default visualization theme * add unit test for get size in px * update loki reference image * fix static viz build error
-
- Jun 03, 2024
-
-
Emmad Usmani authored
* fix data labels under trend/goal lines * fix fontFamily missing * update specs * fix type errors * snapshots --------- Co-authored-by:
Aleksandr Lesnenko <alxnddr@gmail.com>
-
Aleksandr Lesnenko authored
* measure auto compactness on correct values * snapshots
-
Aleksandr Lesnenko authored
-
- Jun 01, 2024
-
-
Jesse Devaney authored
* remove unused variable * conditionally render labels sparsely if large amount of data points * update loki snapshots * refactor data label formatter conditions * setup intelligent label plotting * handle the case when there are no labels * add sparse data label rendering to bar charts * do not compute if no labels need to be shown or hidden * add sparse data labeling to waterfall charts * adjustment for large series waterfall labels * revert change * refactor name * add sparse labels to stacked bar and area * improve scaleFactor * fix type errors * remove unused labelFormatter * update snapshots * patch ECharts - labels with no text, i.e. "", were still being considered as plot-able labels which was causing labels with real text "asdfec.." to be hidden because of overlap. - This patch makes it so that labels with no text, i.e. "", are not considered to be candidates for overlap checking. * update loki snapshots * only loop over dataset once for getWaterfallChartDataDensity * improve performance of chart data density calculations * update loki snapshots * update E2E spec * update E2E spec * increase cartesian label density allotment * update loki snapshots * update loki snapshots * comment out node_modules cache since it cannot be skipped by commit and is breaking CI * fix type errors * Reset node modules if patches are changed * refactor type naming --------- Co-authored-by:
Uladzimir Havenchyk <uladzimir.dev@gmail.com> Co-authored-by:
Uladzimir Havenchyk <125459446+uladzimirdev@users.noreply.github.com>
-