Skip to content
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

Validates client config #1083

Draft
wants to merge 10 commits into
base: feature/distributed-demo
Choose a base branch
from

Conversation

atomicgamedeveloper
Copy link
Contributor

@atomicgamedeveloper atomicgamedeveloper commented Nov 29, 2024

Title

Validates client config.

Fixes #658

Type of Change

  • New feature
  • Bug fix
  • Documentation update
  • Refactoring
  • Security patch
  • UI/UX improvement

Description

This PR will provide a route to validate the client config file. A comprehensive, manual one for developers, and another one that automatically redirects users in case their config is incorrectly setup or URLs are unreachable.
It will also update the client dependencies. Related to issue #658.

Testing

Manual testing for now.

Impact

  • Zod dependency.
  • Once complete, the website access flow will be different if your config is wrong.
  • LayoutPublic is parameterized with a possible Breakpoint instead of always being 'xs'.
  • Additional route of '/verify'

Additional Information

None.

Checklist

  • My code adheres to the coding and style guidelines of the project.
  • I have added tests for all the new code and any changes made to
    existing code.
  • I have made corresponding changes to the documentation.

Copy link
Contributor

@prasadtalasila prasadtalasila left a comment

Choose a reason for hiding this comment

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

@atomicgamedeveloper thanks for the PR. Please check the comments.

client/src/route/auth/VerifyConfig.tsx Show resolved Hide resolved
client/src/page/LayoutPublic.tsx Show resolved Hide resolved
@prasadtalasila prasadtalasila added this to the Release v0.7.0 milestone Dec 13, 2024
@@ -90,7 +90,8 @@
"resize-observer-polyfill": "^1.5.1",
"serve": "^14.2.1",
"styled-components": "^6.1.1",
"typescript": "5.1.6"
"typescript": "5.1.6",
"zod": "^3.23.8"
Copy link
Contributor

Choose a reason for hiding this comment

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

@atomicgamedeveloper
Is this used? Overall, it is better to move the config verification logic into util/config.ts. The zod can be used there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

Validate react website configuration
2 participants