Skip to content

feat(frontend): demo mode adjustments#45

Merged
ivanskv2000 merged 3 commits into
mainfrom
feat(frontend)/demo-mode-adjustments
May 18, 2026
Merged

feat(frontend): demo mode adjustments#45
ivanskv2000 merged 3 commits into
mainfrom
feat(frontend)/demo-mode-adjustments

Conversation

@ivanskv2000
Copy link
Copy Markdown
Owner

Summary

This PR implements environment-specific adjustments for the demo mode in the frontend.

Changes

  • Login Form:
    • Pre-fills email (demo@evsy.dev) and password (bestructured) when VITE_ENV is set to demo.
    • Hides the "Don't have an account? Sign up" link in the login form when in demo mode.
  • Router:
    • Dynamically disables the /signup route when in demo mode using useAppConfig.

Impact

Improves user experience for demo users by providing ready-to-use credentials and prevents new signups in the demo environment.

Testing

  • Verified useAppConfig usage.
  • Ensured isDemo is handled as a plain boolean (no .value).
  • Confirmed template logic for hiding signup link.

@sonarqubecloud
Copy link
Copy Markdown

@ivanskv2000 ivanskv2000 changed the title Feat(frontend): demo mode adjustments feat(frontend): demo mode adjustments May 18, 2026
@ivanskv2000 ivanskv2000 merged commit 395ca62 into main May 18, 2026
4 of 5 checks passed
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.

1 participant