feat: journal dashboard widgets, agent polish, and edit-mode live previews
Journal dashboard widgets and quick-add; rich-text quick-add dialogs. Dashboard draft sync for live edit previews; assistant bubble + API tools. Journal UX: stress slider, mood grid, query cap fix.
This commit is contained in:
@@ -818,6 +818,86 @@
|
||||
bottom: 18px;
|
||||
}
|
||||
|
||||
/* ── Assistant chat bubble (opt-in per user) ─────────────────────── */
|
||||
.assistant-bubble {
|
||||
position: fixed;
|
||||
right: 18px;
|
||||
bottom: 24px;
|
||||
z-index: 70;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 12px;
|
||||
pointer-events: none;
|
||||
}
|
||||
:where(html[data-nav="bottom"]) .assistant-bubble {
|
||||
bottom: calc(62px + max(env(safe-area-inset-bottom, 0px), 8px) + 12px);
|
||||
}
|
||||
:where(html[data-nav="fab"]) .assistant-bubble {
|
||||
bottom: calc(18px + 52px + 12px);
|
||||
}
|
||||
.assistant-bubble > * {
|
||||
pointer-events: auto;
|
||||
}
|
||||
.assistant-bubble-panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: min(360px, calc(100vw - 24px));
|
||||
height: min(480px, calc(100vh - 140px));
|
||||
border-radius: var(--r-md);
|
||||
border: 0.5px solid var(--hair);
|
||||
background: color-mix(in oklab, var(--card) 94%, transparent);
|
||||
backdrop-filter: blur(16px) saturate(160%);
|
||||
box-shadow:
|
||||
0 12px 40px rgba(31, 27, 22, 0.16),
|
||||
0 2px 8px rgba(31, 27, 22, 0.08);
|
||||
padding: 12px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.assistant-bubble-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
margin-bottom: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.assistant-bubble-close {
|
||||
appearance: none;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--ink-mute);
|
||||
border-radius: 8px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
.assistant-bubble-close:hover {
|
||||
background: var(--shade);
|
||||
color: var(--ink);
|
||||
}
|
||||
.assistant-bubble-trigger {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
border-radius: 999px;
|
||||
border: 0;
|
||||
background: var(--ink);
|
||||
color: var(--paper);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
box-shadow:
|
||||
0 4px 14px rgba(31, 27, 22, 0.22),
|
||||
0 1px 2px rgba(31, 27, 22, 0.18);
|
||||
}
|
||||
.assistant-bubble-trigger:hover {
|
||||
background: var(--ink-2);
|
||||
}
|
||||
|
||||
/* ── Buttons (used inside .topbar etc; <Button> in shadcn comes from
|
||||
button.tsx and uses these tokens via the theme bridge) ───── */
|
||||
.btn {
|
||||
@@ -1430,6 +1510,65 @@ select {
|
||||
animation: emojiFloat 1.8s ease-out both;
|
||||
}
|
||||
|
||||
@keyframes journal-paper-out {
|
||||
to {
|
||||
opacity: 0;
|
||||
transform: translateX(-28px) rotate(-1.2deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes journal-paper-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateX(32px) rotate(0.8deg);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateX(0) rotate(0deg);
|
||||
}
|
||||
}
|
||||
|
||||
.journal-entries-stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.journal-entries-stack[data-phase="exit"] .journal-entry-row {
|
||||
animation: journal-paper-out 0.2s ease-in forwards;
|
||||
}
|
||||
|
||||
.journal-entries-stack[data-phase="enter"] .journal-entry-row {
|
||||
opacity: 0;
|
||||
animation: journal-paper-in 0.26s ease-out forwards;
|
||||
}
|
||||
|
||||
.journal-entries-stack[data-phase="enter"] .journal-entry-row:nth-child(1) {
|
||||
animation-delay: 0ms;
|
||||
}
|
||||
.journal-entries-stack[data-phase="enter"] .journal-entry-row:nth-child(2) {
|
||||
animation-delay: 45ms;
|
||||
}
|
||||
.journal-entries-stack[data-phase="enter"] .journal-entry-row:nth-child(3) {
|
||||
animation-delay: 90ms;
|
||||
}
|
||||
.journal-entries-stack[data-phase="enter"] .journal-entry-row:nth-child(4) {
|
||||
animation-delay: 135ms;
|
||||
}
|
||||
.journal-entries-stack[data-phase="enter"] .journal-entry-row:nth-child(5) {
|
||||
animation-delay: 180ms;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.journal-entries-stack[data-phase="exit"] .journal-entry-row,
|
||||
.journal-entries-stack[data-phase="enter"] .journal-entry-row {
|
||||
animation: none;
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Calendar min-height CSS variable ───────────────────────────── */
|
||||
/* Used by calendar-shell so the grid fills the viewport correctly */
|
||||
/* on both desktop (topbar only) and mobile (topbar + bottom nav). */
|
||||
|
||||
Reference in New Issue
Block a user