This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
Martin Brennan 6261339da9
Improving bookmarks part 1 (#8466)
Note: All of this functionality is hidden behind a hidden, default false, site setting called `enable_bookmarks_with_reminders`. Also, any feedback on Ember code would be greatly appreciated!

This is part 1 of the bookmark improvements. The next PR will address the backend logic to send reminder notifications for bookmarked posts to users. This PR adds the following functionality:

* We are adding a new `bookmarks` table and `Bookmark` model to make the bookmarks a first-class citizen and to allow attaching reminders to them.
* Posts now have a new button in their actions menu that has the icon of an actual book
* Clicking the button opens the new bookmark modal.
* Both name and the reminder type are optional.
* If you close the modal without doing anything, the bookmark is saved with no reminder.
* If you click the Cancel button, no bookmark is saved at all.
* All of the reminder type tiles are dynamic and the times they show will be based on your user timezone set in your profile (this should already be set for you).
* If for some reason a user does not have their timezone set they will not be able to set a reminder, but they will still be able to create a bookmark.
* A bookmark can be deleted by clicking on the book icon again which will be red if the post is bookmarked.

This PR does NOT do anything to migrate or change existing bookmarks in the form of `PostActions`, the two features live side-by-side here. Also this does nothing to the topic bookmarking.
2019-12-11 14:04:02 +10:00
..
adapters FEATURE: Tag synonyms 2019-12-04 13:33:51 -05:00
components Improving bookmarks part 1 (#8466) 2019-12-11 14:04:02 +10:00
controllers Improving bookmarks part 1 (#8466) 2019-12-11 14:04:02 +10:00
helpers FIX: Reorder categories not working 2019-12-10 12:36:47 -07:00
initializers FEATURE: Featured topic for user profile & card (#8461) 2019-12-09 11:15:47 -08:00
lib Improving bookmarks part 1 (#8466) 2019-12-11 14:04:02 +10:00
mixins FIX: default draft key in openComposerWithTopicParams (#8496) 2019-12-09 07:53:05 -08:00
models Improving bookmarks part 1 (#8466) 2019-12-11 14:04:02 +10:00
pre-initializers DEV: Client side category routing changes 2019-11-26 13:52:14 +00:00
raw-views DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
routes UX: Remove 'show more' from upload modals (#8470) 2019-12-09 12:57:43 +02:00
services DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
templates Improving bookmarks part 1 (#8466) 2019-12-11 14:04:02 +10:00
widgets Improving bookmarks part 1 (#8466) 2019-12-11 14:04:02 +10:00
mapping-router.js.es6 DEV: Remove Discourse.Site in favor of import (#8344) 2019-11-13 12:13:47 -05:00