fmt(js): npm run fix on merge (#86820)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
eb4f72f914
commit
f0c222c73d
@@ -1686,62 +1686,62 @@ export function ChatSidebar({
|
||||
</Tip>
|
||||
)}
|
||||
{inProject && enteredProject ? (
|
||||
<div className="group/workspace flex shrink-0 items-center gap-0.5">
|
||||
{enteredProject.path && <StartWorkButton repoPath={enteredProject.path} />}
|
||||
{/* Home has no folder and no record to rename, theme, or delete. */}
|
||||
{!enteredProject.isNoProject && (
|
||||
<ProjectMenu
|
||||
isActive={enteredProject.id === activeProjectId}
|
||||
onExitScope={exitProjectScope}
|
||||
project={enteredProject}
|
||||
scoped
|
||||
/>
|
||||
)}
|
||||
<div className="grid size-6 place-items-center">
|
||||
<Tip label={s.showProjects}>
|
||||
<Button
|
||||
aria-label={s.showProjects}
|
||||
className={HEADER_NAV_BTN}
|
||||
onClick={event => {
|
||||
event.stopPropagation()
|
||||
exitProjectScope()
|
||||
}}
|
||||
size="icon-xs"
|
||||
variant="ghost"
|
||||
>
|
||||
<Codicon name="list-unordered" size="0.75rem" />
|
||||
</Button>
|
||||
</Tip>
|
||||
<div className="group/workspace flex shrink-0 items-center gap-0.5">
|
||||
{enteredProject.path && <StartWorkButton repoPath={enteredProject.path} />}
|
||||
{/* Home has no folder and no record to rename, theme, or delete. */}
|
||||
{!enteredProject.isNoProject && (
|
||||
<ProjectMenu
|
||||
isActive={enteredProject.id === activeProjectId}
|
||||
onExitScope={exitProjectScope}
|
||||
project={enteredProject}
|
||||
scoped
|
||||
/>
|
||||
)}
|
||||
<div className="grid size-6 place-items-center">
|
||||
<Tip label={s.showProjects}>
|
||||
<Button
|
||||
aria-label={s.showProjects}
|
||||
className={HEADER_NAV_BTN}
|
||||
onClick={event => {
|
||||
event.stopPropagation()
|
||||
exitProjectScope()
|
||||
}}
|
||||
size="icon-xs"
|
||||
variant="ghost"
|
||||
>
|
||||
<Codicon name="list-unordered" size="0.75rem" />
|
||||
</Button>
|
||||
</Tip>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<div className="flex shrink-0 items-center gap-0.5">
|
||||
{!showAllProfiles ? (
|
||||
<Tip label={agentsGrouped ? s.projects.newButton : s.nav['new-session']}>
|
||||
<Button
|
||||
aria-label={agentsGrouped ? s.projects.newButton : s.nav['new-session']}
|
||||
className={HEADER_ACTION_BTN}
|
||||
onClick={event => {
|
||||
event.stopPropagation()
|
||||
) : (
|
||||
<div className="flex shrink-0 items-center gap-0.5">
|
||||
{!showAllProfiles ? (
|
||||
<Tip label={agentsGrouped ? s.projects.newButton : s.nav['new-session']}>
|
||||
<Button
|
||||
aria-label={agentsGrouped ? s.projects.newButton : s.nav['new-session']}
|
||||
className={HEADER_ACTION_BTN}
|
||||
onClick={event => {
|
||||
event.stopPropagation()
|
||||
|
||||
if (agentsGrouped) {
|
||||
openProjectCreate()
|
||||
} else {
|
||||
onNewSessionInWorkspace(null)
|
||||
}
|
||||
}}
|
||||
size="icon-xs"
|
||||
variant="ghost"
|
||||
>
|
||||
<Codicon name="add" size="0.75rem" />
|
||||
</Button>
|
||||
</Tip>
|
||||
) : null}
|
||||
<div className="grid size-6 place-items-center">
|
||||
<SidebarFilterMenu className={HEADER_NAV_BTN} />
|
||||
if (agentsGrouped) {
|
||||
openProjectCreate()
|
||||
} else {
|
||||
onNewSessionInWorkspace(null)
|
||||
}
|
||||
}}
|
||||
size="icon-xs"
|
||||
variant="ghost"
|
||||
>
|
||||
<Codicon name="add" size="0.75rem" />
|
||||
</Button>
|
||||
</Tip>
|
||||
) : null}
|
||||
<div className="grid size-6 place-items-center">
|
||||
<SidebarFilterMenu className={HEADER_NAV_BTN} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
)}
|
||||
</>
|
||||
}
|
||||
label={sessionsLabel}
|
||||
|
||||
@@ -224,7 +224,6 @@ export function markSessionUnreadFinished(storedSessionId: string): void {
|
||||
/** ACK — the user opened (or is looking at) this session: watermark := its
|
||||
* current message_count, and any explicit marker is retired. */
|
||||
function ackSessionRow(row: SessionInfo): void {
|
||||
|
||||
const profile = profileKeyForRow(row)
|
||||
const durableId = sessionPinId(row)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user