Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

feat: Titles(Flairs) for users (#1511)

Devinda Senanayaka92e775a1e655
diff --git a/apps/web/src/app/(profile)/[username]/_components/badges/aot-2023-badge.tsx b/apps/web/src/app/(profile)/[username]/_components/badges/aot-2023-badge.tsx
index 9c9a6ab7..c69c3cb7 100644
--- a/apps/web/src/app/(profile)/[username]/_components/badges/aot-2023-badge.tsx
+++ b/apps/web/src/app/(profile)/[username]/_components/badges/aot-2023-badge.tsx
@@ -28,27 +28,27 @@ export function HolidayBronzeBadge({ className }: { className?: string }) {
<path
d="M74.3309 80.3861L92.2816 71.0789L110.232 80.3861L106.8 60.6722L121.326 46.7073L101.257 43.8349L92.2816 25.899L83.3068 43.8349L63.2314 46.7073L77.7586 60.6722L74.3309 80.3861Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
<path
d="M152.246 217.662L45.0404 189.04L29.4744 224.046L172 262.101L152.246 217.662Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
<path
d="M123.966 154.044L67.3196 138.92L51.7542 173.926L143.72 198.488L123.966 154.044Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
<path
d="M74.034 123.81L115.44 134.864L92.2816 82.7655L74.034 123.81Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
<path
d="M232 187.682L225.182 187.682L214.409 174.659C213.693 173.795 213.023 173.057 212.398 172.443C211.761 171.818 211.108 171.341 210.437 171.011C209.767 170.67 209.023 170.5 208.205 170.5C207.307 170.5 206.54 170.693 205.903 171.08C205.267 171.455 204.778 171.977 204.437 172.648C204.085 173.318 203.909 174.091 203.909 174.966C203.909 175.841 204.085 176.614 204.437 177.284C204.79 177.943 205.307 178.455 205.989 178.818C206.67 179.182 207.5 179.364 208.477 179.364L208.477 188.364C206.023 188.364 203.909 187.812 202.136 186.71C200.364 185.608 199 184.051 198.045 182.04C197.091 180.028 196.614 177.67 196.614 174.966C196.614 172.17 197.062 169.75 197.96 167.705C198.847 165.648 200.097 164.062 201.71 162.949C203.324 161.824 205.216 161.261 207.386 161.261C208.727 161.261 210.062 161.54 211.392 162.097C212.71 162.653 214.17 163.653 215.773 165.097C217.375 166.54 219.284 168.591 221.5 171.25L224.227 174.523L224.432 174.523L224.432 160.886L232 160.886L232 187.682ZM232.955 141.446C232.943 144.616 232.21 147.355 230.756 149.662C229.301 151.969 227.205 153.747 224.466 154.997C221.727 156.247 218.443 156.866 214.614 156.855C210.773 156.844 207.511 156.219 204.83 154.98C202.148 153.73 200.108 151.957 198.71 149.662C197.312 147.355 196.614 144.616 196.614 141.446C196.614 138.276 197.318 135.537 198.727 133.23C200.125 130.923 202.165 129.145 204.847 127.895C207.528 126.645 210.784 126.026 214.614 126.037C218.466 126.037 221.761 126.662 224.5 127.912C227.239 129.162 229.335 130.94 230.79 133.247C232.233 135.543 232.955 138.276 232.955 141.446ZM225.25 141.446C225.25 139.81 224.398 138.469 222.693 137.423C220.977 136.366 218.284 135.844 214.614 135.855C212.216 135.855 210.256 136.094 208.733 136.571C207.21 137.048 206.085 137.707 205.358 138.548C204.619 139.389 204.25 140.355 204.25 141.446C204.25 143.082 205.08 144.418 206.739 145.452C208.398 146.486 211.023 147.014 214.614 147.037C217.057 147.048 219.068 146.815 220.648 146.338C222.216 145.861 223.375 145.202 224.125 144.361C224.875 143.509 225.25 142.537 225.25 141.446ZM232 121.588L225.182 121.588L214.409 108.565C213.693 107.702 213.023 106.963 212.398 106.349C211.761 105.724 211.108 105.247 210.437 104.918C209.767 104.577 209.023 104.406 208.205 104.406C207.307 104.406 206.54 104.599 205.903 104.986C205.267 105.361 204.778 105.884 204.437 106.554C204.085 107.224 203.909 107.997 203.909 108.872C203.909 109.747 204.085 110.52 204.437 111.19C204.79 111.849 205.307 112.361 205.989 112.724C206.67 113.088 207.5 113.27 208.477 113.27L208.477 122.27C206.023 122.27 203.909 121.719 202.136 120.616C200.364 119.514 199 117.957 198.045 115.946C197.091 113.935 196.614 111.577 196.614 108.872C196.614 106.077 197.062 103.656 197.96 101.611C198.847 99.554 200.097 97.9688 201.71 96.8551C203.324 95.7301 205.216 95.1676 207.386 95.1676C208.727 95.1676 210.062 95.446 211.392 96.0028C212.71 96.5597 214.17 97.5597 215.773 99.0028C217.375 100.446 219.284 102.497 221.5 105.156L224.227 108.429L224.432 108.429L224.432 94.7926L232 94.7926L232 121.588ZM232.477 76.9205C232.477 79.6705 232.006 82.1136 231.062 84.25C230.108 86.375 228.795 88.0455 227.125 89.2614C225.455 90.4773 223.534 91.0909 221.364 91.1023L221.364 81.5568C222.034 81.5455 222.636 81.3409 223.17 80.9432C223.693 80.5341 224.102 79.9773 224.398 79.2727C224.693 78.5682 224.841 77.7614 224.841 76.8523C224.841 75.9773 224.687 75.2045 224.381 74.5341C224.062 73.8636 223.625 73.3409 223.068 72.9659C222.511 72.5909 221.875 72.4091 221.159 72.4205C220.455 72.4091 219.83 72.625 219.284 73.0682C218.739 73.5 218.312 74.108 218.006 74.8921C217.699 75.6761 217.545 76.5796 217.545 77.6023L217.545 81.1477L211 81.1477L211 77.6023C211 76.6591 210.847 75.8296 210.54 75.1136C210.233 74.3864 209.807 73.8239 209.261 73.4261C208.716 73.0171 208.091 72.8182 207.386 72.8296C206.705 72.8182 206.102 72.983 205.58 73.3239C205.057 73.6648 204.648 74.1421 204.352 74.7557C204.057 75.358 203.909 76.0568 203.909 76.8523C203.909 77.7159 204.062 78.4886 204.369 79.1705C204.676 79.8409 205.102 80.3693 205.648 80.7557C206.193 81.1421 206.818 81.3409 207.523 81.3523L207.523 90.4205C205.386 90.4091 203.5 89.8239 201.864 88.6648C200.227 87.4943 198.943 85.8921 198.011 83.858C197.08 81.8239 196.614 79.4886 196.614 76.8523C196.614 74.2727 197.051 71.9943 197.926 70.0171C198.801 68.0284 200.006 66.4773 201.54 65.3636C203.062 64.2386 204.807 63.6818 206.773 63.6932C208.727 63.6705 210.33 64.3409 211.58 65.7046C212.83 67.0568 213.568 68.7727 213.795 70.8523L214.068 70.8523C214.375 68.0341 215.239 65.9148 216.659 64.4943C218.068 63.0739 219.841 62.375 221.977 62.3977C224.023 62.3864 225.835 63 227.415 64.2386C228.994 65.4659 230.233 67.1761 231.131 69.3693C232.028 71.5511 232.477 74.0682 232.477 76.9205Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
</g>
<defs>
@@ -60,9 +60,9 @@ export function HolidayBronzeBadge({ className }: { className?: string }) {
y2="210.54"
gradientUnits="userSpaceOnUse"
>
- <stop stop-color="#714F24" />
- <stop offset="0.5625" stop-color="#D27D13" />
- <stop offset="1" stop-color="#5E3D13" />
+ <stop stopColor="#714F24" />
+ <stop offset="0.5625" stopColor="#D27D13" />
+ <stop offset="1" stopColor="#5E3D13" />
</linearGradient>
</defs>
</svg>
@@ -98,27 +98,27 @@ export function HolidaySilverBadge({ className }: { className?: string }) {
<path
d="M74.3309 80.3861L92.2815 71.0789L110.232 80.3861L106.8 60.6722L121.326 46.7073L101.257 43.8349L92.2815 25.899L83.3068 43.8349L63.2314 46.7073L77.7586 60.6722L74.3309 80.3861Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
<path
d="M152.246 217.662L45.0404 189.04L29.4744 224.046L172 262.101L152.246 217.662Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
<path
d="M123.966 154.044L67.3196 138.92L51.7542 173.926L143.72 198.488L123.966 154.044Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
<path
d="M74.034 123.81L115.44 134.864L92.2816 82.7655L74.034 123.81Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
<path
d="M232 187.682L225.182 187.682L214.409 174.659C213.693 173.795 213.023 173.057 212.398 172.443C211.761 171.818 211.108 171.341 210.437 171.011C209.767 170.67 209.023 170.5 208.205 170.5C207.307 170.5 206.54 170.693 205.903 171.08C205.267 171.455 204.778 171.977 204.437 172.648C204.085 173.318 203.909 174.091 203.909 174.966C203.909 175.841 204.085 176.614 204.437 177.284C204.79 177.943 205.307 178.455 205.989 178.818C206.67 179.182 207.5 179.364 208.477 179.364L208.477 188.364C206.023 188.364 203.909 187.812 202.136 186.71C200.364 185.608 199 184.051 198.045 182.04C197.091 180.028 196.614 177.67 196.614 174.966C196.614 172.17 197.062 169.75 197.96 167.705C198.847 165.648 200.097 164.062 201.71 162.949C203.324 161.824 205.216 161.261 207.386 161.261C208.727 161.261 210.062 161.54 211.392 162.097C212.71 162.653 214.17 163.653 215.773 165.097C217.375 166.54 219.284 168.591 221.5 171.25L224.227 174.523L224.432 174.523L224.432 160.886L232 160.886L232 187.682ZM232.955 141.446C232.943 144.616 232.21 147.355 230.756 149.662C229.301 151.969 227.205 153.747 224.466 154.997C221.727 156.247 218.443 156.866 214.614 156.855C210.773 156.844 207.511 156.219 204.83 154.98C202.148 153.73 200.108 151.957 198.71 149.662C197.312 147.355 196.614 144.616 196.614 141.446C196.614 138.276 197.318 135.537 198.727 133.23C200.125 130.923 202.165 129.145 204.847 127.895C207.528 126.645 210.784 126.026 214.614 126.037C218.466 126.037 221.761 126.662 224.5 127.912C227.239 129.162 229.335 130.94 230.79 133.247C232.233 135.543 232.955 138.276 232.955 141.446ZM225.25 141.446C225.25 139.81 224.398 138.469 222.693 137.423C220.977 136.366 218.284 135.844 214.614 135.855C212.216 135.855 210.256 136.094 208.733 136.571C207.21 137.048 206.085 137.707 205.358 138.548C204.619 139.389 204.25 140.355 204.25 141.446C204.25 143.082 205.08 144.418 206.739 145.452C208.398 146.486 211.023 147.014 214.614 147.037C217.057 147.048 219.068 146.815 220.648 146.338C222.216 145.861 223.375 145.202 224.125 144.361C224.875 143.509 225.25 142.537 225.25 141.446ZM232 121.588L225.182 121.588L214.409 108.565C213.693 107.702 213.023 106.963 212.398 106.349C211.761 105.724 211.108 105.247 210.437 104.918C209.767 104.577 209.023 104.406 208.205 104.406C207.307 104.406 206.54 104.599 205.903 104.986C205.267 105.361 204.778 105.884 204.437 106.554C204.085 107.224 203.909 107.997 203.909 108.872C203.909 109.747 204.085 110.52 204.437 111.19C204.79 111.849 205.307 112.361 205.989 112.724C206.67 113.088 207.5 113.27 208.477 113.27L208.477 122.27C206.023 122.27 203.909 121.719 202.136 120.616C200.364 119.514 199 117.957 198.045 115.946C197.091 113.935 196.614 111.577 196.614 108.872C196.614 106.077 197.062 103.656 197.96 101.611C198.847 99.554 200.097 97.9688 201.71 96.8551C203.324 95.7301 205.216 95.1676 207.386 95.1676C208.727 95.1676 210.062 95.446 211.392 96.0028C212.71 96.5597 214.17 97.5597 215.773 99.0028C217.375 100.446 219.284 102.497 221.5 105.156L224.227 108.429L224.432 108.429L224.432 94.7926L232 94.7926L232 121.588ZM232.477 76.9205C232.477 79.6705 232.006 82.1136 231.062 84.25C230.108 86.375 228.795 88.0455 227.125 89.2614C225.455 90.4773 223.534 91.0909 221.364 91.1023L221.364 81.5568C222.034 81.5455 222.636 81.3409 223.17 80.9432C223.693 80.5341 224.102 79.9773 224.398 79.2727C224.693 78.5682 224.841 77.7614 224.841 76.8523C224.841 75.9773 224.687 75.2045 224.381 74.5341C224.062 73.8636 223.625 73.3409 223.068 72.9659C222.511 72.5909 221.875 72.4091 221.159 72.4205C220.455 72.4091 219.83 72.625 219.284 73.0682C218.739 73.5 218.312 74.108 218.006 74.8921C217.699 75.6761 217.545 76.5796 217.545 77.6023L217.545 81.1477L211 81.1477L211 77.6023C211 76.6591 210.847 75.8296 210.54 75.1136C210.233 74.3864 209.807 73.8239 209.261 73.4261C208.716 73.0171 208.091 72.8182 207.386 72.8296C206.705 72.8182 206.102 72.983 205.58 73.3239C205.057 73.6648 204.648 74.1421 204.352 74.7557C204.057 75.358 203.909 76.0568 203.909 76.8523C203.909 77.7159 204.062 78.4886 204.369 79.1705C204.676 79.8409 205.102 80.3693 205.648 80.7557C206.193 81.1421 206.818 81.3409 207.523 81.3523L207.523 90.4205C205.386 90.4091 203.5 89.8239 201.864 88.6648C200.227 87.4943 198.943 85.8921 198.011 83.858C197.08 81.8239 196.614 79.4886 196.614 76.8523C196.614 74.2727 197.051 71.9943 197.926 70.0171C198.801 68.0284 200.006 66.4773 201.54 65.3636C203.062 64.2386 204.807 63.6818 206.773 63.6932C208.727 63.6705 210.33 64.3409 211.58 65.7046C212.83 67.0568 213.568 68.7727 213.795 70.8523L214.068 70.8523C214.375 68.0341 215.239 65.9148 216.659 64.4943C218.068 63.0739 219.841 62.375 221.977 62.3977C224.023 62.3864 225.835 63 227.415 64.2386C228.994 65.4659 230.233 67.1761 231.131 69.3693C232.028 71.5511 232.477 74.0682 232.477 76.9205Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
</g>
<defs>
@@ -130,9 +130,9 @@ export function HolidaySilverBadge({ className }: { className?: string }) {
y2="215.658"
gradientUnits="userSpaceOnUse"
>
- <stop stop-color="#3D5954" />
- <stop offset="0.614583" stop-color="#9BCBC2" />
- <stop offset="1" stop-color="#48625D" />
+ <stop stopColor="#3D5954" />
+ <stop offset="0.614583" stopColor="#9BCBC2" />
+ <stop offset="1" stopColor="#48625D" />
</linearGradient>
</defs>
</svg>
@@ -168,27 +168,27 @@ export function HolidayGoldBadge({ className }: { className?: string }) {
<path
d="M74.3309 80.3861L92.2816 71.0789L110.232 80.3861L106.8 60.6722L121.326 46.7073L101.257 43.8349L92.2816 25.899L83.3068 43.8349L63.2314 46.7073L77.7586 60.6722L74.3309 80.3861Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
<path
d="M152.246 217.662L45.0404 189.04L29.4744 224.046L172 262.101L152.246 217.662Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
<path
d="M123.966 154.044L67.3196 138.92L51.7542 173.926L143.72 198.488L123.966 154.044Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
<path
d="M74.0339 123.81L115.44 134.864L92.2815 82.7655L74.0339 123.81Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
<path
d="M232 187.682L225.182 187.682L214.409 174.659C213.693 173.795 213.023 173.057 212.398 172.443C211.761 171.818 211.108 171.341 210.437 171.011C209.767 170.67 209.023 170.5 208.205 170.5C207.307 170.5 206.54 170.693 205.903 171.08C205.267 171.455 204.778 171.977 204.437 172.648C204.085 173.318 203.909 174.091 203.909 174.966C203.909 175.841 204.085 176.614 204.437 177.284C204.79 177.943 205.307 178.455 205.989 178.818C206.67 179.182 207.5 179.364 208.477 179.364L208.477 188.364C206.023 188.364 203.909 187.812 202.136 186.71C200.364 185.608 199 184.051 198.045 182.04C197.091 180.028 196.614 177.67 196.614 174.966C196.614 172.17 197.062 169.75 197.96 167.705C198.847 165.648 200.097 164.062 201.71 162.949C203.324 161.824 205.216 161.261 207.386 161.261C208.727 161.261 210.062 161.54 211.392 162.097C212.71 162.653 214.17 163.653 215.773 165.097C217.375 166.54 219.284 168.591 221.5 171.25L224.227 174.523L224.432 174.523L224.432 160.886L232 160.886L232 187.682ZM232.955 141.446C232.943 144.616 232.21 147.355 230.756 149.662C229.301 151.969 227.205 153.747 224.466 154.997C221.727 156.247 218.443 156.866 214.614 156.855C210.773 156.844 207.511 156.219 204.83 154.98C202.148 153.73 200.108 151.957 198.71 149.662C197.312 147.355 196.614 144.616 196.614 141.446C196.614 138.276 197.318 135.537 198.727 133.23C200.125 130.923 202.165 129.145 204.847 127.895C207.528 126.645 210.784 126.026 214.614 126.037C218.466 126.037 221.761 126.662 224.5 127.912C227.239 129.162 229.335 130.94 230.79 133.247C232.233 135.543 232.955 138.276 232.955 141.446ZM225.25 141.446C225.25 139.81 224.398 138.469 222.693 137.423C220.977 136.366 218.284 135.844 214.614 135.855C212.216 135.855 210.256 136.094 208.733 136.571C207.21 137.048 206.085 137.707 205.358 138.548C204.619 139.389 204.25 140.355 204.25 141.446C204.25 143.082 205.08 144.418 206.739 145.452C208.398 146.486 211.023 147.014 214.614 147.037C217.057 147.048 219.068 146.815 220.648 146.338C222.216 145.861 223.375 145.202 224.125 144.361C224.875 143.509 225.25 142.537 225.25 141.446ZM232 121.588L225.182 121.588L214.409 108.565C213.693 107.702 213.023 106.963 212.398 106.349C211.761 105.724 211.108 105.247 210.437 104.918C209.767 104.577 209.023 104.406 208.205 104.406C207.307 104.406 206.54 104.599 205.903 104.986C205.267 105.361 204.778 105.884 204.437 106.554C204.085 107.224 203.909 107.997 203.909 108.872C203.909 109.747 204.085 110.52 204.437 111.19C204.79 111.849 205.307 112.361 205.989 112.724C206.67 113.088 207.5 113.27 208.477 113.27L208.477 122.27C206.023 122.27 203.909 121.719 202.136 120.616C200.364 119.514 199 117.957 198.045 115.946C197.091 113.935 196.614 111.577 196.614 108.872C196.614 106.077 197.062 103.656 197.96 101.611C198.847 99.554 200.097 97.9688 201.71 96.8551C203.324 95.7301 205.216 95.1676 207.386 95.1676C208.727 95.1676 210.062 95.446 211.392 96.0028C212.71 96.5597 214.17 97.5597 215.773 99.0028C217.375 100.446 219.284 102.497 221.5 105.156L224.227 108.429L224.432 108.429L224.432 94.7926L232 94.7926L232 121.588ZM232.477 76.9205C232.477 79.6705 232.006 82.1136 231.062 84.25C230.108 86.375 228.795 88.0455 227.125 89.2614C225.455 90.4773 223.534 91.0909 221.364 91.1023L221.364 81.5568C222.034 81.5455 222.636 81.3409 223.17 80.9432C223.693 80.5341 224.102 79.9773 224.398 79.2727C224.693 78.5682 224.841 77.7614 224.841 76.8523C224.841 75.9773 224.687 75.2045 224.381 74.5341C224.062 73.8636 223.625 73.3409 223.068 72.9659C222.511 72.5909 221.875 72.4091 221.159 72.4205C220.455 72.4091 219.83 72.625 219.284 73.0682C218.739 73.5 218.312 74.108 218.006 74.8921C217.699 75.6761 217.545 76.5796 217.545 77.6023L217.545 81.1477L211 81.1477L211 77.6023C211 76.6591 210.847 75.8296 210.54 75.1136C210.233 74.3864 209.807 73.8239 209.261 73.4261C208.716 73.0171 208.091 72.8182 207.386 72.8296C206.705 72.8182 206.102 72.983 205.58 73.3239C205.057 73.6648 204.648 74.1421 204.352 74.7557C204.057 75.358 203.909 76.0568 203.909 76.8523C203.909 77.7159 204.062 78.4886 204.369 79.1705C204.676 79.8409 205.102 80.3693 205.648 80.7557C206.193 81.1421 206.818 81.3409 207.523 81.3523L207.523 90.4205C205.386 90.4091 203.5 89.8239 201.864 88.6648C200.227 87.4943 198.943 85.8921 198.011 83.858C197.08 81.8239 196.614 79.4886 196.614 76.8523C196.614 74.2727 197.051 71.9943 197.926 70.0171C198.801 68.0284 200.006 66.4773 201.54 65.3636C203.062 64.2386 204.807 63.6818 206.773 63.6932C208.727 63.6705 210.33 64.3409 211.58 65.7046C212.83 67.0568 213.568 68.7727 213.795 70.8523L214.068 70.8523C214.375 68.0341 215.239 65.9148 216.659 64.4943C218.068 63.0739 219.841 62.375 221.977 62.3977C224.023 62.3864 225.835 63 227.415 64.2386C228.994 65.4659 230.233 67.1761 231.131 69.3693C232.028 71.5511 232.477 74.0682 232.477 76.9205Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
</g>
<defs>
@@ -200,9 +200,9 @@ export function HolidayGoldBadge({ className }: { className?: string }) {
y2="209.652"
gradientUnits="userSpaceOnUse"
>
- <stop stop-color="#BC9B28" />
- <stop offset="0.619792" stop-color="#FFC700" />
- <stop offset="1" stop-color="#B59112" />
+ <stop stopColor="#BC9B28" />
+ <stop offset="0.619792" stopColor="#FFC700" />
+ <stop offset="1" stopColor="#B59112" />
</linearGradient>
</defs>
</svg>
@@ -238,27 +238,27 @@ export function HolidayPlatinumBadge({ className }: { className?: string }) {
<path
d="M74.3309 80.3861L92.2816 71.0789L110.232 80.3861L106.8 60.6722L121.326 46.7073L101.257 43.8349L92.2816 25.899L83.3068 43.8349L63.2314 46.7073L77.7586 60.6722L74.3309 80.3861Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
<path
d="M152.246 217.662L45.0404 189.04L29.4744 224.046L172 262.101L152.246 217.662Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
<path
d="M123.966 154.044L67.3196 138.92L51.7542 173.926L143.72 198.488L123.966 154.044Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
<path
d="M74.0339 123.81L115.44 134.864L92.2815 82.7655L74.0339 123.81Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
<path
d="M232 187.682L225.182 187.682L214.409 174.659C213.693 173.795 213.023 173.057 212.398 172.443C211.761 171.818 211.108 171.341 210.437 171.011C209.767 170.67 209.023 170.5 208.205 170.5C207.307 170.5 206.54 170.693 205.903 171.08C205.267 171.455 204.778 171.977 204.437 172.648C204.085 173.318 203.909 174.091 203.909 174.966C203.909 175.841 204.085 176.614 204.437 177.284C204.79 177.943 205.307 178.455 205.989 178.818C206.67 179.182 207.5 179.364 208.477 179.364L208.477 188.364C206.023 188.364 203.909 187.812 202.136 186.71C200.364 185.608 199 184.051 198.045 182.04C197.091 180.028 196.614 177.67 196.614 174.966C196.614 172.17 197.062 169.75 197.96 167.705C198.847 165.648 200.097 164.062 201.71 162.949C203.324 161.824 205.216 161.261 207.386 161.261C208.727 161.261 210.062 161.54 211.392 162.097C212.71 162.653 214.17 163.653 215.773 165.097C217.375 166.54 219.284 168.591 221.5 171.25L224.227 174.523L224.432 174.523L224.432 160.886L232 160.886L232 187.682ZM232.955 141.446C232.943 144.616 232.21 147.355 230.756 149.662C229.301 151.969 227.205 153.747 224.466 154.997C221.727 156.247 218.443 156.866 214.614 156.855C210.773 156.844 207.511 156.219 204.83 154.98C202.148 153.73 200.108 151.957 198.71 149.662C197.312 147.355 196.614 144.616 196.614 141.446C196.614 138.276 197.318 135.537 198.727 133.23C200.125 130.923 202.165 129.145 204.847 127.895C207.528 126.645 210.784 126.026 214.614 126.037C218.466 126.037 221.761 126.662 224.5 127.912C227.239 129.162 229.335 130.94 230.79 133.247C232.233 135.543 232.955 138.276 232.955 141.446ZM225.25 141.446C225.25 139.81 224.398 138.469 222.693 137.423C220.977 136.366 218.284 135.844 214.614 135.855C212.216 135.855 210.256 136.094 208.733 136.571C207.21 137.048 206.085 137.707 205.358 138.548C204.619 139.389 204.25 140.355 204.25 141.446C204.25 143.082 205.08 144.418 206.739 145.452C208.398 146.486 211.023 147.014 214.614 147.037C217.057 147.048 219.068 146.815 220.648 146.338C222.216 145.861 223.375 145.202 224.125 144.361C224.875 143.509 225.25 142.537 225.25 141.446ZM232 121.588L225.182 121.588L214.409 108.565C213.693 107.702 213.023 106.963 212.398 106.349C211.761 105.724 211.108 105.247 210.437 104.918C209.767 104.577 209.023 104.406 208.205 104.406C207.307 104.406 206.54 104.599 205.903 104.986C205.267 105.361 204.778 105.884 204.437 106.554C204.085 107.224 203.909 107.997 203.909 108.872C203.909 109.747 204.085 110.52 204.437 111.19C204.79 111.849 205.307 112.361 205.989 112.724C206.67 113.088 207.5 113.27 208.477 113.27L208.477 122.27C206.023 122.27 203.909 121.719 202.136 120.616C200.364 119.514 199 117.957 198.045 115.946C197.091 113.935 196.614 111.577 196.614 108.872C196.614 106.077 197.062 103.656 197.96 101.611C198.847 99.554 200.097 97.9688 201.71 96.8551C203.324 95.7301 205.216 95.1676 207.386 95.1676C208.727 95.1676 210.062 95.446 211.392 96.0028C212.71 96.5597 214.17 97.5597 215.773 99.0028C217.375 100.446 219.284 102.497 221.5 105.156L224.227 108.429L224.432 108.429L224.432 94.7926L232 94.7926L232 121.588ZM232.477 76.9205C232.477 79.6705 232.006 82.1136 231.062 84.25C230.108 86.375 228.795 88.0455 227.125 89.2614C225.455 90.4773 223.534 91.0909 221.364 91.1023L221.364 81.5568C222.034 81.5455 222.636 81.3409 223.17 80.9432C223.693 80.5341 224.102 79.9773 224.398 79.2727C224.693 78.5682 224.841 77.7614 224.841 76.8523C224.841 75.9773 224.687 75.2045 224.381 74.5341C224.062 73.8636 223.625 73.3409 223.068 72.9659C222.511 72.5909 221.875 72.4091 221.159 72.4205C220.455 72.4091 219.83 72.625 219.284 73.0682C218.739 73.5 218.312 74.108 218.006 74.8921C217.699 75.6761 217.545 76.5796 217.545 77.6023L217.545 81.1477L211 81.1477L211 77.6023C211 76.6591 210.847 75.8296 210.54 75.1136C210.233 74.3864 209.807 73.8239 209.261 73.4261C208.716 73.0171 208.091 72.8182 207.386 72.8296C206.705 72.8182 206.102 72.983 205.58 73.3239C205.057 73.6648 204.648 74.1421 204.352 74.7557C204.057 75.358 203.909 76.0568 203.909 76.8523C203.909 77.7159 204.062 78.4886 204.369 79.1705C204.676 79.8409 205.102 80.3693 205.648 80.7557C206.193 81.1421 206.818 81.3409 207.523 81.3523L207.523 90.4205C205.386 90.4091 203.5 89.8239 201.864 88.6648C200.227 87.4943 198.943 85.8921 198.011 83.858C197.08 81.8239 196.614 79.4886 196.614 76.8523C196.614 74.2727 197.051 71.9943 197.926 70.0171C198.801 68.0284 200.006 66.4773 201.54 65.3636C203.062 64.2386 204.807 63.6818 206.773 63.6932C208.727 63.6705 210.33 64.3409 211.58 65.7046C212.83 67.0568 213.568 68.7727 213.795 70.8523L214.068 70.8523C214.375 68.0341 215.239 65.9148 216.659 64.4943C218.068 63.0739 219.841 62.375 221.977 62.3977C224.023 62.3864 225.835 63 227.415 64.2386C228.994 65.4659 230.233 67.1761 231.131 69.3693C232.028 71.5511 232.477 74.0682 232.477 76.9205Z"
fill="white"
- fill-opacity="0.62"
+ fillOpacity="0.62"
/>
</g>
<defs>
@@ -270,9 +270,9 @@ export function HolidayPlatinumBadge({ className }: { className?: string }) {
y2="212.197"
gradientUnits="userSpaceOnUse"
>
- <stop stop-color="#2EECEC" />
- <stop offset="0.677083" stop-color="#00A184" />
- <stop offset="1" stop-color="#0F7562" />
+ <stop stopColor="#2EECEC" />
+ <stop offset="0.677083" stopColor="#00A184" />
+ <stop offset="1" stopColor="#0F7562" />
</linearGradient>
</defs>
</svg>
diff --git a/apps/web/src/app/(profile)/[username]/_components/dashboard/badges.tsx b/apps/web/src/app/(profile)/[username]/_components/dashboard/badges.tsx
index 1b0ec7f4..21a64fe5 100644
--- a/apps/web/src/app/(profile)/[username]/_components/dashboard/badges.tsx
+++ b/apps/web/src/app/(profile)/[username]/_components/dashboard/badges.tsx
@@ -13,7 +13,7 @@ import {
} from '../badges/aot-2023-badge';
import { toast } from '@repo/ui/components/use-toast';
-const SlugToBadgeIcon: Record<BadgeInfo['slug'], FC<{ className: string }>> = {
+export const SlugToBadgeIcon: Record<BadgeInfo['slug'], FC<{ className: string }>> = {
'aot-2023-bronze': HolidayBronzeBadge,
'aot-2023-silver': HolidaySilverBadge,
'aot-2023-gold': HolidayGoldBadge,
diff --git a/apps/web/src/app/challenge/[slug]/getChallengeRouteData.ts b/apps/web/src/app/challenge/[slug]/getChallengeRouteData.ts
index 49e2cd3b..85c9401e 100644
--- a/apps/web/src/app/challenge/[slug]/getChallengeRouteData.ts
+++ b/apps/web/src/app/challenge/[slug]/getChallengeRouteData.ts
@@ -19,6 +19,9 @@ export const getChallengeRouteData = cache(async (slug: string, session: Session
user: {
select: {
name: true,
+ roles: true,
+ bio: true,
+ image: true,
},
},
_count: {
diff --git a/apps/web/src/app/challenge/[slug]/solutions/[solutionId]/getSolutionIdRouteData.ts b/apps/web/src/app/challenge/[slug]/solutions/[solutionId]/getSolutionIdRouteData.ts
index 1c0b7625..c6d43990 100644
--- a/apps/web/src/app/challenge/[slug]/solutions/[solutionId]/getSolutionIdRouteData.ts
+++ b/apps/web/src/app/challenge/[slug]/solutions/[solutionId]/getSolutionIdRouteData.ts
@@ -19,6 +19,8 @@ export const getSolutionIdRouteData = cache(
select: {
name: true,
image: true,
+ roles: true,
+ bio: true,
},
},
_count: {
diff --git a/apps/web/src/app/challenge/[slug]/solutions/_components/index.tsx b/apps/web/src/app/challenge/[slug]/solutions/_components/index.tsx
index 587cd8c9..f86a7484 100644
--- a/apps/web/src/app/challenge/[slug]/solutions/_components/index.tsx
+++ b/apps/web/src/app/challenge/[slug]/solutions/_components/index.tsx
@@ -10,7 +10,6 @@ import { SubmitSolution } from './submit-solution';
import { type PaginatedSolution, getPaginatedSolutions } from '../getSolutionRouteData';
import { getRelativeTime } from '~/utils/relativeTime';
import { Badge } from '@repo/ui/components/badge';
-import { UserBadge } from '@repo/ui/components/user-badge';
import { useParams } from 'next/navigation';
import { Pagination } from '../../../_components/pagination';
import { useQuery } from '@tanstack/react-query';
@@ -19,6 +18,7 @@ import { SortSelect } from '../../../_components/sort-select';
import { useGetQueryString } from './useGetQueryString';
import { useQueryParamState } from './useQueryParamState';
import { useLocalStorage } from '~/utils/useLocalStorage';
+import { UserBadge } from '../../../_components/comments/enhanced-user-badge';
interface Props {
slug: string;
@@ -159,7 +159,14 @@ function SolutionRow({
>
<h3 className="truncate font-bold">{solution.title}</h3>
<div className="flex items-center gap-2">
- <UserBadge username={solution.user?.name ?? ''} linkComponent={Link} />
+ <UserBadge
+ user={{
+ name: solution.user?.name ?? '',
+ image: solution.user?.image ?? '',
+ bio: solution.user?.bio ?? '',
+ roles: solution.user?.roles ?? [],
+ }}
+ />
<div className="text-muted-foreground flex flex-1 items-center gap-2">
<Calendar className=" h-4 w-4" />
<span className="text-xs">{getRelativeTime(solution.createdAt)}</span>
diff --git a/apps/web/src/app/challenge/[slug]/solutions/_components/solution-detail.tsx b/apps/web/src/app/challenge/[slug]/solutions/_components/solution-detail.tsx
index 76da0f44..450964dc 100644
--- a/apps/web/src/app/challenge/[slug]/solutions/_components/solution-detail.tsx
+++ b/apps/web/src/app/challenge/[slug]/solutions/_components/solution-detail.tsx
@@ -8,7 +8,6 @@ import { Markdown } from '@repo/ui/components/markdown';
import { Tooltip, TooltipContent, TooltipTrigger } from '@repo/ui/components/tooltip';
import { TypographyLarge } from '@repo/ui/components/typography/large';
import { toast } from '@repo/ui/components/use-toast';
-import { UserBadge } from '@repo/ui/components/user-badge';
import { Calendar, Flag, Pin, Share, Trash, ArrowLeft, Pencil } from '@repo/ui/icons';
import clsx from 'clsx';
import Link from 'next/link';
@@ -23,6 +22,7 @@ import { useParams } from 'next/navigation';
import { useState } from 'react';
import { EditSolution } from './edit-solution';
import { useGetQueryString } from './useGetQueryString';
+import { UserBadge } from '~/app/challenge/_components/comments/enhanced-user-badge';
interface Props {
solution: ChallengeSolution;
@@ -87,7 +87,14 @@ export function SolutionDetails({ solution }: Props) {
</div>
{/* Author, Time, Action Buttons */}
<div className="flex items-center gap-4">
- <UserBadge username={solution.user?.name ?? ''} linkComponent={Link} />
+ <UserBadge
+ user={{
+ name: solution.user?.name ?? '',
+ image: solution.user?.image ?? '',
+ bio: solution.user?.bio ?? '',
+ roles: solution.user?.roles ?? [],
+ }}
+ />
<div className="text-muted-foreground flex items-center gap-2">
<Calendar className="h-4 w-4" />
<span className="text-xs">{getRelativeTime(solution.createdAt)}</span>
diff --git a/apps/web/src/app/challenge/[slug]/solutions/getSolutionRouteData.ts b/apps/web/src/app/challenge/[slug]/solutions/getSolutionRouteData.ts
index 9d202bf0..f187825e 100644
--- a/apps/web/src/app/challenge/[slug]/solutions/getSolutionRouteData.ts
+++ b/apps/web/src/app/challenge/[slug]/solutions/getSolutionRouteData.ts
@@ -53,6 +53,9 @@ export async function getPaginatedSolutions({
user: {
select: {
name: true,
+ roles: true,
+ image: true,
+ bio: true,
},
},
_count: {
diff --git a/apps/web/src/app/challenge/_components/comments/comment.tsx b/apps/web/src/app/challenge/_components/comments/comment.tsx
index b27d0954..57abb53e 100644
--- a/apps/web/src/app/challenge/_components/comments/comment.tsx
+++ b/apps/web/src/app/challenge/_components/comments/comment.tsx
@@ -5,7 +5,6 @@ import { type CommentRoot } from '@repo/db/types';
import { Markdown } from '@repo/ui/components/markdown';
import { Tooltip, TooltipContent, TooltipTrigger } from '@repo/ui/components/tooltip';
import { toast } from '@repo/ui/components/use-toast';
-import { UserBadge } from '@repo/ui/components/user-badge';
import {
ChevronDown,
ChevronUp,
@@ -18,7 +17,6 @@ import {
MoreHorizontal,
} from '@repo/ui/icons';
import clsx from 'clsx';
-import Link from 'next/link';
import { useParams, useSearchParams } from 'next/navigation';
import { useEffect, useRef, useState } from 'react';
import { z } from 'zod';
@@ -33,6 +31,7 @@ import { Button } from '@repo/ui/components/button';
import { CommentSkeleton } from './comment-skeleton';
import { isAdminOrModerator } from '~/utils/auth-guards';
import { useCommentsReplies } from './comments.hooks';
+import { UserBadge } from './enhanced-user-badge';
interface SingleCommentProps {
comment: PaginatedComments['comments'][number];
@@ -275,7 +274,14 @@ function SingleComment({
{comment.user?.name.substring(0, 1)}
</AvatarFallback>
</Avatar>
- <UserBadge username={comment.user.name ?? ''} linkComponent={Link} />
+ <UserBadge
+ user={{
+ name: comment.user?.name ?? '',
+ image: comment.user?.image ?? '',
+ bio: comment.user?.bio ?? '',
+ roles: comment.user?.roles ?? [],
+ }}
+ />
</div>
<Tooltip delayDuration={0.05}>
diff --git a/apps/web/src/app/challenge/_components/comments/enhanced-user-badge.getProfileData.ts b/apps/web/src/app/challenge/_components/comments/enhanced-user-badge.getProfileData.ts
new file mode 100644
index 00000000..63a1daef
--- /dev/null
+++ b/apps/web/src/app/challenge/_components/comments/enhanced-user-badge.getProfileData.ts
@@ -0,0 +1,28 @@
+'use server';
+
+import { prisma } from '@repo/db';
+import { getBadges } from '~/app/(profile)/[username]/_components/dashboard/_actions';
+import { getTitles } from './enhanced-user-badge.getTitles';
+
+export async function getProfileData(username: string) {
+ const user = await prisma.user.findFirstOrThrow({
+ where: {
+ name: username,
+ },
+ select: {
+ image: true,
+ bio: true,
+ id: true,
+ name: true,
+ roles: true,
+ },
+ });
+
+ const badges = await getBadges(user.id);
+ const titles = getTitles(user.roles);
+ return {
+ ...user,
+ titles,
+ badges: badges.slice(0, 3),
+ };
+}
diff --git a/apps/web/src/app/challenge/_components/comments/enhanced-user-badge.getTitles.ts b/apps/web/src/app/challenge/_components/comments/enhanced-user-badge.getTitles.ts
new file mode 100644
index 00000000..bfcdd85c
--- /dev/null
+++ b/apps/web/src/app/challenge/_components/comments/enhanced-user-badge.getTitles.ts
@@ -0,0 +1,16 @@
+import { RoleTypes, type Role } from '@repo/db/types';
+
+export type TitleInfo = ReturnType<typeof getTitles>[number];
+export function getTitles(roles: Role[]) {
+ const flairs: { type: 'admin' | 'contributor' | 'supporter'; label: string }[] = [];
+ if (roles.find((r) => r.role === RoleTypes.ADMIN)) {
+ flairs.push({ type: 'admin', label: 'Admin' });
+ }
+ if (roles.find((r) => r.role === RoleTypes.CONTRIBUTOR)) {
+ flairs.push({ type: 'contributor', label: 'Contributor' });
+ }
+ if (roles.find((r) => r.role === RoleTypes.SUPPORTER)) {
+ flairs.push({ type: 'supporter', label: 'Hero' });
+ }
+ return flairs;
+}
diff --git a/apps/web/src/app/challenge/_components/comments/enhanced-user-badge.tsx b/apps/web/src/app/challenge/_components/comments/enhanced-user-badge.tsx
new file mode 100644
index 00000000..a8752ec8
--- /dev/null
+++ b/apps/web/src/app/challenge/_components/comments/enhanced-user-badge.tsx
@@ -0,0 +1,192 @@
+'use client';
+
+import { Avatar, AvatarFallback, AvatarImage } from '@repo/ui/components/avatar';
+import Link from 'next/link';
+import { Badge } from '@repo/ui/components/badge';
+import { Shield, Sword, Wand2, type LucideIcon } from '@repo/ui/icons';
+import { useQuery } from '@tanstack/react-query';
+import { getProfileData } from './enhanced-user-badge.getProfileData';
+import { useState } from 'react';
+import { SlugToBadgeIcon } from '~/app/(profile)/[username]/_components/dashboard/badges';
+import { type BadgeInfo } from '~/app/(profile)/[username]/_components/dashboard/_actions';
+import { cn } from '@repo/ui/cn';
+import { type Role } from '@repo/db/types';
+import { Button } from '@repo/ui/components/button';
+import { HoverCard, HoverCardContent, HoverCardTrigger } from '@repo/ui/components/hover-card';
+import { getTitles, type TitleInfo } from './enhanced-user-badge.getTitles';
+import { Skeleton } from '@repo/ui/components/skeleton';
+
+interface UserBadgeProps {
+ user: {
+ name: string;
+ roles: Role[];
+ bio: string;
+ image: string;
+ };
+}
+
+export function UserBadge(props: UserBadgeProps) {
+ const [queryEnabled, setQueryEnabled] = useState(false);
+ const query = useQuery({
+ queryKey: ['profile-hover-card', props.user.name],
+ queryFn: () => getProfileData(props.user.name),
+ enabled: queryEnabled,
+ staleTime: 60 * 1000,
+ initialData: {
+ ...props.user,
+ id: '',
+ badges: [],
+ titles: getTitles(props.user.roles),
+ },
+ initialDataUpdatedAt: 0,
+ });
+ const onMouseOver = () => {
+ setQueryEnabled(true);
+ };
+ const gradient = getGradient(props.user.roles);
+ const shouldShowHoverCard =
+ props.user.bio !== '' || props.user.roles.length > 1 || query.data.titles.length > 1;
+ return (
+ <HoverCardWrapper
+ enabled={shouldShowHoverCard}
+ usernameComponent={
+ <Link href={`/@${props.user.name}`} className="focus:outline-none focus-visible:ring-0">
+ <Button
+ className="-ml-2 font-bold "
+ asChild
+ variant="ghost"
+ size="xs"
+ onMouseOver={onMouseOver}
+ >
+ <span
+ className={cn('bg-gradient-to-r bg-clip-text font-bold text-transparent', gradient)}
+ >
+ @{props.user.name}
+ </span>
+ </Button>
+ </Link>
+ }
+ onHoverComponent={
+ //When a user does not have a bio & they have no titles, then a compact version is shown
+ <Link href={`/@${props.user.name}`}>
+ <div className="flex flex-row space-x-4">
+ <div className="flex min-w-20 flex-col items-center justify-center space-y-2">
+ <div className={cn('w-min rounded-full bg-gradient-to-r p-0.5', gradient)}>
+ <Avatar className="h-14 w-14">
+ <AvatarImage src={query.data.image ?? ''} />
+ <AvatarFallback className="capitalize">
+ {props.user.name.substring(0, 1)}
+ </AvatarFallback>
+ </Avatar>
+ </div>
+
+ {query.isRefetching ? (
+ <Skeleton className="h-full w-full" />
+ ) : query.data.badges.length > 0 ? (
+ <Badges data={query.data.badges} />
+ ) : null}
+ </div>
+ <div className="flex w-max max-w-[calc(39ch)] flex-col space-y-2 ">
+ <h1
+ className={cn(
+ 'inline-flex bg-gradient-to-r bg-clip-text font-extrabold text-transparent',
+ gradient,
+ )}
+ >
+ @{props.user.name}
+ </h1>
+
+ <Titles data={query.data.titles} />
+ <p className="line-clamp-2 text-sm font-light text-zinc-300">
+ {query.data.bio === '' ? 'This user has no bio' : query.data.bio}
+ </p>
+ </div>
+ </div>
+ </Link>
+ }
+ />
+ );
+}
+
+const TITLE_TO_ICON: Record<TitleInfo['type'], LucideIcon> = {
+ admin: Shield,
+ supporter: Sword,
+ contributor: Wand2,
+};
+
+const TITLE_TO_CLASSNAME: Record<TitleInfo['type'], string> = {
+ admin: 'from-rose-400 to-orange-300',
+ contributor: 'bg-gradient-to-r from-sky-400 to-cyan-300',
+ supporter: 'bg-gradient-to-r from-teal-200 to-teal-500',
+};
+
+function getGradient(roles: Role[]) {
+ if (roles.find((r) => r.role === 'ADMIN')) {
+ return TITLE_TO_CLASSNAME.admin;
+ }
+ if (roles.find((r) => r.role === 'CONTRIBUTOR')) {
+ return TITLE_TO_CLASSNAME.contributor;
+ }
+ if (roles.find((r) => r.role === 'SUPPORTER')) {
+ return TITLE_TO_CLASSNAME.supporter;
+ }
+ return 'text-foreground';
+}
+
+function Titles(props: { data: TitleInfo[] }) {
+ return (
+ <div className="flex flex-row space-x-2">
+ {props.data.map((t) => {
+ const Icon = TITLE_TO_ICON[t.type];
+ return (
+ <Badge
+ className="rounded-full bg-gradient-to-br from-sky-600 to-sky-700 px-2 "
+ key={t.type}
+ >
+ <Icon className="h-5 w-5 pr-1" />
+ {t.label}
+ </Badge>
+ );
+ })}
+ </div>
+ );
+}
+
+function Badges(props: { data: BadgeInfo[] }) {
+ return (
+ <div className="flex flex-row space-x-[-15px]">
+ {props.data.map((b) => {
+ const Icon = SlugToBadgeIcon[b.slug];
+ return <Icon className="h-10 w-10" key={b.slug} />;
+ })}
+ </div>
+ );
+}
+
+function HoverCardWrapper(props: {
+ usernameComponent: React.ReactElement;
+ onHoverComponent: React.ReactElement;
+ enabled: boolean;
+}) {
+ const [open, setOpen] = useState(false);
+ return (
+ <HoverCard
+ open={open}
+ onOpenChange={(nextState) => {
+ if (props.enabled) {
+ setOpen(nextState);
+ }
+ }}
+ >
+ <HoverCardTrigger asChild>{props.usernameComponent}</HoverCardTrigger>
+ <HoverCardContent
+ align="start"
+ side="bottom"
+ avoidCollisions
+ className="w-min rounded-lg bg-zinc-100 dark:bg-zinc-900"
+ >
+ {props.onHoverComponent}
+ </HoverCardContent>
+ </HoverCard>
+ );
+}
diff --git a/apps/web/src/app/challenge/_components/comments/getCommentRouteData.ts b/apps/web/src/app/challenge/_components/comments/getCommentRouteData.ts
index 7fc3cea4..5b396a86 100644
--- a/apps/web/src/app/challenge/_components/comments/getCommentRouteData.ts
+++ b/apps/web/src/app/challenge/_components/comments/getCommentRouteData.ts
@@ -149,6 +149,8 @@ export async function getPaginatedComments({
id: true,
name: true,
image: true,
+ roles: true,
+ bio: true,
},
},
_count: {
@@ -217,6 +219,8 @@ export async function getAllComments({
id: true,
name: true,
image: true,
+ roles: true,
+ bio: true,
},
},
_count: {
diff --git a/apps/web/src/app/challenge/_components/comments/index.tsx b/apps/web/src/app/challenge/_components/comments/index.tsx
index 4c121586..d2fbb604 100644
--- a/apps/web/src/app/challenge/_components/comments/index.tsx
+++ b/apps/web/src/app/challenge/_components/comments/index.tsx
@@ -53,7 +53,7 @@ export function Comments({ preselectedCommentMetadata, rootId, type, expanded =
return (
<div
className={clsx(
- 'bg-background/90 dark:border-b-muted dark:bg-muted/90 absolute bottom-0 max-h-full w-full overflow-hidden border-t border-zinc-300 backdrop-blur-sm duration-300 dark:border-zinc-700',
+ 'bg-background/90 dark:border-b-muted dark:bg-muted/90 absolute bottom-0 max-h-full w-full overflow-hidden border-t border-zinc-300 backdrop-blur-sm duration-300 dark:border-zinc-700 ',
{
'lg:border-t-none': showComments,
},
diff --git a/apps/web/src/app/challenge/_components/description/index.tsx b/apps/web/src/app/challenge/_components/description/index.tsx
index 6f7f5722..3f7fb7cb 100644
--- a/apps/web/src/app/challenge/_components/description/index.tsx
+++ b/apps/web/src/app/challenge/_components/description/index.tsx
@@ -15,11 +15,9 @@ import { DifficultyBadge } from '@repo/ui/components/difficulty-badge';
import { Markdown } from '@repo/ui/components/markdown';
import { Tooltip, TooltipContent, TooltipTrigger } from '@repo/ui/components/tooltip';
import { TypographyH3 } from '@repo/ui/components/typography/h3';
-import { UserBadge } from '@repo/ui/components/user-badge';
import { Bookmark as BookmarkIcon, Calendar, CheckCircle, Flag, Share } from '@repo/ui/icons';
import clsx from 'clsx';
import { debounce } from 'lodash';
-import Link from 'next/link';
import { useMemo, useRef, useState } from 'react';
import { type ChallengeRouteData } from '~/app/challenge/[slug]/getChallengeRouteData';
import { ReportDialog } from '~/components/ReportDialog';
@@ -29,6 +27,7 @@ import { ShareForm } from '../share-form';
import { Vote } from '../vote';
import { AOT_CHALLENGES } from '../../[slug]/aot-slugs';
import { Suggestions } from './suggestions';
+import { UserBadge } from '../comments/enhanced-user-badge';
interface Props {
challenge: ChallengeRouteData['challenge'];
@@ -87,7 +86,14 @@ export function Description({ challenge }: Props) {
</div>
{/* Author & Time */}
<div className="mt-2 flex items-center gap-4">
- <UserBadge username={challenge.user.name} linkComponent={Link} />
+ <UserBadge
+ user={{
+ name: challenge.user?.name ?? '',
+ image: challenge.user?.image ?? '',
+ bio: challenge.user?.bio ?? '',
+ roles: challenge.user?.roles ?? [],
+ }}
+ />
<div className="text-muted-foreground flex items-center gap-2">
<Calendar className=" h-4 w-4" />
<span className="text-xs">Last updated {getRelativeTime(challenge.updatedAt)}</span>
diff --git a/packages/db/schema.prisma b/packages/db/schema.prisma
index fa9af1da..9ebc1ba0 100644
--- a/packages/db/schema.prisma
+++ b/packages/db/schema.prisma
@@ -39,6 +39,8 @@ enum RoleTypes {
ADMIN
MODERATOR
CREATOR
+ SUPPORTER
+ CONTRIBUTOR
}
enum UserStatus {
diff --git a/packages/ui/README.md b/packages/ui/README.md
new file mode 100644
index 00000000..664e0961
--- /dev/null
+++ b/packages/ui/README.md
@@ -0,0 +1,3 @@
+# Shadcn/UI
+
+If you're using the cli to add components, do it from this folder (~/packages/ui)
diff --git a/packages/ui/components.json b/packages/ui/components.json
new file mode 100644
index 00000000..5552d0d9
--- /dev/null
+++ b/packages/ui/components.json
@@ -0,0 +1,17 @@
+{
+ "$schema": "https://ui.shadcn.com/schema.json",
+ "style": "default",
+ "rsc": true,
+ "tsx": true,
+ "tailwind": {
+ "config": "apps/web/tailwind.config.js",
+ "css": "apps/web/src/styles/globals.css",
+ "baseColor": "zinc",
+ "cssVariables": true
+ },
+ "aliases": {
+ "components": "@repo/ui/components",
+ "utils": "@repo/ui/cn",
+ "ui": "src/components"
+ }
+}
diff --git a/packages/ui/package.json b/packages/ui/package.json
index c3c307b9..defc5bae 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -37,6 +37,7 @@
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.4",
"@radix-ui/react-dropdown-menu": "^2.0.5",
+ "@radix-ui/react-hover-card": "^1.1.1",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-navigation-menu": "^1.1.3",
"@radix-ui/react-popover": "^1.0.6",
diff --git a/packages/ui/src/components/hover-card.tsx b/packages/ui/src/components/hover-card.tsx
new file mode 100644
index 00000000..9ba6ebf8
--- /dev/null
+++ b/packages/ui/src/components/hover-card.tsx
@@ -0,0 +1,31 @@
+'use client';
+
+import * as React from 'react';
+import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
+
+import { cn } from '../cn';
+
+const HoverCard = HoverCardPrimitive.Root;
+
+const HoverCardTrigger = HoverCardPrimitive.Trigger;
+
+const HoverCardContent = React.forwardRef<
+ React.ElementRef<typeof HoverCardPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>
+>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (
+ <HoverCardPrimitive.Portal>
+ <HoverCardPrimitive.Content
+ ref={ref}
+ align={align}
+ sideOffset={sideOffset}
+ className={cn(
+ 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 rounded-md border p-4 shadow-md outline-none',
+ className,
+ )}
+ {...props}
+ />
+ </HoverCardPrimitive.Portal>
+));
+HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
+
+export { HoverCard, HoverCardTrigger, HoverCardContent };
diff --git a/packages/ui/src/icons.ts b/packages/ui/src/icons.ts
index 026ca866..04f9bda5 100644
--- a/packages/ui/src/icons.ts
+++ b/packages/ui/src/icons.ts
@@ -74,4 +74,6 @@ export {
ArrowLeft,
RectangleVertical,
SearchIcon,
+ Wand2,
+ type LucideIcon,
} from 'lucide-react';
diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json
index b285bc30..0eec44bc 100644
--- a/packages/ui/tsconfig.json
+++ b/packages/ui/tsconfig.json
@@ -1,7 +1,11 @@
{
"extends": "@repo/tsconfig/react-library.json",
"compilerOptions": {
- "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
+ "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json",
+ "baseUrl": ".",
+ "paths": {
+ "@repo/ui/*": ["./src/*"]
+ }
},
"include": ["**/*.ts", "**/*.tsx", "../../apps/web/src/components/ui/footsies.tsx"],
"exclude": ["node_modules"]
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index aa2da67e..89c4ae66 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -94,10 +94,10 @@ importers:
version: 2.6.0-beta.12
next:
specifier: 14.2.5
next-themes:
specifier: ^0.2.1
react:
specifier: 18.2.0
version: 18.2.0
@@ -200,7 +200,7 @@ importers:
version: 2.0.0
next:
specifier: 14.2.5
next-themes:
specifier: ^0.2.1
@@ -310,7 +310,7 @@ importers:
version: 1.0.0
next:
specifier: 14.2.5
react:
specifier: 18.2.0
version: 18.2.0
@@ -386,7 +386,7 @@ importers:
version: link:../../packages/ui
'@sentry/nextjs':
specifier: ^7.73.0
'@t3-oss/env-nextjs':
specifier: ^0.6.0
@@ -404,7 +404,7 @@ importers:
'@uploadthing/react':
specifier: ^6.2.2
'@vercel/analytics':
specifier: ^1.1.1
version: 1.1.1
@@ -413,10 +413,10 @@ importers:
version: 0.2.1
'@vercel/speed-insights':
specifier: ^1.0.12
'@vercel/toolbar':
specifier: ^0.1.1
- version: 0.1.1(patch_hash=mukejyv3x4f3mriytfjb3reaxi)([email protected](@playwright/[email protected])([email protected]([email protected]))([email protected]))
+ version: 0.1.1(patch_hash=mukejyv3x4f3mriytfjb3reaxi)([email protected](@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))
algoliasearch:
specifier: ^4.20.0
version: 4.20.0
@@ -449,10 +449,10 @@ importers:
version: 0.4.0(patch_hash=j3oqxjoadtct3pc6tokddngzsm)([email protected])
next:
specifier: 14.2.5
next-themes:
specifier: ^0.2.1
react:
specifier: 18.2.0
version: 18.2.0
@@ -476,7 +476,7 @@ importers:
react-instantsearch-nextjs:
specifier: ^0.1.5
react-intersection-observer:
specifier: ^9.5.2
version: 9.5.2([email protected])
@@ -594,7 +594,7 @@ importers:
version: link:../db
next-auth:
specifier: 5.0.0-beta.4
devDependencies:
'@repo/lint':
specifier: workspace:*
@@ -695,10 +695,10 @@ importers:
version: 0.4.0(patch_hash=j3oqxjoadtct3pc6tokddngzsm)([email protected])
next:
specifier: 14.2.5
next-themes:
specifier: ^0.2.1
prettier:
specifier: ^3.1.1
version: 3.1.1
@@ -742,6 +742,9 @@ importers:
'@radix-ui/react-dropdown-menu':
specifier: ^2.0.5
+ '@radix-ui/react-hover-card':
+ specifier: ^1.1.1
'@radix-ui/react-label':
specifier: ^2.0.2
@@ -801,7 +804,7 @@ importers:
version: 0.260.0([email protected])
next-themes:
specifier: ^0.2.1
react:
specifier: ^18.2.0
version: 18.2.0
@@ -853,7 +856,7 @@ importers:
dependencies:
'@next/eslint-plugin-next':
specifier: canary
- version: 15.0.0-canary.106
+ version: 15.0.0-canary.115
'@repo/tsconfig':
specifier: workspace:*
version: link:../config-typescript
@@ -865,7 +868,7 @@ importers:
'@vercel/style-guide':
specifier: ^4.0.2
eslint:
specifier: ^8.45.0
version: 8.45.0
@@ -1942,8 +1945,8 @@ packages:
resolution: {integrity: sha512-YJqyq6vk39JQfvaNtN83t/p5Jy45+bazRL+V4QI8FPd3FBqFYMEsULiwRLgSJMgFqkk4t4JbeZurz+gILEAFpA==}
- resolution: {integrity: sha512-0+uuuZVv3qL8lpVWpt9iq6805fqufHUw20FOHQiAZkWRw0ohnoc7HwniDv30NJ3wHaPmtbHheeVtMZb3T5toBg==}
+ resolution: {integrity: sha512-LLHWknVxxPaBkLFAnFR4zQ691UoFlM6+h0LyHEBjIU7ZO1v28fqvZe26r9R5TN7I5VZnypBb/pbJ47oYi+ddjw==}
resolution: {integrity: sha512-/9zVxJ+K9lrzSGli1///ujyRfon/ZneeZ+v4ptpiPoOU+GKZnm8Wj8ELWU1Pm7GHltYRBklmXMTUqM/DqQ99FQ==}
@@ -2248,6 +2251,9 @@ packages:
'@radix-ui/[email protected]':
resolution: {integrity: sha512-yQ8oGX2GVsEYMWGxcovu1uGWPCxV5BFfeeYxqPmuAzUyLT9qmaMXSAhXpb0WrspIeqYzdJpkh2vHModJPgRIaw==}
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-4Z8dn6Upk0qk4P74xBhZ6Hd/w0mPEzOOLxy4xiPXOXqjF7jZS0VAKk7/x/H6FyY2zCkYJqePf1G5KmkmNJ4RBA==}
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-jbfBCRlKYlhbitueOAv7z74PXYeIQmWpKwm3jllsdkw7fGWNkxqP3v0nY9WmOzcPqpQuoorNtvViBgL46n5gVg==}
peerDependencies:
@@ -2274,6 +2280,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-FmlW1rCg7hBpEBwFbjHwCW6AmWLQM6g/v0Sn8XbP9NvmSZ2San1FpQeyPtufzOMSIx7Y4dzjlHoifhp+7NkZhw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-9ToF7YNex3Ste45LrAeTlKtONI9yVRt/zOS158iilIkW5K/Apeyb/TUQlcEFTEFvWr8Kzdi2ZYrm1/suiXPajQ==}
peerDependencies:
@@ -2327,6 +2346,15 @@ packages:
'@types/react':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-b4inOtiaOnYf9KWyO3jAeeCG6FeyfY6ldiEPanbUjWd+xIk5wZeHa8yVwmrJ2vderhu/BQvzCrJI0lHd+wIiqw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-1pVM9RfOQ+n/N5PJK33kRSKsr1glNxomxONs5c49MliinBY6Yw2Q995qfBUUo0/Mbg05B/sGA0gkgPI7kmSHBg==}
peerDependencies:
@@ -2341,6 +2369,15 @@ packages:
'@types/react':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-OKrckBy+sMEgYM/sMmqmErVn0kZqrHPJze+Ql3DzYsDDp0hl0L62nx/2122/Bvps1qz645jlcu2tD9lrRSdf8A==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-Yn9YU+QlHYLWwV1XfKiqnGVpWYWk6MeBVM6x/bcoyPvxgjQGoeT35482viLPctTMWoMw0PoHgqfSox7Ig+957Q==}
peerDependencies:
@@ -2388,6 +2425,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-/UovfmmXGptwGcBQawLzvn2jOfM0t4z3/uKffoBlj724+n3FvBbZ7M0aaBOmkp6pqFYpO4yx8tSVJjx3Fl2jig==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-xdOrZzOTocqqkCkYo8yRPCib5OkTkqN7lqNCdxwPOdE466DOaNl4N8PkUIlsXthQvW5Wwkd+aEmWpfWlBoDPEw==}
peerDependencies:
@@ -2434,6 +2484,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-IwzAOP97hQpDADYVKrEEHUH/b2LA+9MgB0LgdmnbFO2u/3M5hmEofjjr2M6CyzUblaAqJdFm6B7oFtU72DPXrA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-Q6iAB/U7Tq3NTolBBQbHTgclPmGWE3OlktGGqrClPozSw4vkQ1DfQAOtzgRPecKsMdJINE05iaoDUG8tRzCBjw==}
peerDependencies:
@@ -2513,6 +2576,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-ZnRMshKF43aBxVWPWvbj21+7TQCvhuULWJ4gNIKYpRlQt5xGRhLx66tMp8pya2UkGHTSlhpXwmjqltDYHhw7Vg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-a8qyFO/Xb99d8wQdu4o7qnigNjTPG123uADNecz0eX4usnQEj7o+cG4ZX4zkqq98NYekT7UoEQIjxBNWIFuqTA==}
peerDependencies:
@@ -2532,6 +2608,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-A3UtLk85UtqhzFqtoC8Q0KvR2GbXF3mtPgACSazajqq6A41mEQgo53iPzY4i6BwDxlIFqWIhiQ2G729n+2aw/g==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-A+6XEvN01NfVWiKu38ybawfHsBjWum42MRPnEuqPsBZ4eV7e/7K321B5VgYMPv3Xx5An6o1/l9ZuDBgmcmWK3w==}
peerDependencies:
@@ -2551,6 +2640,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Gq6wuRN/asf9H/E/VzdKoUtT8GC9PQc9z40/vEr0VCJ4u5XvvhWIrSsCB6vD2/cH7ugTdSfYq9fLJCcM00acrQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-EyXe6mnRlHZ8b6f4ilTDrXmkLShICIuOTTj0GX4w1rp+wSxf3+TD05u1UOITC8VsJ2a9nwHvdXtOXEOl0Cw/zQ==}
peerDependencies:
@@ -2570,6 +2672,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-ZSpFm0/uHa8zTvKBDjLFWLo8dkr4MBsiDLz0g3gMUwqgLHz9rTaRRGYDgvZPtBJgYCBKXkS9fzmoySgr8CO6Cw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-5G6Om/tYSxjSeEdrb1VfKkfZfn/1IlPWd731h2RfPuSbIfNUgfqAwbKfJCg/PP6nuUCTrYzalwHSpSinoWoCag==}
peerDependencies:
@@ -2662,6 +2777,15 @@ packages:
'@types/react':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-FUCf5XMfmW4dtYl69pdS4DbxKy8nj4M7SafBgPllysxmdachynNflAdp/gCsnYWNDnge6tI9onzMp5ARYc1KNw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-mxm87F88HyHztsI7N+ZUmEoARGkC22YVW5CaC+Byc+HRpuvCrOBPTAnXgf+tZ/7i0Sg/eOePGdMhUKhPaQEqow==}
peerDependencies:
@@ -2741,6 +2865,15 @@ packages:
'@types/react':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-CasTfvsy+frcFkbXtSJ2Zu9JHpN8TYKxkgJGWbjiZhFivxaeW7rMeZt7QELGVLaYVfFMsKHjb7Ak0nMEe+2Vfw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-FohDoZvk3mEXh9AWAVyRTYR4Sq7/gavuofglmiXB2g1aKyboUD4YtgWxKj8O5n+Uak52gXQ4wKz5IFST4vtJHg==}
peerDependencies:
@@ -2755,6 +2888,15 @@ packages:
'@types/react':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-MtfMVJiSr2NjzS0Aa90NPTnvTSg6C/JLCV7ma0W6+OMV78vd8OyRpID+Ng9LxzsPbLeuBnWBA1Nq30AtBIDChw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-JwfBCUIfhXRxKExgIqGa4CQsiMemo1Xt0W/B4ei3fpzpvPENKpMKQ8mZSB6Acj3ebrAEgi2xiQvcI1PAAodvyg==}
peerDependencies:
@@ -2769,6 +2911,15 @@ packages:
'@types/react':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-L7vwWlR1kTTQ3oh7g1O0CBF3YCyyTj8NmhLR+phShpyA50HCfBFKVJTpshm9PzLiKmehsrQzTYTpX9HvmC9rhw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-6Tpkq+R6LOlmQb1R5NNETLG0B4YP0wc+klfXafpUCj6JGyaUc8il7/kUZ7m59rGbXGczE9Bs+iz2qloqsZBduQ==}
peerDependencies:
@@ -2783,6 +2934,15 @@ packages:
'@types/react':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-+FPE0rOdziWSrH9athwI1R0HDVbWlEhd+FR+aSDk4uWGmSJ9Z54sdZVDQPZAinJhJXwfT+qnj969mCsT2gfm5w==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-cV5La9DPwiQ7S0gf/0qiD6YgNqM5Fk97Kdrlc5yBcrF3jyEZQwm7vYFqMo4IfeHgJXsRaMvLABFtd0OVEmZhDw==}
peerDependencies:
@@ -2801,6 +2961,15 @@ packages:
'@types/react':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-0Fmkebhr6PiseyZlYAOtLS+nb7jLmpqTrJyv61Pe68MKYW6OWdRE2kI70TaYY27u7H0lajqM3hSMMLFq18Z7nQ==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-ibay+VqrgcaI6veAojjofPATwledXiSmX+C0KrBk/xgpX9rBzPV3OsfwlhQdUOFbh+LKQorLYT+xTXW9V8yd0g==}
peerDependencies:
@@ -2810,6 +2979,15 @@ packages:
'@types/react':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-XW3/vWuIXHa+2Uwcc2ABSfcCledmXhhQPlGbfcRXbiUQI5Icjcg19BGCZVKKInYbvUCut/ufbbLLPFC5cbb1hw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-D4w41yN5YRKtu464TLnByKzMDG/JlMPHtfZgQAu9v6mNakUqGUI9vUrfQKz8NK41VMm/xbZbh76NUTVtIYqOMA==}
peerDependencies:
@@ -2826,6 +3004,9 @@ packages:
'@radix-ui/[email protected]':
resolution: {integrity: sha512-fyrgCaedtvMg9NK3en0pnOYJdtfwxUcNolezkNPUsoX57X8oQk+NkqcvzHXD2uKNij6GXmWU9NDru2IWjrO4BQ==}
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-A9+lCBZoaMJlVKcRBz2YByCG+Cp2t6nAnMnNba+XiWxnj6r4JUFqfsgwocMBZU9LPtdxC6wB56ySYpc7LQIoJg==}
+
'@react-dnd/[email protected]':
resolution: {integrity: sha512-WLyfoHvxhs0V9U+GTsGilGgf2QsPl6ZZ44fnv0/b8T3nQyvzxidxsg/ZltbWssbsRDlYW8UKSQMTGotuTotZ6A==}
@@ -9049,7 +9230,7 @@ snapshots:
dependencies:
glob: 7.1.7
dependencies:
fast-glob: 3.3.1
@@ -9365,6 +9546,8 @@ snapshots:
dependencies:
'@babel/runtime': 7.22.6
+ '@radix-ui/[email protected]': {}
+
dependencies:
'@babel/runtime': 7.22.6
@@ -9390,6 +9573,15 @@ snapshots:
'@types/react': 18.2.20
'@types/react-dom': 18.2.7
+ dependencies:
+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 18.2.0
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 18.2.20
+ '@types/react-dom': 18.2.7
+
dependencies:
'@babel/runtime': 7.22.6
@@ -9445,6 +9637,12 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.20
+ dependencies:
+ react: 18.2.0
+ optionalDependencies:
+ '@types/react': 18.2.20
+
dependencies:
'@babel/runtime': 7.22.6
@@ -9457,6 +9655,12 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.20
+ dependencies:
+ react: 18.2.0
+ optionalDependencies:
+ '@types/react': 18.2.20
+
dependencies:
'@babel/runtime': 7.22.6
@@ -9571,6 +9775,19 @@ snapshots:
'@types/react': 18.2.20
'@types/react-dom': 18.2.7
+ dependencies:
+ '@radix-ui/primitive': 1.1.0
+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-use-escape-keydown': 1.1.0(@types/[email protected])([email protected])
+ react: 18.2.0
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 18.2.20
+ '@types/react-dom': 18.2.7
+
dependencies:
'@babel/runtime': 7.22.6
@@ -9632,6 +9849,23 @@ snapshots:
'@types/react': 18.2.20
'@types/react-dom': 18.2.7
+ dependencies:
+ '@radix-ui/primitive': 1.1.0
+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])
+ react: 18.2.0
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 18.2.20
+ '@types/react-dom': 18.2.7
+
dependencies:
'@babel/runtime': 7.22.6
@@ -9749,6 +9983,24 @@ snapshots:
'@types/react': 18.2.20
'@types/react-dom': 18.2.7
+ dependencies:
+ '@floating-ui/react-dom': 2.0.1([email protected]([email protected]))([email protected])
+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-use-rect': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/rect': 1.1.0
+ react: 18.2.0
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 18.2.20
+ '@types/react-dom': 18.2.7
+
dependencies:
'@babel/runtime': 7.22.6
@@ -9776,6 +10028,16 @@ snapshots:
'@types/react': 18.2.20
'@types/react-dom': 18.2.7
+ dependencies:
+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])
+ react: 18.2.0
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 18.2.20
+ '@types/react-dom': 18.2.7
+
dependencies:
'@babel/runtime': 7.22.6
@@ -9806,6 +10068,16 @@ snapshots:
'@types/react': 18.2.20
'@types/react-dom': 18.2.7
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])
+ react: 18.2.0
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 18.2.20
+ '@types/react-dom': 18.2.7
+
dependencies:
'@babel/runtime': 7.22.6
@@ -9833,6 +10105,15 @@ snapshots:
'@types/react': 18.2.20
'@types/react-dom': 18.2.7
+ dependencies:
+ '@radix-ui/react-slot': 1.1.0(@types/[email protected])([email protected])
+ react: 18.2.0
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 18.2.20
+ '@types/react-dom': 18.2.7
+
dependencies:
'@babel/runtime': 7.22.6
@@ -9953,6 +10234,13 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.20
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])
+ react: 18.2.0
+ optionalDependencies:
+ '@types/react': 18.2.20
+
dependencies:
'@babel/runtime': 7.22.6
@@ -10052,6 +10340,12 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.20
+ dependencies:
+ react: 18.2.0
+ optionalDependencies:
+ '@types/react': 18.2.20
+
dependencies:
'@babel/runtime': 7.22.6
@@ -10066,6 +10360,13 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.20
+ dependencies:
+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])
+ react: 18.2.0
+ optionalDependencies:
+ '@types/react': 18.2.20
+
dependencies:
'@babel/runtime': 7.22.6
@@ -10080,6 +10381,13 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.20
+ dependencies:
+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])
+ react: 18.2.0
+ optionalDependencies:
+ '@types/react': 18.2.20
+
dependencies:
'@babel/runtime': 7.22.6
@@ -10092,6 +10400,12 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.20
+ dependencies:
+ react: 18.2.0
+ optionalDependencies:
+ '@types/react': 18.2.20
+
dependencies:
'@babel/runtime': 7.22.6
@@ -10107,6 +10421,13 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.20
+ dependencies:
+ '@radix-ui/rect': 1.1.0
+ react: 18.2.0
+ optionalDependencies:
+ '@types/react': 18.2.20
+
dependencies:
'@babel/runtime': 7.22.6
@@ -10115,6 +10436,13 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.20
+ dependencies:
+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])
+ react: 18.2.0
+ optionalDependencies:
+ '@types/react': 18.2.20
+
dependencies:
'@babel/runtime': 7.22.6
@@ -10129,6 +10457,8 @@ snapshots:
dependencies:
'@babel/runtime': 7.22.6
+ '@radix-ui/[email protected]': {}
+
'@react-dnd/[email protected]': {}
'@react-dnd/[email protected]': {}
@@ -10327,7 +10657,7 @@ snapshots:
localforage: 1.10.0
tslib: 2.6.0
dependencies:
'@rollup/plugin-commonjs': 24.0.0([email protected])
'@sentry/core': 7.73.0
@@ -10339,7 +10669,7 @@ snapshots:
'@sentry/vercel-edge': 7.73.0
'@sentry/webpack-plugin': 1.20.0
chalk: 3.0.0
react: 18.2.0
rollup: 2.78.0
stacktrace-parser: 0.1.10
@@ -10841,7 +11171,7 @@ snapshots:
'@uploadthing/[email protected]': {}
dependencies:
'@uploadthing/dropzone': 0.1.1
'@uploadthing/shared': 6.2.0(@uploadthing/[email protected])
@@ -10851,7 +11181,7 @@ snapshots:
tailwind-merge: 1.14.0
uploadthing: 6.3.1
optionalDependencies:
transitivePeerDependencies:
- '@uploadthing/mime-types'
@@ -10894,12 +11224,12 @@ snapshots:
satori: 0.0.46
yoga-wasm-web: 0.3.0
optionalDependencies:
react: 18.2.0
dependencies:
'@babel/core': 7.22.10
'@babel/eslint-parser': 7.22.10(@babel/[email protected])([email protected])
@@ -10921,7 +11251,7 @@ snapshots:
eslint-plugin-unicorn: 43.0.2([email protected])
prettier-plugin-packagejson: 2.4.3([email protected])
optionalDependencies:
- '@next/eslint-plugin-next': 15.0.0-canary.106
+ '@next/eslint-plugin-next': 15.0.0-canary.115
eslint: 8.45.0
prettier: 3.1.1
typescript: 5.3.3
@@ -10931,14 +11261,14 @@ snapshots:
- jest
- supports-color
- '@vercel/[email protected](patch_hash=mukejyv3x4f3mriytfjb3reaxi)([email protected](@playwright/[email protected])([email protected]([email protected]))([email protected]))':
dependencies:
'@tinyhttp/app': 1.3.0
chokidar: 3.5.3
execa: 5.1.1
find-up: 5.0.0
get-port: 5.1.1
'@vitest/[email protected]':
dependencies:
@@ -14251,15 +14581,15 @@ snapshots:
dependencies:
'@auth/core': 0.19.0
react: 18.3.1
dependencies:
react: 18.2.0
react-dom: 18.2.0([email protected])
@@ -14269,13 +14599,13 @@ snapshots:
react: 18.2.0
react-dom: 18.2.0([email protected])
dependencies:
react: 18.2.0
react-dom: 18.3.1([email protected])
dependencies:
'@next/env': 14.2.5
'@swc/helpers': 0.5.5
@@ -14296,6 +14626,7 @@ snapshots:
'@next/swc-win32-arm64-msvc': 14.2.5
'@next/swc-win32-ia32-msvc': 14.2.5
'@next/swc-win32-x64-msvc': 14.2.5
+ '@playwright/test': 1.38.0
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
@@ -14326,7 +14657,7 @@ snapshots:
- '@babel/core'
- babel-plugin-macros
dependencies:
'@next/env': 14.2.5
'@swc/helpers': 0.5.5
@@ -14347,11 +14678,12 @@ snapshots:
'@next/swc-win32-arm64-msvc': 14.2.5
'@next/swc-win32-ia32-msvc': 14.2.5
'@next/swc-win32-x64-msvc': 14.2.5
+ '@playwright/test': 1.38.0
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
dependencies:
'@next/env': 14.2.5
'@swc/helpers': 0.5.5
@@ -14372,6 +14704,7 @@ snapshots:
'@next/swc-win32-arm64-msvc': 14.2.5
'@next/swc-win32-ia32-msvc': 14.2.5
'@next/swc-win32-x64-msvc': 14.2.5
+ '@playwright/test': 1.38.0
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
@@ -14979,9 +15312,9 @@ snapshots:
react: 18.2.0
use-sync-external-store: 1.2.0([email protected])
dependencies: