Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Migrate to autogenerated OpenAPI client #112

Merged
merged 21 commits into from
Oct 10, 2024

Conversation

filiptrplan
Copy link
Collaborator

@filiptrplan filiptrplan commented Oct 3, 2024

This is a PR that migrates the SvelteKit frontend to the backend API. It also uses the new generated OpenAPI schema to automatically make a client for the backend.

The backend PR is rivenmedia/riven#748

Migrated pages checklist:

  • library
  • type/id
  • summary
  • settings
  • browse
  • collection
  • onboarding
  • people

@filiptrplan filiptrplan changed the base branch from main to dev October 4, 2024 07:57
@filiptrplan filiptrplan marked this pull request as ready for review October 4, 2024 20:03
@filiptrplan filiptrplan changed the title Migrate to API feat: Migrate to API Oct 4, 2024
@filiptrplan filiptrplan changed the title feat: Migrate to API feat: Migrate to autogenerated OpenAPI client Oct 4, 2024
svelte.config.js Outdated Show resolved Hide resolved
src/hooks.client.ts Outdated Show resolved Hide resolved
src/hooks.server.ts Outdated Show resolved Hide resolved
svelte.config.js Outdated Show resolved Hide resolved
@filiptrplan filiptrplan merged commit b15dfec into rivenmedia:dev Oct 10, 2024
2 checks passed
@dreulavelle
Copy link
Member

Excellent work @filiptrplan :)

davidemarcoli pushed a commit that referenced this pull request Oct 25, 2024
* feat: add openapi client generation

* feat: add openapi generated API

* feat: migrate library to backend api

* feat: migrate single item page

* feat: migrate season page

* chore: add auto-generated client to the ignore for linting

* refactor: format and lint

* feat: add backend proxy

* feat: add status code forwarding to the proxy

* refactor: lint

* feat: migrate summary page

* refactor: add type to summary page loader

* feat: migrate settings to api

* feat: add settings type schema

* feat: migrate onboarding to new client

* feat: migrate item request to new client

* feat: remove the old api routes

* refactor: lint

* refactor: move client into lib

* fix: update path for generating the client

* fix: fix imports on hooks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants