Skip to content

fix(wizard): align reauthentication with account setup - #10459

Open
Rello wants to merge 10 commits into
masterfrom
bugfix/ReAuthDialog
Open

fix(wizard): align reauthentication with account setup#10459
Rello wants to merge 10 commits into
masterfrom
bugfix/ReAuthDialog

Conversation

@Rello

@Rello Rello commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Replace the legacy QWidget reauthentication dialog with a QML window that shares the account wizard browser-auth content, footer, dimensions, and style tokens.

Keep credential replacement isolated from account creation and remove the unreachable provider-signup widget stack and its orphaned helpers.

Bildschirmfoto 2026-07-27 um 15 27 51

Assisted-by: Codex:GPT-5

Replace the legacy QWidget reauthentication dialog with a QML window
that shares the account wizard browser-auth content, footer, dimensions,
and style tokens.

Keep credential replacement isolated from account creation and remove
the unreachable provider-signup widget stack and its orphaned helpers.

Assisted-by: Codex:GPT-5
Signed-off-by: Rello <github@scherello.de>
@Rello Rello added this to the 34.0.1 milestone Jul 27, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c1957df8f9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/gui/WizardStyledWindow.qml Outdated
| Qt.CustomizeWindowHint
| Qt.WindowTitleHint
| Qt.WindowSystemMenuHint
| Qt.WindowMinimizeButtonHint

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep the minimize hint scoped to authentication windows

When opening any existing WizardStyledWindow consumer, this base-level flag now adds minimize decoration to ActivitiesWindow.qml, AssistantWindow.qml, SearchWindow.qml, and UserStatusWindow.qml; previously only AccountWizardWindow.qml explicitly opted into minimization. Keep this hint on the account and reauthentication windows, or explicitly preserve the existing chrome for the other consumers, so the reauthentication refactor does not change unrelated windows.

AGENTS.md reference: AGENTS.md:L25-L27

Useful? React with 👍 / 👎.

@Rello Rello added the design Design, UI, UX, etc. label Jul 27, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f03bdf0288

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/gui/trayaccountpopup_qt.cpp
Comment thread test/testbrowserreauthcontroller.cpp
@Rello
Rello force-pushed the bugfix/ReAuthDialog branch from f03bdf0 to c1957df Compare July 27, 2026 17:37
Replaced the direct successful slotAuthResult() test with integration coverage through WebFlowCredentials::askFromUser().
Exercises real QML window creation, browser-flow polling, credential replacement, persistence invocation, automatic close, and account-registration safety.
Added cancellation coverage by closing the actual QML window and verifying credentials remain unchanged.
Added a safe Application null guard for standard Qt test runners.

Assisted-by: Codex:GPT-5
Signed-off-by: Rello <github@scherello.de>
@Rello

Rello commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator Author

@claucambra can you check the quite complex test? it applied the new guidelines - but look complicated. opinion?

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 90296ac1d0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread test/testbrowserreauthcontroller.cpp
Rello and others added 6 commits July 28, 2026 08:47
Comment thread src/gui/wizard/qml/BrowserAuthFooter.qml Outdated
Comment thread src/gui/wizard/qml/BrowserReAuthPage.qml Outdated
Comment thread src/gui/wizard/browserreauthwindow.cpp Outdated
Comment thread src/gui/wizard/browserreauthwindow.cpp Outdated
Comment thread src/gui/wizard/browserreauthwindow.cpp Outdated
Comment thread src/gui/wizard/browserreauthwindow.cpp Outdated
Comment thread theme/Style/Style.qml
@nilsding nilsding modified the milestones: 34.0.1, 34.0.2 Aug 3, 2026
Rello and others added 2 commits August 11, 2026 16:20
- Scoped minimize-button support to account and reauthentication windows.
- Updated regression assertions for shared-default versus reauthentication behavior.
- Replaced magic footer widths with uniformCellSizes.
- Inlined BrowserAuthPage and removed BrowserReAuthPage.qml plus its resource entry.
- Applied the C++ const, QVariantMap, and queued invokeMethod cleanups.
- Kept the two height tokens separate because they represent different UI contracts.

Assisted-by: Codex:GPT-5
Signed-off-by: Rello <github@scherello.de>
Signed-off-by: Rello <Rello@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Artifact containing the AppImage: nextcloud-appimage-pr-10459.zip

Digest: sha256:14e5282642ce6c60f57ff5bf2b05d21f408f245fb52b7a2bea6a0c4c70e52a45

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
75.4% Coverage on New Code (required ≥ 80%)
59 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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

Labels

design Design, UI, UX, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants