feat: Improve UX to match new mockups

Uses new API features for preview, deleting, pinning, and closing. Refactors and improves styling to match new mockups.
Adds the new post filter bar element.
This commit is contained in:
Kshitij Sobti
2021-10-22 14:01:38 +05:30
parent 1c6a9b24dd
commit c8c3bb925c
32 changed files with 2143 additions and 1939 deletions

View File

@@ -41,7 +41,7 @@ export const EndorsementValue = {
*/
export const ContentActions = {
EDIT_CONTENT: 'raw_body',
PIN: 'pin',
PIN: 'pinned',
ENDORSE: 'endorsed',
CLOSE: 'closed',
REPORT: 'abuse_flagged',
@@ -105,10 +105,11 @@ export const MyPostsFilter = {
* @enum {string}
*/
export const PostsStatusFilter = {
ALL: 'filterAll',
UNREAD: 'filterUnread',
FOLLOWING: 'filterFollowing',
FLAGGED: 'filterFlagged',
ALL: 'statusAll',
UNREAD: 'statusUnread',
FOLLOWING: 'statusFollowing',
REPORTED: 'statusReported',
UNANSWERED: 'statusUnanswered',
};
/**
@@ -184,7 +185,8 @@ export const Routes = {
},
};
export const ALL_ROUTES = [Routes.DISCUSSIONS.PATH]
export const ALL_ROUTES = []
.concat(Routes.COMMENTS.PATH)
.concat(Routes.TOPICS.PATH)
.concat([Routes.POSTS.ALL_POSTS, Routes.POSTS.MY_POSTS]);
.concat([Routes.POSTS.ALL_POSTS, Routes.POSTS.MY_POSTS])
.concat([Routes.DISCUSSIONS.PATH]);