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/models
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
..
action-summary.js.es6 DEV: Run prettier 2019-11-12 11:49:31 +01:00
archetype.js.es6 DEV: Import every instance of Ember.computed function (#8267) 2019-10-30 15:28:29 -05:00
badge-grouping.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
badge.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
category-list.js.es6 FIX: Update site data when we receive a list of categories 2019-11-25 16:50:54 +00:00
category.js.es6 DEV: Allow the creation of sub-sub-categories 2019-12-04 12:07:05 +00:00
composer.js.es6 FIX: draft not clearing when replying to new topic 2019-11-26 18:23:20 +11:00
draft.js.es6 REFACTOR: Remove Discourse.Model 2019-11-08 14:13:35 -05:00
group-history.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
group.js.es6 FIX: More Promise uses that were not imported 2019-11-19 15:58:40 -05:00
invite.js.es6 Fix Prettier using correct version (1.19.1) 2019-11-15 10:34:26 -05:00
live-post-counts.es6 REFACTOR: Remove Discourse.Model 2019-11-08 14:13:35 -05:00
login-method.js.es6 DEV: Remove Discourse.Site in favor of import (#8344) 2019-11-13 12:13:47 -05:00
nav-item.js.es6 DEV: nav-item should not fail when no top menu items exist 2019-12-04 10:30:04 +11:00
permission-type.js.es6 REFACTOR: Remove Discourse.Model 2019-11-08 14:13:35 -05:00
post-action-type.js.es6 DEV: Import every instance of Ember.computed function (#8267) 2019-10-30 15:28:29 -05:00
post-stream.js.es6 WIP - discourse/models/user not defined 2019-11-13 15:34:30 -05:00
post.js.es6 Improving bookmarks part 1 (#8466) 2019-12-11 14:04:02 +10:00
rest.js.es6 DEV: Import Promise from rsvp (#8296) 2019-11-05 10:37:32 -06:00
result-set.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
reviewable-history.js.es6 DEV: Import every instance of Ember.computed function (#8267) 2019-10-30 15:28:29 -05:00
reviewable.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
session.js.es6 FIX: Return a deprecation for Discourse.Session 2019-11-08 14:55:36 -05:00
site.js.es6 FIX: Update site data when we receive a list of categories 2019-11-25 16:50:54 +00:00
static-page.js.es6 FIX: More missing RSVP imports 2019-11-11 09:25:33 -05:00
store.js.es6 REFACTOR: use rest serializer for tag-info categories 2019-12-10 14:58:11 -05:00
tag-group.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
tag.js.es6 FEATURE: Allow scoping search to tag (#8345) 2019-11-14 10:40:26 +10:00
topic-details.js.es6 DEV: Remove Discourse.User and import instead 2019-11-13 15:34:30 -05:00
topic-list.js.es6 REFACTOR: Remove Discourse.Model 2019-11-08 14:13:35 -05:00
topic-timer.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
topic-tracking-state.js.es6 FIX: Muted tags are respected by TopicTrackingState (#8467) 2019-12-10 09:50:05 +11:00
topic.js.es6 FEATURE: Featured topic for user profile & card (#8461) 2019-12-09 11:15:47 -08:00
trust-level.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
user-action-group.js.es6 REFACTOR: Remove Discourse.Model 2019-11-08 14:13:35 -05:00
user-action-stat.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
user-action.js.es6 DEV: Remove Discourse.User and import instead 2019-11-13 15:34:30 -05:00
user-badge.js.es6 DEV: Remove Discourse.User and import instead 2019-11-13 15:34:30 -05:00
user-draft.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
user-drafts-stream.js.es6 DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
user-posts-stream.js.es6 REFACTOR: Remove Discourse.Model 2019-11-08 14:13:35 -05:00
user-stream.js.es6 REFACTOR: Remove Discourse.UserAction from code 2019-11-08 12:52:39 -05:00
user.js.es6 FEATURE: Add timezone to core user_options (#8380) 2019-11-25 10:49:27 +10:00