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

Perceived failure to save profile picture #896

Open
doub1ejack opened this issue Aug 9, 2022 · 8 comments · May be fixed by #911 or #1116
Open

Perceived failure to save profile picture #896

doub1ejack opened this issue Aug 9, 2022 · 8 comments · May be fixed by #911 or #1116
Assignees

Comments

@doub1ejack
Copy link

Found a small UX thing when updating my profile pic. It would not work if I clicked Save before I clicked Done Cropping. I tried & failed to update my photo the other day.

For a quick fix, perhaps the save button could be hidden or disabled until the required cropping has happened. Etc. Thanks!

@schaferyan
Copy link
Collaborator

I'd be interested in looking into this one

@marlonkeating
Copy link
Contributor

@ddfridley
Copy link
Collaborator

@schaferyan Hi, I'm helping with development focus for DemocarcyLab. We've created a DemocracyLab Dashboard and would like to update the status of this issue.

There is an unresoved comment in the PR #911

Changing project thumbnails fails with the following console error:
ImageCropUploadButton.jsx:123 Uncaught TypeError: this.props._onIsCroppingChanged is not a function at ImageCropUploadButton._handleFileSelection (ImageCropUploadButton.jsx:123:16) at FileReader. (FileSelectButton.jsx:71:18)

Are you still working on this? If so, what are the next steps, or what challenges are there to moving forward?
Or is this still an issue/should we close it?
Or, if you just aren't available to work on it anymore, please let me know, and/or unassign yourself
Or something else?

Thanks.

@ddfridley ddfridley moved this from Backlog to In progress in DemocracyLab Development and Release May 2, 2024
@schaferyan
Copy link
Collaborator

schaferyan commented May 5, 2024 via email

@ddfridley ddfridley moved this from In progress to Ready in DemocracyLab Development and Release May 5, 2024
@Nostromos
Copy link

@ddfridley Happy to take this if its still available, which it seems to be.

@ddfridley
Copy link
Collaborator

@Nostromos please consider that we need to make the QA testing as simple as possible - meaning change the least files and lines of code as possible. Also I am working on adding storybook, an environment for running and testing react components. Maybe we can be a good candidate for that. Lets talk more about that when I get back from vacation.

@Nostromos
Copy link

Nostromos commented Oct 10, 2024

Understood. I think the simplest approach is:

  1. Move state to parent,
  2. Pass that state's setter to child,
  3. Require a completed crop to save and close parent (the parent button text might be Done)
  4. Add a required field message if crop is in progress and user attempts to move on ("Click 'Done Cropping' if crop is complete or 'Cancel'" - something along those lines).

Simpler still might be autosaving crop after a short delay and not requiring the "Done Cropping" button to be clicked but I need to look into the cropping library to see if that's possible.

The bigger problem is that I never learned class-based react and vscode seems to hate flow, despite an entirely new profile with TS parsing turned off, flow extension installed, etc. Anyway I'll get that figured out and will put in a PR once I've got something.

@Nostromos
Copy link

Nostromos commented Oct 11, 2024

@marlonkeating @ddfridley Hey I think I've got it figured out. Can I get perms to push my branch up so I can draft a PR? There's still some testing left to do and a little clean up but should be good to go by EOD today or Monday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment