New feature: set a note as favorite (star/unstar)#248
Conversation
|
@korelstar, thanks for your PR! By analyzing the history of the files in this pull request, we identified @BernhardPosselt, @Henni and @jancborchardt to be potential reviewers. |
|
For the Notes API, there are multiple approaches for providing this feature to 3rd-party apps, e.g.:
What do you think? |
Henni
left a comment
There was a problem hiding this comment.
I haven't tested it yet and haven't seen the owncloud tags API in practice, but here is a pure code review for now.
| #app-navigation .active > .utils .icon-star { | ||
| display: inline-block; | ||
| opacity: .3; | ||
| } |
There was a problem hiding this comment.
please merge this rule with the previous rule:
#app-navigation .active > .utils .icon-delete,
#app-navigation .active > .utils .icon-star {
...
}| #app-navigation .utils .icon-starred { | ||
| display: inline-block; | ||
| opacity: 1 !important; | ||
| } |
There was a problem hiding this comment.
It should be possible to remove the !important if the rule is set to:
#app-navigation .active > .utils .icon-starred {There was a problem hiding this comment.
That's not possible here, because the starred icon should be shown for not-active notes, too.
| } | ||
| } | ||
| } | ||
| }, |
There was a problem hiding this comment.
Where does this , come from?
There was a problem hiding this comment.
copy&paste, sorry. It's removed now.
Looks good so far. Needs to be re-reviewed when finished
Henni
left a comment
There was a problem hiding this comment.
Except for this one issue: Awesome PR!
| * @return static | ||
| */ | ||
| public static function fromFile(File $file){ | ||
| public static function fromFile(File $file, array $tags=[]){ |
There was a problem hiding this comment.
BTW: This is also why travis fails.
|
Another thing: The automated tests failed for my pull request, because Therefore, I believe that the test environment is not sufficient. However, I have no idea how to change it, so that the tests will be successful. Can anyone help please? |
|
Really awesome work @korelstar! :) Great that it directly hooks in with Files, it’s just perfect. |
| * @return static | ||
| */ | ||
| public static function fromFile(File $file, array $tags=[]){ | ||
| public static function fromFile(File $file, $tags=[]){ |
There was a problem hiding this comment.
as soon as travis is happy with this change, I'll merge it.
There was a problem hiding this comment.
Thanks for you feedback. As far as I can see, this was not sufficient. See my above comment: #248 (comment)
|
@korelstar I haven't figured out why travis fails. Maybe you can figure it out: |
|
|
|
Which wording should be used? I've chosen What do you think? I will adjust my changes accordingly. |
|
@korelstar I'm happy with both. @jancborchardt what do you prefer? |
|
Two things that should be done:
I'm also willing to do this. But then I would merge this PR first and fix these two points in a separate PR. (Working on two different repos is painful) |
|
Let's go with »Favorite« for now since it's symmetric to how we use it elsewhere. :) |
|
@Henni |
|
Travis finally has run through. |

This pull request brings a star/unstar-feature for notes as known already from other owncloud apps: you can click on a gray star to mark a note as your favorite, then the note is shown on the top of the list and a yellow star appears, so you can easily find your most important notes.
In the technical backend, it uses the existing system to star files, i.e. a special tag for the file. The frontend provides respective new actions.
closes #202
(Open) tasks