-
Notifications
You must be signed in to change notification settings - Fork 1
ui: prepare api client and display pending quotes #3
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
Conversation
@eslint/js ^9.19.0 → ^9.21.0 @tailwindcss/vite ^4.0.7 → ^4.0.8 @tanstack/react-query ^5.66.8 → ^5.66.9 @types/node ^22.13.4 → ^22.13.5 @types/react ^19.0.8 → ^19.0.10 @types/react-dom ^19.0.3 → ^19.0.4 eslint ^9.20.1 → ^9.21.0 eslint-plugin-react-hooks ^5.0.0 → ^5.1.0 eslint-plugin-react-refresh ^0.4.18 → ^0.4.19 msw ^2.7.0 → ^2.7.1 prettier ^3.5.1 → ^3.5.2 tailwind-merge ^3.0.1 → ^3.0.2 tailwindcss ^4.0.7 → ^4.0.8 typescript ~5.7.2 → ~5.7.3 typescript-eslint ^8.22.0 → ^8.24.1 vite ^6.1.0 → ^6.1.1
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
PR Type
Enhancement, Tests, Dependencies, Configuration changes, Documentation
Description
Generated an API client from the Wildcat OpenAPI definition, including TypeScript types, React Query hooks, and SDK functions for API interactions.
Enhanced the balances and quotes pages with new components, charts, and developer mode features.
Added new pages and routing for displaying individual quote details.
Introduced mock handlers, mock database entries, and updated test configurations for API interactions.
Updated dependencies, scripts, and configurations for OpenAPI client generation and integration.
Added new utility functions and hooks for local storage and API client management.
Improved UI components such as breadcrumbs, sidebar, and labels for better user experience.
Added and updated OpenAPI specification files for development and minimal API definitions.
Changes walkthrough 📝
10 files
BalancesPage.tsx
Enhanced balances page with charts and developer mode.
src/pages/balances/BalancesPage.tsx
using
recharts
.Loader
component for suspense fallback.PageBody
andDevSection
for rendering balance data anddeveloper mode details.
BalanceChart
with new card-based balancedisplays.
QuotePage.tsx
New QuotePage for displaying quote details.
src/pages/quotes/QuotePage.tsx
Loader
,Quote
, andDevSection
components for rendering quotedata and developer mode.
useSuspenseQuery
for fetching quote data.api.ts
Refactored API utilities for balance fetching.
src/lib/api.ts
apiFetch
utility for improved error handling.QuotesPage.tsx
Enhanced QuotesPage with React Query and navigation.
src/pages/quotes/QuotesPage.tsx
quotes.
SettingsPage.tsx
Added developer mode toggle to settings page.
src/pages/settings/SettingsPage.tsx
Loader
component for suspense fallback.Breadcrumbs.tsx
Enhanced breadcrumbs with parent link support.
src/components/Breadcrumbs.tsx
use-local-storage.ts
New custom hook for local storage management.
src/hooks/use-local-storage.ts
local-storage.ts
Utility functions for local storage operations.
src/utils/local-storage.ts
label.tsx
New Label component using Radix UI.
src/components/ui/label.tsx
Label
component using Radix UI.use-api-client.ts
New hook for accessing API client.
src/hooks/use-api-client.ts
8 files
types.gen.ts
Auto-generated API client types for quotes and balances.
src/generated/client/types.gen.ts
react-query.gen.ts
Auto-generated React Query hooks for API client.
src/generated/client/@tanstack/react-query.gen.ts
sdk.gen.ts
Auto-generated SDK for API interactions.
src/generated/client/sdk.gen.ts
client.gen.ts
Auto-generated client configuration for API.
src/generated/client/client.gen.ts
index.ts
Auto-generated index for API client exports.
src/generated/client/index.ts
mockServiceWorker.js
Updated mock service worker version.
public/mockServiceWorker.js
package.json
Updated dependencies and scripts for OpenAPI integration.
package.json
package-lock.json
Dependency updates and additions for API client integration.
package-lock.json
@hey-api/client-fetch
and@hey-api/openapi-ts
.@tailwindcss/vite
,@tanstack/react-query
, andeslint
.@pkgr/core
andeslint-plugin-prettier
.chokidar
,dotenv
, andhandlebars
.4 files
db.ts
Extended mock database with quote entries.
src/mocks/db.ts
admin_quotes.ts
Added mock handlers for admin quote APIs.
src/mocks/handlers/admin_quotes.ts
database.
balances.ts
Added mock handler for balance API.
src/mocks/handlers/balances.ts
handlers.ts
Updated mock handlers for API endpoints.
src/mocks/handlers.ts
6 files
main.tsx
Added routing for QuotePage.
src/main.tsx
QuotePage
.openapi-ts.config.ts
Configuration for OpenAPI client generation.
openapi-ts.config.ts
eslint.config.js
Updated ESLint configuration to exclude generated files.
eslint.config.js
src/generated
directory from ESLint checks.tsconfig.app.json
Updated TypeScript configuration for OpenAPI integration.
tsconfig.app.json
openapi-ts.config.ts
in the TypeScript configuration.include
paths for better coverage..env.development
Updated development environment variables.
.env.development
VITE_API_BASE_URL
value for development..prettierignore
Updated Prettier ignore configuration.
.prettierignore
src/generated
directory from Prettier formatting.2 files
layout.tsx
Minor UI improvement for sidebar trigger.
src/layout.tsx
AppSidebar.tsx
Updated sidebar item title for clarity.
src/components/AppSidebar.tsx
2 files
__dev_openapi.json
Added development OpenAPI specification.
opt/wildcat/__dev_openapi.json
openapi.json
Added minimal OpenAPI specification.
opt/wildcat/openapi.json
2 files