Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add empty contribution card #1440

Closed
wants to merge 101 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
d898125
feat: add chart and start profile page
dominik-stumpf Jul 18, 2024
32d91aa
Merge branch 'profiles-page' of github.com:guildxyz/guild.xyz into im…
dominik-stumpf Jul 19, 2024
0ff85d4
chore: build up profile main section
dominik-stumpf Jul 19, 2024
ae22328
chore: adjust css to design
dominik-stumpf Jul 19, 2024
8aba3ca
chore: add mobile view
dominik-stumpf Jul 19, 2024
354170b
feat: add contribution card
dominik-stumpf Jul 22, 2024
82a2f95
chore: position xp radial chart correctly
dominik-stumpf Jul 22, 2024
01dfd33
feat: improve contribution card view
dominik-stumpf Jul 23, 2024
1189495
chore: add RecentActivity
dominik-stumpf Jul 23, 2024
56be070
chore: replace xp by badge
dominik-stumpf Jul 23, 2024
e8bfa35
Merge branch 'profiles-page' of github.com:guildxyz/guild.xyz into im…
dominik-stumpf Jul 23, 2024
1989c4d
chore: move PageContainer into Layout
dominik-stumpf Jul 23, 2024
5fabd67
chore: add customizability to Layout components
dominik-stumpf Jul 23, 2024
e86511c
test: update stories
dominik-stumpf Jul 23, 2024
07fb6d3
Merge branch 'profiles-page' of github.com:guildxyz/guild.xyz into im…
dominik-stumpf Jul 23, 2024
b6b84ad
Merge branch 'profiles-page' into implement-profile-presentation
dominik-stumpf Jul 23, 2024
900b73d
Merge branch 'profiles-page' of github.com:guildxyz/guild.xyz into im…
dominik-stumpf Jul 23, 2024
4a28b4b
chore: remove lucide-react dep
dominik-stumpf Jul 23, 2024
8d8ab70
Merge branch 'profiles-page' into implement-profile-presentation
dominik-stumpf Jul 23, 2024
bd20c05
Merge branch 'profiles-page' of github.com:guildxyz/guild.xyz into im…
dominik-stumpf Jul 25, 2024
da28505
feat: add bg to circle xp bar
dominik-stumpf Jul 25, 2024
0e4e90f
feat: try filling user data
dominik-stumpf Jul 26, 2024
2c28453
chore: remove providers and account
dominik-stumpf Jul 26, 2024
53fc78c
chore: fine tune CircularProgressBar
dominik-stumpf Jul 26, 2024
9967432
feat: try adding compoundVariants to Toggle
dominik-stumpf Jul 26, 2024
0d67bd0
feat: add LevelPolygon
dominik-stumpf Jul 26, 2024
44d4b54
chore: add back profile fetching
dominik-stumpf Jul 29, 2024
913e436
chore: finish toggle color config
dominik-stumpf Jul 29, 2024
e82fbc8
fix: address toggle type errors
dominik-stumpf Jul 29, 2024
53bfb3f
Revert "fix: address toggle type errors"
dominik-stumpf Jul 30, 2024
13ff511
Revert "chore: finish toggle color config"
dominik-stumpf Jul 30, 2024
faa3f21
feat: improve toggle variants
dominik-stumpf Jul 30, 2024
8d8e26b
chore: adjust spacing and remove placeholder desc
dominik-stumpf Jul 30, 2024
bd1e591
feat: add LevelBadge
dominik-stumpf Jul 30, 2024
93fedb4
feat: start editprofile
dominik-stumpf Jul 30, 2024
344fddd
refactor(css): redo profile summary
dominik-stumpf Jul 30, 2024
1145d7e
refactor(css): improve contribution cards
dominik-stumpf Jul 30, 2024
b955176
Revert "chore: remove providers and account"
dominik-stumpf Jul 31, 2024
61b17f2
Merge branch 'profiles-page' of github.com:guildxyz/guild.xyz into im…
dominik-stumpf Jul 31, 2024
b3f1595
Merge branch 'profiles-page' into implement-profile-presentation
dominik-stumpf Jul 31, 2024
2b487ab
feat: add OperatedGuildCard
dominik-stumpf Jul 31, 2024
8ef60cb
Merge branch 'profiles-page' into implement-profile-presentation
dominik-stumpf Jul 31, 2024
4c584af
chore: add EditProfile
dominik-stumpf Jul 31, 2024
e0bbddb
feat: finish EditProfile presentation
dominik-stumpf Jul 31, 2024
912abe4
chore: adjust spacing in EditProfile
dominik-stumpf Jul 31, 2024
50adb94
fix: spread props
dominik-stumpf Jul 31, 2024
6d2d889
feat: add delete profile view
dominik-stumpf Jul 31, 2024
86e974d
feat: add EditContributions
dominik-stumpf Jul 31, 2024
a9ff7d2
refactor: remove cartesian grid from ActivityChart
dominik-stumpf Jul 31, 2024
fba4228
refactor: reduce spacing on CheckMark
dominik-stumpf Jul 31, 2024
c141fa4
Merge branch 'main' into implement-profile-presentation
BrickheadJohnny Aug 1, 2024
4497b84
feat(LayoutFooter): accept children
BrickheadJohnny Aug 1, 2024
8edba79
Merge branch 'profiles-page' into implement-profile-presentation
BrickheadJohnny Aug 1, 2024
5c2eef8
fix: remove shadow from LevelBadge
dominik-stumpf Aug 1, 2024
4fabcc8
Merge branch 'implement-profile-presentation' of github.com:guildxyz/…
dominik-stumpf Aug 1, 2024
47ea6ac
fix(css): adjust styles
dominik-stumpf Aug 1, 2024
95e07c3
fix(css): add padding to OperatedGuildCard
dominik-stumpf Aug 1, 2024
28946ab
fix(css): adjust styles to design
dominik-stumpf Aug 1, 2024
f3317fe
Merge branch 'profiles-page' into implement-profile-presentation
dominik-stumpf Aug 2, 2024
5043708
Merge branch 'profiles-page' of github.com:guildxyz/guild.xyz into im…
dominik-stumpf Aug 5, 2024
066771b
chore: move profile to csr only temporarily
dominik-stumpf Aug 5, 2024
64276c8
UI(EditContributions): smaller button
dovalid Aug 6, 2024
831a539
UI(EditProfile): adjust borders
dovalid Aug 6, 2024
d13a28d
UI(Dialog): default footer styles
dovalid Aug 6, 2024
7a47fed
cleanup: move const out of render function
dovalid Aug 6, 2024
2d75239
remove rechart & Experience section
dovalid Aug 6, 2024
124013c
UI: make borders muted
dovalid Aug 6, 2024
b26ea29
OperatedGuildCard components
dovalid Aug 6, 2024
4d47e76
chore: remove xp metagame related components
dominik-stumpf Aug 7, 2024
4a0a5c3
implement contribution container (#1430)
dominik-stumpf Aug 7, 2024
4010f41
UI(OperatedGuildCard): light mode
dovalid Aug 8, 2024
eb7978e
Implement `EditProfile` container (#1427)
dominik-stumpf Aug 8, 2024
4682371
Merge branch 'profiles-page' of github.com:guildxyz/guild.xyz into im…
dominik-stumpf Aug 8, 2024
1a9a79a
refactor: revalidate on profile deletion
dominik-stumpf Aug 8, 2024
57623bd
UI(Avatar): smaller more count text
dovalid Aug 8, 2024
6984bbe
add FeaturedIcon to OperatedGuildCard
dovalid Aug 8, 2024
6a52a27
Merge branch 'implement-profile-presentation' of https://github.com/g…
dovalid Aug 8, 2024
13c0b17
chore: break profile name and remove caretdown
dominik-stumpf Aug 8, 2024
41101b4
fix(CardWithGuildLabel): label in light mode
dovalid Aug 8, 2024
8a7544c
Merge branch 'implement-profile-presentation' of github.com:guildxyz/…
dominik-stumpf Aug 8, 2024
bfb3965
chore: add card behind edit profile
dominik-stumpf Aug 8, 2024
5125b49
Merge branch 'implement-profile-presentation' of https://github.com/g…
dovalid Aug 8, 2024
c812689
Merge branch 'implement-profile-presentation' of github.com:guildxyz/…
dominik-stumpf Aug 8, 2024
b6af2de
feat: add not found page
dominik-stumpf Aug 8, 2024
342e469
Merge branch 'main' into implement-profile-presentation
dovalid Aug 8, 2024
44447e1
Merge branch 'main' into implement-profile-presentation
dovalid Aug 8, 2024
7bc8fb8
feat: add color picker
dovalid Aug 8, 2024
b950348
refactor: redirect to error and fetch per guild
dominik-stumpf Aug 9, 2024
71b4ad0
add optimistic update for edit contributions and profile (#1438)
dominik-stumpf Aug 9, 2024
35f8c11
Merge branch 'profiles-page' into implement-profile-presentation
dovalid Aug 12, 2024
9d3e167
static banner style base
dovalid Aug 12, 2024
c0ff920
UI: layout & responsivity impros
dovalid Aug 12, 2024
26223cf
SectionTitle component & md size on mobile
dovalid Aug 12, 2024
b984a81
UI(OperatedGuildCard): responsivity impros
dovalid Aug 12, 2024
863c700
chore: add bg to CardWithGuildLabel
dominik-stumpf Aug 12, 2024
63eb32a
chore: add empty contribution card
dominik-stumpf Aug 12, 2024
af4d3b6
chore: add icon and color to empty indicator cards
dominik-stumpf Aug 12, 2024
5a08610
UI: no contributions card style
dovalid Aug 12, 2024
d9fb883
Merge branch 'profiles-page' into show-no-contribution
dovalid Aug 19, 2024
9beb36e
Merge branch 'profiles-page' into show-no-contribution
dovalid Aug 20, 2024
88fb627
merge cleanup
dovalid Aug 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/app/(marketing)/profile/_components/EditContributions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
import { useToast } from "@/components/ui/hooks/useToast"
import { useYourGuilds } from "@/hooks/useYourGuilds"
import { Guild, MembershipResult, Role, Schemas } from "@guildxyz/types"
import { X } from "@phosphor-icons/react"
import { WarningCircle, X } from "@phosphor-icons/react"
import { PencilSimple } from "@phosphor-icons/react"
import { AvatarFallback } from "@radix-ui/react-avatar"
import { DialogDescription } from "@radix-ui/react-dialog"
Expand Down Expand Up @@ -117,6 +117,14 @@ export const EditContributions = () => {
</DialogHeader>
<DialogBody className="gap-7">
<div className="flex flex-col gap-3">
{guilds?.length === 0 && (
dominik-stumpf marked this conversation as resolved.
Show resolved Hide resolved
<Card className="flex gap-2 border border-destructive-subtle p-4 text-destructive-subtle">
<WarningCircle size={32} weight="fill" />
<h3 className="font-medium">
You have no verified guild membership to select from
</h3>
</Card>
)}
{contributions.data?.slice(0, 3).map((contribution) => (
<EditContributionCard
contribution={contribution}
Expand All @@ -132,6 +140,7 @@ export const EditContributions = () => {
<div className="pb-2">
<Label>Guild</Label>
<Select
disabled={guilds?.length === 0}
onValueChange={(value) => {
setGuildId(value)
setRoleId("")
Expand Down
17 changes: 13 additions & 4 deletions src/app/(marketing)/profile/_components/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const Profile = () => {
</p>
<div className="mt-8 grid grid-cols-[repeat(3,auto)] gap-x-6 gap-y-4 sm:grid-cols-[repeat(5,auto)]">
<div className="flex flex-col items-center leading-tight">
<div className="font-bold text-lg">{referredUsers.length}</div>
<div className="font-bold md:text-lg">{referredUsers.length}</div>
<div className="text-muted-foreground">Guildmates</div>
</div>
<Separator orientation="vertical" className="h-10 md:h-12" />
Expand All @@ -81,9 +81,18 @@ export const Profile = () => {
</ProfileOwnerGuard>
</div>
<div className="grid grid-cols-1 gap-3">
{contributions.map((contribution) => (
<ContributionCard contribution={contribution} key={contribution.id} />
))}
{contributions.length === 0 ? (
<div className="space-y-0.5 rounded-2xl border border-dashed p-6">
<h3 className="font-bold">Contributions will appear here</h3>
<p className="text-muted-foreground">
This profile doesn't have any contribution yet
</p>
</div>
) : (
contributions.map((contribution) => (
<ContributionCard contribution={contribution} key={contribution.id} />
))
)}
</div>
<div className="mt-8">
<SectionTitle className="mb-3">Recent activity</SectionTitle>
Expand Down
Loading