Skip to content

[DEPLOYMENT] Login basic homepage#6

Merged
maxogod merged 3 commits intomainfrom
dev
Jun 12, 2025
Merged

[DEPLOYMENT] Login basic homepage#6
maxogod merged 3 commits intomainfrom
dev

Conversation

@maxogod
Copy link
Copy Markdown
Member

@maxogod maxogod commented Jun 12, 2025

No description provided.

@maxogod maxogod requested a review from Copilot June 12, 2025 07:09
@maxogod maxogod self-assigned this Jun 12, 2025
@maxogod maxogod merged commit f05dbf4 into main Jun 12, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a basic login homepage along with tailwindcss integration and related configuration updates to support the backoffice deployment.

  • Adds tailwindcss to Vite and PostCSS configurations
  • Implements a new login service, hook, and UI components for authentication
  • Updates routing, homepage, error page, and deployment configurations

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated no comments.

Show a summary per file
File Description
vite.config.ts Added tailwindcss plugin configuration
src/services/auth.ts Created login API call using axios
src/pages/NotFound.tsx Introduced a custom 404 page
src/pages/Home.tsx Created a homepage which uses the Login component
src/index.css Added tailwind base import and theme variable definitions
src/hooks/useAuth.ts Implemented a custom hook for handling login state
src/components/Login.tsx Developed a login form component with basic error/loading handling
src/Router.tsx Configured routes for Home and NotFound pages
src/App.tsx Updated app component to use the Router
src/App.css Removed obsolete styles
src/@types/admin.ts Defined AdminRequest type
postcss.config.js Updated tailwindcss postcss plugin configuration
package.json Updated dependencies, including tailwindcss, axios, and react-routerDom
index.html Modified title and favicon for backoffice branding
helm-chart/values.yaml Added VITE_ADMIN_SERVICE_URL environment variable for deployment
Comments suppressed due to low confidence (1)

src/hooks/useAuth.ts:11

  • Consider specifying a proper type for 'admin' instead of using null (which defaults to any) to improve type safety. For example, you might use the Admin type imported from '../@types/admin' if applicable.
const [admin, setAdmin] = useState(null)

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.

2 participants