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/controllers
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
..
badges DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
discovery DEV: lint files 2019-11-14 11:52:29 +11:00
navigation DEV: Make filterModes obsolete 2019-11-21 10:51:18 +00:00
preferences DEV: Use shared logout function when revoking all sessions 2019-11-27 11:09:44 +00:00
about.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
account-created-edit-email.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
account-created-index.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
activation-edit.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
add-post-notice.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
application.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
associate-account-confirm.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
auth-token.js.es6 Revert "Revert Ember.run refactors" 2019-10-30 09:48:24 -04:00
avatar-selector.js.es6 REFACTOR: Move upload utilities to their own file 2019-11-14 12:51:08 -05:00
basic-modal-body.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
bookmark.js.es6 Improving bookmarks part 1 (#8466) 2019-12-11 14:04:02 +10:00
bulk-notification-level.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
change-owner.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
change-timestamp.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
composer.js.es6 Support for custom messages and redirects when creating posts (#8434) 2019-11-29 09:30:54 -05:00
convert-to-public-topic.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
create-account.js.es6 DEV: Remove Discourse.User and import instead 2019-11-13 15:34:30 -05:00
discovery-sortable.js.es6 DEV: Import every instance of Ember.computed function (#8267) 2019-10-30 15:28:29 -05:00
discovery.js.es6 DEV: Use category ids in URLs preferentially 2019-12-02 09:28:15 +00:00
edit-category.js.es6 DEV: Use category ids in more URLs preferentially 2019-12-04 09:47:41 +00:00
edit-topic-timer.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
email-login.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
exception.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
explain-reviewable.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
feature-topic.js.es6 REFACTOR: Remove InputValidation which was simply an Ember.Object 2019-11-11 15:48:56 -05:00
flag.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
forgot-password.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
full-page-search.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
grant-badge.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
group-activity-posts.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
group-activity-topics.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
group-activity.js.es6 FIX: Linting 2019-10-29 13:31:44 -04:00
group-add-members.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
group-bulk-add.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
group-index.js.es6 FIX: Better handling of Group model state (#8356) 2019-11-18 14:59:28 +02:00
group-manage-logs.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
group-manage-profile.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
group-manage.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
group-messages.js.es6 FIX: Linting 2019-10-29 13:31:44 -04:00
group-requests.js.es6 FIX: Better handling of Group model state (#8356) 2019-11-18 14:59:28 +02:00
group.js.es6 FIX: Better handling of Group model state (#8356) 2019-11-18 14:59:28 +02:00
groups-index.js.es6 REFACTOR: Remove debounce to discourseDebounce 2019-11-11 13:34:01 -05:00
groups-new.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
history.js.es6 FIX: Missing braces 2019-11-13 12:04:40 -05:00
ignore-duration-with-username.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
ignore-duration.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
insert-hyperlink.js.es6 UX: skip leading spaces in selection when adding a link. 2019-11-30 20:14:22 +05:30
invites-show.js.es6 FEATURE: Add timezone to core user_options (#8380) 2019-11-25 10:49:27 +10:00
jump-to-post.js.es6 DEV: Provide radix argument to parseInt (#8281) 2019-11-12 10:47:42 +01:00
keyboard-shortcuts-help.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
login.js.es6 FEATURE: Add timezone to core user_options (#8380) 2019-11-25 10:49:27 +10:00
modal.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
move-to-topic.js.es6 Fix Prettier using correct version (1.19.1) 2019-11-15 10:34:26 -05:00
not-activated.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
password-reset.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
preferences.js.es6 FIX: Linting 2019-10-29 13:31:44 -04:00
raw-email.js.es6 DEV: Import every instance of Ember.computed function (#8267) 2019-10-30 15:28:29 -05:00
rename-tag.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
reorder-categories.js.es6 DEV: Provide radix argument to parseInt (#8281) 2019-11-12 10:47:42 +01:00
request-group-membership-form.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
review-index.js.es6 FEATURE: New API to apply custom filters to the review queue (#8392) 2019-11-22 16:33:10 -03:00
review-settings.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
search-help.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
second-factor-add-security-key.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
second-factor-add-totp.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
second-factor-backup-edit.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
second-factor-edit-security-key.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
second-factor-edit.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
static.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
tag-groups-edit.js.es6 DEV: Tag group improvements (#8252) 2019-10-30 16:57:13 +01:00
tag-groups-new.js.es6 DEV: Tag group improvements (#8252) 2019-10-30 16:57:13 +01:00
tag-groups.js.es6 DEV: Tag group improvements (#8252) 2019-10-30 16:57:13 +01:00
tags-index.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
tags-show.js.es6 FEATURE: Tag synonyms 2019-12-04 13:33:51 -05:00
topic-bulk-actions.js.es6 Fix Prettier using correct version (1.19.1) 2019-11-15 10:34:26 -05:00
topic.js.es6 Improving bookmarks part 1 (#8466) 2019-12-11 14:04:02 +10:00
upload-selector.js.es6 UX: Remove 'show more' from upload modals (#8470) 2019-12-09 12:57:43 +02:00
user-activity.js.es6 DEV: Import every instance of Ember.computed function (#8267) 2019-10-30 15:28:29 -05:00
user-badges.js.es6 DEV: Import every instance of Ember.computed function (#8267) 2019-10-30 15:28:29 -05:00
user-card.js.es6 REFACTOR: Use Ember modules for @ember/service 2019-10-29 13:29:08 -04:00
user-invited-show.js.es6 Fix Prettier using correct version (1.19.1) 2019-11-15 10:34:26 -05:00
user-notifications.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
user-posts.js.es6 FIX: Linting 2019-10-29 13:31:44 -04:00
user-private-messages-tags.js.es6 REFACTOR: Remove Ember.Controller in favor of import 2019-10-23 13:06:54 -04:00
user-private-messages.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
user-summary.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
user-topics-list.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
user.js.es6 FEATURE: Featured topic for user profile & card (#8461) 2019-12-09 11:15:47 -08:00
users.js.es6 REFACTOR: Remove debounce to discourseDebounce 2019-11-11 13:34:01 -05:00