Refine AgentFeed UI and local workflow

This commit is contained in:
peter 2026-06-11 14:01:16 +01:00
parent 3179f832fc
commit ba9f5eb168
29 changed files with 2986 additions and 69 deletions

View file

@ -5,7 +5,15 @@
color: #1d2528;
}
html,
body {
height: 100%;
overflow: hidden;
}
body {
display: flex;
flex-direction: column;
margin: 0;
}
@ -14,23 +22,17 @@ body {
background: #17313b;
color: #fffaf0;
display: grid;
flex: 0 0 auto;
gap: 0;
grid-template-columns: minmax(13rem, 25%) 1fr;
grid-template-columns: max-content 1fr;
padding: 0;
}
.brandline {
align-items: baseline;
align-items: center;
display: flex;
gap: 0.55rem;
padding: 0.38rem 0.65rem;
}
.brandline p {
color: #d9e5e8;
font-size: 0.78rem;
font-weight: 600;
margin: 0;
padding: 0.38rem 0.8rem;
}
.eyebrow {
@ -119,8 +121,10 @@ h1 {
--artifacts-width: 280px;
--days-width: 144px;
display: grid;
flex: 1 1 auto;
grid-template-columns: var(--days-width) 1px var(--artifacts-width) 1px minmax(0, 1fr);
min-height: calc(100vh - 3.2rem);
min-height: 0;
overflow: hidden;
}
.day-sidebar,
@ -130,6 +134,60 @@ h1 {
padding: 0.55rem;
}
.day-sidebar,
.artifact-sidebar {
min-height: 0;
overflow-x: hidden;
scrollbar-color: transparent transparent;
scrollbar-width: none;
}
.day-sidebar {
overflow-y: auto;
}
.artifact-sidebar {
display: flex;
flex-direction: column;
overflow-y: hidden;
padding: 0;
}
.artifact-list {
min-height: 0;
overflow-x: hidden;
overflow-y: auto;
scrollbar-color: transparent transparent;
scrollbar-width: none;
}
.day-sidebar:hover,
.artifact-sidebar:hover .artifact-list {
scrollbar-color: rgba(23, 49, 59, 0.35) transparent;
scrollbar-width: thin;
}
.day-sidebar::-webkit-scrollbar,
.artifact-list::-webkit-scrollbar {
width: 0;
}
.day-sidebar:hover::-webkit-scrollbar,
.artifact-sidebar:hover .artifact-list::-webkit-scrollbar {
width: 6px;
}
.day-sidebar::-webkit-scrollbar-thumb,
.artifact-list::-webkit-scrollbar-thumb {
background: rgba(23, 49, 59, 0.35);
border-radius: 999px;
}
.day-sidebar::-webkit-scrollbar-track,
.artifact-list::-webkit-scrollbar-track {
background: transparent;
}
.day-sidebar {
background: #ebe4d5;
}
@ -143,6 +201,7 @@ h1 {
display: flex;
flex-direction: column;
justify-content: center;
min-height: 0;
padding: 0;
}
@ -185,6 +244,9 @@ h1 {
.day-list,
.artifact-list {
display: grid;
}
.day-list {
gap: 0.35rem;
}
@ -195,7 +257,7 @@ h1 {
}
.day-link {
border-radius: 10px;
border-radius: 6px;
display: grid;
gap: 0.1rem;
padding: 0.48rem;
@ -207,6 +269,11 @@ h1 {
box-shadow: 0 10px 24px rgba(57, 44, 28, 0.08);
}
.day-link:focus-visible {
outline: 2px solid #e2b66a;
outline-offset: 2px;
}
.day-link.selected {
background: #17313b;
color: #fffaf0;
@ -224,7 +291,7 @@ h1 {
.day-link span,
.pane-heading span,
.artifact-row-main strong {
.artifact-time {
color: #7b6b55;
font-size: 0.7rem;
}
@ -250,84 +317,136 @@ h1 {
align-items: baseline;
display: flex;
justify-content: space-between;
margin-bottom: 0.45rem;
margin: 0;
padding: 0.55rem;
}
.new-artifacts-banner {
background: #245238;
border: 0;
border-radius: 999px;
color: #f6fff2;
cursor: pointer;
display: block;
font: inherit;
font-size: 0.76rem;
font-weight: 700;
margin: 0 0.55rem 0.5rem;
padding: 0.48rem 0.7rem;
text-align: center;
width: 100%;
}
.new-artifacts-banner[hidden] {
display: none;
}
.new-artifacts-banner:hover {
background: #17313b;
}
.artifact-list {
align-content: start;
flex: 1 1 auto;
}
.artifact-row {
align-items: center;
align-items: stretch;
background: #fffaf0;
border: 1px solid #e5d8c0;
border-radius: 11px;
display: flex;
gap: 0.45rem;
padding: 0.45rem;
border: 0;
border-radius: 0;
display: grid;
gap: 0;
grid-template-columns: 3.15rem minmax(0, 1fr) 2.6rem;
min-height: 2.7rem;
overflow: hidden;
padding: 0;
}
.artifact-row:hover {
border-color: #c9b38d;
box-shadow: 0 12px 28px rgba(57, 44, 28, 0.08);
background: #fff6e5;
box-shadow: none;
}
.artifact-row:focus-visible {
outline: 0;
box-shadow: inset 0 0 0 1px #e2b66a;
}
.artifact-row.selected {
background: #17313b;
border-color: #17313b;
color: #fffaf0;
}
.artifact-row.selected .artifact-row-main strong,
.artifact-row.selected .artifact-row-main span {
.artifact-row.selected .artifact-time {
background: #10262f;
}
.artifact-row.selected .artifact-row-main span,
.artifact-row.selected .artifact-time {
color: #fffaf0;
}
.artifact-row.selected .kind-icon {
background: rgba(255, 250, 240, 0.12);
color: #fffaf0;
}
.kind-icon {
align-items: center;
background: #dfe9ea;
border-radius: 7px;
color: #17313b;
background: rgba(23, 49, 59, 0.04);
color: #657173;
display: inline-flex;
flex: 0 0 2.25rem;
font-size: 0.58rem;
font-size: 0.56rem;
font-weight: 800;
height: 1.75rem;
justify-content: center;
letter-spacing: 0.04em;
line-height: 1;
padding: 0 0.42rem;
white-space: nowrap;
}
.kind-image {
background: #dfeee2;
color: #265336;
}
.kind-pdf {
background: #f3dedb;
color: #78352f;
}
.kind-markdown {
background: #e7e1f2;
color: #443265;
}
.kind-deck {
background: #f6e5bf;
color: #6e4a12;
}
.artifact-row-main {
display: grid;
gap: 0.1rem;
align-items: center;
display: flex;
min-width: 0;
padding: 0.42rem 0.55rem;
}
.artifact-row-main span {
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
color: #17313b;
display: -webkit-box;
font-size: 0.86rem;
overflow: hidden;
text-overflow: ellipsis;
}
.artifact-time {
align-items: center;
background: #efe5d3;
display: flex;
justify-content: flex-end;
justify-self: stretch;
line-height: 1;
padding: 0 0.48rem;
text-align: right;
white-space: nowrap;
}
@ -350,6 +469,20 @@ h1 {
max-width: 34rem;
}
kbd {
background: #ebe4d5;
border: 1px solid #d3c3a7;
border-radius: 4px;
color: #17313b;
font: 0.85em ui-monospace, SFMono-Regular, Consolas, monospace;
padding: 0.08rem 0.28rem;
}
.preview-pane > .preview-empty {
align-self: center;
margin: auto;
}
.preview-frame-wrap {
align-items: center;
display: flex;
@ -410,6 +543,12 @@ h1 {
}
@media (max-width: 720px) {
html,
body {
height: auto;
overflow: auto;
}
.topbar {
align-items: stretch;
grid-template-columns: 1fr;
@ -424,6 +563,7 @@ h1 {
.feed {
grid-template-columns: 1fr;
overflow: visible;
}
.splitter {
@ -434,5 +574,6 @@ h1 {
.artifact-sidebar {
border-bottom: 1px solid #d9c9ad;
border-right: 0;
max-height: 32vh;
}
}