Compare commits

..
5 Commits
Author SHA1 Message Date
ogrechko 9b6f024840 Widen dashboard topnav to max-w 1800px to reduce empty side margins 2026-08-27 18:50:44 +00:00
ogrechko 8d76c4d797 Add Docker Compose deployment
Full node_modules image (not output: standalone — its file-tracing drops
argon2's JS loader and segfaults in prod). drizzle.config.ts now honors
DATA_DIR like the sibling projects, so db:migrate targets the mounted
volume instead of an image-local path.
2026-08-27 11:03:56 +00:00
ogrechkoandClaude Sonnet 5 3e7318364b Fix topnav horizontal overflow on mobile
.nav-links had no min-width:0/overflow-x handling, so on narrow screens
flex items (brand, nav links, user-menu) refused to shrink below content
size and pushed .topnav-inner past the viewport width — showing as a
horizontal scrollbar (or requiring pinch-zoom-out to see everything).
Nav links now scroll horizontally within their own row instead; brand
and user-menu no longer shrink; email hidden and brand collapses to just
the mark below 640px to leave room.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QcXH24ky6zjk2UyK5oZUPH
2026-07-26 15:47:13 +00:00
ogrechkoandClaude Sonnet 5 bcf0e86618 Build AI Chief of Staff MVP: auth, mailbox sync, briefings, draft replies
Scaffolds a Next.js app with email/password auth, encrypted IMAP/SMTP/CalDAV
mailbox connections, a background sync job, Claude-generated daily briefings,
and an approve-before-send draft reply flow. Includes a clean design system
(light/dark) and deployment config (systemd unit, credential rotation script).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012o9j9RezxbZVKQMrB7oRLY
2026-07-26 10:54:34 +00:00
ogrechko facd4d71bd test commit 2026-07-26 08:31:02 +00:00
5 changed files with 61 additions and 2 deletions

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
node_modules
.next
.git
data
*.env
!.env.example
*.tsbuildinfo
+31
View File
@@ -0,0 +1,31 @@
FROM node:20-bookworm-slim
# python3/make/g++ let npm fall back to compiling better-sqlite3/argon2 from
# source if no prebuilt binary matches this platform.
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 make g++ ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm install
COPY . .
# next.config.ts: not using output: "standalone" — its file-tracing only
# copies argon2's native .node binaries, not its JS loader, which segfaults
# in production. Deploying against the full node_modules via `next start`
# (this whole image, no standalone pruning) avoids that.
#
# `next build`'s page-data collection spins up parallel workers that each
# import the db client at module-eval time. If data/db.sqlite doesn't exist
# yet, every worker races to create it from scratch, which can throw
# SQLITE_BUSY. Migrating first, as its own isolated step, avoids the race.
RUN mkdir -p data && npm run db:migrate
RUN npm run build
ENV NODE_ENV=production
EXPOSE 8180
CMD ["sh", "-c", "npm run db:migrate && npm start"]
+18
View File
@@ -0,0 +1,18 @@
name: project-claude
services:
app:
build: .
ports:
- "8180:8180"
env_file:
- .env
environment:
- PORT=8180
- DATA_DIR=/data
volumes:
- data:/data
restart: unless-stopped
volumes:
data:
+4 -1
View File
@@ -1,10 +1,13 @@
import { defineConfig } from "drizzle-kit"; import { defineConfig } from "drizzle-kit";
import path from "node:path";
const dataDir = process.env.DATA_DIR ?? path.join(process.cwd(), "data");
export default defineConfig({ export default defineConfig({
out: "./src/lib/db/migrations", out: "./src/lib/db/migrations",
schema: "./src/lib/db/schema.ts", schema: "./src/lib/db/schema.ts",
dialect: "sqlite", dialect: "sqlite",
dbCredentials: { dbCredentials: {
url: "./data/db.sqlite", url: path.join(dataDir, "db.sqlite"),
}, },
}); });
+1 -1
View File
@@ -391,7 +391,7 @@ select.input {
.topnav-inner { .topnav-inner {
width: 100%; width: 100%;
max-width: 960px; max-width: 1800px;
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
align-items: center; align-items: center;