mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-26 18:35:33 +01:00
## Thinking Path > - Paperclip helps people manage work that agents do. > - The inbox tells a person which tasks need a decision. > - A provider usage limit can stop several attempts on one task or affect several tasks. > - Separate failure cards made it hard to tell which tasks still needed attention. > - This change groups failures using the account, reset time, or retry links that Paperclip can verify. > - A person can now see which task to retry, which tasks are waiting, and which ones recovered. ## Linked Issues or Issue Description **What existing behavior does this improve?** It improves the Coordinator inbox when a provider limits usage. **Current behavior** Repeated run failures can fill the inbox. Resolved failures can still appear beside open decisions. **Proposed behavior** Show personal actions in Needs you, automatic retries and snoozes in Waiting, and past events in History. Keep an archived retry chain hidden during automatic attempts. Return it to Needs you when a person must act. **Additional context** Related work includes #18020 on completed tasks, #9704 on archive behavior, and #21570 on usage limits in chat. ## What Changed - Group verified account and reset windows. When that evidence is missing, count linked attempts per task and show the tasks in a collapsible group. - Separate the reported reset time from each task’s retry schedule. Keep unresolved ownership recoveries visible after task closure. Use persisted native retry requests to preserve the original archive and increment the attempt count. - Keep personal archive in the card menu. Put decision receipts and run logs in History. - Align inbox filters, tabs, and history. Share empty-state artwork and placement across Inbox, Goals, Routines, and Secrets. - Index run-history pages and resumed-work lookups, and rate-limit history requests per company and viewer. Add synthetic fixtures for both grouping paths and a manual walkthrough. ## Verification - The author and a human tester completed the synthetic retry-chain walkthrough. Chromium also verified archive, repeat failure, exhaustion, and recovery. - The 64 focused server tests and the UI and server typechecks passed before rebasing. See `doc/testing/coordinator-inbox-test-drive.md` to repeat the manual checks. - The shared SDK input check and all 64 focused server tests passed after rebasing. The OpenAPI suite (59 tests), API catalog suite (2,309 tests), and both demo seed paths passed locally after the CI fixes. - The affected inbox and native-runtime suites passed locally after merging the upstream conformance test fix in #22854. The browser access-denial scenarios passed three runs each for 403 and 404. - The migration checks and 79 focused tests passed, including an index-plan regression with 5,000 unrelated runs. The migration and query plan were reverified after renumbering. [Full CI on `cf52b80161`](https://github.com/paperclipai/paperclip/actions/runs/45529834793) passed after rerunning a timed-out server shard. ## Risks The attention feed reads retry ancestry. Long chains can increase query cost. Task and company checks bound the traversal, and cycle detection stops repeated visits. Providers that omit the reset time leave the card with an unknown reset. Migration 0508 adds two indexes concurrently. Each run-history page returns at most 100 records. ## Model Used OpenAI Codex, GPT-6 family, with repository editing, local test execution, and browser verification. ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [x] All Paperclip CI gates are green - [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge --------- Co-authored-by: Scott Tong <scott@scotts-mbp-m5-max.local> Co-authored-by: Paperclip <noreply@paperclip.ing>
546 lines
19 KiB
TypeScript
546 lines
19 KiB
TypeScript
import { useId, useMemo, useState } from "react";
|
||
import { useQueries, useQuery } from "@tanstack/react-query";
|
||
import { Link } from "react-router-dom";
|
||
import { Inbox, Loader2 } from "lucide-react";
|
||
import type {
|
||
CompanySecretProviderConfig,
|
||
SecretProposalStatus,
|
||
SecretProposalView,
|
||
} from "@paperclipai/shared";
|
||
import { AgentAvatar } from "@/components/AgentAvatar";
|
||
import { QueryErrorState, useQueryView } from "@/components/QueryView";
|
||
import { Button } from "@/components/ui/button";
|
||
import { Checkbox } from "@/components/ui/checkbox";
|
||
import { Input } from "@/components/ui/input";
|
||
import { NativeSelect } from "@/components/ui/select";
|
||
import { secretsApi } from "../../api/secrets";
|
||
import { queryKeys } from "../../lib/queryKeys";
|
||
import { deliveryModeForConfigPath } from "../../lib/secret-delivery";
|
||
import { cn, relativeTime } from "../../lib/utils";
|
||
import { EmptyState } from "../../components/EmptyState";
|
||
import {
|
||
FingerprintChip,
|
||
ProposalJustification,
|
||
bindingEnvKey,
|
||
bindingSecretLabel,
|
||
useProposalDecision,
|
||
} from "./proposal-review";
|
||
|
||
const DECIDED_STATUSES = ["approved", "rejected", "expired"] as const satisfies readonly SecretProposalStatus[];
|
||
const DECIDED_LIMIT = 10;
|
||
|
||
/** ISO expiry → "Expires in 12d" / "Expires in 5h" / "Expired". */
|
||
function expiryLabel(expiresAt: string): { text: string; urgent: boolean } | null {
|
||
const ms = new Date(expiresAt).getTime() - Date.now();
|
||
if (Number.isNaN(ms)) return null;
|
||
if (ms <= 0) return { text: "Expired", urgent: true };
|
||
const hours = Math.floor(ms / 3_600_000);
|
||
if (hours < 24) return { text: `Expires in ${hours}h`, urgent: true };
|
||
const days = Math.floor(hours / 24);
|
||
return { text: `Expires in ${days}d`, urgent: days <= 2 };
|
||
}
|
||
|
||
/** Trim a typed secret name and drop stray leading/trailing slashes. */
|
||
function normalizeSecretName(value: string): string {
|
||
return value.trim().replace(/^\/+|\/+$/g, "");
|
||
}
|
||
|
||
/** "<Agent> wants to save a new secret, <Name>" and its access equivalents. */
|
||
function RequestSentence({ proposal }: { proposal: SecretProposalView }) {
|
||
const proposer = <span className="font-medium">{proposal.proposedBy.name}</span>;
|
||
if (proposal.kind === "secret") {
|
||
return (
|
||
<>
|
||
{proposer} wants to save a new secret,{" "}
|
||
<span className="break-all font-medium">{proposal.proposedName ?? "unnamed"}</span>
|
||
</>
|
||
);
|
||
}
|
||
const secret = <span className="break-all font-medium">{bindingSecretLabel(proposal).name}</span>;
|
||
if (proposal.target && proposal.target.id !== proposal.proposedBy.id) {
|
||
return (
|
||
<>
|
||
{proposer} wants <span className="font-medium">{proposal.target.name}</span> to use {secret}
|
||
</>
|
||
);
|
||
}
|
||
return (
|
||
<>
|
||
{proposer} wants to use {secret}
|
||
</>
|
||
);
|
||
}
|
||
|
||
/** One line saying how an approved secret would reach the agent. */
|
||
function DeliveryLine({ proposal }: { proposal: SecretProposalView }) {
|
||
const mode = deliveryModeForConfigPath(proposal.configPath);
|
||
const alias = bindingEnvKey(proposal);
|
||
const code = <code className="font-mono text-foreground">{alias}</code>;
|
||
const agent = proposal.target?.name ?? "the agent";
|
||
return (
|
||
<p className="text-xs text-muted-foreground">
|
||
{mode === "env" ? (
|
||
<>It would be available in {agent}’s runs as the environment variable {code}.</>
|
||
) : mode === "api" ? (
|
||
<>{agent} could ask for it during a run as {code}. It is never written to the environment.</>
|
||
) : (
|
||
<>It would be provided through {agent}’s settings.</>
|
||
)}{" "}
|
||
Access is granted with your permissions.
|
||
</p>
|
||
);
|
||
}
|
||
|
||
function PendingProposal({
|
||
proposal,
|
||
companyId,
|
||
vaults,
|
||
readAs,
|
||
}: {
|
||
proposal: SecretProposalView;
|
||
companyId: string;
|
||
/** Vaults a new secret can be stored in. */
|
||
vaults: CompanySecretProviderConfig[];
|
||
/** Environment variable names that pending access requests would expose this new secret as. */
|
||
readAs: string[];
|
||
}) {
|
||
const fieldId = useId();
|
||
const isSecret = proposal.kind === "secret";
|
||
const canDecide = proposal.viewerCanApprove;
|
||
const defaultVaultId = vaults.find((vault) => vault.isDefault)?.id ?? "";
|
||
|
||
const [name, setName] = useState(proposal.proposedName ?? "");
|
||
const [description, setDescription] = useState(proposal.proposedDescription ?? "");
|
||
const [editingDescription, setEditingDescription] = useState(Boolean(proposal.proposedDescription));
|
||
// "" stores the secret in the default vault.
|
||
const [vaultId, setVaultId] = useState(defaultVaultId);
|
||
// Access to a secret that is itself still waiting can only be approved together with it.
|
||
const needsSecret = Boolean(proposal.secretProposalId);
|
||
const [alsoSaveSecret, setAlsoSaveSecret] = useState(needsSecret);
|
||
const [rejecting, setRejecting] = useState(false);
|
||
const [reason, setReason] = useState("");
|
||
|
||
const decision = useProposalDecision(companyId);
|
||
const expiry = expiryLabel(proposal.expiresAt);
|
||
const secretName = normalizeSecretName(name);
|
||
const secretLabel = bindingSecretLabel(proposal).name;
|
||
|
||
const approve = () => {
|
||
decision.clearError();
|
||
if (isSecret) {
|
||
decision.approve(proposal, {
|
||
overrides: {
|
||
name: secretName,
|
||
description: description.trim() || null,
|
||
providerConfigId: vaultId || null,
|
||
},
|
||
});
|
||
return;
|
||
}
|
||
decision.approve(proposal, { cascade: alsoSaveSecret || undefined });
|
||
};
|
||
|
||
return (
|
||
<li className="flex flex-col gap-3 px-3 py-4" data-testid={`proposal-${proposal.id}`}>
|
||
<div className="flex items-start gap-3">
|
||
<AgentAvatar agent={proposal.proposedBy} size={32} />
|
||
<div className="flex min-w-0 flex-col gap-0.5">
|
||
<p className="text-sm">
|
||
<RequestSentence proposal={proposal} />
|
||
</p>
|
||
<p className="text-xs text-muted-foreground">
|
||
{proposal.originIssue ? (
|
||
<>
|
||
While working on{" "}
|
||
<Link
|
||
to={`/issues/${proposal.originIssue.key}`}
|
||
className="hover:text-foreground hover:underline"
|
||
>
|
||
“{proposal.originIssue.title}”
|
||
</Link>
|
||
{" · "}
|
||
</>
|
||
) : null}
|
||
{relativeTime(proposal.createdAt)}
|
||
{expiry ? (
|
||
<>
|
||
{" · "}
|
||
<span className={cn(expiry.urgent && "font-medium text-foreground")}>{expiry.text}</span>
|
||
</>
|
||
) : null}
|
||
</p>
|
||
</div>
|
||
</div>
|
||
|
||
<ProposalJustification variant="quote" justification={proposal.justification} />
|
||
|
||
{isSecret ? (
|
||
<div className="flex flex-col gap-3">
|
||
<div className="flex flex-wrap items-end gap-3">
|
||
<label
|
||
htmlFor={`${fieldId}-name`}
|
||
className="flex min-w-48 flex-1 flex-col gap-1.5 text-sm font-medium"
|
||
>
|
||
Name
|
||
<Input
|
||
id={`${fieldId}-name`}
|
||
value={name}
|
||
onChange={(event) => setName(event.target.value)}
|
||
disabled={!canDecide || decision.isBusy}
|
||
aria-invalid={!secretName}
|
||
className="font-mono"
|
||
/>
|
||
</label>
|
||
{vaults.length + (defaultVaultId ? 0 : 1) > 1 ? (
|
||
<label
|
||
htmlFor={`${fieldId}-vault`}
|
||
className="flex flex-col gap-1.5 text-sm font-medium"
|
||
>
|
||
Stored in
|
||
<NativeSelect
|
||
id={`${fieldId}-vault`}
|
||
value={vaultId}
|
||
onChange={(event) => setVaultId(event.target.value)}
|
||
disabled={!canDecide || decision.isBusy}
|
||
className="font-normal"
|
||
>
|
||
{defaultVaultId ? null : <option value="">Paperclip</option>}
|
||
{vaults.map((vault) => (
|
||
<option key={vault.id} value={vault.id}>
|
||
{vault.displayName}
|
||
</option>
|
||
))}
|
||
</NativeSelect>
|
||
</label>
|
||
) : null}
|
||
</div>
|
||
|
||
{editingDescription ? (
|
||
<label
|
||
htmlFor={`${fieldId}-description`}
|
||
className="flex flex-col gap-1.5 text-sm font-medium"
|
||
>
|
||
Description
|
||
<Input
|
||
id={`${fieldId}-description`}
|
||
value={description}
|
||
onChange={(event) => setDescription(event.target.value)}
|
||
disabled={!canDecide || decision.isBusy}
|
||
placeholder="Optional"
|
||
className="font-normal"
|
||
/>
|
||
</label>
|
||
) : canDecide ? (
|
||
<Button
|
||
type="button"
|
||
variant="link"
|
||
size="sm"
|
||
className="h-auto self-start p-0 text-xs text-muted-foreground"
|
||
onClick={() => setEditingDescription(true)}
|
||
>
|
||
Add a description
|
||
</Button>
|
||
) : null}
|
||
|
||
<p className="text-xs text-muted-foreground">
|
||
{readAs.length > 0 ? (
|
||
<>
|
||
Agents given access will read it as{" "}
|
||
{readAs.map((key, index) => (
|
||
<span key={key}>
|
||
{index > 0 ? ", " : null}
|
||
<code className="font-mono text-foreground">{key}</code>
|
||
</span>
|
||
))}
|
||
.{" "}
|
||
</>
|
||
) : null}
|
||
The value stays hidden and is saved exactly as the agent recorded it. Its fingerprint
|
||
lets you confirm it with the agent:{" "}
|
||
<FingerprintChip
|
||
fingerprint={proposal.valueFingerprintSha256}
|
||
length={proposal.valueLength}
|
||
className="align-middle text-foreground"
|
||
/>
|
||
</p>
|
||
</div>
|
||
) : (
|
||
<div className="flex flex-col gap-2">
|
||
<DeliveryLine proposal={proposal} />
|
||
{needsSecret ? (
|
||
<label className="flex items-start gap-2 text-xs text-muted-foreground">
|
||
<Checkbox
|
||
checked={alsoSaveSecret}
|
||
onCheckedChange={(checked) => setAlsoSaveSecret(checked === true)}
|
||
disabled={!canDecide || decision.isBusy}
|
||
aria-label="Also save the new secret"
|
||
/>
|
||
<span>
|
||
<span className="font-medium text-foreground">{secretLabel}</span> is a new secret
|
||
that hasn’t been saved yet. Save it as part of this approval. Access can’t be
|
||
approved without it.
|
||
</span>
|
||
</label>
|
||
) : null}
|
||
</div>
|
||
)}
|
||
|
||
{decision.error ? (
|
||
<p className="text-xs text-destructive" role="alert">
|
||
{decision.error}
|
||
</p>
|
||
) : null}
|
||
|
||
{!canDecide ? (
|
||
<p className="text-sm text-muted-foreground">
|
||
{isSecret
|
||
? "Only organization admins can approve or reject this."
|
||
: `Only people who can change ${proposal.target?.name ?? "this agent"}’s settings can approve or reject this.`}
|
||
</p>
|
||
) : rejecting ? (
|
||
<form
|
||
className="flex flex-col gap-2"
|
||
onSubmit={(event) => {
|
||
event.preventDefault();
|
||
if (!reason.trim()) return;
|
||
decision.clearError();
|
||
decision.reject(proposal, reason);
|
||
}}
|
||
>
|
||
<div className="flex flex-wrap items-center gap-2">
|
||
<Input
|
||
aria-label="Reason for rejecting"
|
||
autoFocus
|
||
required
|
||
className="min-w-48 flex-1"
|
||
placeholder="Tell the agent why"
|
||
value={reason}
|
||
onChange={(event) => setReason(event.target.value)}
|
||
disabled={decision.isBusy}
|
||
/>
|
||
<Button
|
||
type="button"
|
||
variant="ghost"
|
||
size="sm"
|
||
disabled={decision.isBusy}
|
||
onClick={() => {
|
||
setRejecting(false);
|
||
setReason("");
|
||
decision.clearError();
|
||
}}
|
||
>
|
||
Cancel
|
||
</Button>
|
||
<Button
|
||
type="submit"
|
||
variant="destructive"
|
||
size="sm"
|
||
disabled={decision.isBusy || !reason.trim()}
|
||
>
|
||
{decision.rejecting ? "Rejecting…" : "Reject"}
|
||
</Button>
|
||
</div>
|
||
<p className="text-xs text-muted-foreground">
|
||
A reason is required. It is sent to {proposal.proposedBy.name}.
|
||
{isSecret ? " Requests to use this secret are rejected too." : null}
|
||
</p>
|
||
</form>
|
||
) : (
|
||
<div className="flex items-center justify-between gap-3">
|
||
<Button
|
||
variant="ghost"
|
||
size="sm"
|
||
disabled={decision.isBusy}
|
||
onClick={() => {
|
||
decision.clearError();
|
||
setRejecting(true);
|
||
}}
|
||
>
|
||
Reject
|
||
</Button>
|
||
<Button size="sm" disabled={decision.isBusy || (isSecret && !secretName)} onClick={approve}>
|
||
{decision.approving
|
||
? "Approving…"
|
||
: isSecret
|
||
? "Approve and save secret"
|
||
: alsoSaveSecret
|
||
? "Approve access and save secret"
|
||
: "Approve access"}
|
||
</Button>
|
||
</div>
|
||
)}
|
||
</li>
|
||
);
|
||
}
|
||
|
||
function decidedLabel(proposal: SecretProposalView): string {
|
||
const outcome =
|
||
proposal.status === "approved" ? "Approved" : proposal.status === "rejected" ? "Rejected" : "Expired";
|
||
const at = proposal.resolvedAt ?? proposal.createdAt;
|
||
return `${outcome} · ${relativeTime(at)}`;
|
||
}
|
||
|
||
export function ProposalsTab({
|
||
companyId,
|
||
providerConfigs,
|
||
}: {
|
||
companyId: string;
|
||
providerConfigs: CompanySecretProviderConfig[];
|
||
}) {
|
||
const proposalsQuery = useQuery({
|
||
queryKey: queryKeys.secrets.proposals(companyId, "pending"),
|
||
queryFn: () => secretsApi.listProposals(companyId, "pending"),
|
||
enabled: Boolean(companyId),
|
||
});
|
||
const decidedQueries = useQueries({
|
||
queries: DECIDED_STATUSES.map((status) => ({
|
||
queryKey: [...queryKeys.secrets.proposals(companyId, status), "recent"] as const,
|
||
// Ordered by decision time on the server, so the newest decisions are
|
||
// in the page even when the request itself is old.
|
||
queryFn: () => secretsApi.listProposals(companyId, status, { order: "resolved", limit: DECIDED_LIMIT }),
|
||
enabled: Boolean(companyId),
|
||
})),
|
||
});
|
||
|
||
const proposalsView = useQueryView(proposalsQuery);
|
||
const proposals = proposalsQuery.data ?? EMPTY_PROPOSALS;
|
||
|
||
// New secrets first, then access — an approver usually saves the secret
|
||
// before (or alongside) the access requests that depend on it.
|
||
const pending = useMemo(
|
||
() =>
|
||
[...proposals].sort((a, b) => {
|
||
if (a.kind !== b.kind) return a.kind === "secret" ? -1 : 1;
|
||
return a.createdAt.localeCompare(b.createdAt);
|
||
}),
|
||
[proposals],
|
||
);
|
||
|
||
const decidedLoading = decidedQueries.some((query) => query.isPending);
|
||
const decidedFailed = decidedQueries.some((query) => query.isError);
|
||
const decided = decidedQueries
|
||
.flatMap((query, index) =>
|
||
(query.data ?? []).filter((row) => row.status === DECIDED_STATUSES[index]),
|
||
)
|
||
.sort((a, b) => (b.resolvedAt ?? b.createdAt).localeCompare(a.resolvedAt ?? a.createdAt))
|
||
.slice(0, DECIDED_LIMIT);
|
||
|
||
// A new secret can only be stored in an encrypted vault Paperclip manages.
|
||
const vaults = useMemo(
|
||
() =>
|
||
providerConfigs.filter(
|
||
(config) => config.provider === "local_encrypted" && config.status !== "disabled",
|
||
),
|
||
[providerConfigs],
|
||
);
|
||
|
||
if (proposalsView.kind === "error") {
|
||
return (
|
||
<div className="py-4">
|
||
<QueryErrorState
|
||
error={proposalsQuery.error}
|
||
action="load requests"
|
||
onRetry={proposalsView.retry}
|
||
retrying={proposalsView.isFetching}
|
||
/>
|
||
</div>
|
||
);
|
||
}
|
||
|
||
if (
|
||
proposalsQuery.isPending ||
|
||
proposalsView.kind === "reconnecting" ||
|
||
(pending.length === 0 && decidedLoading)
|
||
) {
|
||
return (
|
||
<div className="flex items-center gap-2 py-8 text-sm text-muted-foreground">
|
||
<Loader2 className="size-4 animate-spin" /> Loading requests…
|
||
</div>
|
||
);
|
||
}
|
||
|
||
if (pending.length === 0 && decided.length === 0 && !decidedFailed) {
|
||
return (
|
||
<EmptyState placement="upper"
|
||
icon={Inbox}
|
||
title="Nothing to review"
|
||
message="When an agent asks to save a secret or to use one, the request appears here."
|
||
/>
|
||
);
|
||
}
|
||
|
||
return (
|
||
<div className="flex flex-col gap-6">
|
||
<section aria-label="Waiting for a decision" className="flex flex-col gap-2">
|
||
<p className="max-w-xl text-sm text-muted-foreground">
|
||
Agents ask here before they save a secret or use one they don’t have. Nothing changes
|
||
until you approve.
|
||
</p>
|
||
{pending.length > 0 ? (
|
||
<ul className="divide-y divide-border border-y border-border">
|
||
{pending.map((proposal) => (
|
||
<PendingProposal
|
||
key={proposal.id}
|
||
proposal={proposal}
|
||
companyId={companyId}
|
||
vaults={vaults}
|
||
readAs={
|
||
proposal.kind === "secret"
|
||
? [
|
||
...new Set(
|
||
pending
|
||
.filter(
|
||
(other) =>
|
||
other.secretProposalId === proposal.id &&
|
||
deliveryModeForConfigPath(other.configPath) === "env",
|
||
)
|
||
.map(bindingEnvKey)
|
||
.filter(Boolean),
|
||
),
|
||
]
|
||
: EMPTY_KEYS
|
||
}
|
||
/>
|
||
))}
|
||
</ul>
|
||
) : (
|
||
<p className="border-y border-border px-3 py-4 text-sm text-muted-foreground">
|
||
You’re caught up. No requests are waiting.
|
||
</p>
|
||
)}
|
||
</section>
|
||
|
||
{decided.length > 0 || decidedFailed ? (
|
||
<section aria-label="Recently decided" className="flex flex-col gap-2">
|
||
<h2 className="text-xs font-medium text-muted-foreground">Recently decided</h2>
|
||
{decided.length > 0 ? (
|
||
<ul className="divide-y divide-border border-y border-border">
|
||
{decided.map((proposal) => (
|
||
<li
|
||
key={proposal.id}
|
||
className="flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1 px-3 py-2.5 text-sm"
|
||
>
|
||
<span className="min-w-0 text-muted-foreground">
|
||
<RequestSentence proposal={proposal} />
|
||
</span>
|
||
<span className="shrink-0 text-xs text-muted-foreground">
|
||
{decidedLabel(proposal)}
|
||
</span>
|
||
</li>
|
||
))}
|
||
</ul>
|
||
) : null}
|
||
{decidedFailed ? (
|
||
<p className="text-xs text-muted-foreground">
|
||
Some earlier decisions couldn’t be loaded. Reload the page to try again.
|
||
</p>
|
||
) : null}
|
||
</section>
|
||
) : null}
|
||
</div>
|
||
);
|
||
}
|
||
|
||
const EMPTY_PROPOSALS: SecretProposalView[] = [];
|
||
const EMPTY_KEYS: string[] = [];
|