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

remove popup on the close button #1616

Merged
merged 7 commits into from
Apr 16, 2024

Conversation

josiehandeveloper
Copy link
Member

@josiehandeveloper josiehandeveloper commented Mar 19, 2024

Fixes ##1576

What changes did you make and why did you make them ?

  • When the close button is pressed after the save button the "Wait! you made some changes" popup is removed
  • Initial Fix got rid of the popup, but even when no edits were made on the form and then the close button was pressed - the popup persisted
  • Final fix got rid of the popup after edits were made and the save button followed by the close button were pressed, it also got rid of the popup from the initial fix

Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)

Visuals before changes are applied
1576.bug.mov
Visuals after changes are applied
1576.fix.mov

image

Copy link

Want to review this pull request? Take a look at this documentation for a step by step guide!

From your project repository, check out a new branch and test the changes.

git checkout -b josiehandeveloper-Edit-on-save development
git pull https://github.com/josiehandeveloper/VRMS.git Edit-on-save

@JackHaeg JackHaeg requested a review from trillium March 19, 2024 03:05
Copy link
Member

@trillium trillium left a comment

Choose a reason for hiding this comment

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

This is looking great :)

Works as intended, thanks Jo!

There's a lot of style based changes happening here that don't have much to do with the PR though, we don't have any enforced ESLint/Prettier. I'm fine if we include them but it would be better if the changes are their own commit rather than blocked together with the !editMode || ... code change so that future people can see the relevant info faster.

Can you:

  • either:
    • switch the style changes to their own commit with a commit message like style: Update code styling in ProjectForm.js
    • Only commit the change directly relevant to the Close Edit Modal logic
  • Delete the commented out code in the <StyledButton> tag

Thanks for figuring this out!

@josiehandeveloper
Copy link
Member Author

I looked at the development branch to see what styling changes I made but I just changed the onClick portion of the code

@trillium
Copy link
Member

trillium commented Apr 2, 2024

It's because we don't have linting across the project at this time (it's in the works). Your linter is formatting the file you're working on when you trigger save probably, which is resulting in a lot of small changes to the code such as changing "thing" --> 'thing' etc. based on the linting rules your workspace has configured.

The file diff has a good representation of what's going on:
https://github.com/hackforla/VRMS/pull/1616/files

Copy link
Member

@trillium trillium left a comment

Choose a reason for hiding this comment

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

Thanks so much!

@trillium trillium merged commit 409a65d into hackforla:development Apr 16, 2024
5 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.

2 participants