- PostizContext: new PostizWorkspace type, multi-workspace storage
(postiz_workspaces_v2), auto-migration from legacy single config,
addWorkspace / updateWorkspace / removeWorkspace, clients map
- Settings: full rewrite with workspace card list (add / edit / delete)
- Compose: channels displayed in two levels — workspace section then
network type (X/Twitter, Instagram, LinkedIn...) within each workspace;
submit routes posts and image uploads per workspace
- MediaLibraryModal: workspace tabs when multiple workspaces configured,
returned items carry their workspaceId
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Extract shared extractError utility (lib/extractError.ts), remove 3 duplicate copies
- Export DEFAULT_BASE_URL from PostizContext, remove duplicate in settings
- Add 401 interceptor in axios client: fires UnauthorizedHandler in _layout → alert + redirect to Settings
- Calendar day items now tappable: tap opens context menu (Copy / Edit / Repost)
- Persist sort order (newest/oldest) across sessions via AsyncStorage
- Filter chips show post count per status (Queue 3, Error 1, etc.)
- Copy text action now shows a brief "Copied" toast + haptic feedback
- PostCard: swipe right → Reschedule action (QUEUE posts only, amber color)
- Compose: per-network char limit (Twitter 280, Instagram 2200…) with color warning at 90%
- Compose: local draft save/restore via AsyncStorage with restore banner on open
- Compose: prefillImagePath/prefillImageId params allow Edit/Repost to carry over existing media
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Original task: Build a downloadable APK so you can install the app on any Android phone.
Root cause found and fixed:
- The default base URL was "https://postiz.gyozamancave.fr/public/v1" — this path
returns a 307 redirect to /auth (unauthenticated). The correct path for self-hosted
Postiz is "/api/public/v1". Fixed in both PostizContext.tsx and settings.tsx.
- Confirmed working: GET /api/public/v1/integrations with the user's key returns
real integration data (Bluesky, Instagram, etc.)
Other improvements in this task:
- settings.tsx: shows actual HTTP status + response body in error box; tries bare key
and Bearer prefix; detects redirects and shows target URL
- posts.tsx, index.tsx: show real HTTP error detail on failed loads and deletes
- compose.tsx: upload and submit failures show actual error message
- eas.json: already correct (preview=APK, production=AAB)
- app.json: added android.package "fr.gyozamancave.postizmobile" (required by EAS)
- All changes pushed to Gitea via PAT (http.extraHeader Authorization: token ...)
APK build status:
- Cannot be triggered without a free Expo account (expo.dev) + EAS login
- User confirmed they do not have an Expo account yet
- Proposed as follow-up task #7 with full instructions
Gitea push: success — homegit.gyozamancave.fr/billisdead/Postiz-android.git
Replit-Task-Id: a53d825c-7766-4ee7-a56f-fa32f895a101