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

[Track 5/8] [FE / INT] Users List #13

Open
taki-tiler bot opened this issue Sep 6, 2024 · 6 comments
Open

[Track 5/8] [FE / INT] Users List #13

taki-tiler bot opened this issue Sep 6, 2024 · 6 comments

Comments

@taki-tiler
Copy link

taki-tiler bot commented Sep 6, 2024

Login is done. Now, let's make the user list UI.

Step 1/3 - Users List Frontend (FE)

Estimated time: 3 hours

The blank page you created will list all registered users on our server. Each list cell (or list row) should contain:

  • user name
  • user email

Like the login page, you can layout your users list page the way you want. Just remember to keep things simple.

Note: In order to test the frontend, it's a common practice to fill your view components with some fake data. Since you don't have the real data yet, you can create a fake, static user list to test your screen.

@JuliaCMuniz
Copy link
Contributor

Finish

Copy link
Author

taki-tiler bot commented Sep 9, 2024

Step 2/3 - Users List Integration

Estimated time: 4 hours

Let's get some real data.

Your task here is to get the real users list from the server.

Authentication

Every other request except Login demands an authorization token to be made. This is one way of guaranteeing user authentication. Some reference if you want to know more.

So, on the next integration tasks, you should add a header on your HTTP Request:

Authorization: token_that_you_have_stored

User list request

The GraphQL query used for users list is called users. The query documentation can be found on GraphiQL Document Explorer.

You'll notice that this request returns a particular kind of structure (count, nodes, pageInfo). This is one way of doing pagination. You'll explore more about this on next step. For now, send the query with no parameters and show the data returned on nodes field.

@JuliaCMuniz
Copy link
Contributor

Finish

Copy link
Author

taki-tiler bot commented Sep 10, 2024

Step 3/3: Challenge: Add pagination to the list

Estimated time: 4 hours

Generally, lists with a minimum amount items are paginated. We currently use 3 types of pagination:

That said, your challenge is to add the pagination into the list you've just implement: the users list. Choose one of the implementation types above.

@JuliaCMuniz
Copy link
Contributor

Next

Copy link
Author

taki-tiler bot commented Sep 10, 2024

Click here for your next track

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

No branches or pull requests

1 participant