-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic version of Models in Browse Data (#37707)
* Add Models and Databases tabs * Models are organized by collection * Exclude items in personal collections * Simplify BrowseHeader
- Loading branch information
Showing
37 changed files
with
1,125 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
81 changes: 71 additions & 10 deletions
81
frontend/src/metabase/browse/components/BrowseApp.styled.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,78 @@ | ||
import styled from "@emotion/styled"; | ||
import { | ||
breakpointMinSmall, | ||
breakpointMinMedium, | ||
} from "metabase/styled-components/theme"; | ||
import { Tabs } from "metabase/ui"; | ||
import { color } from "metabase/lib/colors"; | ||
import EmptyState from "metabase/components/EmptyState"; | ||
|
||
export const BrowseAppRoot = styled.div` | ||
margin: 0 0.5rem; | ||
flex: 1; | ||
height: 100%; | ||
`; | ||
|
||
${breakpointMinSmall} { | ||
margin: 0 1rem; | ||
} | ||
export const BrowseTabs = styled(Tabs)` | ||
display: flex; | ||
flex-flow: column nowrap; | ||
flex: 1; | ||
`; | ||
|
||
export const BrowseTabsList = styled(Tabs.List)` | ||
padding: 0 1rem; | ||
background-color: ${color("white")}; | ||
border-bottom-width: 1px; | ||
`; | ||
|
||
${breakpointMinMedium} { | ||
margin: 0 4rem; | ||
export const BrowseTab = styled(Tabs.Tab)` | ||
top: 1px; | ||
margin-bottom: 1px; | ||
border-bottom-width: 3px !important; | ||
padding: 10px; | ||
&:hover { | ||
color: ${color("brand")}; | ||
background-color: inherit; | ||
border-color: transparent; | ||
} | ||
`; | ||
|
||
export const BrowseTabsPanel = styled(Tabs.Panel)` | ||
display: flex; | ||
flex-flow: column nowrap; | ||
flex: 1; | ||
height: 100%; | ||
padding: 0 1rem; | ||
`; | ||
|
||
export const BrowseContainer = styled.div` | ||
display: flex; | ||
flex: 1; | ||
flex-flow: column nowrap; | ||
height: 100%; | ||
`; | ||
|
||
export const BrowseDataHeader = styled.header` | ||
display: flex; | ||
padding: 1rem; | ||
padding-bottom: 0.375rem; | ||
color: ${color("dark")}; | ||
background-color: ${color("white")}; | ||
`; | ||
|
||
export const BrowseSectionContainer = styled.div` | ||
max-width: 1014px; | ||
margin: 0 auto; | ||
flex: 1; | ||
display: flex; | ||
width: 100%; | ||
`; | ||
|
||
export const BrowseTabsContainer = styled(BrowseSectionContainer)` | ||
flex-flow: column nowrap; | ||
justify-content: flex-start; | ||
`; | ||
|
||
export const CenteredEmptyState = styled(EmptyState)` | ||
display: flex; | ||
flex: 1; | ||
flex-flow: column nowrap; | ||
align-items: center; | ||
justify-content: center; | ||
height: 100%; | ||
`; |
Oops, something went wrong.