This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Jul 17, 2024
-
-
Tim Macdonald authored
-
Ryan Laurie authored
-
Sloan Sparger authored
-
Nemanja Glumac authored
-
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>
-
Kamil Mielnik authored
* Refactor EditoTabs - get rid of options prop - use named export * Remove unused data-testid * Remove redundant id and aria-labelledby * Remove redundant props spread * Bring back data-testid in use - Thanks VSCode for randomly showing me search results or not...
-
Raphael Krut-Landau authored
This also makes collections tabbable No longer skip e2e test: "scenarios > collections > trash > should open only one context menu at a time"
-
Alexander Polyankin authored
-
Ngoc Khuat authored
-
Oleksandr Yakushev authored
-
- Jul 16, 2024
-
-
Cam Saul authored
* Debug QP improvements from today's eng demo * More taps * Fixes
-
Tim Macdonald authored
-
bryan authored
* get-sub-props -> ->sub-props because it doesn't 'get' anything * add defendpoint dox * make style consistent * respond to review comment * fix formatting
-
Noah Moss authored
-
Case Nelson authored
* fix: add timezone to bigquery param substitution Fixes #43597 * Fix indentation and remove report-timezone lookup from loop
-
Nemanja Glumac authored
-
Nick Fitzpatrick authored
-
Nick Fitzpatrick authored
* Alert on asset download error * moving function to metabase global * removing alert, adjusting e2e test * update CSP
-
Alexander Polyankin authored
* Fix field values endpoints * E2E tests
-
github-automation-metabase authored
-
metamben authored
Fixes #13437.
-
Ryan Laurie authored
* Reconcile release branch commits with milestone issues polish up pre-release milestone check add and trigger new github action handle already fixed issues updates * cleanup * replace global imports * prettier install * update imports
-
Nicolò Pretto authored
* add pdf export button to static embed and public sharing (#43743) * add export button to embed frame, it works on static embed and public sharing * move css around to make dashcard border show up on static/public embed pdf exports the library we use to render an html node to an image doesn't seem to support box shadow the original fix was done in ParametersAndCardsContainer, but that component is not used in the static/public embeds * fix types * fix night theme pdf export - use padding for the title instead of starting to draw the image from 60px, to keep the bg color - change the css to also apply the bg-color to the first child of the EmbedFrame, to make it work when exporting to pdfs, where the EmbedFrame is not part of the exported dom * refactor: exportTabAsPdfButtonText function * give a default to the filename, even though it should always be there * exportTabAsPdfButtonText -> getExportTabAsPdfButtonText * introduce .WithThemeBackground to not have a css rule too much generic * feat: adds endpoint to download results of a dashcard part of a public dashboard (#44156) * Flag to hide download buttons (#44206) * pass down downloadsEnabled to hide downloads buttons in public and embedded questions or dashcards * Update frontend/src/metabase/dashboard/components/DashCard/DashCardMenu/DashCardMenu.tsx Co-authored-by:
Mahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev> * PLUGIN_DOWNLOADS_ENABLED -> PLUGIN_RESOURCE_DOWNLOADS * adds comment to areDownloadsEnabled function to explain what it does --------- Co-authored-by:
Mahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev> * logic to handle downloads url parameter (#44363) * minimal support for downloads url parameter * updates StaticEmbedSetupPane test to epxect downloads=false instead of hide_download_button=true * fix prettier mistakes * tmp fix to the tests until we have the new analytics events * fix eslint issues * update embedding snippets e2e * update embedding questions e2e * try to clean up the mess of downloads/downloadsEnabled * adds `hasPremiumFeature` check to the plugin, adds unit test for the logic * adds TODOS for analytics * unit tests for downloads flag (#45178) * fix download pdf button not showing up when titled=false and there's only one tab * unit tests for downloads flag on dashboards and questions * adds test about the container id, not sure if we should keep it * adds a comment to explain why we enable premium features in the tests * move downloadsEnabled outside of the Boolean cast as it's already a boolean * E2E tests for public/static downloads (#45240) * wip e2e tests * make downloadUtils ts friendly * assertNotEmpty function * adds tests for public questions * e2e tests for static embed downloads * publicUid -> publicUuid * fix assertNotEmpty * fix parameter not renamed * Apply suggestions from code review Co-authored-by:
Denis Berezin <denis.berezin@metabase.com> * remove duplicated test * fix another typo i forgot to rename * fix another rename issue * convert e2e-downloads-helpers to ts * refactor: put method calculation in getEndpoint function * adds note to downloadUtils --------- Co-authored-by:
Denis Berezin <denis.berezin@metabase.com> * Update e2e/test/scenarios/embedding/embedding-snippets.cy.spec.js Co-authored-by:
Mahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev> * change requires to import to reflect that we changed to export the source code in downloadUtils * makes downloadsEnabled prop more consistent across components * colocate downloadsEnabled with hideDownloadButton in embed-display-options * defaults displayOptions.downloads to true to simplify logic * remove unused queryString parameter in tests setup function * reword TODO * Revert "defaults displayOptions.downloads to true to simplify logic" This reverts commit aebf4cf3cf3528deefb9c40dfc48d2f39a278b97. * fix png export when on dark theme (public/embed) not having the dark … (#45497) * fix png export when on dark theme (public/embed) not having the dark background * move the border-radius fix for the dashcard export to saveChartImage * remove comments --------- Co-authored-by:
Mahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev> Co-authored-by:
Denis Berezin <denis.berezin@metabase.com>
-
Nemanja Glumac authored
* Do not display alert icon for models * Add e2e repro for #37893 * Put the guard higher * Fix unrelated test * Go back to keeping the logic in `shouldRender` * Remove whitespace
-
Chris Truter authored
-
Nemanja Glumac authored
-
Braden Shepherdson authored
This makes the names inconsistent with what's in `data.cols` on the same API response(!) but consistent with what MBQL lib will return.
-
Alexander Polyankin authored
* Optimize input in FilterModal * Optimize input in FilterModal * Fix
-
Alexander Polyankin authored
-
Jeff Bruemmer authored
-
Kamil Mielnik authored
* Get rid of tolerance * Use range rect and element rect instead of clientWidth/clientHeight/scrollWidth/scrollHeight * Fix types * Mock Range.prototype.getBoundingClientRect * Mock getBoundingClientRect in unit tests
-
github-automation-metabase authored
-
Kamil Mielnik authored
* Add repro for #32252 * Have a test for archiving a question and a collection * Refactor cy.createCollection and cy.archiveCollection to TS * Refactor collection and user helpers to TS * Keep collection helpers together * Sort code * Format code * Use new createCollection helper * Add return type to createCollection * Fix typing * Fix #32252 * Fix typing * Deprecate openNewCollectionItemFlowFor * Revert "Fix typing" This reverts commit ecf317986870012e6e59754aa21dd9ad13dbdecb. * Fix TS error
-
Phoomparin Mano authored
* rename scalar to number * try to update loki reference image * change scalar to number * update loki reference image
-
Phoomparin Mano authored
* add authentication status hook * update docs
-
Phoomparin Mano authored
* sync fetch request token function with store * update unit test * update docs * use re-render to rerender test
-
Oisin Coveney authored
Co-authored-by:
Mahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev>
-
Kamil Mielnik authored
* Refactor cy.createCollection and cy.archiveCollection to TS * Refactor collection and user helpers to TS * Keep collection helpers together * Sort code * Format code * Add return type to createCollection * Fix typing * Deprecate openNewCollectionItemFlowFor
-
Ngoc Khuat authored
-
Kamil Mielnik authored
Fix - More than 10 Series (using Add Series Dashboard Feature) cause Filter UI to be inaccessible (#45550) * Add a repro for #43219 * Fix #43219 * Create questions in parallel * Make 2 elements scrollable so that the 'Make sure to make a selection ...' element is not weirdly cut off when scrolling horizontally to see inside of parameter-mapper-container * Fix assertion * Be more specific which element is to be scrolled * Avoid realMouseWheel which does not work reliably in CI
-