Skip to content

fix(files): highlight previous folder on history up#53285

Merged
skjnldsv merged 2 commits into
masterfrom
fix/files-position-navigation
Jun 3, 2025
Merged

fix(files): highlight previous folder on history up#53285
skjnldsv merged 2 commits into
masterfrom
fix/files-position-navigation

Conversation

@skjnldsv

@skjnldsv skjnldsv commented Jun 3, 2025

Copy link
Copy Markdown
Member

Fix #53031

@skjnldsv skjnldsv added this to the Nextcloud 32 milestone Jun 3, 2025
@skjnldsv skjnldsv self-assigned this Jun 3, 2025
@skjnldsv skjnldsv requested a review from a team as a code owner June 3, 2025 11:33
@skjnldsv skjnldsv requested review from susnux and removed request for a team June 3, 2025 11:33
@skjnldsv skjnldsv added the 3. to review Waiting for reviews label Jun 3, 2025
@skjnldsv skjnldsv requested review from artonge and sorbaugh June 3, 2025 11:33
@skjnldsv skjnldsv added feature: files papercut Annoying recurring UX issue with possibly simple fix. labels Jun 3, 2025
@github-project-automation github-project-automation Bot moved this to 🏗️ In progress in 📁 Files team Jun 3, 2025
@skjnldsv skjnldsv force-pushed the fix/files-position-navigation branch from a3873e7 to bcfbd42 Compare June 3, 2025 11:33
@skjnldsv skjnldsv changed the title fix(files): highlight previosu folder on history up fix(files): highlight previous folder on history up Jun 3, 2025

@susnux susnux left a comment

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.

How does this belong to the hot key service? Seems to be generic for all navigation?

@skjnldsv

skjnldsv commented Jun 3, 2025

Copy link
Copy Markdown
Member Author

How does this belong to the hot key service? Seems to be generic for all navigation?

Right, it's kind of hijacking the same shortcut as alt+up.
Pressing the back button is also kind of a hot key (I have dedicated mouse and keyboard buttons for it) 🤷

@susnux

susnux commented Jun 3, 2025

Copy link
Copy Markdown
Contributor

Pressing the back button is also kind of a hot key (I have dedicated mouse and keyboard buttons for it) 🤷

Yes but this is basic routing / history handling, no? Would this not better suit the router directly?
I would not expect it in the hot key service to be honest.

@susnux

susnux commented Jun 3, 2025

Copy link
Copy Markdown
Contributor

(approved as the code itself is good, just the location 🤷 )

@skjnldsv

skjnldsv commented Jun 3, 2025

Copy link
Copy Markdown
Member Author

Pressing the back button is also kind of a hot key (I have dedicated mouse and keyboard buttons for it) 🤷

Yes but this is basic routing / history handling, no? Would this not better suit the router directly? I would not expect it in the hot key service to be honest.

Fair to me!
let me move it :)

@skjnldsv skjnldsv force-pushed the fix/files-position-navigation branch 2 times, most recently from a382619 to 5b5d5db Compare June 3, 2025 15:08
@skjnldsv

skjnldsv commented Jun 3, 2025

Copy link
Copy Markdown
Member Author

And with cypress tests

@skjnldsv

skjnldsv commented Jun 3, 2025

Copy link
Copy Markdown
Member Author

/compile rebase

skjnldsv and others added 2 commits June 3, 2025 15:38
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nextcloud-command nextcloud-command force-pushed the fix/files-position-navigation branch from 5b5d5db to 9a30a8f Compare June 3, 2025 15:40
@nextcloud-command nextcloud-command requested a review from a team as a code owner June 3, 2025 15:40
@skjnldsv skjnldsv enabled auto-merge June 3, 2025 15:53
@skjnldsv

skjnldsv commented Jun 3, 2025

Copy link
Copy Markdown
Member Author

/backport 5974649 to stable31

@skjnldsv

skjnldsv commented Jun 3, 2025

Copy link
Copy Markdown
Member Author

/backport 5974649 to stable30

@susnux susnux left a comment

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.

Nice 🚀

@skjnldsv skjnldsv merged commit 97a9a68 into master Jun 3, 2025
124 checks passed
@skjnldsv skjnldsv deleted the fix/files-position-navigation branch June 3, 2025 16:36

@jancborchardt jancborchardt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@skjnldsv thanks a bunch! :) Just to clarify, the issue #53031 was mostly about "Scroll position within folders is lost on navigation", is that also fixed with this pull request?

@skjnldsv skjnldsv moved this from 🏗️ In progress to ☑️ Done in 📁 Files team Jun 4, 2025
@skjnldsv

skjnldsv commented Jun 4, 2025

Copy link
Copy Markdown
Member Author

@skjnldsv thanks a bunch! :) Just to clarify, the issue #53031 was mostly about "Scroll position within folders is lost on navigation", is that also fixed with this pull request?

Yes, should be :)

@jancborchardt

jancborchardt commented Jul 30, 2025

Copy link
Copy Markdown
Member

@skjnldsv is this deployed on daily yet? I just tried with both:

  • Going back via browser controls
  • Going up to parent folder via breadcrumbs

And both still end up at the top of the parent folder. Let me know if it’s not on daily yet. :)

@skjnldsv

Copy link
Copy Markdown
Member Author

No clue what version daily is.
But it should be deployed on c.nc.com already (Nextcloud 31.0.6)

@susnux

susnux commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

On c.nc.com both work (and also on current master branch)

@jancborchardt

Copy link
Copy Markdown
Member

Just tested again on c.nc, and while the previous folder is highlighted, the scroll position still ends up on the very top instead of keeping the position → as asked in the original issue, ref #53285 (review)

I also cleared cache and everything, not sure what issue it could be?

@skjnldsv skjnldsv mentioned this pull request Aug 19, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement feature: files papercut Annoying recurring UX issue with possibly simple fix.

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

Scroll position within folders is lost on navigation

5 participants