feat: steadier live updates and notices for public proposals
- The web pings the live connection, reconnects when it goes quiet and reloads what each screen shows after reconnecting. - Dropping a card on a column it cannot go to puts it back. - Owners and admins get a notice when a proposal arrives. - The proposal limit lives in Redis, so it holds across instances. - REST tells whether I voted; pasted images leave the attachment list. - Deleting a project removes its Git integration; no lint warnings left. - Reactions and the blocked badge are components of their own. - Docs: what is done and what is left (chapter 10), Word and PDF. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -562,102 +562,6 @@ a.ts-key {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
// Waiting for other tickets: shown next to the key, with links to them.
|
||||
.ts-blocked {
|
||||
display: inline-flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.375rem;
|
||||
align-items: center;
|
||||
padding: 0.125rem 0.5rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--ts-c-red, #d33) 12%, transparent);
|
||||
color: var(--ts-c-red, var(--ts-ink));
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
.ts-key {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
// 👍 2 · 🎉 1 · (+)
|
||||
.ts-reactions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.375rem;
|
||||
align-items: center;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
.ts-reaction {
|
||||
display: inline-flex;
|
||||
gap: 0.25rem;
|
||||
align-items: center;
|
||||
// @pi/ui styles every <button> too specifically to override otherwise.
|
||||
min-width: 0 !important;
|
||||
height: auto !important;
|
||||
padding: 0.125rem 0.5rem !important;
|
||||
border: 1px solid var(--ts-line) !important;
|
||||
border-radius: 999px !important;
|
||||
background: var(--ts-surface);
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
font-size: 0.875rem;
|
||||
cursor: pointer;
|
||||
.ts-mono {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
&.is-mine {
|
||||
border-color: var(--ts-brand) !important;
|
||||
background: color-mix(in srgb, var(--ts-brand) 12%, var(--ts-surface));
|
||||
}
|
||||
&:disabled {
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
.ts-reaction-picker {
|
||||
position: relative;
|
||||
summary {
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
width: 1.75rem;
|
||||
height: 1.625rem;
|
||||
border: 1px dashed var(--ts-line-strong, var(--ts-line));
|
||||
border-radius: 999px;
|
||||
color: var(--ts-muted);
|
||||
cursor: pointer;
|
||||
list-style: none;
|
||||
&::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.ts-reaction-picker__menu {
|
||||
position: absolute;
|
||||
z-index: 5;
|
||||
bottom: calc(100% + 0.375rem);
|
||||
left: 0;
|
||||
display: flex;
|
||||
gap: 0.125rem;
|
||||
padding: 0.25rem;
|
||||
border: 1px solid var(--ts-line);
|
||||
border-radius: 0.75rem;
|
||||
background: var(--ts-surface);
|
||||
box-shadow: 0 8px 24px rgb(0 0 0 / 14%);
|
||||
button {
|
||||
width: 2rem;
|
||||
min-width: 0 !important;
|
||||
height: 2rem;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
border-radius: 0.5rem !important;
|
||||
background: none;
|
||||
font-size: 1.125rem;
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
background: color-mix(in srgb, var(--ts-brand) 12%, transparent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ts-votes {
|
||||
padding: 0.25rem 0.625rem;
|
||||
border: 1px solid var(--ts-line);
|
||||
|
||||
Reference in New Issue
Block a user