UX: Remove bookmarks link from community section (#17608)
Product decision to drop it from Sidebar at this moment.
This commit is contained in:
parent
4594ce2723
commit
a626b99a50
|
@ -5,7 +5,6 @@ import PermissionType from "discourse/models/permission-type";
|
|||
import { customSectionLinks } from "discourse/lib/sidebar/custom-community-section-links";
|
||||
import EverythingSectionLink from "discourse/lib/sidebar/community-section/everything-section-link";
|
||||
import TrackedSectionLink from "discourse/lib/sidebar/community-section/tracked-section-link";
|
||||
import BookmarkedSectionLink from "discourse/lib/sidebar/community-section/bookmarked-section-link";
|
||||
import MyPostsSectionLink from "discourse/lib/sidebar/community-section/my-posts-section-link";
|
||||
|
||||
import { action } from "@ember/object";
|
||||
|
@ -14,7 +13,6 @@ import { next } from "@ember/runloop";
|
|||
const DEFAULT_SECTION_LINKS = [
|
||||
EverythingSectionLink,
|
||||
TrackedSectionLink,
|
||||
BookmarkedSectionLink,
|
||||
MyPostsSectionLink,
|
||||
];
|
||||
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
import I18n from "I18n";
|
||||
|
||||
import BaseSectionLink from "discourse/lib/sidebar/community-section/base-section-link";
|
||||
|
||||
export default class BookmarkedSectionLink extends BaseSectionLink {
|
||||
get name() {
|
||||
return "bookmarked";
|
||||
}
|
||||
|
||||
get route() {
|
||||
return "userActivity.bookmarks";
|
||||
}
|
||||
|
||||
get model() {
|
||||
return this.currentUser;
|
||||
}
|
||||
|
||||
get title() {
|
||||
return I18n.t("sidebar.sections.community.links.bookmarked.title");
|
||||
}
|
||||
|
||||
get text() {
|
||||
return I18n.t("sidebar.sections.community.links.bookmarked.content");
|
||||
}
|
||||
}
|
|
@ -158,30 +158,6 @@ acceptance("Sidebar - Community Section", function (needs) {
|
|||
);
|
||||
});
|
||||
|
||||
test("clicking on bookmarked link", async function (assert) {
|
||||
await visit("/t/280");
|
||||
await click(".sidebar-section-community .sidebar-section-link-bookmarked");
|
||||
|
||||
assert.strictEqual(
|
||||
currentURL(),
|
||||
`/u/${loggedInUser().username}/activity/bookmarks`,
|
||||
"it should transition to the bookmarked url"
|
||||
);
|
||||
|
||||
assert.strictEqual(
|
||||
count(".sidebar-section-community .sidebar-section-link.active"),
|
||||
1,
|
||||
"only one link is marked as active"
|
||||
);
|
||||
|
||||
assert.ok(
|
||||
exists(
|
||||
".sidebar-section-community .sidebar-section-link-bookmarked.active"
|
||||
),
|
||||
"the bookmarked link is marked as active"
|
||||
);
|
||||
});
|
||||
|
||||
test("clicking on my posts link", async function (assert) {
|
||||
await visit("/t/280");
|
||||
await click(".sidebar-section-community .sidebar-section-link-my-posts");
|
||||
|
|
|
@ -4107,9 +4107,6 @@ en:
|
|||
tracked:
|
||||
content: "Tracked"
|
||||
title: "All tracked topics"
|
||||
bookmarked:
|
||||
content: "Bookmarked"
|
||||
title: "All bookmarked topics"
|
||||
my_posts:
|
||||
content: "My Posts"
|
||||
title: "My posts"
|
||||
|
|
Loading…
Reference in New Issue