Skip to content

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
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
96b10ee
Don't revalidate list registrations for non-existent accounts
akaia-shadowfox Jun 20, 2025
5c14397
Merge branch 'main' of github.com:PotLock/potlock-nextjs-app into sta…
akaia-shadowfox Jun 20, 2025
ccae40a
Enable basic profile configuration functionality (#418)
akaia-shadowfox Jun 25, 2025
a5c5671
Allow donations to unregistered accounts (#419)
akaia-shadowfox Jun 26, 2025
1730155
chore: Remove console.log
akaia-shadowfox Jun 26, 2025
af8bdef
fee-avoidance
Ebube111 Jun 28, 2025
2bb724d
Merge pull request #422 from PotLock/fee-avoidance
Ebube111 Jun 28, 2025
3e4fe23
v2.1.1: Add version tracking
akaia-shadowfox Jun 30, 2025
501ffb1
fix: Prevent heading lines from merging
akaia-shadowfox Jun 30, 2025
0906854
FIx initial profile image retrieval
akaia-shadowfox Jun 30, 2025
79629f7
rich text for campaign description done
Ebube111 Jul 1, 2025
54a2b0f
Merge pull request #423 from PotLock/rich-text
Ebube111 Jul 1, 2025
06517a7
Merge branch 'staging' of github.com:PotLock/potlock-nextjs-app into …
akaia-shadowfox Jul 1, 2025
0df6a74
Refactor registration / profile update flows (#327)
Jikugodwill Jul 2, 2025
f462c0f
Merge branch 'main' of github.com:PotLock/potlock-nextjs-app into sta…
akaia-shadowfox Jul 2, 2025
73d87a4
Update description length error message
akaia-shadowfox Jul 2, 2025
5aa6c42
Address Webpack warning
akaia-shadowfox Jul 7, 2025
21e8552
done with the profile changes
Ebube111 Jul 15, 2025
e65fa06
worked on review
Ebube111 Jul 16, 2025
68b5c29
Merge pull request #427 from PotLock/profile-update
Ebube111 Jul 16, 2025
e8550a8
done with logic
Ebube111 Jul 16, 2025
88bd068
done with changes and bug fixes
Ebube111 Jul 16, 2025
8f9c4d8
fixed conditional
Ebube111 Jul 16, 2025
6c73e6f
Merge pull request #428 from PotLock/campaign-profile
Ebube111 Jul 16, 2025
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
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@potlock/next",
"name": "@potlock/frontend",
"description": "Decentralized funding stack for public goods",
"version": "2.1.0",
"version": "2.1.1",
"packageManager": "yarn@1.22.22",
"private": true,
"type": "module",
Expand Down Expand Up @@ -75,6 +75,10 @@
"@rematch/persist": "^2.1.2",
"@tanstack/react-table": "^8.20.5",
"@tanstack/react-virtual": "^3.11.0",
"@tiptap/core": "^2.23.0",
"@tiptap/extension-link": "^2.23.0",
"@tiptap/react": "^2.23.0",
"@tiptap/starter-kit": "^2.23.0",
"@uidotdev/usehooks": "^2.4.1",
"@unocss/reset": "^0.60.4",
"@web3modal/wagmi": "^5.1.10",
Expand Down Expand Up @@ -161,4 +165,4 @@
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.6.0"
}
}
}
15 changes: 15 additions & 0 deletions src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import type { SWRConfiguration } from "swr";

import { NETWORK, PLATFORM_NAME } from "./_config";
import { ChronologicalSortOrderVariant, type TokenId } from "./types";
import workspacePackageManifest from "../../package.json";

export const FRAMEWORK_VERSION = workspacePackageManifest.version;

export { PLATFORM_NAME };

Expand All @@ -28,6 +31,7 @@ export const APP_BOS_COUNTERPART_URL = "https://bos.potlock.org";
export const APP_METADATA: Metadata & {
title: string;
description: NonNullable<Metadata["description"]>;
other: { version: string };
manifest: NonNullable<Metadata["manifest"]>;

openGraph: {
Expand All @@ -43,6 +47,7 @@ export const APP_METADATA: Metadata & {
} = {
title: PLATFORM_NAME,
description: "Bringing public goods funding to the table, built on NEAR",
other: { version: FRAMEWORK_VERSION },
manifest: "/manifest.json",

icons: {
Expand Down Expand Up @@ -197,3 +202,13 @@ export const SUPPORTED_FTS: Record<
.toFixed(decimals || 2),
},
};

console.info(`
___ ___ _____ _ ___ ___ _ __
| _ \\/ _ \\_ _| | / _ \\ / __| |/ /
| _/ (_) || | | |_| (_) | (__| ' <
|_| \\___/ |_| |____\\___/ \\___|_|\\_\\

version: ${FRAMEWORK_VERSION}

`);
18 changes: 18 additions & 0 deletions src/common/lib/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@ export const truncate = (value: string, maxLength: number) => {
}
};

/**
* Truncates HTML content by first stripping HTML tags, then truncating the plain text
* @param htmlContent - HTML string to truncate
* @param maxLength - Maximum length of the plain text
* @returns Truncated plain text with ellipsis
*/
export const truncateHtml = (htmlContent: string, maxLength: number): string => {
if (!htmlContent) return "";

// Create a temporary div to parse HTML and get text content
const tempDiv = document.createElement("div");
tempDiv.innerHTML = htmlContent;
const textContent = tempDiv.textContent || "";

// Use the regular truncate function on the plain text
return truncate(textContent, maxLength);
};

export const isValidHttpUrl = (value: string) => {
try {
return Boolean(new URL(value));
Expand Down
1 change: 1 addition & 0 deletions src/common/ui/form/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export * from "./checkbox";
export * from "./select";
export * from "./text";
export * from "./textarea";
export * from "./richtext";
Loading
Loading