Closed ManyRios closed 5 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
bitcoinpokertour | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 20, 2024 11:05pm |
The changes include restructuring the Home component's layout, replacing Moment.js with a custom type import, adding new functions in utilities, and introducing a Formik-powered form component for user registration. These updates enhance layout styling, facilitate registration data submission, and support a new registration form in the application.
Files / Groups | Change Summary |
---|---|
src/app/page.tsx |
Restructured welcome message layout, split text into separate lines, and updated <div> container with flex flex-col classes for improved styling. |
src/lib/utils.ts |
Replaced Moment.js import with IRegisterEvent , added sendRegistration function for registration data submission, and modified getRegistrations function for updated error handling. |
src/components/ui/Forms/Form.tsx |
Introduced new Formik-based Forms component for user registration with validation for name, email, and bitcoin address, using sendRegistration function. |
sequenceDiagram
participant User
participant Form as Form Component
participant Utils as Utils Library
participant API as Registration API
User->>Form: Submit Registration Form
Form->>Utils: call sendRegistration()
Utils->>API: HTTP POST /registration
API-->>Utils: Registration Response
Utils-->>Form: API Response
Form-->>User: Display Confirmation
Objective | Addressed | Explanation |
---|---|---|
Create a form for registration with specified fields (#6 ) |
✅ | |
Ensure form uses HTTP POST /registration to submit data (#6 ) |
✅ | |
Replace Moment.js with type imports and add sendRegistration function (#6 ) |
✅ |
Among the lines and code so bright,
A rabbit coded day and night.
With tools and forms and utils blend,
Registration flows once again.
Amidst the lines, the code's delight,
Bringing joy to users' sight.
🎉💻🐇
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Closes https://github.com/bitcoinbrisbane/bitcoinpokertour/issues/6 https://github.com/bitcoinbrisbane/bitcoinpokertour/issues/33 https://github.com/bitcoinbrisbane/bitcoinpokertour/issues/35 https://github.com/bitcoinbrisbane/bitcoinpokertour/issues/7
Summary by CodeRabbit
New Features
UI Improvements