Commit Graph

413 Commits

Author SHA1 Message Date
3907ee1538 feat(activitypub): index hashtags from incoming federated notes 2026-05-16 02:51:09 +02:00
98e96b306a fix(postgres): accept_note returns ThoughtId via SELECT after INSERT 2026-05-16 02:48:52 +02:00
0d43d0adb9 refactor(ap-ports): accept_note returns ThoughtId instead of () 2026-05-16 02:46:20 +02:00
1d35cedf3f docs: federated hashtag indexing implementation plan 2026-05-16 02:43:39 +02:00
f895503175 docs: federated hashtag indexing design spec 2026-05-16 02:39:33 +02:00
78ee7b9388 feat: suspense boundaries, streaming sidebar, N+1 fix for top-friends
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 5m3s
test / unit (pull_request) Successful in 16m12s
test / integration (pull_request) Failing after 17m8s
- Backend: top-friends endpoint returns Vec<UserResponse> (JOIN already existed, handler was discarding data)
- Frontend: TopFriends self-contained — fetches own data via cookies, no more N+1 getUserProfile calls
- Frontend: sidebar (TopFriends, PopularTags, UsersCount) wrapped in Suspense — feed renders immediately
- Frontend: TagsSkeleton + CountSkeleton added to loading-skeleton.tsx
- Frontend: loading.tsx skeleton files added for feed, tags, search, and thread pages
2026-05-16 02:18:51 +02:00
f135e4d583 feat(frontend): loading.tsx skeletons for feed, tags, search, and thread pages 2026-05-16 02:16:45 +02:00
42baf3fe3c perf(frontend): stream sidebar via Suspense — feed renders immediately; sidebar loads async 2026-05-16 02:14:36 +02:00
e86f07ef34 refactor(frontend): TopFriends self-contained — fetches own data, no N+1 2026-05-16 02:11:05 +02:00
98d3fdb832 feat(frontend): TagsSkeleton and CountSkeleton for sidebar Suspense fallbacks 2026-05-16 02:10:55 +02:00
2c3e7934b8 fix(frontend): getTopFriends schema returns UserSchema[] not string[] 2026-05-16 02:10:37 +02:00
29e4af26d8 fix(api): top-friends endpoint returns full UserResponse — eliminates frontend N+1 2026-05-16 02:08:22 +02:00
57b1bfc447 feat(api-types): TopFriendsResponse with Vec<UserResponse> 2026-05-16 02:06:06 +02:00
28521cc9ed docs: suspense + streaming implementation plan 2026-05-16 02:03:52 +02:00
7f10349c76 docs: suspense + streaming design spec 2026-05-16 01:59:16 +02:00
e2210ba0f0 feat(frontend): performance + DRY + composition overhaul
- Tagged fetch cache: all GET fetches have next.tags for targeted invalidation
- Server Actions (thoughts, social, profile) replace scattered router.refresh()
- Eliminated author profile waterfall — use thought.author directly
- useOptimistic on FollowButton for instant feedback
- ThoughtForm unifies PostThoughtForm and ReplyForm
- EmptyState and LoadingSkeleton shared primitives
- RemoteUserProfile split into ProfileCard + Connections
2026-05-15 23:21:51 +02:00
448cd506eb fix(frontend): remove dead activeTab state; guard URL hostname parse 2026-05-15 20:21:05 +02:00
c1c9539978 refactor(frontend): split RemoteUserProfile into ProfileCard + Connections 2026-05-15 20:16:39 +02:00
688e7b0018 refactor(frontend): FollowButton useOptimistic + Server Action; edit-profile-form Server Action 2026-05-15 20:08:49 +02:00
71233f069e fix(frontend): ThoughtForm — safe onSuccess?.() on cancel, dedupe reply textarea classes 2026-05-15 20:07:27 +02:00
d450a1d8d8 refactor(frontend): EmptyState + LoadingSkeleton primitives; unified ThoughtForm replaces PostThoughtForm and ReplyForm 2026-05-15 20:01:00 +02:00
dadfe04934 perf(frontend): eliminate author profile waterfall — use thought.author directly 2026-05-15 19:47:06 +02:00
9ecbde019d feat(frontend): Server Actions for thought, social, and profile mutations 2026-05-15 19:43:10 +02:00
ed789c6170 fix(frontend): tag remaining GET fetches for cache invalidation 2026-05-15 19:41:50 +02:00
091c3a4706 feat(frontend): add next.tags cache support to apiFetch; tag all GET fetches 2026-05-15 19:38:24 +02:00
fe610c8b6f fix(frontend): tag getTopFriends fetch 2026-05-15 19:30:17 +02:00
4f92c16c0f docs: frontend overhaul implementation plan 2026-05-15 19:24:28 +02:00
896d2d86c9 docs: frontend overhaul design spec 2026-05-15 19:17:31 +02:00
94ea7a287f clean up
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 5m2s
test / unit (pull_request) Successful in 16m56s
test / integration (pull_request) Failing after 17m15s
2026-05-15 18:58:45 +02:00
511a09db25 chore: remove arch-refactors subproject
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 5m0s
test / unit (pull_request) Successful in 16m19s
test / integration (pull_request) Failing after 17m4s
2026-05-15 18:58:24 +02:00
0592861edd refactor: 5 architectural improvements (Tasks 2-5 + Task 6 fix)
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 5m2s
test / unit (pull_request) Successful in 16m19s
test / integration (pull_request) Failing after 17m15s
- feat(domain): Hashtag value object with canonical extract() — unifies two
  divergent private implementations; fields pre-compute raw/normalized/url_slug/ap_name

