-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[codex] Group projects in new-thread pickers #4312
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
18242b2
af8d73c
a180774
158b0ad
b776ee8
8a7fec8
af1853b
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 |
|---|---|---|
|
|
@@ -573,7 +573,7 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { | |
| type="button" | ||
| aria-label="Un-settle thread" | ||
| onClick={handleUnsettleClick} | ||
| className="absolute inset-y-0 right-0 inline-flex cursor-pointer items-center gap-1 rounded-md border border-sidebar-border bg-sidebar-row-hover px-2 text-xs text-muted-foreground opacity-0 transition-opacity hover:text-foreground focus-visible:opacity-100 group-hover/v2-row:opacity-100 dark:border-transparent dark:inset-ring-1 dark:inset-ring-white/5" | ||
| className="absolute inset-y-0 right-0 inline-flex cursor-pointer items-center gap-1 rounded-md bg-transparent px-2 text-xs text-muted-foreground opacity-0 transition-opacity hover:text-foreground focus-visible:opacity-100 group-hover/v2-row:opacity-100" | ||
|
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. 🟡 Medium The settle/unsettle buttons lose their opaque background, so when a keyboard user tabs to one without hovering, 🚀 Reply "fix it for me" or copy this AI Prompt for your agent: |
||
| > | ||
| <Undo2Icon className="size-3" /> | ||
| </button> | ||
|
|
@@ -582,7 +582,7 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { | |
| type="button" | ||
| aria-label="Settle thread" | ||
| onClick={handleSettleClick} | ||
| className="absolute inset-y-0 right-0 inline-flex cursor-pointer items-center gap-1 rounded-md border border-sidebar-border bg-sidebar-row-hover px-2 text-xs text-muted-foreground opacity-0 transition-opacity hover:text-foreground focus-visible:opacity-100 group-hover/v2-row:opacity-100 dark:border-transparent dark:inset-ring-1 dark:inset-ring-white/5" | ||
| className="absolute inset-y-0 right-0 inline-flex cursor-pointer items-center gap-1 rounded-md bg-transparent px-2 text-xs text-muted-foreground opacity-0 transition-opacity hover:text-foreground focus-visible:opacity-100 group-hover/v2-row:opacity-100" | ||
| > | ||
| <CheckIcon className="size-3" /> | ||
| </button> | ||
|
|
@@ -659,7 +659,7 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { | |
| type="button" | ||
| aria-label="Settle thread" | ||
| onClick={handleSettleClick} | ||
| className="absolute inset-y-0 right-0 inline-flex cursor-pointer items-center gap-1 rounded-md border border-sidebar-border bg-sidebar-row-hover px-2 text-xs text-muted-foreground opacity-0 transition-opacity hover:text-foreground focus-visible:opacity-100 group-hover/v2-row:opacity-100 dark:border-transparent dark:inset-ring-1 dark:inset-ring-white/5" | ||
| className="absolute inset-y-0 right-0 inline-flex cursor-pointer items-center gap-1 rounded-md bg-transparent px-2 text-xs text-muted-foreground opacity-0 transition-opacity hover:text-foreground focus-visible:opacity-100 group-hover/v2-row:opacity-100" | ||
| > | ||
| <CheckIcon className="size-3" /> | ||
| Settle | ||
|
|
@@ -823,10 +823,16 @@ export default function SidebarV2() { | |
| ), | ||
| [projects], | ||
| ); | ||
| const projectTitleByKey = useMemo( | ||
| const projectDisplayNameByKey = useMemo( | ||
|
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. 🟡 Medium
🚀 Reply "fix it for me" or copy this AI Prompt for your agent: |
||
| () => | ||
| new Map(projects.map((project) => [`${project.environmentId}:${project.id}`, project.title])), | ||
| [projects], | ||
| new Map( | ||
| projectGroups.flatMap((group) => | ||
| group.memberProjects.map( | ||
| (project) => [`${project.environmentId}:${project.id}`, group.displayName] as const, | ||
| ), | ||
| ), | ||
| ), | ||
| [projectGroups], | ||
|
cursor[bot] marked this conversation as resolved.
|
||
| ); | ||
|
|
||
| // now is quantized to the minute so effectiveSettled memoization doesn't | ||
|
|
@@ -1768,7 +1774,8 @@ export default function SidebarV2() { | |
| projectCwdByKey.get(`${thread.environmentId}:${thread.projectId}`) ?? null | ||
| } | ||
| projectTitle={ | ||
| projectTitleByKey.get(`${thread.environmentId}:${thread.projectId}`) ?? null | ||
| projectDisplayNameByKey.get(`${thread.environmentId}:${thread.projectId}`) ?? | ||
| null | ||
| } | ||
| providerEntryByInstanceId={providerEntryByInstanceId} | ||
| onThreadClick={handleThreadClick} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.