-
Notifications
You must be signed in to change notification settings - Fork 326
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
Fix Drive table #12397
base: develop
Are you sure you want to change the base?
Fix Drive table #12397
Conversation
🧪 Storybook is successfully deployed!📊 Dashboard:
|
…" calls and replace with `refetchInterval` when necessary
app/gui/src/dashboard/components/AriaComponents/Button/Button.tsx
Outdated
Show resolved
Hide resolved
app/gui/src/dashboard/components/dashboard/columnHeading/ModifiedColumnHeading.tsx
Outdated
Show resolved
Hide resolved
@@ -337,7 +337,7 @@ const ButtonContent = memo(function ButtonContent(props: ButtonContentProps) { | |||
styles={styles} | |||
hideLoader={hideLoader} | |||
/> | |||
<Text color="inherit" truncate="1" className={styles.text()}> | |||
<Text weight="custom" color="inherit" truncate="1" className={styles.text()}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the second though - why did we add the <Text />
component here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any better suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Buttons (actions) shouldn't be truncated and should use active verbs. What does this button do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uhh... nothing 😅 - as above, just using it as a hack to get a pre-aligned icon + text combo. i guess ideally we could refactor this out to a style-only component and then use that instead of a full on Button
...
either way Text
has been refactored away from Button
again anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, lets use just a <Text />
element instead of button here.
i guess ideally we could refactor this out to a style-only component
Yeah, we can add this pattern as a pattern
(https://panda-css.com/docs/concepts/patterns) using tv
function.
Also we do the same here so we can base the receipt on this: https://github.com/enso-org/enso/blob/wip/sergeigarin/flat-folder-structure-follow-up/app/gui/src/dashboard/components/Breadcrumbs/BreadcrumbItem.tsx#L206
…ttier plugin to allow automatically removing unused imports
@@ -337,9 +337,7 @@ const ButtonContent = memo(function ButtonContent(props: ButtonContentProps) { | |||
styles={styles} | |||
hideLoader={hideLoader} | |||
/> | |||
<Text color="inherit" truncate="1" className={styles.text()}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We used to have a span with className={styles.text()}
, haven't we?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, i tried extracting the css directly and it doesn't seem to work.
try running this commit in dev (staging env) and create a project execution (no repeats to minimize load, but long timezone to (try to) trigger the truncate
class):
} | ||
|
||
/** A text display with an icon. */ | ||
export function IconDisplay<IconType extends string>(props: IconDisplayProps<IconType>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when I told about patterns
I meant only the ICON_DISPLAY_STYLES
part,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i guess, but i do want a dedicated component to avoid having to rewrite the markup (and get it right) every time, unless you have a better idea
'8': 'line-clamp-8 ellipsis', | ||
'9': 'line-clamp-9 ellipsis', | ||
custom: 'line-clamp-[var(--line-clamp)] ellipsis', | ||
'1': 'block truncate', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we remove ellipsis
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is ellipsis
a valid tailwind class name?
data-current | ||
aria-current="page" | ||
textSelection="none" | ||
elementType="a" | ||
icon={icon} | ||
isCurrent={isCurrent} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IconDisplay
isCurrent
? isDisabled
?
@@ -104,14 +103,11 @@ function DashboardInner(props: DashboardProps) { | |||
const initialProjectName = initialLocalProjectPath != null ? null : initialProjectNameRaw | |||
|
|||
const categoriesAPI = useCategoriesAPI() | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did we move the refetch directories though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we no longer batch refetch directories since there is no longer a tree, no? so only one directory ever needs to be refetched at any time
Pull Request Description
Important Notes
None
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
The documentation has been updated, if necessary.Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.Scala,
Java,
TypeScript,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
Unit tests have been written where possible.If meaningful changes were made to logic or tests affecting Enso Cloud integration in the libraries,or the Snowflake database integration, a run of the Extra Tests has been scheduled.
If applicable, it is suggested to paste a link to a successful run of the Extra Tests.