Skip to content

Conversation

@Arfs6
Copy link
Contributor

@Arfs6 Arfs6 commented Jun 8, 2023

Solving this issue.
Currently, the branch has a basic support for updating profile. It currently supports updating display names and bio. Other features will be added shortly.
Changes:

  1. created: src/wxUI/dialogs/mastodon/updateProfile.py - Created UpdateProfileDialog. A dialog that has two edit boxes at this point to let the user edit his / her name and bio.
  2. edited: src/wxUI/view.py - Deleted the line that disabled the "update profile" option.
  3. edited: src/controller/mainController.py - Created an update_profile method and binded the "update profile" option to it. The method just calls the update_profile method of mastodon handler.
  4. edited: src/controller/mastodon/handler.py - Changed updateProfile field of handler.menus attribute from None. This is to stop controller.update_menus from disabling it. Next, created a update_profile method. It gets the current profile, open the update profile dialog and updates whatever the user changes.

@Arfs6
Copy link
Contributor Author

Arfs6 commented Jun 9, 2023

Just pushed some changes. Added support for updating headers, avatars and the four fields. The dialog takes a couple of seconds before it finish opening because it has to download both the avatar and the header. Should we download the image on a different thread and load it to the dialog when it is done? This will make the dialog to open immediately and then the pics would load later.
detailed changes:

  1. edited: src/wxUI/dialogs/mastodon/updateProfile.py - Added the header and avatar pictures with a change button next to each. The change button launches a file open dialog for the user to choose either a png, jpg or gif image. Added four rows to edit the four fields.
  2. edited: src/controller/mastodon/handler.py - Passing header, avatar and four fields to update profile dialog now.

@Arfs6
Copy link
Contributor Author

Arfs6 commented Jun 9, 2023

Added check boxes for locked, bot and discoverable. At this point, the only things left are:

  1. Adding character limit to the text boxes.
  2. Downloading image in another thread then loading it to the static image.
  3. Taking care of network issues. What do you suggest with regards to network?

@Arfs6 Arfs6 mentioned this pull request Jun 9, 2023
@manuelcortez manuelcortez merged commit 1963c13 into MCV-Software:next-gen Jun 26, 2023
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