-
Notifications
You must be signed in to change notification settings - Fork 962
feat(desktop): default v2 workspaces to all devices, sort by host then created #3928
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,6 +8,7 @@ import { Tooltip, TooltipContent, TooltipTrigger } from "@superset/ui/tooltip"; | |||||||||||||||||||||||||||||||||
| import { cn } from "@superset/ui/utils"; | ||||||||||||||||||||||||||||||||||
| import { useNavigate } from "@tanstack/react-router"; | ||||||||||||||||||||||||||||||||||
| import { useCallback } from "react"; | ||||||||||||||||||||||||||||||||||
| import { CgLaptop } from "react-icons/cg"; | ||||||||||||||||||||||||||||||||||
| import { | ||||||||||||||||||||||||||||||||||
| LuCircleCheck, | ||||||||||||||||||||||||||||||||||
| LuCircleDashed, | ||||||||||||||||||||||||||||||||||
|
|
@@ -212,6 +213,17 @@ export function V2WorkspaceRow({ | |||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| <span className="flex min-w-0 items-center gap-2"> | ||||||||||||||||||||||||||||||||||
| {isMainWorkspace ? ( | ||||||||||||||||||||||||||||||||||
| <Tooltip delayDuration={300}> | ||||||||||||||||||||||||||||||||||
| <TooltipTrigger asChild> | ||||||||||||||||||||||||||||||||||
| <CgLaptop | ||||||||||||||||||||||||||||||||||
| className="size-3.5 shrink-0 text-muted-foreground" | ||||||||||||||||||||||||||||||||||
| aria-label="Main workspace" | ||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||
| </TooltipTrigger> | ||||||||||||||||||||||||||||||||||
| <TooltipContent side="top">Main workspace</TooltipContent> | ||||||||||||||||||||||||||||||||||
|
Comment on lines
214
to
+224
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Prompt To Fix With AIThis is a comment left during a code review.
Path: apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspaces/components/V2WorkspacesList/components/V2WorkspaceRow/V2WorkspaceRow.tsx
Line: 214-224
Comment:
**Tooltip not keyboard-accessible**
`CgLaptop` is a bare SVG with no `tabIndex`, so keyboard users can never focus it to trigger the tooltip. The `aria-label="Main workspace"` on the SVG does expose the information to screen readers, but interactive tooltip hover-on-focus is lost. Adding a `tabIndex={0}` to the element (or wrapping it in a focusable `<span>`) would allow keyboard users to access the tooltip as well.
```suggestion
<CgLaptop
tabIndex={0}
className="size-3.5 shrink-0 text-muted-foreground"
aria-label="Main workspace"
/>
```
How can I resolve this? If you propose a fix, please make it concise. |
||||||||||||||||||||||||||||||||||
| </Tooltip> | ||||||||||||||||||||||||||||||||||
| ) : null} | ||||||||||||||||||||||||||||||||||
| <span | ||||||||||||||||||||||||||||||||||
| className="min-w-0 truncate font-medium text-foreground" | ||||||||||||||||||||||||||||||||||
| title={workspace.name} | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Broaden the empty-state guidance.
hasActiveFiltersnow covers search, device, and project filters, but the empty-state copy still tells users to clear only the device filter. When the project filter is what excludes results, this points them at the wrong control.Suggested copy tweak
🤖 Prompt for AI Agents