-
Notifications
You must be signed in to change notification settings - Fork 27
Implement Initial Atlas #352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+1,874
−51
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
f2e9f37
Setup
PauloMFJ 0e35e0d
Drop Husky
PauloMFJ 773af07
Implement Feedback
PauloMFJ b62782c
Update README
PauloMFJ 8ea0937
Address Feedback
PauloMFJ 223d946
Further Feedback
PauloMFJ 38c2b17
Update Next Config
PauloMFJ e499aee
Re-Run Tokens
PauloMFJ b40151a
Add AI Docs
PauloMFJ 9b3afbe
Update File Structure (Use 'snake_case')
PauloMFJ 4570724
Update Color Naming
PauloMFJ 2121703
Review Agent Files
PauloMFJ dc7b52c
Update Token Package To Export Eases
PauloMFJ 9d390ec
Implement Initial Atlas
PauloMFJ 77b911f
Extend Setup
PauloMFJ 9e5a140
Implement Gemini Feedback
PauloMFJ 1bb73bc
Merge branch 'main' into paulo/atlas
PauloMFJ 2595982
Self Review
PauloMFJ 7d05ce1
Add Type Support
PauloMFJ 26a25f0
Merge branch 'main' into paulo/atlas
PauloMFJ 89e07ed
Address Feedback
PauloMFJ 5636597
Merge branch 'main' into paulo/atlas
PauloMFJ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| import type { ReactNode } from 'react'; | ||
| import { AtlasProvider } from '~/components/scopes/atlas/atlas'; | ||
|
|
||
| interface AtlasLayoutProps { | ||
| children: ReactNode; | ||
| } | ||
|
|
||
| const AtlasLayout = ({ children }: AtlasLayoutProps) => { | ||
| return <AtlasProvider>{children}</AtlasProvider>; | ||
| }; | ||
|
|
||
| export default AtlasLayout; |
File renamed without changes.
This file contains hidden or 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
49 changes: 49 additions & 0 deletions
49
dataweaver/apps/web/src/components/elements/button.module.scss
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| .container { | ||
| display: flex; | ||
| gap: 2px; | ||
| align-items: center; | ||
| justify-content: center; | ||
| color: rgb(var(--color-button-content)); | ||
| background: rgb(var(--color-button-base)); | ||
|
|
||
| &[data-shape="pill"] { | ||
| height: 28px; | ||
| padding-inline: 12px 16px; | ||
| border-radius: 14px; | ||
| } | ||
|
|
||
| &[data-shape="square"] { | ||
| width: 40px; | ||
| height: 40px; | ||
| border-radius: 20px; | ||
| } | ||
|
|
||
| @include prefers-motion { | ||
| transition-timing-function: $ease-linear; | ||
| transition-duration: 0.2s; | ||
| transition-property: color, background; | ||
| } | ||
|
|
||
| // TODO: Implement disabled style | ||
| &[disabled] { | ||
| cursor: not-allowed; | ||
| opacity: 0.4; | ||
| } | ||
|
|
||
| &:not([disabled]) { | ||
| @include hover { | ||
| color: rgb(var(--color-button-content-hover)); | ||
| background: rgb(var(--color-button-base-hover)); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| .icon { | ||
| flex-shrink: 0; | ||
| width: 24px; | ||
| height: 24px; | ||
| } | ||
|
|
||
| .children { | ||
| @include type-label; | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| import type { ComponentPropsWithRef, ComponentType } from 'react'; | ||
| import { mergeClassNames } from '~/functions/merge_class_names'; | ||
| import { mergeStyles } from '~/functions/merge_styles'; | ||
| import s from './button.module.scss'; | ||
|
|
||
| interface WithIconOnly { | ||
| icon: ComponentType<ComponentPropsWithRef<'svg'>>; | ||
| 'aria-label': string; | ||
| children?: never; | ||
| } | ||
|
|
||
| interface WithChildrenAndIcon { | ||
| icon: ComponentType<ComponentPropsWithRef<'svg'>>; | ||
| children: React.ReactNode; | ||
| } | ||
|
|
||
| interface ColorScheme { | ||
| base: string; | ||
| 'base-hover': string; | ||
| content: string; | ||
| 'content-hover': string; | ||
| } | ||
|
|
||
| type ButtonProps = { | ||
| /** If left `undefined`, the button will use the default app color scheme. */ | ||
| colorScheme?: ColorScheme; | ||
|
|
||
| /** @default false */ | ||
| isDisabled?: boolean; | ||
| } & Omit<ComponentPropsWithRef<'button'>, 'disabled' | 'children'> & | ||
| (WithIconOnly | WithChildrenAndIcon); | ||
|
|
||
| export const Button = ({ | ||
| icon: Icon, | ||
| children, | ||
| colorScheme, | ||
| isDisabled = false, | ||
| ...rest | ||
| }: ButtonProps) => { | ||
| const hasChildren = Boolean(children); | ||
| const shape = hasChildren ? 'pill' : 'square'; | ||
|
|
||
| return ( | ||
| <button | ||
| type="button" | ||
| {...rest} | ||
| className={mergeClassNames(s.container, rest.className)} | ||
| data-shape={shape} | ||
| disabled={isDisabled} | ||
| style={mergeStyles( | ||
| colorScheme && { | ||
| '--color-button-base': colorScheme.base, | ||
| '--color-button-base-hover': colorScheme['base-hover'], | ||
| '--color-button-content': colorScheme.content, | ||
| '--color-button-content-hover': colorScheme['content-hover'], | ||
| }, | ||
| rest.style, | ||
| )} | ||
| > | ||
| <Icon className={s.icon} /> | ||
|
|
||
| {children && <span className={s.children}>{children}</span>} | ||
| </button> | ||
| ); | ||
| }; | ||
75 changes: 75 additions & 0 deletions
75
dataweaver/apps/web/src/components/elements/card/base.module.scss
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| .container { | ||
| --actions-height: 48px; | ||
| --corner-size: 16px; | ||
| --border-thickness: 2px; | ||
|
|
||
| display: grid; | ||
| height: 100%; | ||
| } | ||
|
|
||
| .actions-container { | ||
| display: flex; | ||
| grid-area: 1 / 1; | ||
| gap: 6px; | ||
| align-items: center; | ||
| justify-content: center; | ||
| height: calc(var(--actions-height) + var(--corner-size)); | ||
| padding-bottom: calc(var(--corner-size) - var(--border-thickness)); | ||
| margin: var(--actions-height) 2px 0; | ||
| background: rgb(var(--color-card-base-selected)); | ||
| border-radius: var(--corner-size) var(--corner-size) 0 0; | ||
| box-shadow: | ||
| 0 1px 3px 1px rgb(var(--color-card-shadow) / 15%), | ||
| 0 1px 2px rgb(var(--color-card-shadow) / 30%); | ||
|
|
||
| @include prefers-motion { | ||
| transition: transform 0.5s $ease-out; | ||
| } | ||
|
|
||
| [data-is-selected="true"] & { | ||
| transform: translateY(calc(var(--actions-height) * -1)); | ||
| } | ||
| } | ||
|
|
||
| .children-container { | ||
| display: flex; | ||
| flex-direction: column; | ||
| grid-area: 1 / 1; | ||
| height: fit-content; | ||
| max-height: 100%; | ||
| overflow-y: auto; | ||
| background: rgb(var(--color-card-base)); | ||
| border: var(--border-thickness) solid transparent; | ||
| border-radius: var(--corner-size); | ||
| box-shadow: | ||
| 0 1px 3px 1px rgb(var(--color-card-shadow) / 15%), | ||
| 0 1px 2px rgb(var(--color-card-shadow) / 30%); | ||
|
|
||
| @include prefers-motion { | ||
| transition: | ||
| transform 0.5s $ease-out, | ||
| border-color 0.5s $ease-out; | ||
| } | ||
|
|
||
| [data-is-selected="true"] & { | ||
| border-color: rgb(var(--color-card-base-selected)); | ||
| transform: translateY(var(--actions-height)); | ||
| } | ||
| } | ||
|
|
||
| .content { | ||
| display: flex; | ||
| flex-shrink: 0; | ||
| flex-direction: column; | ||
| padding: 28px; | ||
| } | ||
|
|
||
| .footer { | ||
| flex-shrink: 0; | ||
| padding: 0 28px 18px; | ||
|
|
||
| [data-loading="true"] & { | ||
| visibility: hidden; | ||
| pointer-events: none; | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.