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/widgets
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
..
actions-summary.js.es6 FEATURE: Flag count in post menu 2019-05-06 16:13:31 -04:00
avatar-flair.js.es6 Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
button.js.es6 FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
category-link.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
component-connector.js.es6 FIX: Build with prettier for imports (#8298) 2019-11-05 13:32:43 -06:00
connector.js.es6 FIX: Prettier to fix build (#8311) 2019-11-07 12:07:08 -06:00
custom-notification-item.js.es6 FIX: Use title attribute for notification items. (#7840) 2019-07-03 10:48:13 -04:00
decorator-helper.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
default-notification-item.js.es6 REFACTOR: Use a module for Ember.isEmpty 2019-11-01 13:50:15 -04:00
discourse-tags.js.es6 FEATURE: displays tags in search menu results when enabled (#7819) 2019-06-27 19:26:14 +02:00
embedded-post.js.es6 FIX: Do not replace text of collapsed ignore posts (#7422) 2019-04-24 13:54:46 +01:00
emoji.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
footer-nav.js.es6 UI: Footer nav fixes 2019-04-15 15:25:40 -04:00
glue.js.es6 DEV: call destroy() on widget when glue is cleaned up (#8338) 2019-11-13 09:28:43 +01:00
group-message-summary-notification-item.js.es6 fix prettier linting (#7809) 2019-06-26 15:26:02 +02:00
hamburger-categories.js.es6 REFACTOR: Remove Discourse.Category constants 2019-11-08 13:31:00 -05:00
hamburger-menu.js.es6 DEV: give categories-separator class to HR after cateogries 2019-11-18 17:31:01 +11:00
hbs-compiler.js.es6 DEV: enable no-alert & no-console eslint rules 2018-11-14 23:17:56 +01:00
header-contents.js.es6 DEV: Upgrade our widget handlebars compiler 2019-05-02 15:47:57 -04:00
header-topic-info.js.es6 UX: better alignment for tags in the header (#8047) 2019-08-28 18:18:27 +10:00
header.js.es6 FEATURE: Allow scoping search to tag (#8345) 2019-11-14 10:40:26 +10:00
home-logo.js.es6 FIX: Properly support defaults for upload site settings. 2019-03-13 16:36:57 +08:00
hooks.js.es6 DEV: prevents input/change events to cause a full rerender (#8339) 2019-11-13 15:49:01 +01:00
invitee-accepted-notification-item.js.es6 fix prettier linting (#7809) 2019-06-26 15:26:02 +02:00
liked-consolidated-notification-item.js.es6 DEV: Provide radix argument to parseInt (#8281) 2019-11-12 10:47:42 +01:00
liked-notification-item.js.es6 Pass data to description to prevent duplication 2019-06-26 09:01:25 -04:00
link.js.es6 DEV: Provide radix argument to parseInt (#8281) 2019-11-12 10:47:42 +01:00
membership-request-accepted-notification-item.js.es6 FEATURE: Send notification when member was accepted to group. (#7614) 2019-08-06 13:29:46 +03:00
membership-request-consolidated-notification-item.js.es6 DEV: always trigger 'notification_created' event. 2019-11-28 04:31:55 +05:30
menu-panel.js.es6 Fix Prettier using correct version (1.19.1) 2019-11-15 10:34:26 -05:00
post-admin-menu.js.es6 FIX: Rename deprecated icons, allow custom icons in badges 2019-07-16 11:13:44 -04:00
post-cooked.js.es6 FIX: Show poll voters in Oneboxed posts. (#7768) 2019-10-24 14:00:25 +03:00
post-edits-indicator.js.es6 FIX: Rename deprecated icons, allow custom icons in badges 2019-07-16 11:13:44 -04:00
post-gap.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
post-links.js.es6 SECURITY: updates lodash from 1.3.0 to 4.17.5 (#7546) 2019-05-16 10:34:19 +02:00
post-menu.js.es6 Improving bookmarks part 1 (#8466) 2019-12-11 14:04:02 +10:00
post-placeholder.js.es6 UX: Changed post stream placeholder to animation (#7434) 2019-04-26 17:29:48 +01:00
post-small-action.js.es6 FIX: computed is part of @ember/object not @ember/object/computed 2019-11-13 11:58:09 -05:00
post-stream.js.es6 Revert "Revert Ember.run refactors" 2019-10-30 09:48:24 -04:00
post.js.es6 FIX: More Promise uses that were not imported 2019-11-19 15:58:40 -05:00
poster-name.js.es6 FIX: Show same username or name for post notices. (#7862) 2019-07-19 11:05:48 +03:00
private-message-map.js.es6 FIX: Move makeArray to discourse-common 2019-11-01 13:50:15 -04:00
quick-access-bookmarks.js.es6 FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
quick-access-item.js.es6 DEV: lint file 2019-12-11 10:48:58 +11:00
quick-access-messages.js.es6 FIX: Do not escape fancy_title again. (#8095) 2019-09-13 10:04:14 -04:00
quick-access-notifications.js.es6 FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
quick-access-panel.js.es6 FIX: More Promise uses that were not imported 2019-11-19 15:58:40 -05:00
quick-access-profile.js.es6 FIX: More Promise uses that were not imported 2019-11-19 15:58:40 -05:00
raw-html.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
search-menu-controls.js.es6 DEV: lint files 2019-11-14 11:52:29 +11:00
search-menu-results.js.es6 UX: Standardize tag display in search menu results 2019-10-22 14:19:24 -04:00
search-menu.js.es6 REFACTOR: Remove Ember.get 2019-11-01 13:50:15 -04:00
time-gap.js.es6 FIX: Alignment for small-actions, gap, removing unneeded clearfix 2019-01-21 17:57:47 -05:00
toggle-topic-summary.js.es6 FIX: Set a minimum reading time per post. (#7842) 2019-07-19 18:15:38 +03:00
topic-admin-menu.js.es6 Revert commit that was pushed by mistake. 2019-07-29 11:04:38 +08:00
topic-map.js.es6 FEATURE: Use the 'ugc' rel attribute alongside 'nofollow' 2019-10-14 15:21:48 -03:00
topic-status.js.es6 DEV: Added qunit test functions and did minor refactoring 2019-03-13 18:38:27 +05:30
topic-timeline.js.es6 Fix Prettier again 2019-11-15 10:52:06 -05:00
user-menu.js.es6 FIX: PM glyph in user-menu should always be shown to staff 2019-11-18 17:25:07 +08:00
user-notifications-large.js.es6 fix prettier linting (#7809) 2019-06-26 15:26:02 +02:00
widget.js.es6 REFACTOR: poll-pie-chart widget (#8415) 2019-11-27 00:10:43 +01:00