-
Notifications
You must be signed in to change notification settings - Fork 9
Staging to main #424
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
Open
Ebube111
wants to merge
54
commits into
main
Choose a base branch
from
staging
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Staging to main #424
Changes from 13 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
96b10ee
Don't revalidate list registrations for non-existent accounts
akaia-shadowfox 5c14397
Merge branch 'main' of github.com:PotLock/potlock-nextjs-app into sta…
akaia-shadowfox ccae40a
Enable basic profile configuration functionality (#418)
akaia-shadowfox a5c5671
Allow donations to unregistered accounts (#419)
akaia-shadowfox 1730155
chore: Remove console.log
akaia-shadowfox af8bdef
fee-avoidance
Ebube111 2bb724d
Merge pull request #422 from PotLock/fee-avoidance
Ebube111 3e4fe23
v2.1.1: Add version tracking
akaia-shadowfox 501ffb1
fix: Prevent heading lines from merging
akaia-shadowfox 0906854
FIx initial profile image retrieval
akaia-shadowfox 79629f7
rich text for campaign description done
Ebube111 54a2b0f
Merge pull request #423 from PotLock/rich-text
Ebube111 06517a7
Merge branch 'staging' of github.com:PotLock/potlock-nextjs-app into …
akaia-shadowfox 0df6a74
Refactor registration / profile update flows (#327)
Jikugodwill f462c0f
Merge branch 'main' of github.com:PotLock/potlock-nextjs-app into sta…
akaia-shadowfox 73d87a4
Update description length error message
akaia-shadowfox 5aa6c42
Address Webpack warning
akaia-shadowfox 21e8552
done with the profile changes
Ebube111 e65fa06
worked on review
Ebube111 68b5c29
Merge pull request #427 from PotLock/profile-update
Ebube111 e8550a8
done with logic
Ebube111 88bd068
done with changes and bug fixes
Ebube111 8f9c4d8
fixed conditional
Ebube111 6c73e6f
Merge pull request #428 from PotLock/campaign-profile
Ebube111 e7a4566
register list fix bug
Ebube111 2bcb17e
done with handling campaigns for self
Ebube111 f396adf
added unity wallet
Ebube111 56269b6
Merge pull request #429 from PotLock/register-list-fix
Ebube111 88b62d6
Merge pull request #430 from PotLock/campaign-for-self
Ebube111 3e5fac4
hide unity wallet
Ebube111 67b73e2
Merge pull request #431 from PotLock/hide-unity
Ebube111 2445881
done with referral-optional
Ebube111 9bad414
Merge pull request #432 from PotLock/referral-optional
Ebube111 4054f8b
done with campaign indexer changes
Ebube111 35ee723
switched loader to spinner
Ebube111 45e0701
Merge pull request #433 from PotLock/campaign-indexer
Ebube111 f13bd2b
fixed feature campaign toggle
Ebube111 f0762f9
Merge pull request #434 from PotLock/feat-fix
Ebube111 0921d8d
integrated intear.near
Ebube111 01df50e
Merge pull request #435 from PotLock/intear
Ebube111 99cdcd6
donations config
Ebube111 71cf440
Merge pull request #437 from PotLock/campaign-filter
Ebube111 4d6cd8d
enabled more filters and added unity wallet
Ebube111 77eabf4
Merge pull request #438 from PotLock/unity-wallet
Ebube111 d255011
done with fixes
Ebube111 bf9cab6
Merge pull request #439 from PotLock/fixed-end-date
Ebube111 97dd6b2
done with changes
Ebube111 1630d85
done with changes
Ebube111 628f8dd
Resolve merge conflict in CampaignProgressBar: keep token-aware amoun…
Ebube111 a370fcc
done wtih merge conflicts
Ebube111 00d22e1
Merge pull request #440 from PotLock/potlock-bugs
Ebube111 aad3207
done with fixing active status
Ebube111 c477ab0
fixed is active status in campaign breaking change
Ebube111 bdc010f
Merge pull request #446 from PotLock/active-fix
Ebube111 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,6 +81,8 @@ | |
"linktree", | ||
"localnet", | ||
"METAPOOL", | ||
"Metaverse", | ||
"Mochi", | ||
"mpdao", | ||
"mpdaovoting", | ||
"Multicall", | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,34 @@ | ||
import useSWR from "swr"; | ||
|
||
import { IS_CLIENT } from "@/common/constants"; | ||
import type { ByAccountId, ConditionalActivation } from "@/common/types"; | ||
import type { ByAccountId, ConditionalActivation, LiveUpdateParams } from "@/common/types"; | ||
|
||
import * as contractClient from "./client"; | ||
|
||
export const useSocialProfile = ({ | ||
enabled = true, | ||
live = false, | ||
accountId, | ||
}: ByAccountId & ConditionalActivation) => | ||
useSWR(["useSocialProfile", accountId], ([_queryKeyHead, account_id]) => | ||
!enabled || !IS_CLIENT | ||
? undefined | ||
: contractClient | ||
.getSocialProfile({ accountId: account_id }) | ||
//* Handling `null` response | ||
.then((response) => response ?? undefined), | ||
}: ByAccountId & ConditionalActivation & LiveUpdateParams) => | ||
useSWR( | ||
["useSocialProfile", accountId], | ||
|
||
([_queryKeyHead, account_id]) => | ||
!enabled || !IS_CLIENT | ||
? undefined | ||
: contractClient | ||
.getSocialProfile({ accountId: account_id }) | ||
//* Handling `null` response | ||
.then((response) => response ?? undefined), | ||
|
||
{ | ||
...(live | ||
? {} | ||
: { | ||
revalidateIfStale: false, | ||
revalidateOnFocus: false, | ||
revalidateOnMount: false, | ||
revalidateOnReconnect: false, | ||
}), | ||
}, | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
TipTap in Next.js: ensure client-only usage or dynamic import to avoid SSR crashes
TipTap relies on DOM APIs. If used during SSR, it can throw (window/document undefined). Verify rich text components import TipTap only on the client (e.g., "use client" + dynamic(() => import(...), { ssr: false })).
Run this quick audit:
Expected:
🏁 Script executed:
Length of output: 2173
🏁 Script executed:
Length of output: 15849
TipTap requires client-only rendering — mark the component as client or load it with ssr:false
Found @tiptap usage that runs DOM APIs in src/common/ui/form/components/richtext.tsx but the file has no "use client" directive and isn't dynamically imported — this will break SSR.
Quick fixes (choose one):
+ "use client"; import { useCallback, useEffect, useMemo, useRef } from "react"; import Link from "@tiptap/extension-link"; import { EditorContent, useEditor } from "@tiptap/react"; import StarterKit from "@tiptap/starter-kit";
🤖 Prompt for AI Agents