Skip to content

Conversation

@vhscom
Copy link
Contributor

@vhscom vhscom commented May 10, 2024

Page now properly selects all PDLs when the user navigates to the enhanced Check-Ins Report

Also updates card treatment to display Latest Activity using a new --muted utility compatible with AA conformance in contrast ratio measured using Firefox dev tools, and as close to 4.5:1 contrast as possible using whole numbers.

.map(id => pdls.find(pdl => pdl.id === id))
.filter(Boolean);
setSelectedPdls(newPdls);
newPdls.length > 0 && setSelectedPdls(newPdls);
Copy link
Collaborator

Choose a reason for hiding this comment

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

If newPdls becomes empty, does it to clear out the array of selected PDLs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For newPdls to become empty I believe we would have a data issue on our hands. This change is to allow us to short-circuit the logic for changing component state as the default state when no pdls are available is controlled in a useEffect queuing off processedQPs.current.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see what you're saying. This looks good. I actually didn't noticed that this was in code related to the query parameters. Makes sense now.

@vhscom vhscom force-pushed the feature-2212/enhanced-checkin-warranty branch from f7843d6 to b29c3a1 Compare May 10, 2024 19:33
@vhscom vhscom requested a review from mvolkmann May 10, 2024 19:34
@vhscom vhscom merged commit b29c3a1 into develop May 10, 2024
@vhscom vhscom deleted the feature-2212/enhanced-checkin-warranty branch May 10, 2024 19:58
@vhscom vhscom temporarily deployed to github-pages May 10, 2024 19:59 — with GitHub Actions Inactive
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.

4 participants