Repository navigation
Conversation
Members can opt in to a public, read-only portfolio at /u/:username showing
their name, photo, club roles, awards, project teams and a "Verified by App
Dev Club" badge. Portfolios are private by default; a private, unknown or
ambiguous username gets the same 404. Settings live on the member's Authentik
attributes and are changed from a settings card on their own profile page.
Role history: removing a member from a team now copies the role (team,
subteam, title, type, season, year, end date) into a roleHistory user
attribute in the same update, so past roles stay on the portfolio. The public
response merges current roles with history and de-duplicates them.
Awards: leads holding corp:membermgmt on a team (team owners and executives
pass) can grant and revoke awards for that team's members from the team
member list. Only the granting team can revoke, and nobody can grant or
revoke their own. Members can hide an award but never add or edit one.
Member-written section: an optional headline and GitHub and LinkedIn links,
validated on the server (https only, expected site, length caps, plain text)
and shown apart from the verified record. The LinkedIn on file is never used.
Share previews: /u/:username serves the app with Open Graph and Twitter tags
for public portfolios, HTML-escaped. Private and missing pages get identical
generic tags.
API: GET /api/portfolio/{username} (public, whitelisted fields only);
GET and PATCH /api/portfolio/me/settings (signed-in member's own settings);
GET, POST /api/portfolio/teams/{teamId}/members/{userPk}/awards and
DELETE .../awards/{awardId} (corp:membermgmt).
Soham1660
force-pushed
the
feature/150-member-portfolio
branch
from
December 3, 2026 23:25
59cb22e to
3374376
Compare
This branch has not been deployed
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.
Closes #150
Summary
Members can opt in to a public, read-only portfolio at
/u/:username. It shows their name, photo, club roles (current and past), awards, project teams, and a "Verified by App Dev Club" badge, plus an optional section they write themselves that is clearly labelled as not verified. Portfolios are private by default.What's included
/u/:username, dark theme): header with avatar (blue-to-teal initials when there's no photo), verified badge and an Alumni tag when the member has no current team; a provenance strip with the sync time; a "Club record" card (term, role, team, team-type pill, current role marked Ongoing); Awards; a Projects grid (term range and roles held); the member-written "From " section; and a footer.API
GET /api/portfolio/{username}GET /api/portfolio/me/settingsPATCH /api/portfolio/me/settingsisPublic,hiddenRoleIds,hiddenAwardIds,headline,githubUrl,linkedinUrlGET /api/portfolio/teams/{teamId}/members/{userPk}/awardscorp:membermgmtPOST /api/portfolio/teams/{teamId}/members/{userPk}/awardscorp:membermgmtDELETE /api/portfolio/teams/{teamId}/members/{userPk}/awards/{awardId}corp:membermgmtThe member is always taken from the session for
me/settings. (This replacesPATCH /api/portfolio/settingsfrom the first version of this PR.)Privacy
404 "Portfolio not found".<,>or control characters), headline at most 160 characters, links must behttps://on github.com or linkedin.com/in/ with no credentials, port or extra path. Stored values are re-checked when read. React escapes everything on render, and member links userel="noopener noreferrer nofollow".Design notes
corp:membermgmt, the bindle that already controls adding and removing team members, which is the closest existing permission. Team owners and executives pass it as usual. The target must be in the team (root or a subteam). An award records the root team it was granted through, and only that team can revoke it. Because root-team members count as owners, a member could otherwise grant themselves an award, so granting or revoking your own awards is refused.removeTeamMemberWrappercopies the role (team name, subteam, role title, team type, season, year, end date) into aroleHistoryuser attribute in the same Authentik update that removes it fromroles, capped at 100 entries. History merges with current roles and is de-duplicated, so someone removed and re-added shows the role once. Hide switches work on history entries by id.awardsuser attribute (at most 50). Settings, history and awards are all on the Authentik user; no new collection./u/:usernamenow reads the builtindex.html, swaps the title and adds Open Graph and Twitter tags (og:title" · Verified by App Dev Club", description from current roles), all HTML-escaped. Private and missing pages get the same generic tags and the same status as before. Noog:image, because avatar URLs are short-lived signed links.rose-500,zinc-800/zinc-700/zinc-400,green-400/300/800/900/950); only#111113and#0b1d14are hardcoded. The public page is always dark. The settings card uses the design colors in dark mode and the app's theme tokens in light mode.Not done
horizon_gt_features), keyed by Authentik user pk. It has no notion of an "area", and People Portal has no connection to that database. Horizon's read API only exposes executive-gated rankings, and its store adapter deliberately returns unavailable. To do this for real we'd need: an agreed definition of an area (e.g. a mapping from repository or path prefix to an area name), a read endpoint or view exposing a member's areas without line counts, and a way for the portal to reach it.Testing
prettier@3.9.10 --checkpasses on bothsrcfolders. Lint and type check show no new problems (the existing 91 lint errors and 18 type errors on master are unchanged).http://GitHub link was rejected (400); the share tags were checked on a public page, and a private page's HTML was byte-identical to a missing one's. PATCH was exercised through a real browser sign-in this time.