Skip to content

Frontend - #140

Merged
Typogalaxy merged 6 commits into
devfrom
feature/frontend
Aug 4, 2026
Merged

Frontend#140
Typogalaxy merged 6 commits into
devfrom
feature/frontend

Conversation

@Typogalaxy

Copy link
Copy Markdown
Member

Summary

Establishes the frontend API foundation using the backend OpenAPI schema as the source of truth.

What changed

  • Generate committed TypeScript API types from apps/backend/openapi/v1.yaml
  • Add a request-scoped, type-safe openapi-fetch client
  • Support SSR cookie forwarding without sharing state between requests
  • Add browser-side CSRF bootstrap and automatic CSRF headers for unsafe requests
  • Add useApi() and useApiData() composables for interactions and SSR data loading
  • Add standardized API response unwrapping and error handling
  • Configure separate browser and internal SSR API base URLs
  • Update dev, staging, and production Compose configuration
  • Allow Django to accept internal service hosts and configured CSRF trusted origins
  • Add CI drift checks for generated API types
  • Add API client tests covering cookie forwarding and CSRF behavior
  • Document API generation and usage conventions

@Typogalaxy Typogalaxy linked an issue Aug 4, 2026 that may be closed by this pull request
Closed
@github-actions github-actions Bot added feature This asks for a new feature or enhancement. backend This changes files in app/backend/. frontend This changes files in app/frontend/. infra This changes files in infra/. .github This modifies files in .github/. labels Aug 4, 2026
@Typogalaxy Typogalaxy linked an issue Aug 4, 2026 that may be closed by this pull request
@Typogalaxy
Typogalaxy merged commit dccb908 into dev Aug 4, 2026
15 checks passed
@Typogalaxy
Typogalaxy deleted the feature/frontend branch August 4, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend This changes files in app/backend/. feature This asks for a new feature or enhancement. frontend This changes files in app/frontend/. .github This modifies files in .github/. infra This changes files in infra/.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API Re-init frontend

1 participant