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

New wizard #9482

Merged
merged 3 commits into from
Mar 24, 2022
Merged

New wizard #9482

merged 3 commits into from
Mar 24, 2022

Conversation

fmoc
Copy link
Contributor

@fmoc fmoc commented Mar 3, 2022

This PR presents a complete reimplementation of the existing wizard. Some preparation has been merged already, e.g., #9426 or #9422. The current state works and sets up accounts with servers that use OAuth2 and classic HTTP Basic authentication.

Some functionality has not been implemented yet:

  • Some initial work on the "advanced sync options" was removed again, as it would have to be rewritten again for the new spaces support. Proper theme-based styling will be implemented in a future PR.
  • Styling has not been implemented yet. The design is inspired by Overall design ideas for client (screenshots inside) #5030 already, though. The fine work should be done in a subsequent PR.
  • Some features of the old wizard have not been ported yet, e.g., options whether to enable VFS (see the related TODOs).

The PR's commit history is still a mess at this point and will be cleaned up soon. Also, some copyright headers are still missing, etc. The code is ready for review, though.

@fmoc fmoc requested review from erikjv, TheOneRing and a team March 3, 2022 22:46
src/gui/application.cpp Show resolved Hide resolved
src/gui/newwizard/CMakeLists.txt Show resolved Hide resolved
src/gui/newwizard/Pagination.cpp Outdated Show resolved Hide resolved
src/gui/newwizard/Pagination.cpp Outdated Show resolved Hide resolved
src/gui/newwizard/Pagination.h Outdated Show resolved Hide resolved
src/gui/owncloudgui.cpp Outdated Show resolved Hide resolved
src/gui/owncloudgui.cpp Show resolved Hide resolved
src/gui/owncloudgui.cpp Outdated Show resolved Hide resolved
});

// bring settings dialog to front
raiseDialog(settingsDialog());
Copy link
Member

Choose a reason for hiding this comment

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

Please call raiseDialog on the wizard window instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can do that. My best guess is that it was done like this before was that the wizard is modal to the settings, and they wanted to show both. I'm curious to find out how the windows will behave when calling raiseDialog on the modal dialog.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now that I don't raise the settings dialog but the wizard window, it won't be centered above the settings any more on multi-screen systems. I think that's been the motivation to implement this in the first place.

src/gui/newwizard/SetupWizardController.h Outdated Show resolved Hide resolved
src/gui/application.cpp Show resolved Hide resolved
src/gui/application.h Outdated Show resolved Hide resolved
src/gui/folderman.cpp Show resolved Hide resolved
src/gui/accountsettings.cpp Outdated Show resolved Hide resolved
src/gui/folderwizard.h Outdated Show resolved Hide resolved
src/gui/newwizard/Pagination.cpp Outdated Show resolved Hide resolved
src/gui/newwizard/Pagination.cpp Outdated Show resolved Hide resolved
src/gui/newwizard/Pagination.cpp Outdated Show resolved Hide resolved
src/gui/newwizard/SetupWizardController.cpp Outdated Show resolved Hide resolved
src/gui/newwizard/pages/AbstractSetupWizardPage.h Outdated Show resolved Hide resolved
@TheOneRing TheOneRing marked this pull request as draft March 14, 2022 12:13
@fmoc fmoc force-pushed the work/new-wizard branch 3 times, most recently from 4b6e532 to 749f914 Compare March 22, 2022 14:22
@fmoc fmoc marked this pull request as ready for review March 22, 2022 14:38
@fmoc
Copy link
Contributor Author

fmoc commented Mar 23, 2022

Just the GUI tests fail at the moment. Shouldn't block the merge.

@fmoc fmoc requested a review from TheOneRing March 23, 2022 00:32
@sonarcloud
Copy link

sonarcloud bot commented Mar 23, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 60 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@TheOneRing TheOneRing merged commit 7f8795e into master Mar 24, 2022
@delete-merged-branch delete-merged-branch bot deleted the work/new-wizard branch March 24, 2022 10:32
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.

3 participants