Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tighter integration - Open in Notes Button #14497

Merged
merged 11 commits into from
Feb 26, 2025
Merged

Conversation

ZetaTom
Copy link
Collaborator

@ZetaTom ZetaTom commented Feb 5, 2025

This change introduces a new Open in Notes button to folders managed by the Nextcloud Notes app. Taping on this button will open the Notes app carrying the current account over.

Screenshots

Normal Folder Notes Folder Notes Folder
(Rich Workspace)
1-root 2-open-in-notes-portrait 3-open-in-notes-portrait-rich-workspace
Notes Folder Notes Folder
(Rich Workspace)
4-open-in-notes-landscape 5-open-in-notes-landscape-rich-workspace

Related


  • Tests written, or not not needed

@ZetaTom ZetaTom self-assigned this Feb 5, 2025
@ZetaTom ZetaTom force-pushed the feature/open-in-notes branch 3 times, most recently from 9bbebb1 to 8c41452 Compare February 6, 2025 08:33
@ZetaTom ZetaTom requested a review from Hyeyoung346 February 10, 2025 09:50
@ZetaTom ZetaTom force-pushed the feature/open-in-notes branch from 8c41452 to 9d36770 Compare February 11, 2025 10:55
@ZetaTom ZetaTom requested review from jancborchardt, tobiasKaminsky and alperozturk96 and removed request for Hyeyoung346 February 11, 2025 10:56
@ZetaTom
Copy link
Collaborator Author

ZetaTom commented Feb 11, 2025

@jancborchardt, please review the design and placement of the new Open in Notes button. It's designed to look like the Open in Collectives button in the web interface.

@ZetaTom ZetaTom force-pushed the feature/open-in-notes branch from 9d36770 to ffdd1ef Compare February 11, 2025 12:38
Copy link
Member

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

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

Nice! It could be improved a bit by clearly grouping it within an outlined card to separate it from the regular content.
https://m3.material.io/components/cards/overview

@ZetaTom
Copy link
Collaborator Author

ZetaTom commented Feb 17, 2025

@Hyeyoung346, as @jancborchardt suggested, I've placed the Open in Notes button and associated text in a MaterialCardView using the outlined style and default colour theme. In my opinion, the filled style with a grey background is a better choice for this use case. Please review the following screenshots:

Outlined Style Filled Style
2-open-in-notes-portrait-outlined 2-open-in-notes-portrait-filled

And the Open in Collectives button from the web UI, for reference:
open-in-collectives-button

@ZetaTom ZetaTom requested a review from Hyeyoung346 February 17, 2025 08:55
@Hyeyoung346
Copy link

@ZetaTom I also think the filled style looks better. But I think this component is more similar to the banner component. I think M3 doesn't have a banner implementation and therefore needs a bit of customization. The M3 guideline recommends a button with low emphasis text for banners, and I think the current button looks a bit large. So I suggest using a text button like this.

Screenshot 2025-02-17 at 14 01 49

What about adding Dismissor Remind me later text button to let users close this banner in case if they don’t want to open in Notes app?

@ZetaTom
Copy link
Collaborator Author

ZetaTom commented Feb 18, 2025

Thank you @Hyeyoung346 for your feedback. This has been discussed with @tobiasKaminsky. We decided to go with the filled card style because implementing the banner style would unfortunately require a lot of work on the surrounding components. Similarly adding a dismiss button would require more logic and is currently considered out of scope for this pull request. We also considered the outlined button in order to reduce the visual strain. Please see the screenshots below:

Outlined Button Text Button
2-open-in-notes-portrait-outlinedbutton 2-open-in-notes-portrait-textbutton

@Hyeyoung346
Copy link

@ZetaTom Yes, it's strange that there are no banner components in M3. I think the text button looks better and this complies with M3 guidelines. As for adding a dismiss text button, I think it would be better to add that option, but can consider to implement later.

@ZetaTom ZetaTom force-pushed the feature/open-in-notes branch 4 times, most recently from 9d1b1aa to 5d77c74 Compare February 24, 2025 08:55
@ZetaTom ZetaTom force-pushed the feature/open-in-notes branch from 5d77c74 to 8320398 Compare February 25, 2025 12:11
@tobiasKaminsky tobiasKaminsky merged commit 116e42f into master Feb 26, 2025
17 of 19 checks passed
@tobiasKaminsky tobiasKaminsky deleted the feature/open-in-notes branch February 26, 2025 08:42
Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/14497.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

Copy link

Codacy

Lint

TypemasterPR
Warnings5454
Errors33

SpotBugs

CategoryBaseNew
Bad practice6565
Correctness5858
Dodgy code293294
Experimental11
Internationalization77
Malicious code vulnerability11
Multithreaded correctness77
Performance5151
Security1818
Total501502

SpotBugs increased!

AndyScherzinger added a commit that referenced this pull request Feb 27, 2025
@AndyScherzinger AndyScherzinger added this to the Nextcloud App 3.32.0 milestone Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🎉 Done
Development

Successfully merging this pull request may close these issues.

Tighter integration on apps within Nextcloud ecosystem
6 participants