Move /me/friends to /me, as the new landing page #44

Merged
twig merged 5 commits from update-friend-landing-page into main 2025-07-16 09:42:39 +00:00
Owner

also implemented getDisplayName(user, member?) to help sort the friend list.

Also also fetchFriends() in api.ts to always return Promise<UserResponse[]>, instead of Promise<UserResponse[] | undefined>

also implemented getDisplayName(user, member?) to help sort the friend list. Also also fetchFriends() in api.ts to always return Promise<UserResponse[]>, instead of Promise<UserResponse[] | undefined>
twig added the
Kind/Enhancement
label 2025-07-16 08:34:08 +00:00
twig added 4 commits 2025-07-16 08:34:09 +00:00
chore: update rest of the codebase to use new getDisplayName() function
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ab87fb681c
fix: accidentally getting display name of wrong user in replies
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
ce5d65e62d
requested review from sauceyred 2025-07-16 08:34:13 +00:00
sauceyred requested changes 2025-07-16 09:18:17 +00:00
Dismissed
@ -27,3 +27,3 @@
const { fetchFriends } = useApi();
const friends = await fetchFriends()
const friends = await fetchFriends().then((response) => {
Owner

Do sorting in new-line (friends.sort()) rather than with .then().

Do sorting in new-line (`friends.sort()`) rather than with `.then()`.
Author
Owner

fixed in #45

fixed in #45
twig marked this conversation as resolved
@ -0,0 +1,7 @@
import type { GuildMemberResponse, UserResponse } from "~/types/interfaces";
export function getDisplayName(user: UserResponse, member: GuildMemberResponse | undefined = undefined): string {
Owner

Make member optional instead of defaulting to undefined

Make `member` optional instead of defaulting to `undefined`
twig marked this conversation as resolved
twig added 1 commit 2025-07-16 09:28:14 +00:00
fix: allow optional argument instead of defaulting to undefined
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
ci/woodpecker/pull_request_closed/build-and-publish Pipeline was successful
d5b7669291
requested review from sauceyred 2025-07-16 09:39:52 +00:00
sauceyred approved these changes 2025-07-16 09:42:09 +00:00
twig merged commit f26c5fd7ce into main 2025-07-16 09:42:39 +00:00
twig deleted branch update-friend-landing-page 2025-07-16 09:42:39 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: gorb/frontend#44
No description provided.