-
- Downloads
tech: Refactor and improve `AppBanner` (#49273)
* Remove unused component * Remove extra space * Remove cross-component dependency on the `Banner` * Use named export * Convert the Banner to TS * Make `ReadOnlyBanner` use `Banner` under the hood * Add test id to the banner * Simplify render method and tests * Add the missing test for ReadOnly banner * Avoid using special ASCII characters for the common apostrophe * Remove E2E spec * Use `Banner` for `DatabaseInfoField` * Use colors defined in the theme * Remove the dependency on the `Banner` component again! * Add a comment * Use pattern matching
Showing
- e2e/test/scenarios/admin/subscription.cy.spec.js 0 additions, 58 deletionse2e/test/scenarios/admin/subscription.cy.spec.js
- frontend/src/metabase/collections/components/EmptyPinnedItemsBanner/EmptyPinnedItemsBanner.styled.tsx 0 additions, 20 deletions.../EmptyPinnedItemsBanner/EmptyPinnedItemsBanner.styled.tsx
- frontend/src/metabase/collections/components/EmptyPinnedItemsBanner/EmptyPinnedItemsBanner.tsx 0 additions, 15 deletions...ponents/EmptyPinnedItemsBanner/EmptyPinnedItemsBanner.tsx
- frontend/src/metabase/components/AppBanner/AppBanner.tsx 16 additions, 6 deletionsfrontend/src/metabase/components/AppBanner/AppBanner.tsx
- frontend/src/metabase/components/AppBanner/AppBanner.unit.spec.tsx 72 additions, 59 deletions...src/metabase/components/AppBanner/AppBanner.unit.spec.tsx
- frontend/src/metabase/components/Banner/Banner.styled.tsx 0 additions, 8 deletionsfrontend/src/metabase/components/Banner/Banner.styled.tsx
- frontend/src/metabase/components/Banner/Banner.tsx 19 additions, 0 deletionsfrontend/src/metabase/components/Banner/Banner.tsx
- frontend/src/metabase/components/Banner/Banner.unit.spec.tsx 2 additions, 1 deletionfrontend/src/metabase/components/Banner/Banner.unit.spec.tsx
- frontend/src/metabase/components/Banner/index.js 0 additions, 1 deletionfrontend/src/metabase/components/Banner/index.js
- frontend/src/metabase/components/Banner/index.ts 1 addition, 0 deletionsfrontend/src/metabase/components/Banner/index.ts
- frontend/src/metabase/databases/components/DatabaseInfoField/DatabaseInfoField.styled.tsx 0 additions, 7 deletions...components/DatabaseInfoField/DatabaseInfoField.styled.tsx
- frontend/src/metabase/databases/components/DatabaseInfoField/DatabaseInfoField.tsx 15 additions, 3 deletions...abases/components/DatabaseInfoField/DatabaseInfoField.tsx
- frontend/src/metabase/nav/components/PaymentBanner/PaymentBanner.tsx 12 additions, 28 deletions...c/metabase/nav/components/PaymentBanner/PaymentBanner.tsx
- frontend/src/metabase/nav/components/PaymentBanner/PaymentBanner.unit.spec.tsx 0 additions, 143 deletions.../nav/components/PaymentBanner/PaymentBanner.unit.spec.tsx
- frontend/src/metabase/nav/components/ReadOnlyBanner/ReadOnlyBanner.tsx 5 additions, 4 deletions...metabase/nav/components/ReadOnlyBanner/ReadOnlyBanner.tsx
Please register or sign in to comment