From 5b64b9001d746882b541ceb719142a34f06ec7eb Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sun, 13 Oct 2024 21:07:15 -0400 Subject: [PATCH 1/8] fix weird spacing on notes/home.vue --- packages/frontend/src/pages/user/home.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/pages/user/home.vue b/packages/frontend/src/pages/user/home.vue index 279f301d78..f6d2aec36f 100644 --- a/packages/frontend/src/pages/user/home.vue +++ b/packages/frontend/src/pages/user/home.vue @@ -141,8 +141,8 @@ SPDX-License-Identifier: AGPL-3.0-only - - + + + + + + + + + + diff --git a/packages/frontend/src/pages/user/home.vue b/packages/frontend/src/pages/user/home.vue index f6d2aec36f..4a7f626133 100644 --- a/packages/frontend/src/pages/user/home.vue +++ b/packages/frontend/src/pages/user/home.vue @@ -145,36 +145,7 @@ SPDX-License-Identifier: AGPL-3.0-only - - - - -
-
- -
{{ i18n.ts.noNotes }}
-
-
- -
-
- -
-
+
@@ -190,8 +161,6 @@ SPDX-License-Identifier: AGPL-3.0-only - - diff --git a/packages/frontend/src/pages/user/notes-container.vue b/packages/frontend/src/pages/user/notes-container.vue new file mode 100644 index 0000000000..da66f92020 --- /dev/null +++ b/packages/frontend/src/pages/user/notes-container.vue @@ -0,0 +1,109 @@ + + + + + + + From f5652605ecf29e1fa58b76640cf53f11d8f0f418 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sat, 26 Oct 2024 11:00:45 -0400 Subject: [PATCH 3/8] remove notes-container.vue and revert refactor --- idea/Sharkey/SkPagination.vue | 88 +++++++++++++++++++ .../src/components => idea/Sharkey}/SkTab.vue | 0 .../user => idea/Sharkey}/notes-container.vue | 0 packages/frontend/src/pages/user/home.vue | 62 ++++++++++++- .../src/pages/user/index.timeline.vue | 70 ++++++++++++++- 5 files changed, 215 insertions(+), 5 deletions(-) create mode 100644 idea/Sharkey/SkPagination.vue rename {packages/frontend/src/components => idea/Sharkey}/SkTab.vue (100%) rename {packages/frontend/src/pages/user => idea/Sharkey}/notes-container.vue (100%) diff --git a/idea/Sharkey/SkPagination.vue b/idea/Sharkey/SkPagination.vue new file mode 100644 index 0000000000..8a3fd03c28 --- /dev/null +++ b/idea/Sharkey/SkPagination.vue @@ -0,0 +1,88 @@ + + + + + + + + + diff --git a/packages/frontend/src/components/SkTab.vue b/idea/Sharkey/SkTab.vue similarity index 100% rename from packages/frontend/src/components/SkTab.vue rename to idea/Sharkey/SkTab.vue diff --git a/packages/frontend/src/pages/user/notes-container.vue b/idea/Sharkey/notes-container.vue similarity index 100% rename from packages/frontend/src/pages/user/notes-container.vue rename to idea/Sharkey/notes-container.vue diff --git a/packages/frontend/src/pages/user/home.vue b/packages/frontend/src/pages/user/home.vue index 4a7f626133..398be8e9ab 100644 --- a/packages/frontend/src/pages/user/home.vue +++ b/packages/frontend/src/pages/user/home.vue @@ -145,7 +145,36 @@ SPDX-License-Identifier: AGPL-3.0-only - + + + + +
+
+ +
{{ i18n.ts.noNotes }}
+
+
+ +
+
+ +
+
@@ -161,6 +190,8 @@ SPDX-License-Identifier: AGPL-3.0-only + + From 1c181df0865d0695c081620b8af20b6e2af5be62 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sat, 2 Nov 2024 11:50:22 -0400 Subject: [PATCH 4/8] restore ordering of MkNotes attributes in index.timeline.vue --- packages/frontend/src/pages/user/index.timeline.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/user/index.timeline.vue b/packages/frontend/src/pages/user/index.timeline.vue index 85e297e153..28a5091059 100644 --- a/packages/frontend/src/pages/user/index.timeline.vue +++ b/packages/frontend/src/pages/user/index.timeline.vue @@ -23,7 +23,7 @@ SPDX-License-Identifier: AGPL-3.0-only
- + From a15e5c52f4d89f18a52fb0b9a81e1cc5e5ba0616 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sat, 2 Nov 2024 17:38:12 -0400 Subject: [PATCH 5/8] remove `idea` section --- idea/Sharkey/SkPagination.vue | 88 ------------------------- idea/Sharkey/SkTab.vue | 84 ------------------------ idea/Sharkey/notes-container.vue | 109 ------------------------------- 3 files changed, 281 deletions(-) delete mode 100644 idea/Sharkey/SkPagination.vue delete mode 100644 idea/Sharkey/SkTab.vue delete mode 100644 idea/Sharkey/notes-container.vue diff --git a/idea/Sharkey/SkPagination.vue b/idea/Sharkey/SkPagination.vue deleted file mode 100644 index 8a3fd03c28..0000000000 --- a/idea/Sharkey/SkPagination.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - diff --git a/idea/Sharkey/SkTab.vue b/idea/Sharkey/SkTab.vue deleted file mode 100644 index d5266e9196..0000000000 --- a/idea/Sharkey/SkTab.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - diff --git a/idea/Sharkey/notes-container.vue b/idea/Sharkey/notes-container.vue deleted file mode 100644 index da66f92020..0000000000 --- a/idea/Sharkey/notes-container.vue +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - From e0a2e7aedc84f8a6f2b56f20edbe72ba800d48b1 Mon Sep 17 00:00:00 2001 From: piuvas Date: Tue, 5 Nov 2024 20:22:56 -0300 Subject: [PATCH 6/8] animations following feed --- packages/frontend/src/pages/following-feed.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/following-feed.vue b/packages/frontend/src/pages/following-feed.vue index d45f572739..d4bc295c78 100644 --- a/packages/frontend/src/pages/following-feed.vue +++ b/packages/frontend/src/pages/following-feed.vue @@ -23,7 +23,7 @@ SPDX-License-Identifier: AGPL-3.0-only @@ -257,6 +257,21 @@ definePageMetadata(() => ({ margin-bottom: 12px; } +@keyframes border { + from {border-left: 0px solid var(--accent);} + to {border-left: 6px solid var(--accent);} +} + +.selected { + animation: border 0.2s ease-out 0s 1 forwards; + &:first-child { + border-top-left-radius: 5px; + } + &:last-child { + border-bottom-left-radius: 5px; + } +} + @media (min-width: 750px) { .root { grid-template-columns: min-content 4fr 6fr min-content; From 7f9a15105571748ca0988eaf38d4f9f413f94bce Mon Sep 17 00:00:00 2001 From: piuvas Date: Tue, 5 Nov 2024 20:27:24 -0300 Subject: [PATCH 7/8] give ff entries clickable pointer --- packages/frontend/src/components/SkFollowingFeedEntry.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/frontend/src/components/SkFollowingFeedEntry.vue b/packages/frontend/src/components/SkFollowingFeedEntry.vue index 8fa5e014d8..75539f1de7 100644 --- a/packages/frontend/src/components/SkFollowingFeedEntry.vue +++ b/packages/frontend/src/components/SkFollowingFeedEntry.vue @@ -54,6 +54,7 @@ defineEmits<{ overflow-wrap: break-word; display: flex; contain: content; + cursor: pointer; } .avatar { From 03559156b923ce5e337c998868f4fe12acfb7f14 Mon Sep 17 00:00:00 2001 From: Caramel Date: Sat, 9 Nov 2024 00:32:03 +0100 Subject: [PATCH 8/8] Improve performance of notes/following API --- .../server/api/endpoints/notes/following.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/notes/following.ts b/packages/backend/src/server/api/endpoints/notes/following.ts index b6604b9798..f8e9e5c4a1 100644 --- a/packages/backend/src/server/api/endpoints/notes/following.ts +++ b/packages/backend/src/server/api/endpoints/notes/following.ts @@ -103,6 +103,15 @@ export default class extends Endpoint { // eslint- sub.andWhere('latest.is_quote = false'); } + // Select the appropriate collection of users + if (ps.list === 'followers') { + addFollower(sub); + } else if (ps.list === 'following') { + addFollowee(sub); + } else { + addMutual(sub); + } + return sub; }, 'latest', @@ -118,15 +127,6 @@ export default class extends Endpoint { // eslint- .leftJoinAndSelect('note.channel', 'channel') ; - // Select the appropriate collection of users - if (ps.list === 'followers') { - addFollower(query); - } else if (ps.list === 'following') { - addFollowee(query); - } else { - addMutual(query); - } - // Limit to files, if requested if (ps.filesOnly) { query.andWhere('note."fileIds" != \'{}\'');