Skip to content

Fix Unsaved Changes Popup Shifting Page Elements#10

Merged
JManion32 merged 1 commit into
developfrom
feature/caps-72-profile-page-unsaved-changes-shifts-all-elements
Apr 17, 2026
Merged

Fix Unsaved Changes Popup Shifting Page Elements#10
JManion32 merged 1 commit into
developfrom
feature/caps-72-profile-page-unsaved-changes-shifts-all-elements

Conversation

@JManion32
Copy link
Copy Markdown
Contributor

@JManion32 JManion32 commented Apr 17, 2026

Before, we were using a React state (isDirty) to determine when to show the Unsaved Changes popup on the profile page. This meant we were adding and removing the entire popup from the DOM. Since the content is centered on the page, this meant all elements were shifting whenever the user entered something into the input. This is bad UI. Imagine your paper moving every time you tried to write something. Not ideal.

Now, the popup is determined by a ternary operator using the same state in the CSS classes for the popup div. This allows us to keep it on the page, and not impact the user experience.

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hi @JManion32! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@JManion32 JManion32 merged commit 266413a into develop Apr 17, 2026
2 checks passed
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.

1 participant