Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement
/profile
presentation and container (#1403)
* feat: add chart and start profile page * chore: build up profile main section * chore: adjust css to design * chore: add mobile view * feat: add contribution card * chore: position xp radial chart correctly * feat: improve contribution card view * chore: add RecentActivity * chore: replace xp by badge * chore: move PageContainer into Layout * chore: add customizability to Layout components * test: update stories * chore: remove lucide-react dep * feat: add bg to circle xp bar * feat: try filling user data * chore: remove providers and account * chore: fine tune CircularProgressBar * feat: try adding compoundVariants to Toggle * feat: add LevelPolygon * chore: add back profile fetching * chore: finish toggle color config * fix: address toggle type errors * Revert "fix: address toggle type errors" This reverts commit e82fbc8. * Revert "chore: finish toggle color config" This reverts commit 913e436. * feat: improve toggle variants * chore: adjust spacing and remove placeholder desc * feat: add LevelBadge * feat: start editprofile * refactor(css): redo profile summary * refactor(css): improve contribution cards * Revert "chore: remove providers and account" This reverts commit 2c28453. * feat: add OperatedGuildCard * chore: add EditProfile * feat: finish EditProfile presentation * chore: adjust spacing in EditProfile * fix: spread props * feat: add delete profile view * feat: add EditContributions * refactor: remove cartesian grid from ActivityChart * refactor: reduce spacing on CheckMark * feat(LayoutFooter): accept children * fix: remove shadow from LevelBadge * fix(css): adjust styles * fix(css): add padding to OperatedGuildCard * fix(css): adjust styles to design * chore: move profile to csr only temporarily * UI(EditContributions): smaller button * UI(EditProfile): adjust borders * UI(Dialog): default footer styles * cleanup: move const out of render function * remove rechart & Experience section * UI: make borders muted * OperatedGuildCard components * chore: remove xp metagame related components * implement contribution container (#1430) * feat: add useContribution * feat: update contribution card * chore: add EditContribution * feat: add select contribution * feat: add edit contribution * chore: try adding EditContributionCard container * feat: add image to select items * chore: align select item padding with input * chore: start adding swr smaller fetches * feat: add delete update and create contribution * feat: add create new contribution * feat: cover contribution CRUD * chore: remove revalidation from swr fetches * feat: add delete loader and validation * refactor: select placeholder fix, remove comments * refactor: remove useAllUserRoles.tsx * chore: use GuildLabel on ContributionCardView * UI(OperatedGuildCard): light mode * Implement `EditProfile` container (#1427) * feat: add delete profile hook * feat: add profile editing * fix: update Header import * chore: remove sfx from confetti * fix: update jotai type * chore: add comment to assertion * chore: add ts path alias for @app dir * refactor: apply write-check * feat: remove profile atom and add swr hooks * feat: add ssr to page * feat: add profile owner guard * feat: add ssr with swr fallback * feat: add ssr with swr fallback for guild and role * chore: add note why use constant api url * chore: resolve schema errors in profile update * refactor: revalidate on profile deletion * UI(Avatar): smaller more count text * add FeaturedIcon to OperatedGuildCard * chore: break profile name and remove caretdown * fix(CardWithGuildLabel): label in light mode * chore: add card behind edit profile * feat: add not found page * feat: add color picker * refactor: redirect to error and fetch per guild * add optimistic update for edit contributions and profile (#1438) * refactor: redirect to error and fetch per guild * feat: add optimistic update to contributions * feat: finish update contribution and polish * feat: add optimistic update to profile * chore: rename revalidateContribution and fix type error * feat: memoize profile guard * static banner style base * UI: layout & responsivity impros * SectionTitle component & md size on mobile * UI(OperatedGuildCard): responsivity impros * chore: add bg to CardWithGuildLabel * UI(ContributionCard): responsivity impros * update to new types package & change profileId to userId * UI(EditProfile): subtle border for images too * update to new types package * feat: working color theming * fix(ProfileColorPicker): dynamic icon color * UI(EditProfile): inside scroll in modal * refactor(EditProfile): batch components * feat: background image * fix: address client side error and remove type assertions * feat: add referred users * chore: switch to dev backend, cache activities * cleanup chart colors * refactor: use backend schemas * fix: broken banner styles --------- Co-authored-by: BrickheadJohnny <[email protected]> Co-authored-by: valid <[email protected]>
- Loading branch information