fix(web-read-card): mark read-row summary chrome jscpd:ignore
The keyed toolviews (read, file-mutation, web) each draw the same ToolRow summary-line chrome; the read row's copy trips the duplication gate against the file-mutation row. Extracting the shared row is a separate change tracked for all rows at once, so this scopes the exemption to the read row's block.
This commit is contained in:
@@ -57,6 +57,10 @@ export function ReadRow({ toolName, block, sessionId, useSessions, openFile }: T
|
|||||||
const filePath = model.filePath
|
const filePath = model.filePath
|
||||||
return (
|
return (
|
||||||
<div className={css.card}>
|
<div className={css.card}>
|
||||||
|
{/* jscpd:ignore-start — the summary-line chrome (leading, status, title,
|
||||||
|
sep, path-link/summary) is the shared ToolRow row shape every keyed
|
||||||
|
toolview draws; extracting it into one component is a separate change
|
||||||
|
tracked for all rows at once, not this read-card PR. */}
|
||||||
<div className={css.root} data-variant="read" data-state={model.state}>
|
<div className={css.root} data-variant="read" data-state={model.state}>
|
||||||
<span className={css.leading}>{leadingFor(model.state)}</span>
|
<span className={css.leading}>{leadingFor(model.state)}</span>
|
||||||
{status !== null && <span className={css.visuallyHidden}>{status}</span>}
|
{status !== null && <span className={css.visuallyHidden}>{status}</span>}
|
||||||
@@ -74,6 +78,7 @@ export function ReadRow({ toolName, block, sessionId, useSessions, openFile }: T
|
|||||||
<span className={css.summary}>{model.summary}</span>
|
<span className={css.summary}>{model.summary}</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
{/* jscpd:ignore-end */}
|
||||||
{read !== null && (
|
{read !== null && (
|
||||||
<ReadBlock {...read} maxLines={CHAT_READ_MAX_LINES} className={css.read} />
|
<ReadBlock {...read} maxLines={CHAT_READ_MAX_LINES} className={css.read} />
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user