Skip to content

Commit

Permalink
Explorer: [2670] Application page indexer data (#2712)
Browse files Browse the repository at this point in the history
* Application page redesign

* Update RoundEndedBanner

* Clean up

* Remove unused file

* Remove console.log

* Remove unused code

* Fix tests

* Fix tests

* Add loading skeleton for about text

* Add wrapping div to reduce diff in component

* Refactor hooks and ProjectStats into seperate files

* Revert "Refactor hooks and ProjectStats into seperate files"

This reverts commit ce73c96.

* Fix icon color

* Create useApplication hook to fetch data from the indexer

* fix: use real indexer v2 endpointˆ

* fix: finish application page indexer v2 data

* feat: don't show v2 projects on v1, disallow adding v2 projects to cart. fix adding v1 projects to cart

* feat: don't show v2 projects on v1, disallow adding v2 projects to cart. fix adding v1 projects to cart

* feat: type-safe non-optional useParams

* wip: tests

* fix: tests for application pageˆ

* feat: simplify tests for application page

* fix: fix cart tests

* fix: types

* Update packages/grant-explorer/src/features/round/__tests__/ViewProjectDetails.test.tsx

Co-authored-by: Mohamed Boudra <[email protected]>

---------

Co-authored-by: Atris <[email protected]>
Co-authored-by: Mohamed Boudra <[email protected]>
  • Loading branch information
3 people authored Feb 12, 2024
1 parent f245b6c commit 371db1c
Show file tree
Hide file tree
Showing 6 changed files with 769 additions and 199 deletions.
10 changes: 8 additions & 2 deletions packages/common/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ import { Network, Web3Provider } from "@ethersproject/providers";
import { Signer } from "@ethersproject/abstract-signer";
import { graphql_fetch } from "./graphql_fetch";
import { ChainId } from "./chain-ids";
import { useParams as useRouterParams } from "react-router";

export * from "./icons";
export * from "./markdown";

export { ChainId };

export function useParams<T extends Record<string, string> = never>() {
return useRouterParams<T>() as T;
}

export enum PassportState {
NOT_CONNECTED,
INVALID_PASSPORT,
Expand Down Expand Up @@ -312,7 +318,7 @@ export { AlloV2 } from "./allo/backends/allo-v2";
export {
createWaitForIndexerSyncTo,
getCurrentSubgraphBlockNumber,
waitForSubgraphSyncTo
waitForSubgraphSyncTo,
} from "./allo/indexer";
export type { WaitUntilIndexerSynced } from "./allo/indexer";
export { createPinataIpfsUploader } from "./allo/ipfs";
Expand All @@ -323,7 +329,7 @@ export {
createViemTransactionSender,
decodeEventFromReceipt,
sendRawTransaction,
sendTransaction
sendTransaction,
} from "./allo/transaction-sender";

export type AnyJson =
Expand Down
Loading

0 comments on commit 371db1c

Please sign in to comment.