Feature: Award profile-completion membership after any 3 quest categories #501
Labels
No labels
accessibility
api
auth.js
backend
copy
database
defect
dependencies
design
discussion
documentation
duplicate
enhancement
epic
feature
front-end
good first issue
help wanted
invalid
next.js
noscript
on hold
operations
optimization
postgresql
prisma
prototype
question
react
spike
stale
story
tailwind
vulnerability
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SSE/WebsiteTheSSEquel#501
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Profile-completion membership is currently all-or-nothing. The code grants membership only when every existing profile field is filled:
That check appears in:
next/lib/services/profileCompletionService.tsnext/lib/services/authLevelService.tsnext/lib/authLevelResolver.tsWith the category-based Profile Quest, members should earn membership after completing any 3 of 5 quest categories instead of every individual field.
Proposed Rule
A member is profile-completion eligible when at least 3 of these 5 categories are complete:
graduationTerm,graduationYear, andmajorare filledlinkedInis filledgitHubis filledpersonalEmailis filled and validpersonalWebsiteUrlis filled and validExamples:
Scope
In scope:
maybeGrantProfileCompletionMembershipto award membership when completed category count is at least 3profileCompletionGrantedTermandprofileCompletionGrantedYearN / 3 categoriesor equivalentOut of scope:
Acceptance Criteria
profileCompletionService,authLevelService, andauthLevelResolverall use the same shared eligibility logicAdditional Context
Related existing quest work:
@smlavine