Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

feat(pipeline): show Verify Arc scope as a hover tooltip (#456)

[._.]/ Adam Eivy580603ed3025
diff --git a/client/src/components/pipeline/ArcCanvas.jsx b/client/src/components/pipeline/ArcCanvas.jsx
index d21489202a..37abac17f9 100644
--- a/client/src/components/pipeline/ArcCanvas.jsx
+++ b/client/src/components/pipeline/ArcCanvas.jsx
@@ -111,6 +111,30 @@ function VerifyScopeHint({ scope }) {
);
}
+// Hover-revealed tooltip variant — anchors below a parent with the `group`
+// class. Use this when the scope hint should sit on the button itself
+// instead of taking up vertical space in the layout. The `id` is exposed so
+// the triggering button can wire `aria-describedby` for screen readers.
+function VerifyScopeTooltip({ scope, id }) {
+ return (
+ <div
+ id={id}
+ role="tooltip"
+ className="absolute top-full right-0 mt-2 w-80 max-w-[calc(100vw-2rem)] bg-port-card border border-port-border rounded-lg shadow-lg p-3 z-30 opacity-0 invisible group-hover:opacity-100 group-hover:visible group-focus-within:opacity-100 group-focus-within:visible transition-opacity pointer-events-none text-left normal-case tracking-normal"
+ >
+ <p className="text-[10px] text-gray-300 font-medium mb-1 flex items-center gap-1">
+ <Info size={10} /> What this checks
+ </p>
+ <p className="text-[10px] text-gray-400 italic mb-2">{scope.depth}</p>
+ <ul className="list-disc pl-4 space-y-0.5 text-[10px] text-gray-400">
+ {scope.checks.map((c) => (
+ <li key={c}>{c}</li>
+ ))}
+ </ul>
+ </div>
+ );
+}
+
export default function ArcCanvas({ series, issues, onSeriesUpdate, onIssuesUpdate, onFlushPending }) {
const seasons = series.seasons || [];
// Stale seasonIds (e.g. after a verify-resolve season rewrite) bucket under
@@ -340,16 +364,19 @@ function ArcHeader({ series, onSeriesUpdate, onIssuesUpdate, onFlushPending }) {
{generateBtnLabel}
</button>
{hasGeneratedArc ? (
- <button
- type="button"
- onClick={runVerify}
- disabled={!!running}
- className="inline-flex items-center gap-1.5 px-3 py-1.5 rounded text-sm font-medium border bg-port-bg text-gray-300 border-port-border hover:border-port-accent/40 disabled:opacity-40"
- title="Cross-volume continuity pass at synopsis depth"
- >
- {running === 'verify' ? <Loader2 size={14} className="animate-spin" /> : <ShieldCheck size={14} />}
- Verify arc
- </button>
+ <div className="relative group">
+ <button
+ type="button"
+ onClick={runVerify}
+ disabled={!!running}
+ aria-describedby="verify-arc-scope-tooltip"
+ className="inline-flex items-center gap-1.5 px-3 py-1.5 rounded text-sm font-medium border bg-port-bg text-gray-300 border-port-border hover:border-port-accent/40 disabled:opacity-40"
+ >
+ {running === 'verify' ? <Loader2 size={14} className="animate-spin" /> : <ShieldCheck size={14} />}
+ Verify arc
+ </button>
+ <VerifyScopeTooltip scope={VERIFY_ARC_SCOPE} id="verify-arc-scope-tooltip" />
+ </div>
) : null}
</div>
</div>
@@ -383,8 +410,6 @@ function ArcHeader({ series, onSeriesUpdate, onIssuesUpdate, onFlushPending }) {
</div>
) : null}
- {hasGeneratedArc ? <VerifyScopeHint scope={VERIFY_ARC_SCOPE} /> : null}
-
{arc ? (
<ArcContent series={series} onSeriesUpdate={onSeriesUpdate} />
) : (