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
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
..
admin Improving bookmarks part 1 (#8466) 2019-12-11 14:04:02 +10:00
admin-login REFACTOR: use const rather than var 2019-10-03 11:45:03 -07:00
discourse Improving bookmarks part 1 (#8466) 2019-12-11 14:04:02 +10:00
discourse-common FEATURE: consolidate group membership request notifications. 2019-11-28 04:02:35 +05:30
docs Ember Upgrade: 1.0 2013-10-01 11:16:27 -04:00
ember-addons DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
locales DEV: Import ember ENV instead of Ember.testing (#8305) 2019-11-07 11:20:35 -06:00
pretty-text DEV: Extend plugin API for uploads (#8440) 2019-12-09 16:20:03 +02:00
select-kit FIX: alphabetical tag sorting in mini-tag-chooser 2019-12-10 12:36:49 -05:00
wizard DEV: Remove all instances of Ember.computed (#8324) 2019-11-08 12:28:11 -06:00
activate-account.js.no-module.es6 CSP - extract all other inline JavaScripts (#6528) 2018-10-25 09:52:01 -04:00
admin.js.erb Add support for plugins to declare ES6 in the admin bundle 2015-08-17 15:03:55 -04:00
application.js REFACTOR: Remove InputValidation which was simply an Ember.Object 2019-11-11 15:48:56 -05:00
auto-redirect.js.no-module.es6 CSP - extract all other inline JavaScripts (#6528) 2018-10-25 09:52:01 -04:00
deprecated.js REFACTOR: Remove requirejs calls 2017-07-05 17:24:27 -04:00
discourse-loader.js FIX: Remove uneeded from discourse loader (#8390) 2019-11-21 11:46:27 -06:00
discourse-objects.js Scaffold for new Wizard - Rails / Ember / Tests 2016-09-22 09:48:58 -04:00
discourse.js.es6 FIX: Failing tests 2019-11-13 15:34:30 -05:00
embed-application.js.no-module.es6 FEATURE: Embed topics list on remote sites via Javascript API. (#8008) 2019-08-15 13:41:06 -04:00
ember_include.js.erb move template compiler into vendor for now 2015-11-25 15:54:54 +11:00
ember_jquery.js DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
ember-shim.js Migrate discourse.js to ES6 2016-07-11 12:57:05 -04:00
env.js FIX: attempts to fix an error with EXTEND_PROTOTYPES (#7067) 2019-02-26 11:04:05 +01:00
google-tag-manager.js.no-module.es6 DEV: transpile certain ES6 files without producing a module (#6460) 2018-10-09 09:18:23 +08:00
google-universal-analytics.js.no-module.es6 DEV: transpile certain ES6 files without producing a module (#6460) 2018-10-09 09:18:23 +08:00
main_include_admin.js FEATURE: handle bounced emails 2016-05-02 23:15:32 +02:00
markdown-it-bundle.js REFACTOR: Attach resize controls to images from the markdown pipeline (#8314) 2019-11-12 17:32:37 -03:00
onpopstate-handler.js.no-module.es6 extract inline onpopstate handler on 404 page (#6613) 2018-11-15 13:35:38 -05:00
polyfills.js FIX: polyfills forEach support on NodeList for IE11 (#8213) 2019-10-18 12:27:51 +02:00
preload-application-data.js.no-module.es6 REFACTOR: Remove Discourse.Session constants 2019-11-08 13:46:50 -05:00
preload-store.js.es6 FIX: More Promise uses that were not imported 2019-11-19 15:58:40 -05:00
pretty-text-bundle.js DEV: Remove pretty_text import hack & still work server-side (#8266) 2019-10-31 11:54:46 -05:00
print-page.js CSP - extract all other inline JavaScripts (#6528) 2018-10-25 09:52:01 -04:00
service-worker.js.erb DEV: Bump uglifyjs (#7834) 2019-10-09 10:02:49 -03:00
set-prototype-polyfill.js DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
template_include.js.erb PERF: stop loading handlebars and ember compilers in prod 2015-11-27 11:59:01 +11:00
vendor.js DEV: Remove HTML parser from Tautologistics. (#7344) 2019-04-10 11:21:22 +02:00
wizard-application.js DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
wizard-start.js.no-module.es6 CSP - extract all other inline JavaScripts (#6528) 2018-10-25 09:52:01 -04:00
wizard-vendor.js FEATURE: replaces tag-chooser/tag-group-chooser with select-kit component 2018-02-26 11:42:57 +01:00