You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "ARE404 (via GitHub)" <gi...@apache.org> on 2026/08/31 04:00:54 UTC

[PR] feat(desktop): show project and task details on hover [maka]

ARE404 opened a new pull request, #4310:
URL: https://github.com/apache/maka/pull/4310

   ## Summary
   - add delayed hover and keyboard-focus detail cards to project and task rows
   - show task preview, status, model, permission, workspace path, and update time
   - show project path, task count, running count, availability, locations, and recent activity
   - keep cards localized in Chinese and English and reuse the Astryx top-layer HoverCard primitive
   
   ## Testing
   - npm --workspace @maka/ui run test (278 passed)
   - npm --workspace @maka/desktop run typecheck
   - npm --workspace @maka/desktop run check:architecture
   - npx playwright test --config e2e/playwright.config.ts e2e/sidebar-project-row.spec.ts (4 passed across the full spec; the added hover-card case was rerun independently after correcting a fixture-path assertion)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] feat(desktop): show project and task details on hover [maka]

Posted by "ARE404 (via GitHub)" <gi...@apache.org>.
ARE404 commented on code in PR #4310:
URL: https://github.com/apache/maka/pull/4310#discussion_r3895676999


##########
packages/ui/src/session-history-list.tsx:
##########
@@ -464,6 +572,207 @@ const SessionNavRow = memo(function SessionNavRow(props: {
   );
 });
 
+const SessionHoverCardLayer = memo(function SessionHoverCardLayer(props: {
+  containerRef: RefObject<HTMLElement | null>;
+  session: SessionSummary;
+  status: string;
+  locale: UiLocale;
+}) {
+  const copy = getSessionHoverCardCopy(props.locale);
+  const hoverCard = useHoverCard({
+    placement: 'end',
+    alignment: 'start',
+    delay: SIDEBAR_HOVER_CARD_DELAY_MS,
+    hideDelay: SIDEBAR_HOVER_CARD_HIDE_DELAY_MS,
+    focusTrigger: 'always',
+    label: copy.sessionDetailsLabel(props.session.name),
+  });
+  useSidebarHoverCardTrigger(props.containerRef, hoverCard);
+
+  return hoverCard.renderHoverCard(
+    <SessionHoverCardContent
+      session={props.session}
+      status={props.status}
+      locale={props.locale}
+    />,
+  );
+});
+
+function SessionHoverCardDescription(props: {
+  id: string;
+  session: SessionSummary;
+  status: string;
+  locale: UiLocale;
+}) {
+  const conversationCopy = getConversationCopy(props.locale);
+  const copy = getSessionHoverCardCopy(props.locale);
+  const session = props.session;
+  const permission = conversationCopy.permissions.mode[session.permissionMode].label;
+  const description = [
+    props.status,
+    session.lastMessagePreview || copy.noMessages,
+    session.model,
+    permission,
+    session.cwd,
+    session.lastMessageAt
+      ? `${copy.updated} ${formatAbsoluteTimestamp(session.lastMessageAt, props.locale)}`
+      : undefined,
+  ]
+    .filter((value): value is string => Boolean(value))
+    .join(' · ');
+
+  return <span id={props.id} className="maka-visually-hidden" aria-label={description} />;
+}
+
+function SessionHoverCardContent(props: {
+  session: SessionSummary;
+  status: string;
+  locale: UiLocale;
+}) {
+  const conversationCopy = getConversationCopy(props.locale);
+  const copy = getSessionHoverCardCopy(props.locale);
+  const session = props.session;
+  const permission = conversationCopy.permissions.mode[session.permissionMode].label;
+
+  return (
+    <span className="maka-sidebar-hover-card" data-kind="session">
+      <span className="maka-sidebar-hover-card-title">{session.name}</span>
+      <span
+        className="maka-sidebar-hover-card-preview"
+        data-empty={session.lastMessagePreview ? undefined : 'true'}
+      >
+        {session.lastMessagePreview || copy.noMessages}
+      </span>
+      <span className="maka-sidebar-hover-card-meta">
+        <span>{props.status}</span>
+        <span aria-hidden="true">·</span>
+        <span>{session.model}</span>
+        <span aria-hidden="true">·</span>
+        <span>{permission}</span>
+      </span>
+      {session.cwd ? (
+        <span className="maka-sidebar-hover-card-path" title={session.cwd}>
+          {session.cwd}
+        </span>
+      ) : null}
+      {session.lastMessageAt ? (
+        <span className="maka-sidebar-hover-card-updated">
+          {copy.updated}{' '}
+          <RelativeTime ts={session.lastMessageAt} />
+          <span className="maka-visually-hidden">
+            {formatAbsoluteTimestamp(session.lastMessageAt, props.locale)}
+          </span>
+        </span>
+      ) : null}
+    </span>
+  );
+}
+
+function ProjectHoverCardDescription(props: {
+  id: string;
+  project?: ProjectRecord;
+  sessions: readonly SessionSummary[];
+}) {
+  const locale = useUiLocale();
+  const copy = getSessionHoverCardCopy(locale);
+  const runningCount = props.sessions.filter(

Review Comment:
   Fixed in 64f89c47f. streamingSessionIds now reaches each project row, and task rows plus project summaries share resolveSessionRunningState, including the renderer-local send-to-catalog window, Runtime Host turn ids, attention precedence, and persisted-running fallback. The project hover summary is constructed once and consumed by both the visible card and stable accessible description. Added an SSR regression where the task says Responding from local streaming while Host turn ids are explicitly empty; the project description now reports 1 running in the same render.



##########
packages/ui/src/session-history-list.tsx:
##########
@@ -341,10 +388,49 @@ function ProjectNavRow(props: {
           <VStack gap={0.5}>{props.sessions.map((session) => props.renderSession(session))}</VStack>
         ) : undefined}
       </SideNavItem>
+      <ProjectHoverCardDescription
+        id={hoverDescriptionId}
+        project={props.project}
+        sessions={props.sessions}
+      />
+      <ProjectHoverCardLayer
+        containerRef={containerRef}
+        label={props.label}
+        project={props.project}
+        sessions={props.sessions}
+      />
     </div>
   );
 }
 
+const ProjectHoverCardLayer = memo(function ProjectHoverCardLayer(props: {
+  containerRef: RefObject<HTMLElement | null>;
+  label: string;
+  project?: ProjectRecord;
+  sessions: SessionSummary[];
+}) {
+  const locale = useUiLocale();
+  const copy = getSessionHoverCardCopy(locale);
+  const hoverCard = useHoverCard({
+    placement: 'end',
+    alignment: 'start',
+    delay: SIDEBAR_HOVER_CARD_DELAY_MS,
+    hideDelay: SIDEBAR_HOVER_CARD_HIDE_DELAY_MS,
+    focusTrigger: 'always',
+    label: copy.projectDetailsLabel(props.label),

Review Comment:
   Fixed in 64f89c47f. Synthetic buckets now use localized group-specific popup copy: 未归属项目 分组详情 and No project group details. Real projects keep project-specific copy. Added copy coverage in both locales and an Electron assertion against the actual named role=dialog opened from the ungrouped row.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] feat(desktop): show project and task details on hover [maka]

Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han commented on code in PR #4310:
URL: https://github.com/apache/maka/pull/4310#discussion_r3895485232


##########
packages/ui/src/session-history-list.tsx:
##########
@@ -341,10 +388,49 @@ function ProjectNavRow(props: {
           <VStack gap={0.5}>{props.sessions.map((session) => props.renderSession(session))}</VStack>
         ) : undefined}
       </SideNavItem>
+      <ProjectHoverCardDescription
+        id={hoverDescriptionId}
+        project={props.project}
+        sessions={props.sessions}
+      />
+      <ProjectHoverCardLayer
+        containerRef={containerRef}
+        label={props.label}
+        project={props.project}
+        sessions={props.sessions}
+      />
     </div>
   );
 }
 
+const ProjectHoverCardLayer = memo(function ProjectHoverCardLayer(props: {
+  containerRef: RefObject<HTMLElement | null>;
+  label: string;
+  project?: ProjectRecord;
+  sessions: SessionSummary[];
+}) {
+  const locale = useUiLocale();
+  const copy = getSessionHoverCardCopy(locale);
+  const hoverCard = useHoverCard({
+    placement: 'end',
+    alignment: 'start',
+    delay: SIDEBAR_HOVER_CARD_DELAY_MS,
+    hideDelay: SIDEBAR_HOVER_CARD_HIDE_DELAY_MS,
+    focusTrigger: 'always',
+    label: copy.projectDetailsLabel(props.label),

Review Comment:
   **[P3] Use group copy for the synthetic ungrouped bucket.** `deriveProjectGroups()` intentionally emits `project: undefined` with `No project` / `未归属项目`, but this still names the popup with `projectDetailsLabel()`. A screen reader therefore hears `No project project details` or `未归属项目 项目详情` for something that is not a project. Could this use group-specific detail copy, or skip the project detail card for the synthetic bucket?



##########
packages/ui/src/session-history-list.tsx:
##########
@@ -464,6 +572,207 @@ const SessionNavRow = memo(function SessionNavRow(props: {
   );
 });
 
+const SessionHoverCardLayer = memo(function SessionHoverCardLayer(props: {
+  containerRef: RefObject<HTMLElement | null>;
+  session: SessionSummary;
+  status: string;
+  locale: UiLocale;
+}) {
+  const copy = getSessionHoverCardCopy(props.locale);
+  const hoverCard = useHoverCard({
+    placement: 'end',
+    alignment: 'start',
+    delay: SIDEBAR_HOVER_CARD_DELAY_MS,
+    hideDelay: SIDEBAR_HOVER_CARD_HIDE_DELAY_MS,
+    focusTrigger: 'always',
+    label: copy.sessionDetailsLabel(props.session.name),
+  });
+  useSidebarHoverCardTrigger(props.containerRef, hoverCard);
+
+  return hoverCard.renderHoverCard(
+    <SessionHoverCardContent
+      session={props.session}
+      status={props.status}
+      locale={props.locale}
+    />,
+  );
+});
+
+function SessionHoverCardDescription(props: {
+  id: string;
+  session: SessionSummary;
+  status: string;
+  locale: UiLocale;
+}) {
+  const conversationCopy = getConversationCopy(props.locale);
+  const copy = getSessionHoverCardCopy(props.locale);
+  const session = props.session;
+  const permission = conversationCopy.permissions.mode[session.permissionMode].label;
+  const description = [
+    props.status,
+    session.lastMessagePreview || copy.noMessages,
+    session.model,
+    permission,
+    session.cwd,
+    session.lastMessageAt
+      ? `${copy.updated} ${formatAbsoluteTimestamp(session.lastMessageAt, props.locale)}`
+      : undefined,
+  ]
+    .filter((value): value is string => Boolean(value))
+    .join(' · ');
+
+  return <span id={props.id} className="maka-visually-hidden" aria-label={description} />;
+}
+
+function SessionHoverCardContent(props: {
+  session: SessionSummary;
+  status: string;
+  locale: UiLocale;
+}) {
+  const conversationCopy = getConversationCopy(props.locale);
+  const copy = getSessionHoverCardCopy(props.locale);
+  const session = props.session;
+  const permission = conversationCopy.permissions.mode[session.permissionMode].label;
+
+  return (
+    <span className="maka-sidebar-hover-card" data-kind="session">
+      <span className="maka-sidebar-hover-card-title">{session.name}</span>
+      <span
+        className="maka-sidebar-hover-card-preview"
+        data-empty={session.lastMessagePreview ? undefined : 'true'}
+      >
+        {session.lastMessagePreview || copy.noMessages}
+      </span>
+      <span className="maka-sidebar-hover-card-meta">
+        <span>{props.status}</span>
+        <span aria-hidden="true">·</span>
+        <span>{session.model}</span>
+        <span aria-hidden="true">·</span>
+        <span>{permission}</span>
+      </span>
+      {session.cwd ? (
+        <span className="maka-sidebar-hover-card-path" title={session.cwd}>
+          {session.cwd}
+        </span>
+      ) : null}
+      {session.lastMessageAt ? (
+        <span className="maka-sidebar-hover-card-updated">
+          {copy.updated}{' '}
+          <RelativeTime ts={session.lastMessageAt} />
+          <span className="maka-visually-hidden">
+            {formatAbsoluteTimestamp(session.lastMessageAt, props.locale)}
+          </span>
+        </span>
+      ) : null}
+    </span>
+  );
+}
+
+function ProjectHoverCardDescription(props: {
+  id: string;
+  project?: ProjectRecord;
+  sessions: readonly SessionSummary[];
+}) {
+  const locale = useUiLocale();
+  const copy = getSessionHoverCardCopy(locale);
+  const runningCount = props.sessions.filter(

Review Comment:
   **[P2] Keep project running totals on the task row's live-state authority.** The task row treats `streamingSessionIds` as the immediate renderer fact and `runningTurnIds` as the Host fact, but this project summary recomputes the count only from `SessionSummary`. On the supported send path, the local streaming set is populated before the next catalog refresh, so the task row already says `Responding` while the project card and its accessible description still report no running task. Could you pass the same streaming fact into the project summary and centralize one predicate/model for both the visible and accessible copy? A regression covering that synchronization window would keep the two views aligned.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] feat(desktop): show project and task details on hover [maka]

Posted by "hqhq1025 (via GitHub)" <gi...@apache.org>.
hqhq1025 commented on code in PR #4310:
URL: https://github.com/apache/maka/pull/4310#discussion_r3891677761


##########
packages/ui/src/session-history-list.tsx:
##########
@@ -391,7 +431,9 @@ const SessionNavRow = memo(function SessionNavRow(props: {
       data-worktree={props.worktree ? 'true' : undefined}
     >
       <SideNavItem
+        ref={hoverCard.ref}

Review Comment:
   **P1 — Keep session switches within the existing rail DOM-write budget.**
   
   Attaching `hoverCard.ref` to every session row makes the ref identity change when the old and new active rows re-render. Astryx then detaches and reattaches its layer ref, removing and re-adding the CSS `anchor-name`; one session switch now produces 18 inline-style writes, while the existing contract allows at most 8. I reproduced the failure 3/3 on this exact head, while the exact base passed 2/2, and the hosted `test` job fails at `apps/desktop/e2e/session-rail-render-contract.spec.ts:228` for the same reason. Please keep the trigger ref stable across selection-only renders or use a shared hover-card controller so selecting a session does not churn the positioning anchor.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] feat(desktop): show project and task details on hover [maka]

Posted by "ARE404 (via GitHub)" <gi...@apache.org>.
ARE404 commented on PR #4310:
URL: https://github.com/apache/maka/pull/4310#issuecomment-5477459886

   Visual evidence from the macOS Electron production renderer build at `eaaf1792c`.
   
   **Task-row hover card**
   <img width="3360" height="1984" alt="task-row-hover-card" src="https://github.com/user-attachments/assets/85f9aaa7-7e65-46df-b8ed-4cf3a2201a19" />
   
   **Project-row hover card**
   <img width="3360" height="1984" alt="project-row-hover-card" src="https://github.com/user-attachments/assets/9ddc3643-4f8d-4144-8446-ef8464010f1d" />
   
   **Keyboard-focus state (same task card)**
   <img width="3360" height="1984" alt="task-row-keyboard-focus" src="https://github.com/user-attachments/assets/338fe595-6d0f-4121-9c5c-14c1356dbe49" />
   
   Validation: 278/278 UI tests, Desktop typecheck and architecture checks, plus 5/5 Electron sidebar/rail interaction tests.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] feat(desktop): show project and task details on hover [maka]

Posted by "ARE404 (via GitHub)" <gi...@apache.org>.
ARE404 commented on code in PR #4310:
URL: https://github.com/apache/maka/pull/4310#discussion_r3895676997


##########
packages/ui/src/session-history-list.tsx:
##########
@@ -341,10 +388,49 @@ function ProjectNavRow(props: {
           <VStack gap={0.5}>{props.sessions.map((session) => props.renderSession(session))}</VStack>
         ) : undefined}
       </SideNavItem>
+      <ProjectHoverCardDescription
+        id={hoverDescriptionId}
+        project={props.project}
+        sessions={props.sessions}
+      />
+      <ProjectHoverCardLayer
+        containerRef={containerRef}
+        label={props.label}
+        project={props.project}
+        sessions={props.sessions}
+      />
     </div>
   );
 }
 
+const ProjectHoverCardLayer = memo(function ProjectHoverCardLayer(props: {
+  containerRef: RefObject<HTMLElement | null>;
+  label: string;
+  project?: ProjectRecord;
+  sessions: SessionSummary[];
+}) {
+  const locale = useUiLocale();
+  const copy = getSessionHoverCardCopy(locale);
+  const hoverCard = useHoverCard({
+    placement: 'end',
+    alignment: 'start',
+    delay: SIDEBAR_HOVER_CARD_DELAY_MS,
+    hideDelay: SIDEBAR_HOVER_CARD_HIDE_DELAY_MS,
+    focusTrigger: 'always',
+    label: copy.projectDetailsLabel(props.label),

Review Comment:
   Fixed in 64f89c47f. Synthetic buckets now use localized group-specific popup copy ( / ), while real projects keep project-specific copy. Added copy coverage in both locales and an Electron assertion against the actual named  opened from the ungrouped row.



##########
packages/ui/src/session-history-list.tsx:
##########
@@ -464,6 +572,207 @@ const SessionNavRow = memo(function SessionNavRow(props: {
   );
 });
 
+const SessionHoverCardLayer = memo(function SessionHoverCardLayer(props: {
+  containerRef: RefObject<HTMLElement | null>;
+  session: SessionSummary;
+  status: string;
+  locale: UiLocale;
+}) {
+  const copy = getSessionHoverCardCopy(props.locale);
+  const hoverCard = useHoverCard({
+    placement: 'end',
+    alignment: 'start',
+    delay: SIDEBAR_HOVER_CARD_DELAY_MS,
+    hideDelay: SIDEBAR_HOVER_CARD_HIDE_DELAY_MS,
+    focusTrigger: 'always',
+    label: copy.sessionDetailsLabel(props.session.name),
+  });
+  useSidebarHoverCardTrigger(props.containerRef, hoverCard);
+
+  return hoverCard.renderHoverCard(
+    <SessionHoverCardContent
+      session={props.session}
+      status={props.status}
+      locale={props.locale}
+    />,
+  );
+});
+
+function SessionHoverCardDescription(props: {
+  id: string;
+  session: SessionSummary;
+  status: string;
+  locale: UiLocale;
+}) {
+  const conversationCopy = getConversationCopy(props.locale);
+  const copy = getSessionHoverCardCopy(props.locale);
+  const session = props.session;
+  const permission = conversationCopy.permissions.mode[session.permissionMode].label;
+  const description = [
+    props.status,
+    session.lastMessagePreview || copy.noMessages,
+    session.model,
+    permission,
+    session.cwd,
+    session.lastMessageAt
+      ? `${copy.updated} ${formatAbsoluteTimestamp(session.lastMessageAt, props.locale)}`
+      : undefined,
+  ]
+    .filter((value): value is string => Boolean(value))
+    .join(' · ');
+
+  return <span id={props.id} className="maka-visually-hidden" aria-label={description} />;
+}
+
+function SessionHoverCardContent(props: {
+  session: SessionSummary;
+  status: string;
+  locale: UiLocale;
+}) {
+  const conversationCopy = getConversationCopy(props.locale);
+  const copy = getSessionHoverCardCopy(props.locale);
+  const session = props.session;
+  const permission = conversationCopy.permissions.mode[session.permissionMode].label;
+
+  return (
+    <span className="maka-sidebar-hover-card" data-kind="session">
+      <span className="maka-sidebar-hover-card-title">{session.name}</span>
+      <span
+        className="maka-sidebar-hover-card-preview"
+        data-empty={session.lastMessagePreview ? undefined : 'true'}
+      >
+        {session.lastMessagePreview || copy.noMessages}
+      </span>
+      <span className="maka-sidebar-hover-card-meta">
+        <span>{props.status}</span>
+        <span aria-hidden="true">·</span>
+        <span>{session.model}</span>
+        <span aria-hidden="true">·</span>
+        <span>{permission}</span>
+      </span>
+      {session.cwd ? (
+        <span className="maka-sidebar-hover-card-path" title={session.cwd}>
+          {session.cwd}
+        </span>
+      ) : null}
+      {session.lastMessageAt ? (
+        <span className="maka-sidebar-hover-card-updated">
+          {copy.updated}{' '}
+          <RelativeTime ts={session.lastMessageAt} />
+          <span className="maka-visually-hidden">
+            {formatAbsoluteTimestamp(session.lastMessageAt, props.locale)}
+          </span>
+        </span>
+      ) : null}
+    </span>
+  );
+}
+
+function ProjectHoverCardDescription(props: {
+  id: string;
+  project?: ProjectRecord;
+  sessions: readonly SessionSummary[];
+}) {
+  const locale = useUiLocale();
+  const copy = getSessionHoverCardCopy(locale);
+  const runningCount = props.sessions.filter(

Review Comment:
   Fixed in 64f89c47f.  now reaches each project row, and task rows plus project summaries share , including the renderer-local send-to-catalog window, Runtime Host turn ids, attention precedence, and persisted-running fallback. The project hover summary is constructed once and consumed by both the visible card and stable accessible description. Added an SSR regression where the task says  from local streaming while Host turn ids are explicitly empty; the project description now reports  in the same render.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] feat(desktop): show project and task details on hover [maka]

Posted by "me2seeks (via GitHub)" <gi...@apache.org>.
me2seeks commented on PR #4310:
URL: https://github.com/apache/maka/pull/4310#issuecomment-5476629313

   **Visual evidence requested**
   
   This PR changes user-facing sidebar behavior and currently has no screenshots or recording. Please add at least:
   
   - a task-row hover card;
   - a project-row hover card;
   - ideally, the keyboard-focus state showing the same card.
   
   This is review evidence for the UI change, separate from the accessibility issue above.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] feat(desktop): show project and task details on hover [maka]

Posted by "ARE404 (via GitHub)" <gi...@apache.org>.
ARE404 commented on code in PR #4310:
URL: https://github.com/apache/maka/pull/4310#discussion_r3892955936


##########
packages/ui/src/session-history-list.tsx:
##########
@@ -391,7 +431,9 @@ const SessionNavRow = memo(function SessionNavRow(props: {
       data-worktree={props.worktree ? 'true' : undefined}
     >
       <SideNavItem
+        ref={hoverCard.ref}

Review Comment:
   Fixed in 92cebd2d6. The hover controller now lives in a memoized sibling layer, so opening/closing the lazy layer no longer re-renders the SessionNavRow buttons. Its positioning ref is attached once outside SideNavItem’s merged ref; interaction listeners can still follow the latest callback. The row keeps a stable useId-based aria-describedby link to the card content. The exact rail contract went from 18 style writes to 4 (budget <= 8), and the combined rail/sidebar Playwright set passes 5/5. UI tests pass 278/278, desktop typecheck passes, and the architecture suite passes 62/62.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] feat(desktop): show project and task details on hover [maka]

Posted by "ARE404 (via GitHub)" <gi...@apache.org>.
ARE404 commented on code in PR #4310:
URL: https://github.com/apache/maka/pull/4310#discussion_r3894342632


##########
packages/ui/src/session-history-list.tsx:
##########
@@ -392,6 +485,7 @@ const SessionNavRow = memo(function SessionNavRow(props: {
     >
       <SideNavItem
         label={props.session.name}
+        aria-describedby={hoverDescriptionId}

Review Comment:
   Follow-up in c948364e3: hosted CI exposed that the stable hidden description duplicated each task preview into DOM text, causing strict Playwright text locators to match both the description and transcript. The description node still stays mounted and resolvable, but now carries its accessible text via `aria-label` with no duplicate text node. Added unit coverage for that invariant and Electron `toHaveAccessibleDescription` assertions for both task and project rows. The exact previously failing skill-draft test now passes; 278 UI tests and 7 affected Electron tests are green locally.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] feat(desktop): show project and task details on hover [maka]

Posted by "ARE404 (via GitHub)" <gi...@apache.org>.
ARE404 commented on code in PR #4310:
URL: https://github.com/apache/maka/pull/4310#discussion_r3893838440


##########
packages/ui/src/session-history-list.tsx:
##########
@@ -392,6 +485,7 @@ const SessionNavRow = memo(function SessionNavRow(props: {
     >
       <SideNavItem
         label={props.session.name}
+        aria-describedby={hoverDescriptionId}

Review Comment:
   Fixed in eaaf1792c. The row-level `aria-describedby` now targets a stable visually-hidden description that is mounted regardless of hover-card visibility; the lazily rendered card is visual-only. I added SSR regressions for both task and project navigation rows that assert every `aria-describedby` token resolves while the card is closed. Verified with all 278 UI tests plus the 5 Electron rail/project interaction tests.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] feat(desktop): show project and task details on hover [maka]

Posted by "me2seeks (via GitHub)" <gi...@apache.org>.
me2seeks commented on code in PR #4310:
URL: https://github.com/apache/maka/pull/4310#discussion_r3893340430


##########
packages/ui/src/session-history-list.tsx:
##########
@@ -392,6 +485,7 @@ const SessionNavRow = memo(function SessionNavRow(props: {
     >
       <SideNavItem
         label={props.session.name}
+        aria-describedby={hoverDescriptionId}

Review Comment:
   **P2 — Avoid a dangling `aria-describedby` on every closed row.**
   
   `aria-describedby={hoverDescriptionId}` is rendered on the `SideNavItem` unconditionally, but `SessionHoverCardLayer` is backed by Astryx `useHoverCard` with `lazyMount: true`. While the card is closed, `renderHoverCard()` renders only its `<template>` sentinel; the element carrying `id={descriptionId}` is not in the DOM. Consequently every session row initially exposes an `aria-describedby` token that resolves to no element, and keyboard/assistive-technology focus reaches a dangling description reference until the card has been opened.
   
   The current test only asserts that the attribute exists, so it would pass this failure. Please either keep a stable hidden description node mounted outside the lazy layer, or only add the reference while the described node is mounted, and add an assertion that every `aria-describedby` token resolves. The same pattern is also used by `ProjectNavRow`, so the fix should cover both row types.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] feat(desktop): show project and task details on hover [maka]

Posted by "ARE404 (via GitHub)" <gi...@apache.org>.
ARE404 merged PR #4310:
URL: https://github.com/apache/maka/pull/4310


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org