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

feat(Update functionality on ID page) #14

Merged
merged 3 commits into from
May 7, 2023
Merged

feat(Update functionality on ID page) #14

merged 3 commits into from
May 7, 2023

Conversation

ubemacapuno
Copy link
Owner

Summary:

Added update functionality for dishes/[_id]

Details:

Modal and Superforms form for updating dishes on dishes/[_id] route

References:

Superforms - for form library
capa-tracker - for Modal component

Screenshots:

[_id] page:
Screenshot 2023-05-07 at 12 00 51 PM

Modal:
Screenshot 2023-05-07 at 12 01 09 PM

@ubemacapuno ubemacapuno self-assigned this May 7, 2023
Copy link
Owner Author

@ubemacapuno ubemacapuno May 7, 2023

Choose a reason for hiding this comment

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

We are reusing functions/props here. For example, this shares a lot in common with the /dishes +page.svelte file. This works for now, but consider refactoring to use centralized helper functions or a reusable component.

Ex: addIngredient, removeIngredient, etc. Think of a way to make these reusable so that we're not bloating the <script> section on future +page.svelte files.

Copy link
Owner Author

@ubemacapuno ubemacapuno left a comment

Choose a reason for hiding this comment

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

View comments - make issues if necessary regarding refactoring for reusable helpers/components. Approving and merging.

@ubemacapuno ubemacapuno merged commit 65ba8f9 into main May 7, 2023
@ubemacapuno ubemacapuno deleted the dishes-update branch May 7, 2023 19:14
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