Remove workflow status and applied badges from prompt list rows
Hop-State: A_06FN8B5GK9Y3VWERRMHH2TG Hop-Proposal: R_06FN8B3NXSJ3E1VPF5D6HGR Hop-Task: T_06FN8AQZVAWJTS4TD5JA6M8 Hop-Attempt: AT_06FN8AQZVBA6RDJ1184ZC20
This commit is contained in:
@@ -114,50 +114,6 @@
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.hop-prompt__status {
|
||||
align-items: center;
|
||||
color: var(--color-text-light-2);
|
||||
display: inline-flex;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.hop-prompt__status-icon {
|
||||
align-items: center;
|
||||
background: var(--color-green);
|
||||
border-radius: 50%;
|
||||
color: var(--color-body);
|
||||
display: inline-flex;
|
||||
font-size: 0.65rem;
|
||||
font-weight: 700;
|
||||
height: 1rem;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
width: 1rem;
|
||||
}
|
||||
|
||||
.hop-prompt__status:not([data-status="completed"])::before {
|
||||
background: var(--color-text-light-3);
|
||||
border-radius: 50%;
|
||||
content: "";
|
||||
height: 0.45rem;
|
||||
width: 0.45rem;
|
||||
}
|
||||
|
||||
.hop-prompt__status[data-status="failed"]::before { background: var(--color-red); }
|
||||
.hop-prompt__status[data-status="cancelled"]::before { background: var(--color-orange); }
|
||||
.hop-prompt__status[data-status="running"]::before { background: var(--color-primary); }
|
||||
|
||||
.hop-prompt__applied {
|
||||
border: 1px solid var(--color-secondary-dark-2);
|
||||
border-radius: var(--border-radius);
|
||||
color: var(--color-text);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.4;
|
||||
margin: 0 0.55rem;
|
||||
padding: 0.05rem 0.38rem;
|
||||
}
|
||||
|
||||
.hop-prompt__body {
|
||||
border-top: 1px solid var(--color-secondary);
|
||||
display: grid;
|
||||
|
||||
@@ -244,17 +244,6 @@
|
||||
const request = makeElement('div', 'hop-prompt__request', prompt.prompt);
|
||||
request.title = prompt.prompt;
|
||||
const meta = makeElement('div', 'hop-prompt__meta');
|
||||
const rawStatus = prompt.status || 'running';
|
||||
const successful = rawStatus === 'completed' || rawStatus === 'accepted';
|
||||
const status = makeElement('span', 'hop-prompt__status', successful ? 'Completed' : rawStatus);
|
||||
status.dataset.status = successful ? 'completed' : rawStatus;
|
||||
if (successful) status.prepend(makeElement('span', 'hop-prompt__status-icon', '✓'));
|
||||
meta.append(status);
|
||||
if (rawStatus === 'accepted') {
|
||||
const applied = makeElement('span', 'hop-prompt__applied', 'Applied');
|
||||
applied.title = 'This prompt\'s changes were accepted into the shared repository state';
|
||||
meta.append(applied);
|
||||
}
|
||||
const agent = [prompt.agent_name, prompt.agent_model].filter(Boolean).join(' · ');
|
||||
meta.append(document.createTextNode(agent || formatTime(prompt.created_at)));
|
||||
summary.append(request, meta);
|
||||
|
||||
Reference in New Issue
Block a user