Files
CatoandClaude Opus 5.5 24c3d140ae docs: archive point-in-time records, fix live docs against the tree (#1349)
* docs: archive point-in-time records, drop broken guide symlinks

Status reports, progress trackers, audits, session summaries, completed
migration plans and the 2025 roadmap move to docs/archive/ (same relative
path), with a README saying they describe the day they were written.
.ai-guides/ held only symlinks into a docs/guides/ai/ that no longer
exists, tests/unit/docs/ held a stray copy of an old getting-started page,
and docs/operations/PORT_MANAGEMENT_README.md duplicated port-management.md;
all three are deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

* docs: correct drifted paths, links and versions in current docs

Fix in place the reference docs agents use: point paths at where the code
lives now (src/stores/auth.ts, src/lib/supabase/*, scripts/dev/*,
docs/reference/api/CONVENTIONS.md, the squashed baseline migration),
rewrite the development, features, operations and API index pages to list
documents that exist, say plainly where something is gone (/api/metrics,
the CSP report route, .envrc in the repo, Loki's `migrate` script), and
correct the Next.js major. docs-truth findings: 468 -> 2 (both "Next 30/90
Days" headings in the legal overview, a checker false positive).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 14:09:06 +02:00
..

Posting System Documentation

created_date: 2024-11-01 last_modified_date: 2025-12-11 last_modified_summary: Added sign-in prompt and quote repost text rendering fix

Overview

Twitter/X-style posting system with mobile-first design, robust error handling, and offline support.


Documents

PRDs & Status

Sprints & Summaries


Current Status

✅ Week 1: Foundation (COMPLETE)

  • Simple useState-based hook (usePostComposerNew.ts).
  • Error boundaries with recovery (PostingErrorBoundary.tsx).
  • Draft auto-save and retry logic.

✅ Week 2: Mobile UX & Accessibility (COMPLETE)

  • Progressive Disclosure: Implemented BottomSheet for a clean, mobile-native UI.
  • Touch Targets: All interactive elements now meet the 44px minimum standard.
  • Accessibility: Fixed color contrast, corrected ARIA attributes, and implemented a keyboard focus trap.

✅ Week 3: Robustness & Offline Support (COMPLETE)

  • Offline Posting: Users can now create posts while offline; posts are queued locally.
  • Automatic Sync: Queued posts are automatically sent when the app comes back online.
  • UI Indicator: A visual indicator informs the user about offline status and pending posts.
  • Comprehensive Error Handling: Specific, user-friendly error messages for API failures.

⏳ Week 4: Performance & Polish (PARTIALLY COMPLETE)

  • Performance analysis baseline established.
  • Bundle size and component costs are now understood.
  • Next Up: Deep dive into performance optimization and final polish.

Key Files

Hooks

  • src/hooks/usePostComposerNew.ts - Main posting hook.
  • src/hooks/useOfflineQueue.ts - New hook for offline queue status.
  • src/hooks/usePostComposer.ts - Legacy (deprecated, will archive).

Components

  • src/components/timeline/PostComposerMobile.tsx - Primary mobile composer.
  • src/components/ui/BottomSheet.tsx - New reusable component.
  • src/components/ui/OfflineQueueIndicator.tsx - New UI for offline queue status.
  • src/components/ui/OfflineQueueManager.tsx - New bottom sheet to view/remove/retry queued posts.
  • src/components/SyncManagerInitializer.tsx - New component for initializing sync.
  • src/components/timeline/PostingErrorBoundary.tsx - Error recovery wrapper.

Services/Libs

  • src/lib/offline-queue.ts - New service for IndexedDB queue management.
  • src/lib/sync-manager.ts - New service for offline queue synchronization.

Next Priority: Performance Optimization & Final Polish

Goal: Complete Week 4 of the PRD.

Tasks:

  1. Performance Optimization:
    • Analyze bundle size reports for further reductions.
    • Profile component rendering to identify and fix bottlenecks.
    • Implement code splitting or lazy loading where beneficial.
  2. Final Polish:
    • Comprehensive mobile device testing.
    • Refine animations and user feedback.
    • Offline Queue Manager: bottom sheet added with remove/retry controls.

Timeline: ~1 week


Last Updated: 2025-11-16