Closed brandonhach closed 1 month ago
Completed the reputation tab.
react-hot-toast
cToast.tsx
add-rep.ts
react-hook-form
userId
ProfileCard.tsx
useSession()
RepForm.tsx
site-config.ts
lorem
getReps()
profile-data.ts
types/schema.ts
TRep
types.ts
Logs do not work yet. Looking to implement it next sprint.
Recording made the input field border look incredibly thin.
Forgot to implement a limit on creating a rep from each person
Overview
Completed the reputation tab.
36
User Stories
Features
react-hot-toast
for the toast popup. Custom toastcToast.tsx
.Changes
add-rep.ts
convert HTML form to usereact-hook-form
& create rep and log object if inputs match the zod schema validation.userId
prop inProfileCard.tsx
to opt into usinguseSession()
instead.RepForm.tsx
for separation of concern.site-config.ts
lorem
to hold a term of service documentation.getReps()
inprofile-data.ts
changed to fetch by latest reputation made.types/schema.ts
for form validation (also used in server action).userId
to typeTRep
intypes.ts
Known issues or Bugs
Logs do not work yet. Looking to implement it next sprint.
Snapshots
Reputation tab
Error message
Let me know if there's anything I missed.