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

Create organization tasks page. ON HOLD #151

Open
budaman opened this issue Apr 14, 2021 · 1 comment · May be fixed by #159, #156, #155, #154 or #153
Open

Create organization tasks page. ON HOLD #151

budaman opened this issue Apr 14, 2021 · 1 comment · May be fixed by #159, #156, #155, #154 or #153
Assignees

Comments

@budaman
Copy link
Collaborator

budaman commented Apr 14, 2021

Goal
Create a Page for the Organization Tasks query.

Before you begin

  1. Update .env.local to have REACT_APP_GRAPHQL_URL=https://petbook-back-dev.herokuapp.com/graphql
    This way you will use the latest shared development backend and won't need to run your own pets-back project.

Description

  1. Create a new OrganizationTasks page for organization-tasks route.
  2. Describe a new Organization Tasks query inside the queries folder. Look here to see a Type and query fields.
  3. Generate new type of organization tasks with codegen.
  4. Import a new query with loader inside the OrganizationTasks page.
  5. Using useQuery get data, error, and loading states.
  6. Loading state visual with Material UI Skeleton component.

Screenshot 2021-04-25 at 21 49 07

  1. Display an error to the user, and show no data message, if an empty array came from the animal array.

Screenshot 2021-04-25 at 21 55 02

Screenshot 2021-04-25 at 22 00 51

  1. Display all Organisation Tasks to the page.

Screenshot 2021-04-25 at 22 56 29

BONUS: If you have time, you can additionally write tests for the shelter tasks page. You can use an example from AnimalPage.test.tsx file.

@budaman budaman changed the title Create Shelter Tasks page Create organization tasks page Apr 25, 2021
pergaliuke added a commit to pergaliuke/pets-front that referenced this issue Apr 27, 2021
kostamir added a commit to kostamir/pets-front that referenced this issue Apr 27, 2021
LukasKri added a commit to LukasKri/pets-front that referenced this issue Apr 29, 2021
@LukasKri LukasKri linked a pull request Apr 29, 2021 that will close this issue
@Aiste-Tamos Aiste-Tamos linked a pull request May 4, 2021 that will close this issue
LukasKri added a commit to LukasKri/pets-front that referenced this issue May 9, 2021
@saulyz saulyz changed the title Create organization tasks page Create organization tasks page. ON HOLD May 17, 2021
@saulyz
Copy link
Collaborator

saulyz commented May 17, 2021

Making this task and relevant PR's on HOLD.
The backend is lacking functionality and this was not intended as a feature for the MVP version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment