Skip to content

Slo 24 business dashboard#12

Merged
Hussein-Alayan merged 301 commits into
devfrom
slo-24-business-dashboard
Sep 22, 2025
Merged

Slo 24 business dashboard#12
Hussein-Alayan merged 301 commits into
devfrom
slo-24-business-dashboard

Conversation

@Hussein-Alayan
Copy link
Copy Markdown
Owner

This pull request introduces significant improvements and refactoring to the authentication flow and project configuration in the client application. The main changes include enhanced test coverage for the sign-in form, improved handling of authentication state, updates to dependencies, and removal of unused or outdated code and documentation.

Authentication Logic and Flow

  • Added a redirect for authenticated users in both SigninContainer and SignupContainer by using the useRedirectIfAuthenticated hook, ensuring users do not access auth pages when already authenticated. [1] [2]
  • Updated the sign-in process to save the user's name in localStorage and redirect to /business-hub after successful login, instead of the previous /Business-setup route.
  • Removed legacy Google OAuth callback handling and related UI elements, streamlining the authentication flow and cleaning up unused code. [1] [2]

Testing and Accessibility

  • Added comprehensive unit tests for the SigninForm component, covering rendering, user interactions, error handling, loading states, validation, and accessibility features.
  • Improved form accessibility by adding role="form" and data-testid attributes to both SigninForm and SignupForm components. [1] [2]

Project Configuration and Dependencies

  • Added support for mocking CSS imports in Jest and included the identity-obj-proxy package to facilitate component testing. [1] [2]
  • Updated and expanded dependencies in package.json, including new UI libraries, form validation, state management, and utility packages to support enhanced functionality and future development.

Other Improvements

  • Updated Next.js image configuration to allow images from the localhost domain.
  • Cleaned up the project by removing the default Next.js README.md and unused imports/components in the authentication forms. [1] [2] [3]
  • Changed the default authentication page redirect from /auth/login to /auth/signin for consistency.

… unused gemini.py and speech_service.py files
…ng total services, active services, total clients, and total bookings
… retrieval, creation, updating, and deletion of clients
…ng retrieval, creation, updating, and deletion of resources
…g creation, retrieval, updating, and deletion of services
…idation and response structure improvements; add ResourceControllerTest for resource management functionality
…alidate conversation and voice call functionalities
… SigninForm, SignupForm, SetupNavigation, and SetupProgress components

- Updated jest.config.js to mock CSS imports using identity-obj-proxy
- Added identity-obj-proxy dependency to package.json and package-lock.json
- Created comprehensive tests for SigninForm covering rendering, user interactions, state display, error handling, loading states, form validation, and accessibility
- Developed tests for SignupForm with similar coverage including user interactions and error handling
- Implemented tests for SetupNavigation component focusing on button states, interactions, and layout structure
- Added tests for SetupProgress component to verify rendering, step status styling, progress indicators, and accessibility
…sion and prevent default behavior; update Input component to ensure proper label association
…n behavior is validated and improve code formatting
… accessibility in ServicesForm, AddServiceModal, and LandingHeader
@Hussein-Alayan Hussein-Alayan self-assigned this Sep 22, 2025
@Hussein-Alayan Hussein-Alayan added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 22, 2025
@linear
Copy link
Copy Markdown

linear Bot commented Sep 22, 2025

SLO-24 business-dashboard

@Hussein-Alayan Hussein-Alayan merged commit d3b77b3 into dev Sep 22, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant