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

[RSN-9] - Implemented DTO models on frontend #15

Merged
merged 25 commits into from
Jun 9, 2024
Merged

[RSN-9] - Implemented DTO models on frontend #15

merged 25 commits into from
Jun 9, 2024

Conversation

wzarek
Copy link
Owner

@wzarek wzarek commented Apr 22, 2024

Description

Implemented models from DTO on backend to frontend with mappers from JSON string and object with unit tests.

Related issue and/or ticket

RSN-9

@wzarek wzarek added status: ready for review Determines that PR is ready for review. scope: frontend Indicates that PR relates to frontend changes. scope: mobile Indicates that PR relates to mobile changes. type: feature PR's categorised as feature. labels Apr 22, 2024
@wzarek wzarek requested a review from raczu April 22, 2024 16:23
@wzarek wzarek self-assigned this Apr 29, 2024
Copy link
Collaborator

@raczu raczu left a comment

Choose a reason for hiding this comment

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

After a long research and consideration of all possibilites, I think that the best solution will be to use zod - it does not depend on other libraries and is lightweight. This will greatly simplify the verification of data received from the API. Additionally, we will be able to use this library also to verify the data provided by the user (data from forms).

See below example, which shows an easy way to handle date conversion to proper object:
Screenshot 2024-05-04 at 1 06 12 AM

@wzarek wzarek added status: require changes Determines that PR requires changes to be approved. and removed status: ready for review Determines that PR is ready for review. labels May 3, 2024
@wzarek wzarek requested a review from raczu May 8, 2024 01:04
@wzarek wzarek added status: ready for review Determines that PR is ready for review. and removed status: require changes Determines that PR requires changes to be approved. labels May 8, 2024
Copy link
Collaborator

@raczu raczu left a comment

Choose a reason for hiding this comment

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

Apply those changes where its needed.

Client/reasn-client/packages/common/models/AddressDto.ts Outdated Show resolved Hide resolved
Client/reasn-client/packages/common/models/CommentDto.ts Outdated Show resolved Hide resolved
@wzarek wzarek added status: require changes Determines that PR requires changes to be approved. and removed status: ready for review Determines that PR is ready for review. labels May 12, 2024
@wzarek wzarek requested a review from raczu May 13, 2024 12:26
@wzarek wzarek added status: ready for review Determines that PR is ready for review. and removed status: require changes Determines that PR requires changes to be approved. labels May 13, 2024
@wzarek wzarek added status: require changes Determines that PR requires changes to be approved. and removed status: ready for review Determines that PR is ready for review. labels Jun 3, 2024
@wzarek wzarek assigned raczu and unassigned wzarek Jun 9, 2024
@wzarek
Copy link
Owner Author

wzarek commented Jun 9, 2024

@raczu if everything is done please merge, checked partially and looks fine

@raczu raczu merged commit d99aaab into main Jun 9, 2024
7 checks passed
@wzarek wzarek deleted the RSN-9 branch June 9, 2024 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: frontend Indicates that PR relates to frontend changes. scope: mobile Indicates that PR relates to mobile changes. status: require changes Determines that PR requires changes to be approved. type: feature PR's categorised as feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants