Closed Harman-singh-waraich closed 3 weeks ago
The changes in this pull request enhance the email update functionality within the FormContactDetails
component by introducing a new utility function, isEmailUpdateable
, which determines if the user's email can be updated based on a timestamp. The error handling in the submission process has been refined to prevent execution on missing addresses. Additionally, a new styled component, StyledInfoCard
, provides user feedback regarding email update eligibility. Other modifications include updates to the StyledTabs
component's alignment and the structure of user data retrieval in the fetchUser
function to accommodate the new emailUpdateableAt
property.
File | Change Summary |
---|---|
web/src/layout/Header/navbar/Menu/Settings/Notifications/FormContactDetails/index.tsx | Introduced isEmailUpdateable function for email update eligibility, modified error handling in handleSubmit , added StyledInfoCard for user feedback, updated button's disabled state. |
web/src/layout/Header/navbar/Menu/Settings/index.tsx | Modified StyledTabs component to include align-self: center; CSS property. |
web/src/utils/atlas/fetchUser.ts | Updated User type to include emailUpdateableAt , redefined GetUserResponse type, modified GraphQL query to include new user property. |
web/src/utils/date.ts | Added timeLeftUntil function to calculate remaining time until a specified date. |
SubmitEvidenceModal.tsx
file enhance error handling in a way that is conceptually similar to the modifications made in the handleSubmit
function of the FormContactDetails
component, where error handling was also improved to prevent throwing errors when the address is missing.Type: FeatureπΏ
, Package: Web
π In the meadow, changes bloom,
A new function to lift the gloom.
Email updates, now a breeze,
With styled cards that aim to please.
Tabs aligned, all set to go,
Time left until the next email flow! πΌ
Name | Link |
---|---|
Latest commit | 386907254a8259374082e918704748849f8ae8c5 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-neo/deploys/6720ba35a01fc50008ac4198 |
Deploy Preview | https://deploy-preview-1729--kleros-v2-neo.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | 386907254a8259374082e918704748849f8ae8c5 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-university/deploys/6720ba35215ab40008182cc8 |
Deploy Preview | https://deploy-preview-1729--kleros-v2-university.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | 386907254a8259374082e918704748849f8ae8c5 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-testnet-devtools/deploys/6720ba35237b06000838ad1d |
Deploy Preview | https://deploy-preview-1729--kleros-v2-testnet-devtools.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | 386907254a8259374082e918704748849f8ae8c5 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-testnet/deploys/6720ba35a2868b0008c209af |
Deploy Preview | https://deploy-preview-1729--kleros-v2-testnet.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Code Climate has analyzed commit 38690725 and detected 5 issues on this pull request.
Here's the issue category breakdown:
Category | Count |
---|---|
Complexity | 3 |
Duplication | 2 |
View more on Code Climate.
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
PR-Codex overview
This PR introduces enhancements to the user settings functionality, including the ability to determine when a user's email can be updated and a new utility function to calculate the time left until a specified date.
Detailed summary
align-self: center
to theSettings
component.User
type to includeemailUpdateableAt
.timeLeftUntil
function for calculating remaining time until a date.timeLeftUntil
inFormContactDetails
to show when email can be updated.InfoCard
to display email update information.Summary by CodeRabbit
New Features
Bug Fixes
Style