Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

feat(navigation): support arbitrary-depth category tree in drawer - #3275

Open
Plaoo wants to merge 1 commit into
nextcloud:mainfrom
Plaoo:fix/1630-nested-category-tree
Open

Plaoo wants to merge 1 commit into
nextcloud:mainfrom
Plaoo:fix/1630-nested-category-tree

Conversation

@Plaoo

@Plaoo Plaoo commented Jul 14, 2026

Copy link
Copy Markdown

Notes organized in nested categories can now be expanded to any depth in the navigation drawer instead of being capped at two levels. Refs #1630.

AI-assistant: Claude Code (Claude Opus 4.8)

🖼️ Screenshots

🏚️ Before 🏡 After
Screenshot_2026-07-14-15-09-34-563_it niedermann owncloud notes dev Screenshot_2026-07-14-15-10-40-869_it niedermann owncloud notes

B | A

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@codacy-production

codacy-production Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 33 complexity

Metric Results
Complexity 33

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Notes organized in nested categories can now be expanded to any depth in
the navigation drawer instead of being capped at two levels. Refs nextcloud#1630.

AI-assistant: Claude Code (Claude Opus 4.8)
Signed-off-by: Paolo Monni <paolo.monni345@gmail.com>
@Plaoo
Plaoo force-pushed the fix/1630-nested-category-tree branch from 4c6cc4e to 3319af9 Compare July 14, 2026 13:30
@github-actions

Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

* Describes whether a navigation item representing a category can be expanded to reveal its
* sub categories, and if so whether it is currently expanded.
*/
public enum CategoryExpandState {

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.

Can we use Kotlin for new classes?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Sure

@tobiasKaminsky

Copy link
Copy Markdown
Member

I somehow to fail to create nested categories?
I just created a subfolder within Files app.
But then I do not see any difference.

Can you point me to the right way?

@Plaoo

Plaoo commented Oct 30, 2026

Copy link
Copy Markdown
Author

I somehow to fail to create nested categories? I just created a subfolder within Files app. But then I do not see any difference.

Can you point me to the right way?

I created perfectly ordinary directories, just as you would normally do via the interface; there must be at least one file inside each one.

@tobiasKaminsky

Copy link
Copy Markdown
Member

A very small nitpick, and probaby something that can be done later:
I see that category expansions are not remember across app restart.
So one would again need to open up all sub-categories.

What do you think? Shall this be persisted?
If so, it can be also done in another PR.

@tobiasKaminsky

Copy link
Copy Markdown
Member

And: may I convert all java to kotlin classes? Or do you wanna do this?

Thanks for this awesome PR 🎉

@Plaoo

Plaoo commented Oct 30, 2026

Copy link
Copy Markdown
Author

A very small nitpick, and probaby something that can be done later: I see that category expansions are not remember across app restart. So one would again need to open up all sub-categories.

What do you think? Shall this be persisted? If so, it can be also done in another PR.

I’d considered this option, but given the way my files are organised, I decided against it. I mainly use Notes with my Obsidian files; I don’t like the Obsidian app on my smartphone, so I’ve modified the original Nextcloud app.

And: may I convert all java to kotlin classes? Or do you wanna do this?

Thanks for this awesome PR

I don’t have time to work on it... It’s open-source, so you can go ahead and do it without any problems. In fact, I’d be very happy if you did.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants