Repository navigation
feat: ✨ add vehicles browser and switch to Star Citizen Wiki API v3 spec - #288
Merged
Merged
Conversation
- Add a Vehicles tab and details flow (VehiclesScreen, VehicleCard, VehicleNavigator) - Generate the Star Citizen Wiki API client with orval from api/starcitizen.yml - Add DataTableKeyValueRow and a typography theme for shared display styles - Add ajv and orval dev dependencies and an argent MCP config for VS Code
- Replace the vehicles-only OpenAPI 3.1 spec with the full Star Citizen Wiki API 3.0 spec in api/starcitizen.yml - Regenerate the orval client and schemas in src/api/ from the new spec - Update VehicleCard and VehiclesScreen to match the regenerated types
- Add challenge 04 on generating a typed react-query client with Orval, with the SWAPI starships OpenAPI spec in challenges/data/swapi.yml - Remove the spacecraft vehicles browser: its Star Citizen spec, Orval config, generated API, screen, card and navigator - Drop the matching Orval and generated-client dependencies and update the tab navigator and routes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
VehicleCardfor each entry.api/starcitizen.yml), generated with Orval intosrc/api/./api/vehicles(v3) withpage[size]=50and infinite scroll.page[number]instead ofpage. Withpage, the API ignorespage[size]and falls back to 30 per page.VehicleCarduses theGameVehicletype. The middle chip now shows the vehicle type, becausesizeis no longer in the schema.VehiclesScreentolerates missingdataandmeta, since every response field is optional in v3.Testing
page[size]=50&page[number]=2returnsper_page: 50,current_page: 2.orval.config.ts.tsc --noEmitreports no errors in the vehicle files. It still reports 10 errors in unrelated files (Card.stories.tsx,StarshipCard.test.tsx,PilotNavigator.tsx,PlanetNavigator.tsx,StarshipNavigator.tsx,PlanetsScreen.tsx,TermsScreen.tsx,withAnimated.tsx). These predate this change.VehicleCardorVehiclesScreen.Known spec mismatches
en/de, but the API still returnsen_EN/de_DE.VehicleCardreads both forms.sizefield that the spec no longer lists.