-
-
Notifications
You must be signed in to change notification settings - Fork 102
Proposal for favorite sharing by public link #217
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
Conversation
|
Cool stuff! Will try and test soon :) As for the roadmap, let’s try and keep pull requests small and contained! :) The most important thing is that sharing a link simply works, I’d even say the first thing could be just read-only. Because the next step is a toggle for read-only / edit for the share link, and that’s already a second step which is better to do in a follow-up pull request. |
I agree, the next step would then be for me to make a public link read-only by default and implement constraints accordingly in the backend. |
|
Wow this is amazing! Several remarks:
Looking forward to use it! Again: amazing! |
|
@eneiluj Thanks for the enthusiasm :)
Cheers! |
|
Sorry I'm not familiar with all that. Could you explain what needs to be done to try your branch? |
|
Oh and you can use OC.generateUrl() but you still need to prepend protocol://hostname |
|
@eneiluj You might be able to use this to deploy a nextcloud development environment locally. Just change the file I might attach a zip file with a built version soon |
dae13e9 to
971ff03
Compare
|
@jancborchardt @eneiluj When changing a favourite's category using the editing endpoint, it's possible to create a situation where there will be no favourites left with say category A. If the user previously shared category A, this share is still active but no favourites are associated with it. I currently have two possibilities in mind to correct this behaviour:
What are your opinions on this? Do you have other ideas? |
|
@paulschwoerer keeping in mind that editing by others will be possible in the future, having 0 elements in the share should not equate to the share being removed. :) Because for example:
Hence I’d say the share should still work fine, just simply in the part where the favorites are displayed it could display an emptycontent element (similar to an empty folder in Files):
If you don’t have editing rights, the text in the second row could instead be "This is a read-only list". |
|
@jancborchardt Great thoughts! I agree on having empty categories makes sense. Would it then as a consequence make sense for a category to be represented by a standalone database entity, instead of a field in the favorite table? |
|
@paulschwoerer nice work 👍
I guess this makes sense. Can the favorite shares table then be merged |
Thanks :) @tacruc I think we should't drop it, as a user might want to share a favourite category with multiple links (one can edit, the other not, ...) and to other users on the server in the future. For this we'd need a separate table for shares. |
|
I'm late to the game here, but if it helps other who want to test this, I pushed a new branch to get a working instance of @paulschwoerer 's branch (as of 678377a at least). The only thing I verified so far is that the public share link indeed shows shared favorites. |
|
The Docker environment I referenced above actually works now; I had not noticed a problem with the git submodule initialization when I posted yesterday. Testers should not be alarmed by the number of "errors" that result from the |
|
@paulschwoerer sorry, am quite busy with Nextcloud 18 work at the moment. Could you post some screenshots of the main parts? That would help a lot with design review. :) |
|
@jancborchardt Here you go! Screens of the sharing dialogue. I'll upload some of the public share page soon |
|
@jancborchardt And some screens of the public part OverviewMap Click PopupClustering |
|
Great work! :) Simple and straightforward, love it! Quick review:
Nice on the share page! Some details:
Map click popup and clustering look like in the app when logged in, right? :) |
|
I agree that this is excellent work. It is already providing a very useful feature even in this first iteration. I don't have anything to add to @jancborchardt 's comments except something odd I noticed in the display when tabbing through links. This quirk may be an issue with Maps in general and not this specific pull request; I'm not sure yet. What I find is that as I press the tab key after revealing the share link (to conveniently copy the URL) is that the navigation pane gets shifted over and doesn't recover until many tab key presses later. See the screenshots below. |
@jancborchardt Talk seems to be using a different approach, where a public sharing token is generated when a room is created. It can then be copied from the popover menu. I'm currently only generating share tokens once the user checks the sharing checkbox. This has two main benefits IMO:
We could use something like this for now: |
Signed-off-by: Paul Schwörer <hello@paulschwoerer.de>
|
Ready to merge :) |
|
@paulschwoerer Great. I didn't realize it was such a big PR. I'll have more time on the weekend. It also works with |
|
@eneiluj Exactly, |
|
Ok nice about the I'm sorry I didn't get to review this PR yet. I'm focusing on the next small release. I don't forget this though 😁. |
|
Finally getting back to looking at this again, and I took the opportunity to improve the development environment repo as well. Hopefully it can help others review these kinds of pull requests more easily and robustly. If you you should get a fully functioning Nextcloud instance running locally via Docker, where the Nextcloud Docker image used is Hopefully this will provide enough flexibility and simplicity to encourage more aspiring Maps developers. (Maybe it could even be a time-saver for veterans like @eneiluj). As for the pull request itself, it all appears to work smoothly and in an interface consistent with other Nextcloud apps. I did receive several warnings during the |
|
@anaqreon An updated development environment sounds neat. I'll check it soon :) As for the warnings, they don't seem to be a pressing issue, but should be addressed eventually. Not all of them are related to the changes made in this branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Impressive work. Nicely done.
I didn't really dig into the vue.js part... Still not operational in that area.
Most of my comments are just details about code formatting. Other than that, fine by me. Thanks a lot.
Nice that you already wrote more advanced features. Do you feel most of what's commented/disabled like password-protected share or edition 🚀 is more or less ready? I mean did you disable them to progressively introduce features or is it still not solid?
There is still a little conflict. Just keep my new replace and your new function parameter and that's it!
|
Just to give you guys an update: I might be able to put some work into the requested changes this week |
jancborchardt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to give my 👍 design-wise. :) So just the code feedback from @eneiluj outstanding.
Signed-off-by: Paul Schwörer <hello@paulschwoerer.de>
Signed-off-by: Paul Schwörer <hello@paulschwoerer.de>
# Conflicts: # src/favoritesController.js
|
@eneiluj I addressed your changes. Unfortunately there are still a lot of formatting changes compared to master. I have to be more careful next time :( If you're fine with the changes, feel free to merge :) |
Some features are partially implemented, however this was commented out quite a while ago, so not sure how functional it is. |
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
|
Thanks for the changes. There was still a problem making it impossible to remove shared accesses. I fixed the SQL query. This new feature is just brilliant and nicely done! Thanks again. 🚀 |
|
It was a pleasure, maybe I'll have time to add features in the future :) |
|
Is this feature going to be released soon? It would be awesome to be able to share locations. |
|
Wow, what a nice feature! Unfortunately i am unable to compile it. So when will it be released? Can't wait longer!!! :-) |
|
@TheRaven500 what are the compile errors? The instructions at https://github.com/nextcloud/maps/#-development-setup should work :) |
|
Ok, i have now successfully built from git, but something is wrong because favorites are not working. During the build process i got errors about "public-favorite-share.js" and "script.js" saying me they are to big. Adding favorites is possible, but if i click something else in my cloud and click back they are gone. Sharing is also not possible. For me it looks like something is write protected (wrong permissions?). Is there an error log or something like that? |
|
Error logs are located in |
|
Thx, i had success with building! I think the trick was to add "sudo -u www-data" to set the right permissions. It is a very nice app by the way! I really love it! Please keep on the good work! I can imaging that there are a lot of features to implement (changing the icons, sharing routes, writable external shares or adding photos to a point for example). Thank you very much for your work! |
|
Is there any update on this feature? :D |
|
A good question! I also wait for new features! :- ) |











Hey guys
As discussed in issue #70, I propose these changes to be able to share favorites by public link (per category).
It's currently possible as a logged in user to share/unshare a category. The shared category can be viewed using the public link.
Let me know what you think of the current design and functionality.
Cheers!