Skip to content

fix(tray): scroll to top in the activity window on opening - #10533

Open
Rello wants to merge 12 commits into
masterfrom
bugfix/activityScroll
Open

fix(tray): scroll to top in the activity window on opening#10533
Rello wants to merge 12 commits into
masterfrom
bugfix/activityScroll

Conversation

@Rello

@Rello Rello commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator
  • reopening will ensure tha the list is scrolled to the top
  • before, the scroll location was memorized and and new notifications or conflicts were missed

Assisted-by: Codex:GPT-5

@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: 88ef7e23a1

ℹ️ 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/activity/qml/ActivitiesWindow.qml
@camilasan camilasan added this to the 34.0.2 milestone Aug 5, 2026
Comment thread test/testactivitieswindow.cpp Outdated

@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: 5d543522c2

ℹ️ 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/qml/activitieswindow/tst_activitieswindow.qml Outdated
Comment thread test/qml/imports/com/nextcloud/desktopclient/qmldir
@Rello
Rello force-pushed the bugfix/activityScroll branch from 7458c8c to 2f96fe9 Compare August 11, 2026 11:22
@Rello

Rello commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator Author

@claucambra please recheck

@claucambra claucambra left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Some comments

Comment thread src/gui/activity/qml/ActivityList.qml Outdated
Comment thread src/gui/activity/qml/TalkReplyTextField.qml
Comment thread src/gui/systray.cpp Outdated
Comment thread test/qml/activitieswindow/tst_activitieswindow.qml
Comment thread test/qml/imports/com/nextcloud/desktopclient/SyncStatusSummary.qml
@claucambra claucambra self-assigned this Aug 13, 2026
@claucambra
claucambra force-pushed the bugfix/activityScroll branch from d326775 to 5b8b9c8 Compare August 13, 2026 07:43
@Rello Rello modified the milestones: 34.0.2, 34.0.3 Aug 13, 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: e204ea90ad

ℹ️ 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 +46 to +48
onActiveChanged: {
if (active) {
resetActivityList()

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 Reset the list directly from the cached reopen path

When the cached activities window remains visible and requestActivate() either leaves an already-active window unchanged or is rejected by the window manager, neither visibleChanged nor this activeChanged handler fires, so Systray::showActivitiesWindow() still returns without resetting the stale viewport. Fresh evidence in this revision is that the reset now depends solely on successful activation, while the activation test explicitly skips environments where window activation cannot be exercised; invoke the reset directly for each cached-window open request instead.

AGENTS.md reference: AGENTS.md:L207-L209

Useful? React with 👍 / 👎.

@github-actions

Copy link
Copy Markdown
Contributor

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

Digest: sha256:08486729bb28c0347cabf40f30b3725a0e8c55d8a9fd80deb5d2624e4d419a50

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.

Rello and others added 10 commits August 14, 2026 18:31
- reopening will ensure tha the list is scrolled to the top
- before, the scroll location was memorized and and new notifications or conflicts were missed

Assisted-by: Codex:GPT-5
Signed-off-by: Rello <github@scherello.de>
Assisted-by: Codex:GPT-5
Signed-off-by: Rello <github@scherello.de>
Assisted-by: Codex:GPT-5
Signed-off-by: Rello <github@scherello.de>
Assisted-by: Codex:GPT-5
Signed-off-by: Rello <github@scherello.de>
…resources and registers the production SVG image provider

Assisted-by: Codex:GPT-5
Signed-off-by: Rello <github@scherello.de>
Assisted-by: Codex:GPT-5
Signed-off-by: Rello <github@scherello.de>
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
Rello and others added 2 commits August 14, 2026 18:31
- confirms Qt created a highlight before reset;
- treats a destroyed highlightItem as the valid hidden state after reset;
- no longer dereferences the stale highlight object.

Assisted-by: Codex:GPT-5
Signed-off-by: Rello <github@scherello.de>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
@mgallien
mgallien force-pushed the bugfix/activityScroll branch from e204ea9 to 0ddfbe8 Compare August 14, 2026 16:31
@sonarqubecloud

Copy link
Copy Markdown

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.

4 participants