- feat(presentation): Deps<S: FromAppState> extractor — each handler now
  declares its exact dependency surface; AppState unchanged; handlers
  become unit-testable without mocking all 20 deps

- refactor(feed): replace 5 flat FeedRepository methods with FeedQuery/FeedScope
  — single query() method; SQL shared logic lives once; adding feed types
  no longer requires 5 edits

- refactor(activitypub): ActivityPubRepository + OutboundFederationPort moved
  out of domain::ports into activitypub-base::ap_ports — domain crate no
  longer knows about AP IDs, inboxes, or actor URLs

- fix(outbox): OutboxRelay now opens a per-row transaction so FOR UPDATE
  SKIP LOCKED actually holds the lock during publish + mark_delivered
2026-05-15 18:54:20 +02:00
6024a65060 feat(infra): transactional outbox — OutboxWriter port, PgOutboxWriter, OutboxRelay, TestOutbox; update create_thought + delete_thought 2026-05-15 18:31:57 +02:00
15b1d0fdb7 fix(db): map 23505 unique_violation to DomainError::Conflict (→ HTTP 409); close TOCTOU on register save 2026-05-15 17:03:48 +02:00
a02ae3e662 fix(db): in_reply_to_id FK ON DELETE SET NULL — deleting a thought no longer blocks if it has replies
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m40s
test / unit (pull_request) Successful in 16m10s
test / integration (pull_request) Failing after 17m4s
2026-05-15 16:29:57 +02:00
e43d784c39 feat(worker): DLQ processor — exhausted events moved to failed_events with exponential retry 2026-05-15 16:26:44 +02:00
c092b9e658 feat(postgres): failed_events table and PgFailedEventStore for dead-letter queue 2026-05-15 16:23:21 +02:00
340886fcfe fix(nats): explicit consumer config, ack timeouts, unknown-event acking, delivery_count 2026-05-15 16:20:31 +02:00
75e8d349e3 fix(auth): validate JWT secret length, equalize login timing, reduce TTL to 24h 2026-05-15 16:16:58 +02:00
50a08d8ed6 docs: NATS hardening + DLQ + auth security implementation plan 2026-05-15 16:15:10 +02:00
e278e4e2cc docs: NATS hardening, DLQ, and auth security design spec 2026-05-15 16:10:11 +02:00
fd9e526b81 fix(search): use to_thought_response in search handler — was returning snake_case partial data
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m24s
test / unit (pull_request) Successful in 16m42s
test / integration (pull_request) Failing after 17m1s
2026-05-15 15:44:59 +02:00
6dd4e3366c fix(search): viewer-aware SQL in search_thoughts — ViewerContext now real instead of hardcoded false 2026-05-15 15:24:55 +02:00
48b57abf92 refactor(adapters): update FeedEntry construction to use EngagementStats + ViewerContext 2026-05-15 15:21:48 +02:00
686dc1c91a refactor(domain): FeedEntry — EngagementStats + Option<ViewerContext> sub-structs 2026-05-15 15:20:07 +02:00
693f53b4b6 docs: FeedEntry decoupling implementation plan 2026-05-15 15:18:32 +02:00
a245b7b8b9 docs: FeedEntry decoupling design spec 2026-05-15 15:15:33 +02:00
988f5c75aa fix(tests): use distinct usernames in notification tests 2026-05-15 14:11:58 +02:00
3f6b91c943 refactor(ports): ActivityPubRepository takes &str instead of url::Url — infra type stays in adapter 2026-05-15 14:06:33 +02:00
c76894e527 refactor(domain): remove AP delivery fields (inbox_url, public_key) from domain RemoteActor 2026-05-15 14:02:53 +02:00
1a77e15d70 refactor(application): remove pass-through search use cases — call SearchPort directly 2026-05-15 13:59:30 +02:00