Files
task-stream/libs/web/tracker/presenters/src/lib/pages/issue.page.scss
Josep Piguillem 046d77c813 feat: link commits, branches and pull requests to tickets
A project can turn on a webhook for GitHub, Gitea or GitLab. Pushes and
pull or merge requests that name a ticket key show on that ticket under
Desarrollo, with the state of each pull request; the secret is shown and
rotated from the project settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 15:28:12 +02:00

523 lines
9.0 KiB
SCSS

.ts-back {
display: inline-block;
margin-bottom: 1.25rem;
font-family: var(--ts-font-mono);
font-size: 0.8125rem;
color: var(--ts-muted);
text-decoration: none;
&:hover {
color: var(--ts-ink);
}
}
.ts-issue {
display: grid;
grid-template-columns: minmax(0, 1fr) 20rem;
gap: 2.5rem;
align-items: start;
@media (max-width: 960px) {
grid-template-columns: minmax(0, 1fr);
}
}
.ts-issue__main {
display: grid;
gap: 2rem;
min-width: 0;
}
// Header: key · type · status, then the title.
.ts-issue__meta {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.5rem;
}
.ts-type {
display: inline-flex;
align-items: center;
gap: 0.3125rem;
font-size: 0.8125rem;
font-weight: 600;
color: var(--tone);
}
.ts-issue__title-row {
display: flex;
align-items: flex-start;
gap: 0.5rem;
h1 {
margin: 0.75rem 0 0;
font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem);
font-weight: 700;
line-height: 1.1;
text-wrap: balance;
}
}
// Workflow: one button per allowed destination, in that status' colour.
.ts-transitions {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.5rem;
padding: 0.75rem 0.875rem;
border: 1px dashed var(--ts-line-strong);
border-radius: 0.75rem;
.ts-eyebrow {
margin-right: 0.25rem;
}
}
.ts-move {
--tone: var(--ts-muted);
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.4375rem 0.75rem 0.4375rem 0.625rem;
border: 1px solid color-mix(in srgb, var(--tone) 35%, var(--ts-line));
border-radius: 999px;
background: var(--ts-surface);
color: var(--ts-ink);
font: inherit;
font-size: 0.8125rem;
font-weight: 600;
cursor: pointer;
transition:
background-color 0.15s ease,
border-color 0.15s ease;
&::before {
content: '';
width: 0.5rem;
height: 0.5rem;
border-radius: 50%;
background: var(--tone);
}
span {
color: var(--tone);
transition: transform 0.15s ease;
}
&:hover {
background: color-mix(in srgb, var(--tone) 10%, var(--ts-surface));
border-color: var(--tone);
span {
transform: translateX(2px);
}
}
&:focus-visible {
outline: 2px solid var(--tone);
outline-offset: 2px;
}
}
// Sections: small uppercase label over a rule (pireon.dev's eyebrow, in grey).
.ts-section {
display: flex;
align-items: center;
gap: 0.5rem;
margin: 0 0 0.875rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--ts-line);
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--ts-muted);
.ts-mono {
color: var(--ts-ink-soft);
}
}
.ts-block > p {
margin: 0;
line-height: 1.6;
}
.ts-figma {
display: inline-flex;
align-items: center;
gap: 0.375rem;
margin-top: 0.75rem;
padding: 0.375rem 0.75rem;
border-radius: 999px;
background: color-mix(in srgb, var(--ts-t-ui) 10%, var(--ts-surface));
color: color-mix(in srgb, var(--ts-t-ui) 80%, var(--ts-ink));
font-size: 0.8125rem;
font-weight: 600;
text-decoration: none;
}
.ts-link {
display: flex;
align-items: center;
gap: 0.625rem;
padding: 0.375rem 0;
}
.ts-link__kind {
min-width: 9rem;
font-size: 0.875rem;
color: var(--ts-muted);
}
a.ts-key {
text-decoration: none;
&:hover {
border-color: var(--ts-brand);
color: var(--ts-brand);
}
}
.ts-inline-form {
display: grid;
grid-template-columns: 12rem minmax(0, 1fr) auto;
gap: 0.5rem;
align-items: center;
margin-top: 0.875rem;
@media (max-width: 640px) {
grid-template-columns: minmax(0, 1fr);
}
}
.ts-inline-form--two {
grid-template-columns: minmax(0, 1fr) auto;
}
// Breakdown: the ticket it hangs from, its checklist and its subtasks.
.ts-parent {
display: inline-flex;
align-items: center;
gap: 0.375rem;
min-width: 0;
color: var(--ts-muted);
font-size: 0.8125rem;
text-decoration: none;
&:hover {
color: var(--ts-brand);
}
}
.ts-parent__title {
overflow: hidden;
max-width: 18rem;
text-overflow: ellipsis;
white-space: nowrap;
}
.ts-checklist,
.ts-children {
display: grid;
gap: 0.25rem;
margin: 0;
padding: 0;
list-style: none;
}
.ts-checklist__item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
&.is-done {
color: var(--ts-muted);
text-decoration: line-through;
}
}
.ts-children {
margin-top: 0.75rem;
}
.ts-child {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto auto;
gap: 0.625rem;
align-items: center;
padding: 0.375rem 0;
border-top: 1px solid var(--ts-line);
.ts-comment__avatar {
width: 1.5rem;
height: 1.5rem;
font-size: 0.625rem;
}
}
.ts-child__title {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ts-parent-form {
display: flex;
align-items: center;
gap: 0.75rem;
.ts-inline-form {
flex: 1;
}
> .ts-muted {
margin-top: 0.875rem;
}
}
// Comments: a thread with initials on a rail.
.ts-comment {
display: grid;
grid-template-columns: 2rem minmax(0, 1fr);
gap: 0.75rem;
padding: 0.875rem 0;
border-bottom: 1px solid var(--ts-line);
}
.ts-comment__avatar {
display: inline-grid;
place-items: center;
width: 2rem;
height: 2rem;
border-radius: 50%;
background: color-mix(in srgb, var(--ts-brand) 16%, var(--ts-surface));
color: color-mix(in srgb, var(--ts-brand) 70%, var(--ts-ink));
font-family: var(--ts-font-mono);
font-size: 0.6875rem;
font-weight: 600;
}
.ts-comment__body {
min-width: 0;
p {
margin: 0.25rem 0 0;
line-height: 1.55;
}
}
.ts-comment__head {
display: flex;
align-items: center;
gap: 0.5rem;
min-height: 2rem;
}
.ts-comment__when {
font-family: var(--ts-font-mono);
font-size: 0.75rem;
color: var(--ts-muted);
}
.ts-spacer {
flex: 1;
}
// History as a log: time · what · how long ago.
.ts-log {
margin: 0;
padding: 0;
list-style: none;
li {
display: grid;
grid-template-columns: 3.75rem minmax(0, 1fr) auto;
gap: 0.875rem;
align-items: baseline;
padding: 0.5rem 0;
border-bottom: 1px dashed var(--ts-line);
font-size: 0.875rem;
&:last-child {
border-bottom: 0;
}
}
}
.ts-log__when,
.ts-log__ago {
font-family: var(--ts-font-mono);
font-size: 0.75rem;
color: var(--ts-muted);
}
.ts-log__what {
color: var(--ts-ink-soft);
}
@media (max-width: 640px) {
.ts-log li {
grid-template-columns: 3.25rem minmax(0, 1fr);
}
.ts-log__ago {
display: none;
}
}
// Side: the ticket's sheet.
.ts-issue__side {
display: grid;
gap: 1.375rem;
> .ts-eyebrow {
margin-bottom: 0.125rem;
}
position: sticky;
top: 5.5rem;
padding: 1.5rem;
@media (max-width: 960px) {
position: static;
}
}
.ts-facts {
display: grid;
grid-template-columns: auto 1fr;
gap: 0.625rem 1rem;
margin: 0.25rem 0 0;
padding-top: 1rem;
border-top: 1px dashed var(--ts-line);
font-size: 0.875rem;
dt {
font-family: var(--ts-font-mono);
font-size: 0.6875rem;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--ts-muted);
align-self: center;
}
dd {
margin: 0;
}
.ts-mono {
font-size: 0.8125rem;
}
}
.ts-labels {
display: flex;
flex-wrap: wrap;
gap: 0.25rem 0.5rem;
}
.ts-label {
font-family: var(--ts-font-mono);
font-size: 0.8125rem;
color: var(--ts-brand);
}
.ts-attachments {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
gap: 0.5rem;
margin: 0.5rem 0;
}
.ts-mention {
padding: 0 0.2em;
border-radius: 0.25em;
background: color-mix(in oklab, var(--ts-brand) 14%, transparent);
color: inherit;
font-weight: 600;
}
.ts-mention.is-me {
background: color-mix(in oklab, var(--ts-brand) 30%, transparent);
}
.ts-mentions {
display: flex;
flex-wrap: wrap;
gap: 0.375rem;
}
.ts-mentions__option {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.25rem 0.625rem 0.25rem 0.25rem;
border: 1px solid rgba(127, 127, 127, 0.3);
border-radius: 999px;
background: transparent;
color: inherit;
font: inherit;
cursor: pointer;
}
.ts-mentions__option:hover,
.ts-mentions__option:focus-visible {
border-color: currentColor;
}
// Code that mentions the ticket (from the Git integration).
.ts-dev {
display: grid;
gap: 0.25rem;
margin: 0;
padding: 0;
list-style: none;
}
.ts-dev__item {
display: grid;
grid-template-columns: 4rem minmax(0, 1fr) auto auto auto;
gap: 0.625rem;
align-items: center;
padding: 0.375rem 0;
border-top: 1px solid var(--ts-line);
@media (max-width: 640px) {
grid-template-columns: 4rem minmax(0, 1fr);
.ts-dev__ref,
.ts-dev__when {
display: none;
}
}
.ts-pill[data-state='MERGED'] {
--tone: var(--ts-c-violet, var(--ts-brand));
}
.ts-pill[data-state='OPEN'] {
--tone: var(--ts-c-green, var(--ts-brand));
}
}
.ts-dev__kind {
color: var(--ts-muted);
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.ts-dev__title {
overflow: hidden;
color: inherit;
text-overflow: ellipsis;
white-space: nowrap;
}
.ts-dev__when {
font-size: 0.8125rem;
}