mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 19:53:44 +08:00
1f45215537
* add drafts.json endpoint, user profile tab with drafts stream * improve drafts stream display in user profile * truncate excerpts in drafts list, better handling for resume draft action * improve draft stream SQL query, add rspec tests * if composer is open, quietly close it when user opens another draft from drafts stream; load PM draft only when user is in /u/username/messages (instead of /u/username) * cleanup * linting fixes * apply prettier styling to modified files * add client tests for drafts, includes a fixture for drafts.json * improvements to code following review * refresh drafts route when user deletes a draft open in the composer while being in the drafts route; minor prettier scss fix * added more spec tests, deleted an acceptance test for removing drafts that was too finicky, formatting and code style fixes, added appEvent for draft:destroyed * prettier, eslint fixes * use "username_lower" from users table, added error handling for rejected promises * adds guardian spec for can_see_drafts, adds improvements following code review * move DraftsController spec to its own file * fix failing drafts qunit test, use getOwner instead of deprecated this.container * limit test fixture for draft.json testing to new_topic request only |
||
---|---|---|
.. | ||
admin | ||
users | ||
about_controller.rb | ||
application_controller.rb | ||
badges_controller.rb | ||
categories_controller.rb | ||
category_hashtags_controller.rb | ||
clicks_controller.rb | ||
composer_controller.rb | ||
composer_messages_controller.rb | ||
directory_items_controller.rb | ||
draft_controller.rb | ||
drafts_controller.rb | ||
email_controller.rb | ||
embed_controller.rb | ||
exceptions_controller.rb | ||
export_csv_controller.rb | ||
extra_locales_controller.rb | ||
finish_installation_controller.rb | ||
forums_controller.rb | ||
groups_controller.rb | ||
highlight_js_controller.rb | ||
inline_onebox_controller.rb | ||
invites_controller.rb | ||
list_controller.rb | ||
metadata_controller.rb | ||
notifications_controller.rb | ||
offline_controller.rb | ||
onebox_controller.rb | ||
permalinks_controller.rb | ||
post_action_users_controller.rb | ||
post_actions_controller.rb | ||
posts_controller.rb | ||
push_notification_controller.rb | ||
queued_posts_controller.rb | ||
qunit_controller.rb | ||
robots_txt_controller.rb | ||
safe_mode_controller.rb | ||
search_controller.rb | ||
session_controller.rb | ||
similar_topics_controller.rb | ||
site_controller.rb | ||
static_controller.rb | ||
steps_controller.rb | ||
stylesheets_controller.rb | ||
tag_groups_controller.rb | ||
tags_controller.rb | ||
themes_controller.rb | ||
topics_controller.rb | ||
uploads_controller.rb | ||
user_actions_controller.rb | ||
user_api_keys_controller.rb | ||
user_avatars_controller.rb | ||
user_badges_controller.rb | ||
users_controller.rb | ||
users_email_controller.rb | ||
webhooks_controller.rb | ||
wizard_controller.rb |