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: Add LoadingWidget to Guardian Directory page #1188

Merged
merged 3 commits into from
Jan 3, 2024

Conversation

jcbcapps
Copy link
Contributor

@jcbcapps jcbcapps commented Jan 3, 2024

SC-2984

Proposed changes

Add the LoadingWidget to the Guardian Directory


Reviewer notes

Navigate to http://localhost:3000/guardian-directory

When running this locally, you probably won't see the loading state because of how few test fields there are. You can do one of two things:

  • You can download the full spreadsheets from the GDrive, add them to your local ussf-personnel-api and update the docker-compose.services.yml file in this repo to point to your local personnel api.
  • Or you can simply go to src/pages/guardian-directory.tsx and change !directory.length on line 86 to true. Save and reload the app to see the loading state.

Setup

Start the system

yarn services:up
yarn dev
cd ../ussf-portal-cms
yarn dev

Login to the portal http://localhost:3000

Start storybook

yarn storybook

Login to storybook http://localhost:6006, though the command above should open it for you


Code review steps

As the original developer, I have

  • Met the acceptance criteria
  • Created new stories in Storybook if applicable
  • Created/modified automated unit tests in Jest
  • Created/modified automated E2E tests
  • Followed guidelines for zero-downtime deploys, if applicable
  • Use ANDI to check for basic a11y issues

As a reviewer, I have

Check out our How to review a pull request document.


Screenshots

Screenshot 2024-01-03 at 11 13 40 AM

Copy link

This pull request has been linked to Shortcut Story #2984: Add LoadingWidget to the Guardian Directory.

@jcbcapps jcbcapps marked this pull request as ready for review January 3, 2024 17:22
@jcbcapps jcbcapps requested a review from a team as a code owner January 3, 2024 17:22
Copy link
Contributor

@gidjin gidjin left a comment

Choose a reason for hiding this comment

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

LGTM

@jcbcapps jcbcapps merged commit 11611bf into main Jan 3, 2024
9 of 11 checks passed
@jcbcapps jcbcapps deleted the sc-2984/loading-guardian-directory branch January 3, 2024 20:47
jcbcapps pushed a commit that referenced this pull request Jan 4, 2024
## [4.29.0](4.28.0...4.29.0) (2024-01-03)


### Features

* add lastLoginAt to user ([#1185](#1185)) ([c54ad4a](c54ad4a))
* Add LoadingWidget to Guardian Directory page ([#1188](#1188)) ([11611bf](11611bf))
* Add search to guardian directory ([#1183](#1183)) ([265731b](265731b))


### Bug Fixes

* **design:** Footer Navigation + Layout enhancements ([#1180](#1180)) ([6e6a1bd](6e6a1bd))
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.

2 participants