-
Notifications
You must be signed in to change notification settings - Fork 0
feat(Admin): Migrate Admin Portal from Blazor WASM to React/Next.js #178
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
08732de
feat(Admin): Scaffold Admin Portal React project with Next.js
8aa1675
feat(Admin): Add foundation for Admin Portal React app
6753bcb
build(deps): update package-lock.json
8b80a43
feat(Admin): Add API client with TanStack Query hooks
b338be0
feat(Admin): Add CRUD functionality to admin pages
5c1ea53
feat(Admin): Add provider detail page with approve/reject actions
9c7d2ad
feat(Admin): Add dark/light theme toggle
ff7a084
feat(Admin): Complete auth integration, form validation, toasts, and …
75f15dc
docs: Add Admin Portal React frontend documentation
79393b9
feat: Initialize the new admin panel frontend application.
a5c2b1c
feat: Add GitHub Actions workflow for pull request validation, includ…
0456012
feat: Implement admin pages for managing allowed cities with CRUD, se…
b84e407
feat: add initial admin pages for categories, documents, providers, a…
b85dc8d
feat: Implement admin settings page with theme switching and foundati…
7d1be2c
feat: Implement initial admin dashboard UI with sidebar navigation an…
bc2bf38
feat: Add admin panel for managing service categories with full CRUD …
5c9846d
feat: add admin page for managing service categories with create, rea…
48c5ce9
feat: Introduce admin panel for service category CRUD operations and …
a8191be
feat: Add admin page for managing service categories with CRUD operat…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Allow OpenAPI generated types | ||
| !src/lib/api/generated/ |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| { | ||
| "jsc": { | ||
| "target": "es2017", | ||
| "parser": { | ||
| "syntax": "typescript", | ||
| "decorators": true, | ||
| "dynamicImport": true | ||
| }, | ||
| "transform": { | ||
| "decoratorMetadata": true, | ||
| "legacyDecorator": true | ||
| }, | ||
| "keepClassNames": true, | ||
| "externalHelpers": true, | ||
| "loose": true | ||
| }, | ||
| "module": { | ||
| "type": "commonjs" | ||
| }, | ||
| "sourceMaps": true, | ||
| "exclude": [ | ||
| "jest.config.[ct]s", | ||
| ".*\\.spec.tsx?$", | ||
| ".*\\.test.tsx?$", | ||
| "./src/jest-setup.ts$", | ||
| "./**/jest-setup.ts$", | ||
| ".*.js$", | ||
| ".*.d.ts$" | ||
| ] | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
| declare module '*.svg' { | ||
| const content: any; | ||
| export const ReactComponent: any; | ||
| export default content; | ||
| } | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| /// <reference types="next" /> | ||
| /// <reference types="next/image-types/global" /> | ||
|
|
||
| // NOTE: This file should not be edited | ||
| // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| //@ts-check | ||
|
|
||
| // eslint-disable-next-line @typescript-eslint/no-var-requires | ||
| const { composePlugins, withNx } = require('@nx/next'); | ||
|
|
||
| /** | ||
| * @type {import('@nx/next/plugins/with-nx').WithNxOptions} | ||
| **/ | ||
| const nextConfig = { | ||
| // Use this to set Nx-specific options | ||
| // See: https://nx.dev/recipes/next/next-config-setup | ||
| nx: {}, | ||
| }; | ||
|
|
||
| const plugins = [ | ||
| // Add more Next.js plugins to this list if needed. | ||
| withNx, | ||
| ]; | ||
|
|
||
| module.exports = composePlugins(...plugins)(nextConfig); |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import { defineConfig } from '@hey-api/openapi-ts'; | ||
|
|
||
| export default defineConfig({ | ||
| input: process.env.NEXT_PUBLIC_OPENAPI_SPEC_URL ?? 'http://localhost:7002/api-docs/v1/swagger.json', | ||
| output: './src/lib/api/generated', | ||
| plugins: [ | ||
| '@tanstack/react-query', | ||
| 'zod', | ||
| ], | ||
| }); |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| const { join } = require('path'); | ||
|
|
||
| // Note: If you use library-specific PostCSS/Tailwind configuration then you should remove the `postcssConfig` build | ||
| // option from your application's configuration (i.e. project.json). | ||
| // | ||
| // See: https://nx.dev/guides/using-tailwind-css-in-react#step-4:-applying-configuration-to-libraries | ||
|
|
||
| module.exports = { | ||
| plugins: { | ||
| tailwindcss: { | ||
| config: join(__dirname, 'tailwind.config.js'), | ||
| }, | ||
| autoprefixer: {}, | ||
| }, | ||
| }; |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "name": "MeAjudaAi.Web.Admin-React", | ||
| "$schema": "../node_modules/nx/schemas/project-schema.json", | ||
| "sourceRoot": "MeAjudaAi.Web.Admin-React", | ||
| "projectType": "application", | ||
| "tags": [], | ||
| "// targets": "to see all targets run: nx show project MeAjudaAi.Web.Admin-React --web", | ||
| "targets": {} | ||
| } |
Empty file.
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.