Skip to content

PDF Reader: Continuous Scroll #280 #288

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

Merged
merged 1 commit into from
May 20, 2025
Merged

PDF Reader: Continuous Scroll #280 #288

merged 1 commit into from
May 20, 2025

Conversation

borisliao
Copy link
Contributor

@borisliao borisliao commented May 16, 2025

What?

Loaded all the PDF pages and changed the page number based on what page number is being viewed

Why?

Small change with the PDF Reader to get myself familiar with the frontend and the project.

How?

Modified the component to load a local pdf on my computer
Mapped component to the amount of pages in the pdf
Used intersection observer to figure out what page is being currently viewed in the browser.

Testing?

Only did local testing by rendering the component against a downloaded pdf on my computer. see screenshot below.
Did not get to set up docker instance to test against prod, so that still needs to be tested.

Anything Else?

I have prettier to auto format the code, but I reverted the auto format so that this PR diff would be less noisy. Probably worth to set up a similar system.
Equally so, ESLint would probably help with highlighting some dead code.

Storybook would help with developing components in isolation. it would help unlink some of the project setup from the UI work.
Equally so (or as a alternative), using MSW to mock API calls would help out.

I only did part 1 of this issue because I wasn't sure on the design decision; Based on the design direction, I probably would pull some other component libraries in.

Screenshots?

A retrospective study of Pasted Graphic 1 Pasted Graphic 2

@borisliao borisliao requested a review from taichan03 May 16, 2025 23:00
@taichan03 taichan03 merged commit 752effd into listOfMed May 20, 2025
@taichan03 taichan03 deleted the 280-pdf-reader branch May 20, 2025 19:02
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