feat: display member counts in /dashboard/:id#121
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: didinele <27137376+didinele@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add member counts display in dashboard
feat: Add member count display to guild dashboard page
Oct 9, 2025
didinele
approved these changes
Oct 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR implements the member count display feature for the guild dashboard page, resolving the TODO comment at
apps/website/src/app/dashboard/[id]/page.tsx:37.Changes
Backend API
Modified
services/api/src/util/me.tsto fetch and include member count information:MeGuildtype to include optionalapproximate_member_countandapproximate_presence_countfieldsfetchMe()to passwith_counts: truewhen calling Discord's/users/@me/guildsendpointexactOptionalPropertyTypescompiler settingFrontend
Updated
apps/website/src/app/dashboard/[id]/page.tsxto display the member count:toLocaleString()for better readability (e.g., "1,234 members")Example Output
When member count data is available, users will now see:
If only member count is available (no presence count):
Technical Notes
The Discord API returns
approximate_member_countandapproximate_presence_countwhen thewith_countsparameter is set totrue. These fields are optional and may not always be present depending on the user's permissions and the guild's settings.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
checkpoint.prisma.io/usr/local/bin/node /home/REDACTED/work/chatsift/chatsift/node_modules/prisma/build/child {"product":"prisma","version":"6.16.3","cli_install_type":"local","information":"","local_timestamp":"2025-10-09T09:42:16Z","project_hash":"f7a32af9","cli_path":"/home/REDACTED/work/chatsift/chatsift/node_modules/prisma/build/index.js","cli_path_hash":"7212e2d5","endpoint":"REDACTED","disable":false,"arch":"x64","os":"linux","node_version":"v20.19.5","ci":true,"ci_name":"","command":"generate --schema=[redacted]","schema_providers":["postgresql"],"schema_preview_features":[],"schema_generators_providers":["prisma-kysely"],"cache_file":"/home/REDACTED/.cache/checkpoint-nodejs/prisma-7212e2d5","cache_duration":43200000,"remind_duration":172800000,"force":false,"timeout":5000,"unref":true,"child_path":"/home/REDACTED/work/chatsift/chatsift/node_modules/prisma/build/child","client_event_id":"","previous_client_event_id":"","check_if_update_available":true}(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.