Skip to content

fix: Account Wizard UX fixes#10114

Open
Rello wants to merge 2 commits into
masterfrom
bugfix/AccountWizard
Open

fix: Account Wizard UX fixes#10114
Rello wants to merge 2 commits into
masterfrom
bugfix/AccountWizard

Conversation

@Rello
Copy link
Copy Markdown
Collaborator

@Rello Rello commented Jun 5, 2026

  • V2 poll timer
  • folder-already used check
  • remove option to reuse or clean up (backup) existing sync folder
  • dock icon when account wizard is active
  • tray menu also opens when 0 accounts
  • tray menu UI when 0 accounts
  • macOS default sync folder
  • remove unnecessary log warnings
  • accessiblity labels

Copy link
Copy Markdown

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

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: d79fe36d8e

ℹ️ 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/owncloudgui.cpp
Comment on lines +234 to +238
if (AccountManager::instance()->accounts().isEmpty()) {
if (_tray->isOpen()) {
_tray->hideWindow();
} else {
_tray->showWindow();
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 Bring the wizard forward before showing the empty tray

When there are no accounts during first-run setup, this branch runs before the following OwncloudSetupWizard::bringWizardToFrontIfVisible() check, so clicking the tray icon toggles the empty-account tray instead of raising the already-open account wizard. If the wizard is behind other windows while adding the first account, the tray icon no longer helps recover it; keep the wizard check ahead of the empty-account branch.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

: QObject(parent)
{
}
~ForegroundBackground() = default;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ modernize-use-override ⚠️
annotate this function with override or (rarely) final

Suggested change
~ForegroundBackground() = default;
~ForegroundBackground() override = default;

Copy link
Copy Markdown

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

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: 88cbb116a2

ℹ️ 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 on lines +66 to +67
const auto localFolder = QDir(localSyncFolder);
return localFolder.exists()
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 Ignore OS metadata when checking for folder data

When the chosen sync folder contains only hidden/system metadata (for example .DS_Store after browsing a folder on macOS), this helper now treats the folder as non-empty because it includes QDir::Hidden | QDir::System; validateLocalSyncFolder() then rejects the selection with “Please choose an empty local sync folder.” This blocks otherwise empty folders that the OS has touched, so the data check should exclude harmless metadata or match the previous visible-entry behavior.

Useful? React with 👍 / 👎.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 5, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
2 Security Hotspots
3.3% Coverage on New Code (required ≥ 80%)
C Maintainability Rating on New Code (required ≥ A)
235 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

Rello added 2 commits June 5, 2026 16:37
- V2 poll timer
- folder-already used check
- remove option to reuse or clean up (backup) existing sync folder
- dock icon when account wizard is active
- tray menu also opens when 0 accounts
- tray menu UI when 0 accounts
- macOS default sync folder
- remove unnecessary log warnings
- accessiblity labels

Signed-off-by: Rello <github@scherello.de>
Signed-off-by: Rello <github@scherello.de>
@mgallien mgallien force-pushed the bugfix/AccountWizard branch from 88cbb11 to cf61ebd Compare June 5, 2026 14:38
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2026

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

Digest: sha256:6053aa83b017228c53c7f36545f45973bbef857c7922b6a0e1653ce6fe3c94ba

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.

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.

1 participant