Commit Graph
138 Commits
Author SHA1 Message Date
adamfandClaude Opus 5 894c158afd Add places / things-to-do list with admin management
Deploy with Docker Compose / deploy (push) Successful in 16m21s
Backend: new Place GORM model (title, location, notes, image, category,
cost, priority, done) with auto-migration, a place.graphql schema, and
resolvers for the places query plus admin-only create/update/delete.
Regenerate gqlgen output against gqlgen v0.17.95, which requires Go 1.26 —
bump go.mod and the builder image to match.

Frontend: a places Pinia store, a CreatePlace admin form, and a
PlacesTable rendered as a new tab in the Collage cell, with inline
done-toggle and delete for admins. Rework the Admin page into a
sidebar-navigated panel layout (picking up the previously unreachable
CreateBookmark form) and give Login proper field labels, submit state,
and error feedback.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KcFtkisHcKJuTZAnv3fVzA
2026-09-12 18:10:41 +01:00
adamf 64672dfdc8 Speed up deploy times
Deploy with Docker Compose / deploy (push) Successful in 5m30s
2026-08-18 17:27:48 +01:00
adamf 3844a32751 Big formatting spree
Deploy with Docker Compose / deploy (push) Successful in 3m50s
2026-04-29 09:06:41 +01:00
adamfandClaude Opus 4.6 8636dfedb9 Replace go-imap library with custom IMAP client, simplify CV layout styles, bump vite, move SEED_DB to backend
Deploy with Docker Compose / deploy (push) Successful in 5m19s
- Rewrite email_imap.go to use a minimal hand-rolled IMAP client instead of go-imap/go-message,
  for better compatibility with Outlook's non-standard responses
- Consolidate and simplify CVLayout.vue CSS overrides
- Bump vite from 7.1.11 to 7.3.2
- Move SEED_DB env var from nginx to backend in dev compose
- Add /app/src/wasm volume exclusion in dev compose

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-04-18 08:53:34 +01:00
adamfandClaude Opus 4.6 b96b7d7a93 Split schema.graphql and schema.resolvers.go into per-domain files
Deploy with Docker Compose / deploy (push) Successful in 3m36s
Move Query/Mutation field declarations from the monolithic schema.graphql
into each domain's .graphql file using extend type, so gqlgen places
resolvers in the matching *.resolvers.go files. Extract helper functions
into *_helpers.go files to prevent gqlgen from commenting them out.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-04-15 18:57:23 +01:00
adamf 37171478b1 refactored code, removed *_helper.go files and placed them in *.resolvers.go files for uniformity
Deploy with Docker Compose / deploy (push) Successful in 3m23s
2026-04-15 18:33:19 +01:00
adamfandClaude Opus 4.6 3d97ccf38c Switch IMAP library from go-imap/v2 to v1 for Outlook compatibility
Deploy with Docker Compose / deploy (push) Successful in 4m16s
go-imap/v2's strict wire parser rejects Outlook's non-standard IMAP
login responses. v1 is more lenient and handles these gracefully.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-04-15 14:16:04 +01:00
adamfandClaude Opus 4.6 1e22bacdc9 Add email sync service for automated job application tracking
Deploy with Docker Compose / deploy (push) Successful in 4m40s
Background poller fetches emails via IMAP or Microsoft Graph API,
classifies them with Claude Haiku, and creates/updates JobApplication
records automatically. Includes manual sync endpoint and OAuth callback.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-04-15 13:59:24 +01:00
adamfandClaude Sonnet 4.6 b56f8253d9 Harden backend against critical and high security vulnerabilities
Deploy with Docker Compose / deploy (push) Successful in 3m51s
- Fix WebSocket CheckOrigin to use proper url.Parse instead of string stripping
- Add admin auth checks to Users/User GraphQL queries
- Remove GraphQL GET transport to prevent CSRF via cross-site links
- Add application-level IP-based login rate limiting (5 attempts/min)
- Add path traversal bounds check on radio file upload
- Require DEV_MODE for GraphQL introspection and playground
- Move notes backend endpoint behind admin middleware
- Add dedicated Nginx rate limit zone for GraphQL (10r/s)

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-04-14 13:27:33 +01:00
adamfandClaude Sonnet 4.6 7aff171ef8 Remove REST handlers superseded by GraphQL resolvers
Deploy with Docker Compose / deploy (push) Has been cancelled
Deleted handle_activity.go, handle_favorites.go, handle_post.go, and
handle_user.go — all logic already exists in schema.resolvers.go.
Removed corresponding REST routes from main.go. Moved UserCredentials
struct (used by Login handler) into handle_auth.go.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-04-14 11:08:09 +01:00
adamfandClaude Opus 4.6 759614e92d Add job application quick reference for storing profile links and experience
Deploy with Docker Compose / deploy (push) Successful in 3m34s
Auth-protected CRUD for personal info (LinkedIn, GitHub, etc.) and
experience entries, stored in the database so nothing sensitive is in
the public repo. Displayed as a categorized panel on the Job Applications page.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-04-13 12:38:53 +01:00
adamfandClaude Sonnet 4.6 66f32cdbd2 Add database-backed bookmarks via GraphQL
Deploy with Docker Compose / deploy (push) Successful in 3m47s
Replace hardcoded bookmarks in the frontend with a GORM-backed Bookmark
model exposed through GraphQL query and admin-only create/delete mutations.
Frontend groups bookmarks by category dynamically from the store.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-04-13 12:04:13 +01:00
adamfandClaude Sonnet 4.6 c3db00abf2 Fix logout not clearing cookies due to missing path and domain
Deploy with Docker Compose / deploy (push) Has been cancelled
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-04-13 11:53:42 +01:00
adamfandClaude Sonnet 4.6 8f3c369ed8 Add job application tracker (admin-only)
Deploy with Docker Compose / deploy (push) Has been cancelled
Full CRUD GraphQL API for tracking job applications with status workflow.
Frontend component in CV view, hidden from print. Login now redirects to
intended route after auth via query param.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-04-13 09:51:31 +01:00
adamfandClaude Opus 4.6 c335bf14d6 Add token refresh to ValidateAdmin for seamless session renewal
Deploy with Docker Compose / deploy (push) Successful in 3m55s
When the access token is missing or expired, the handler now falls back
to the refresh token, verifies the user is still admin via DB lookup,
and issues fresh cookies in the subrequest response.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-04-12 21:35:45 +01:00
adamfandClaude Opus 4.6 d344497393 Gate searxng, notes, and hasura behind admin auth via nginx auth_request
Deploy with Docker Compose / deploy (push) Has been cancelled
Add ValidateAdmin endpoint that checks JWT admin claim for use as an
nginx auth_request subrequest. Widen cookie path from backend endpoint
to "/" so the access_token is sent on all paths. Extend access token
lifetime from 24h to 7 days. Disable hasura service by default via
Docker profile.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-04-12 21:33:41 +01:00
adamfandClaude Opus 4.6 34934e7d13 Enable gin release mode outside dev
Deploy with Docker Compose / deploy (push) Successful in 3m53s
Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-04-11 00:38:44 +01:00
adamfandClaude Opus 4.6 a44011bf0b Add disable/enable toggle for radio fallback songs
Deploy with Docker Compose / deploy (push) Successful in 3m27s
Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-30 16:47:04 +01:00
adamfandClaude Opus 4.6 d215333128 Add admin UI for managing radio fallback music
Deploy with Docker Compose / deploy (push) Successful in 3m44s
Upload, list, and delete fallback music files from the admin page.
Backend handlers validate file type/size and prevent path traversal.
Nginx max body size increased to 50M to support large audio files.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-30 16:19:10 +01:00
adamfandClaude Opus 4.6 75cede3b1b Fix security vulnerabilities across backend, frontend, and infra
Deploy with Docker Compose / deploy (push) Successful in 4m44s
- Fix auth bypass in UpdatePost/DeletePost (missing return after auth check)
- Remove Spotify access token from callback response
- Replace internal error messages with generic responses in all handlers
- Harden GraphQL: complexity limit, disable playground/introspection in prod
- Add security headers (X-Frame-Options, HSTS, etc.) to nginx
- Disable Hasura console/dev mode in production
- Add DOMPurify sanitization to Markdown component
- Fix cookie removal to use correct domain/path from auth config
- Fix nil dereference in rowing handler when Claude API errors
- Fix wildcard CORS on stamp endpoint
- Pin nginx and certbot Docker image versions

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-29 23:59:10 +01:00
adamfandClaude Opus 4.6 932e257152 Add HTTPS support in dev mode and fix mobile layout issues
Deploy with Docker Compose / deploy (push) Successful in 4m19s
Generate self-signed certs for local HTTPS, add port 443 and full SSL
server block to dev nginx config, add Spotify redirect URI env var,
improve Spotify token error handling, and fix Chat/Steam mobile sizing.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-26 11:18:32 +00:00
adamfandClaude Opus 4.6 264df132df Add Steam integration showing online status and recent games
Deploy with Docker Compose / deploy (push) Has been cancelled
Fetches player summary and recently played games from Steam API with
5-minute server-side caching. Displays in the home sidebar with online
indicator and game artwork.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-26 01:59:34 +00:00
adamfandClaude Opus 4.6 7a737f6d10 Handle missing Spotify auth gracefully instead of returning errors
Deploy with Docker Compose / deploy (push) Successful in 3m42s
Return nil/empty results when Spotify client is not authenticated,
preventing GraphQL errors from breaking the home page data query.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-25 17:02:11 +00:00
adamfandClaude Opus 4.6 29350af2e0 Fix WebSocket 403 in dev mode by allowing localhost origins
Deploy with Docker Compose / deploy (push) Has been cancelled
The CheckOrigin function only accepted the production domain, rejecting
localhost connections in dev. Also removed redundant error response after
a failed upgrade since the upgrader already writes its own HTTP response.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-25 16:59:13 +00:00
adamfandClaude Sonnet 4.6 7381cda7b8 Move Gitea feed from frontend to backend with cached GraphQL proxy
Deploy with Docker Compose / deploy (push) Successful in 4m39s
Replaces direct browser-to-Gitea API calls with a backend service that
proxies and caches the feed (1-min TTL), served via the existing GraphQL
HomeData query. Commit message parsing now happens server-side.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-03-17 00:14:59 +00:00
adamf 84e18dddfa Update go version to 1.25 2026-03-16 15:45:34 +00:00
adamfandClaude Opus 4.6 0360b1f7f1 Consolidate frontend REST calls with GraphQL
Deploy with Docker Compose / deploy (push) Failing after 1s
Replace 5 separate REST calls on home page load with a single GraphQL
query. Add homeData store that fetches posts, favorites, activities,
spotify, and auth in one request. Convert all admin mutations and
auth flows to use GraphQL. Add album images to Spotify GraphQL schema.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-16 15:29:22 +00:00
adamf bad44a6ddd Separate admin protected endpoints from non-admin endpoints 2026-03-10 12:32:47 +00:00
adamf cb326ff8bf Add promote / demote user to admin and reintroduce create user dashboard 2026-03-10 12:18:24 +00:00
adamf 68db930049 Don't use SaveUploadedFile (causing permission issues)
Deploy with Docker Compose / deploy (push) Has been cancelled
2026-03-09 17:21:26 +00:00
adamf 63da086da2 Removed setting own permissions, let dockerfile entryhost do it
Deploy with Docker Compose / deploy (push) Has been cancelled
2026-03-09 17:10:24 +00:00
adamf 7c980f1b1f Fix file permissions, still
Deploy with Docker Compose / deploy (push) Has been cancelled
2026-03-09 16:53:45 +00:00
adamf d03f9668ad Add error handling 2026-03-09 16:41:38 +00:00
adamf 41d6cf0dac omg fix undefined variable
Deploy with Docker Compose / deploy (push) Has been cancelled
2026-03-09 16:29:56 +00:00
adamf 1e3c6adf5e Fix file permissions on image upload
Deploy with Docker Compose / deploy (push) Has been cancelled
2026-03-09 16:23:44 +00:00
adamf 99ddd7d494 Fix file permissions
Deploy with Docker Compose / deploy (push) Has been cancelled
2026-03-09 16:20:47 +00:00
adamf 8e50537333 Get AI to fix vunerabilities in site
Deploy with Docker Compose / deploy (push) Has been cancelled
2026-03-09 14:12:29 +00:00
adamf 85a2325683 change file permissions to /uploads
Deploy with Docker Compose / deploy (push) Successful in 4m0s
2026-03-09 13:59:59 +00:00
adamf 0a8a752433 Add file upload to website and integrate into chat
Deploy with Docker Compose / deploy (push) Successful in 5m12s
2026-03-09 13:47:45 +00:00
adamf 4c396ef30f Add file upload to website and integrate into chat
Deploy with Docker Compose / deploy (push) Has been cancelled
2026-03-09 13:47:38 +00:00
adamf 2737b4f0d0 Avoid panic on spotify if not authed
Deploy with Docker Compose / deploy (push) Successful in 3m35s
2026-03-07 17:46:55 +00:00
adamf 9fa953c969 Add local dev mode with HTTP-only nginx and DB seeding)
Deploy with Docker Compose / deploy (push) Successful in 5m11s
2026-03-07 17:36:54 +00:00
adamf 0da6d3f0ed check duplicates before making claude request
Deploy with Docker Compose / deploy (push) Successful in 3m31s
2026-03-07 16:51:11 +00:00
adamf adcf1bda48 Check that paces are reasonable
Deploy with Docker Compose / deploy (push) Has been cancelled
2026-03-07 16:43:08 +00:00
adamf a83b98eb2b Make chat persistent across reboot
Deploy with Docker Compose / deploy (push) Successful in 3m25s
2026-03-05 21:43:04 +00:00
adamf 9dc9a3a063 Pose max message limit on chat function so no crash ^_^
Deploy with Docker Compose / deploy (push) Successful in 3m30s
2026-03-05 20:07:08 +00:00
adamf 95635c86b3 Fix up live chat
Deploy with Docker Compose / deploy (push) Successful in 4m26s
2026-03-05 19:14:05 +00:00
adamf 646f93136d update rowing information to non fricken nanoseconds who though time.Durations should be nanoseconds
Deploy with Docker Compose / deploy (push) Successful in 3m45s
2026-03-04 16:48:21 +00:00
adamf e43c07b30a more verbose error response
Deploy with Docker Compose / deploy (push) Successful in 3m17s
2026-03-04 16:10:52 +00:00
adamf 190bc6076b remove json boilerplate, log error and return response
Deploy with Docker Compose / deploy (push) Successful in 2m45s
2026-03-04 15:58:14 +00:00