department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
98 stars 69 forks source link

[Breakpoints] Events pagination - 320 & 481 breakpoints #18101

Closed laflannery closed 4 months ago

laflannery commented 5 months ago

Description

At the smaller breakpoints, the pagination component has some display issues:

  1. at 320, you can't see the beginning or ending pages. I was on Washington DC past events and this has 11 pages: Screenshot 2024-05-10 at 2 33 17 PM
  2. at 418, you can see all the pages but the page 1 and page 11 elements are getting slightly cut off: Screenshot 2024-05-10 at 2 34 37 PM

Other examples

I was struggling to find examples with enough pages but I did find 2:

  1. Global search results: However maybe the entire layout of the page is different which is why it works and this is actually a DST component issue not an us issue image
  2. Washington DC Stories: This does cut off but not as badly as the original example above image

Acceptance Criteria

jilladams commented 4 months ago

Unassigning Josh, as he's out today for good, waa. We will need to get a look from @randimays or @chriskim2311 when PR is ready to take next steps. Assigning both for now, so it stays visible. We can discuss next week to sort out owner.

laflannery commented 4 months ago

I reviewed and commented on the PR

After folks have a chance to catch up on what I'm seeing, if we do decide to ask DST about this and folks would prefer me to do this just let me know

jilladams commented 4 months ago

@laflannery if you could follow up with DST, I'd be grateful. Josh is gone now, and he did flag that this is happening on Global search as well, which makes me think it's likely a component issue.

chriskim2311 commented 4 months ago

@laflannery Left you a comment on the PR but did you follow up with DST yet? I can file an issue if you hadn't already. Thanks!

laflannery commented 4 months ago

Hey @chriskim2311 I just got out of their office hours, I actually think that we might want to keep this as is (meaning don't actually merge in Josh's pr) but I'm going to summarize everything and then we can decide:

Scenario 2 seems like a worse user experience to me than scenario 1, even though scenario 2 is already on Prod. I think we should potentially discuss this at scrum tomorrow, Jordan is still out but @aklausmeier perhaps has an opinion

There is a 3rd option - we use the unbounded prop but this would remove the last page from displaying. If we wanted to use this, at least for the time being, here are some screen shots:

Small screens Screenshot 2024-06-03 at 3 20 59 PM

Large screens Screenshot 2024-06-03 at 3 21 08 PM

aklausmeier commented 4 months ago

@laflannery With option 3, is the user able to navigate to next page up through the last page by clicking right three dots? And would this option require us to revisit the DST solution in a few sprints?

laflannery commented 4 months ago

@aklausmeier No, the ellipsis are not actionable, they are a visual indicator only. So the user can only go to the next page and the first page in the screen shots above. I would also think that Option 1 (keeping everything as is) might possibly be the only option where we might not need to revisit this after the DST update but because we don't know for sure how it's going to work we can't guarantee that.

laflannery commented 4 months ago

Talked about this in scrum - we are going to keep this as is as this is the best of the not great options, which means we wouldn't need this PR anymore. @chriskim2311 are you able to remove/delete this?

chriskim2311 commented 4 months ago

@laflannery Thanks for clarifying this! I think this is the best option too, I can close the PR.

jilladams commented 4 months ago

@laflannery @chriskim2311 @FranECross since we didn't ship this PR, as far as this ticket goes, are we:

I don't think there's a wrong answer, just wanna make sure I know what to expect on the reporting side.

laflannery commented 4 months ago

I vote close - and maybe we open a new ticket to review and verify all paging for both teams when DST solves this.

FranECross commented 4 months ago

I vote close, too.