feat: chat sidebar and inbox, feat: saved chats, fix: wake jobs, fix: sandbox sends, ux: negotiation replies and draft box

This commit is contained in:
2026-05-06 22:53:19 -04:00
parent 58a57ddc6a
commit 3b6e3c34d5
18 changed files with 1797 additions and 105 deletions
+311 -8
View File
@@ -22,6 +22,10 @@
box-sizing: border-box;
}
[hidden] {
display: none !important;
}
html,
body {
height: 100%;
@@ -50,7 +54,7 @@ body::before {
.shell {
display: grid;
grid-template-columns: minmax(0, 1fr) 380px;
grid-template-columns: 64px minmax(0, 1fr) 380px;
gap: 24px;
height: 100vh;
min-height: 0;
@@ -58,8 +62,13 @@ body::before {
padding: 24px;
}
.shell.chat-open {
grid-template-columns: 280px minmax(0, 1fr) 380px;
}
.workspace,
.actions {
.actions,
.chat-rail {
position: relative;
overflow: hidden;
border: 1px solid rgba(240, 214, 129, 0.34);
@@ -69,12 +78,126 @@ body::before {
}
.workspace {
display: grid;
grid-template-rows: auto auto 1fr auto;
display: flex;
flex-direction: column;
height: 100%;
min-width: 0;
min-height: 0;
}
.chat-rail {
display: grid;
grid-template-rows: auto 1fr;
min-width: 0;
min-height: 0;
padding: 12px;
background: linear-gradient(180deg, #fffaf0 0%, #f7f1dc 100%);
}
.chat-rail-top {
display: grid;
gap: 10px;
}
.shell.chat-open .chat-rail-top {
grid-template-columns: 1fr 1fr;
}
.chat-rail-content {
display: grid;
grid-template-rows: minmax(0, 1fr) minmax(140px, 34%);
gap: 16px;
min-height: 0;
padding-top: 16px;
opacity: 1;
transition: opacity 160ms ease;
}
.chat-rail.collapsed .chat-rail-content {
pointer-events: none;
opacity: 0;
}
.chat-nav-section {
min-height: 0;
overflow: hidden;
}
.rail-heading {
margin-bottom: 8px;
color: var(--forest);
font-size: 12px;
font-weight: 800;
text-transform: uppercase;
}
.chat-list,
.inbox-list {
display: grid;
gap: 8px;
max-height: calc(100% - 26px);
overflow: auto;
}
.chat-item,
.inbox-item {
display: grid;
align-items: center;
gap: 6px;
min-height: 38px;
padding: 7px 8px;
border: 1px solid var(--line);
border-radius: 8px;
background: rgba(255, 250, 240, 0.78);
}
.chat-item {
grid-template-columns: minmax(0, 1fr) auto auto;
}
.inbox-item {
grid-template-columns: minmax(0, 1fr) auto auto;
}
.chat-item.active {
border-color: rgba(52, 83, 38, 0.42);
background: #edf3df;
}
.chat-title,
.inbox-title {
min-width: 0;
overflow: hidden;
color: var(--brown);
font-size: 13px;
font-weight: 700;
text-overflow: ellipsis;
white-space: nowrap;
}
.chat-title {
min-width: 0;
padding: 0;
border: 0;
background: transparent;
box-shadow: none;
font-family: Inter, "Segoe UI", Arial, sans-serif;
text-align: left;
}
.chat-title:hover {
background: transparent;
box-shadow: none;
transform: none;
}
.inbox-title {
white-space: normal;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.actions {
padding: 28px;
overflow: auto;
@@ -203,6 +326,7 @@ h2 {
}
.messages {
flex: 1 1 auto;
overflow: auto;
min-height: 0;
padding: 28px 28px 18px;
@@ -212,13 +336,15 @@ h2 {
}
.message {
max-width: 920px;
width: fit-content;
max-width: min(920px, 88%);
margin-bottom: 16px;
padding: 17px 18px;
border: 1px solid rgba(221, 206, 176, 0.9);
border-radius: 18px;
color: var(--brown);
line-height: 1.55;
overflow-wrap: anywhere;
box-shadow: 0 16px 38px rgba(38, 58, 27, 0.11);
}
@@ -346,6 +472,7 @@ h2 {
.message.user {
margin-left: auto;
max-width: min(720px, 76%);
border-color: rgba(52, 83, 38, 0.28);
background: linear-gradient(180deg, #edf3df, #e5efd4);
}
@@ -360,7 +487,9 @@ h2 {
}
.composer-wrap {
position: sticky;
position: relative;
flex: 0 0 auto;
margin-top: auto;
bottom: 0;
z-index: 5;
border-top: 1px solid var(--line);
@@ -582,6 +711,162 @@ button {
transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.icon-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 40px;
min-width: 40px;
height: 40px;
padding: 0;
border: 1px solid var(--line-strong);
border-radius: 12px;
background: #fff9e9;
color: var(--forest);
box-shadow: 0 10px 22px rgba(38, 58, 27, 0.08);
}
.shell.chat-open .chat-rail-top .icon-button {
width: 100%;
min-width: 0;
padding: 0 10px;
}
.icon-button span {
display: none;
overflow: hidden;
font-family: Inter, "Segoe UI", Arial, sans-serif;
font-size: 12px;
font-weight: 800;
text-overflow: ellipsis;
white-space: nowrap;
}
.shell.chat-open .chat-rail-top .icon-button span {
display: inline;
}
.icon-button svg {
width: 18px;
height: 18px;
flex: 0 0 18px;
}
.icon-button.light {
background: rgba(255, 250, 240, 0.86);
}
.chat-item .icon-button,
.inbox-item .icon-button {
width: 30px;
min-width: 30px;
height: 30px;
border-radius: 8px;
}
.negotiation-link {
display: inline;
min-width: 0;
padding: 0;
border: 0;
background: transparent;
color: var(--forest-2);
font-family: inherit;
font-weight: 800;
text-decoration: underline;
box-shadow: none;
}
.negotiation-link:hover {
background: transparent;
box-shadow: none;
}
.floating-panel {
position: fixed;
right: 28px;
bottom: 28px;
z-index: 20;
display: grid;
grid-template-rows: auto minmax(180px, 360px) auto auto;
width: min(520px, calc(100vw - 28px));
max-height: min(760px, calc(100vh - 56px));
border: 1px solid rgba(240, 214, 129, 0.42);
border-radius: 18px;
background: linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
box-shadow: var(--shadow);
}
.floating-panel-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
padding: 18px;
border-bottom: 1px solid var(--line);
background: linear-gradient(90deg, rgba(20, 33, 15, 0.96), rgba(38, 58, 27, 0.94));
}
.floating-panel-header h2 {
margin: 3px 0 0;
color: var(--ivory);
}
.negotiation-messages {
overflow: auto;
padding: 16px;
}
.negotiation-message {
margin-bottom: 10px;
padding: 10px 12px;
border: 1px solid var(--line);
border-radius: 8px;
background: rgba(255, 250, 240, 0.86);
font-size: 13px;
line-height: 1.42;
overflow-wrap: anywhere;
}
.negotiation-composer {
display: grid;
grid-template-columns: 1fr auto;
gap: 10px;
padding: 12px;
border-top: 1px solid var(--line);
}
.negotiation-composer textarea {
min-height: 48px;
border-radius: 12px;
}
.modal-backdrop {
position: fixed;
inset: 0;
z-index: 30;
display: grid;
place-items: center;
padding: 20px;
background: rgba(20, 33, 15, 0.42);
}
.update-modal-card {
width: min(440px, 100%);
padding: 22px;
border: 1px solid rgba(240, 214, 129, 0.42);
border-radius: 18px;
background: var(--ivory);
box-shadow: var(--shadow);
}
.update-modal-card p {
margin: 6px 0 18px;
color: var(--muted);
line-height: 1.45;
}
button:hover {
background: linear-gradient(180deg, #3d612c, #263e1b);
box-shadow: 0 18px 34px rgba(31, 52, 22, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
@@ -950,7 +1235,19 @@ pre {
@media (max-width: 960px) {
.shell {
grid-template-columns: 1fr;
grid-template-rows: minmax(0, 1fr) minmax(220px, 34vh);
grid-template-rows: auto minmax(0, 1fr) minmax(220px, 34vh);
}
.shell.chat-open {
grid-template-columns: 1fr;
}
.chat-rail {
min-height: 64px;
}
.chat-rail.collapsed {
max-height: 64px;
}
}
@@ -997,7 +1294,8 @@ pre {
}
.messages,
.actions {
.actions,
.chat-rail {
padding: 22px;
}
@@ -1015,6 +1313,11 @@ pre {
display: none;
}
.message,
.message.user {
max-width: 100%;
}
.message-activity {
grid-template-columns: 1fr;
}