feat: ask a teammate to review a ticket
«Pedir revisión» on a ticket asks a member (with an optional note): they
are notified and see it under «Te piden revisión» in my work until they
answer «Todo bien» or «Pedir cambios» (with what to change) from the
ticket's Revisiones box; whoever asked hears the answer and can withdraw
an open request. Events of the ticket (requested, answered, cancelled),
so they show in its history and the activity feed. Viewers can be asked
and answer; not oneself, nor twice the same person with one pending.
API: requestReview / answerReview / cancelReview, Issue.reviews,
myIssues(reviewing); POST /api/issues/{issue}/reviews,
POST …/reviews/{id}/answer, DELETE …/reviews/{id}. MCP: request_review,
answer_review, my_issues reviewing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -837,3 +837,92 @@ a.ts-key {
|
||||
color: var(--ts-ink);
|
||||
}
|
||||
}
|
||||
|
||||
/* Reviews asked on the ticket. */
|
||||
.ts-reviews {
|
||||
ul {
|
||||
display: grid;
|
||||
gap: 0.625rem;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
li {
|
||||
padding: 0.625rem 0.875rem;
|
||||
border-left: 3px solid var(--ts-c-amber);
|
||||
border-radius: 0 0.5rem 0.5rem 0;
|
||||
background: color-mix(in srgb, var(--ts-c-amber) 8%, var(--ts-surface));
|
||||
|
||||
&.is-approved {
|
||||
border-left-color: var(--ts-c-green);
|
||||
background: color-mix(in srgb, var(--ts-c-green) 7%, var(--ts-surface));
|
||||
}
|
||||
|
||||
&.is-changes {
|
||||
border-left-color: var(--ts-c-red);
|
||||
background: color-mix(in srgb, var(--ts-c-red) 6%, var(--ts-surface));
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
}
|
||||
|
||||
.ts-reviews__note {
|
||||
margin-top: 0.25rem !important;
|
||||
color: var(--ts-ink-soft);
|
||||
}
|
||||
|
||||
.ts-reviews__actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.5rem 0.75rem;
|
||||
margin-top: 0.5rem;
|
||||
|
||||
&:empty {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Small buttons, not @pi/ui's sized ones. */
|
||||
.ts-reviews__button {
|
||||
height: auto !important;
|
||||
min-width: 0 !important;
|
||||
padding: 0.25rem 0.75rem !important;
|
||||
border: 1px solid var(--ts-line-strong) !important;
|
||||
border-radius: 999px !important;
|
||||
background: var(--ts-surface) !important;
|
||||
color: var(--ts-ink);
|
||||
font: inherit;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
|
||||
&.is-ok {
|
||||
border-color: transparent !important;
|
||||
background: var(--ts-c-green) !important;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus-visible {
|
||||
filter: brightness(1.05);
|
||||
}
|
||||
}
|
||||
|
||||
.ts-reviews__link {
|
||||
height: auto !important;
|
||||
min-width: 0 !important;
|
||||
padding: 0 !important;
|
||||
border: 0;
|
||||
background: none !important;
|
||||
color: var(--ts-brand);
|
||||
font: inherit;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user