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

Garden page #57

Closed
wants to merge 4 commits into from
Closed

Garden page #57

wants to merge 4 commits into from

Conversation

paytonagreen
Copy link
Collaborator

Related to:

Resolves: #31

Description:

Implemented all of the basic functionality of the Gardens component to the Garden component, identifying the Garden by URL query string, rendering a form to add a Bed to this Garden and a BedList of its already-existing Bed children. When a new bed is added, the list is immediately updated with the new data. I see potential for a reusability refactor down the road, but wanted to get this functionality up and running.

Added SINGLE_GARDEN_QUERY to 'queries' and CREATE_BED_MUTATION to 'mutations', along with their respective mocks to 'mocks/handlers'.

Tests:

New components are tested for proper rendering and static functionality, as well as proper handling of the new query and mutation. Integration testing in the Garden component is not possible due to not using live data, definite possible use case for doing some e2e testing eventually - at the moment I can assert that it works as expected.

Checklist:

Please put an x in each box that you have completed

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code in any hard-to-understand areas
  • My changes generate no new warnings or errors
  • I have added test instructions that prove my fix is effective or that my feature works

Copy link
Collaborator

@capndave capndave left a comment

Choose a reason for hiding this comment

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

Looks great! One question: Do you know what the MOCK_MUTATION in handlers.js is for?

@paytonagreen
Copy link
Collaborator Author

Went ahead and cleared out the MockComponent and corresponding server mocks, as there are plenty of real-use examples now.

@capndave
Copy link
Collaborator

capndave commented May 1, 2021

@paytonagreen sorry I didn't merge this back when. At this point the project has changed quite a bit, does it make more sense to scrap this or try to merge?

@capndave capndave closed this May 9, 2021
@capndave capndave deleted the garden-page branch May 9, 2021 18:05
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.

Fill out Garden component
2 participants