Skip to content

Share a single note / publish #38

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

Closed
jancborchardt opened this issue Dec 16, 2016 · 15 comments · Fixed by #1146
Closed

Share a single note / publish #38

jancborchardt opened this issue Dec 16, 2016 · 15 comments · Fixed by #1146
Assignees
Labels
enhancement New feature or request help wanted Complex issue or we don't know how to fix it

Comments

@jancborchardt
Copy link
Member

jancborchardt commented Dec 16, 2016

It would be shown in »read only« mode of course (see also #23). Basically the page like for share links with the blue header, in the content only the note text, formatted properly (no Markdown highlight stuff) and on the top right a download function.

The share icon could be in a 3-dot menu in the left navigation, where also »Delete« should be placed now that we get more stuff. We could layout it like in the Spreed app, where quick sharing by link is possible:
capture du 2016-12-15 16-22-04
Clicking on »Share link« shows the link in an input field below and also shows a copy button. We could also use the clipboard API to directly copy the share link to the clipboard.

We don’t need full-blown sharing with others on the same instance yet I’d say since there’s no realtime collab anyway. This is about publishing mainly. :)


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@njourdane
Copy link

Note that you can share a not by sharing the file (in the Notes folder) with the File app.

But the note will be stored in the root folder of the user, not in Notes folder.

@jancborchardt
Copy link
Member Author

@roipoussiere yep, of course. That requires you to switch the app, find the note, share it, and go back to the Notes app. ;) Hence the direct integration is needed.

@palto42
Copy link

palto42 commented Oct 1, 2017

With the markdown app there is currently also no option to share the rendered markdown (as it was requested here), but there is a related request for such feature icewind1991/files_markdown#29

@dcrobertson01
Copy link

It needs to be shared in the notes folder not the files folder. This is not sharing a note - it is sharing a file.

I'd like the shared note to be available in the notes app on the phone.

@trurli
Copy link

trurli commented Apr 14, 2018

You should be able to make it visible in the notes app by moving the shared file to the Notes folder manually. However this is really annoying.

I looked into the file sharing code and unfortunately the target folder is always set to the system default folder for sharing, usually the user's root folder, so there's no easy way to solve sharing a note directly using the file sharing API unless something changes in the files_sharing app.

As I'm still fairly new to the whole code-base I'm still unsure how/if dependencies between apps would be handled.

@jancborchardt
Copy link
Member Author

@nextcloud/sharing @schiessle any help regarding sharing here is appreciated. :)

@jancborchardt jancborchardt added the help wanted Complex issue or we don't know how to fix it label Jun 4, 2018
@jancborchardt jancborchardt added this to the 2.5.0 milestone Jun 4, 2018
@korelstar korelstar removed this from the M2 – 🚀 New nice features milestone Dec 21, 2018
@korelstar korelstar added feature request Requests for complete new features and removed enhancement New feature or request labels Dec 14, 2019
korelstar pushed a commit that referenced this issue Apr 24, 2020
Works now when switching to another account, but still does not work on the very first sign in.
@ptandler

This comment was marked as spam.

@ptandler

This comment was marked as off-topic.

@korelstar

This comment was marked as off-topic.

@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Office team Jul 14, 2023
@jancborchardt jancborchardt moved this to 📐 Design phase in 🖍 Design team Jul 14, 2023
@jancborchardt jancborchardt self-assigned this Jul 14, 2023
@jancborchardt
Copy link
Member Author

As mentioned in the original post, the "Share" action should be in the menu of the note. :)

Then we can open a modal just like for Calendar, which content-wise looks like we do sharing anywhere like in Files, Forms, Calendar etc.:
image

@jancborchardt jancborchardt moved this from 📐 Design phase to 🏗️ At engineering in 🖍 Design team Jul 14, 2023
@juliusknorr juliusknorr added enhancement New feature or request and removed feature request Requests for complete new features labels Jul 20, 2023
@juliusknorr juliusknorr moved this from 🧭 Planning evaluation (don't pick) to 📄 To do (~10 entries) in 📝 Office team Aug 24, 2023
@juliusknorr
Copy link
Member

@jancborchardt There are a few things not very clear to me, so maybe you can clarify the full user flow especially in terms of file shares.

  • We would be using regular file sharing and just share to the user?
  • In this case it might be more sensible to just reuse the sharing sidebar to not require double implementation effort for the same logic
  • A note is just a file that is shared, so we would need to make sure it gets added to the recipients notes folder when sharing through the notes app?
  • Receiving users may still be able to manually move the file out again, there is no relation then to know that it was related to the notes app after that

@jancborchardt
Copy link
Member Author

We would be using regular file sharing and just share to the user?

Share to accounts, but yeah the original issue also includes "publishing", so sharing by link.

In this case it might be more sensible to just reuse the sharing sidebar to not require double implementation effort for the same logic

Yeah sounds good, however we need to keep in mind that Notes already uses the 3 column layout, which is why I suggested the modal. But yes the content could be the same as in the Files sidebar.
If you think sidebar works we can try that as well, maybe it’s not an issue with the space.

A note is just a file that is shared, so we would need to make sure it gets added to the recipients notes folder when sharing through the notes app?

Yeah would probably be good, and we then probably also need an indicator in the list for sharer and sharee.

Receiving users may still be able to manually move the file out again, there is no relation then to know that it was related to the notes app after that

Yeah and that is fine, right? It would still be in the Notes folder for the sender, and the receiver can move it wherever they like. It will not be in their Notes app but that’s cause they moved it out.

@juliusknorr
Copy link
Member

juliusknorr commented Sep 12, 2023

All right, let me summarize the implementation idea then a bit:

  • Backend
    • When sharing a note from the notes app it should be added to the recipients notes folder
      • We can use the BeforeShareCreated event for that, just would need to check if the source file is actually located in the owners notes folder
  • Frontend
    • We introduce the files sidebar for notes (window.OCA.Files.Sidebar.open)
      • We want to avoid to rewrite the frontend share logic and rather reuse existing parts
      • This will account for sharing internally or public links and
      • This will also give access to activity, versions
      • Versions might need special handling, but not sure if version preview with the viewer isn't already working out of the box
    • Add an indicator to the note list that a note is an incoming/outgoing share
    • Having the sidebar might be tricky with the 3 column layout, we may want to collapse the left panel if the sidebar is open by default
    • The already existing sidebar should be dropped (already ongoing in Sidebar: removed #1004)

@juliusknorr
Copy link
Member

My suggestion would be to try with the sidebar as a first step. We can later on still see if we can isolate the sharing tab and have it also available in a modal, but I think we should not implement our own logic for file sharing as there are just too many edge cases to consider.

@jancborchardt
Copy link
Member Author

Sounds good @juliushaertl!

@juliusknorr juliusknorr moved this from 📄 To do (~10 entries) to 🏗️ In progress in 📝 Office team Oct 19, 2023
@github-project-automation github-project-automation bot moved this from 🏗️ At engineering to 🎉 Done in 🖍 Design team Nov 8, 2023
@github-project-automation github-project-automation bot moved this from 🏗️ In progress to ☑️ Done in 📝 Office team Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Complex issue or we don't know how to fix it
Projects
Archived in project
Archived in project
Development

Successfully merging a pull request may close this issue.

9 participants