-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from polywrap/dev
Release/dev
- Loading branch information
Showing
44 changed files
with
2,368 additions
and
1,586 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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,5 @@ | ||
import FundingReview from "@/components/FundingReview"; | ||
import { FundingEntry } from "@/components/FundingTable"; | ||
import { createSupabaseServerClientWithSession } from "@/utils/supabase-server"; | ||
|
||
export default async function Page({ params }: { params: { id: string } }) { | ||
const supabase = await createSupabaseServerClientWithSession() | ||
|
||
const run = await supabase | ||
.from("funding_entries_view") | ||
.select("*") | ||
.eq("run_id", params.id); | ||
|
||
if (run.error || !run.data) { | ||
console.error(run.error); | ||
throw Error(`Run with ID ${params.id} not found.`); | ||
} | ||
|
||
return <FundingReview entries={run.data as FundingEntry[]} />; | ||
return <FundingReview id={params.id} />; | ||
} |
This file contains 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
"use client"; | ||
|
||
import { X } from "@phosphor-icons/react/dist/ssr"; | ||
import { useState } from "react"; | ||
|
||
const Disclaimer = () => { | ||
const [showDisclaimer, setShowDisclaimer] = useState<boolean>(true); | ||
return showDisclaimer ? ( | ||
<div className='px-6'> | ||
<div className='fixed bottom-16 left-1/2 transform -translate-x-1/2 max-w-screen-sm w-full z-10'> | ||
<X | ||
onClick={() => setShowDisclaimer(false)} | ||
className='absolute top-4 right-4 text-indigo-800 hover:text-indigo-500 cursor-pointer' | ||
size={20} | ||
weight='bold' | ||
/> | ||
<div className='p-6 bg-indigo-25 rounded-2xl border-2 border-indigo-200 space-y-1 shadow-md shadow-primary-shadow/20'> | ||
<div className='font-bold text-sm'> | ||
This AI agent is experimental: | ||
</div> | ||
<div className='text-[10px]'> | ||
The agent is doing its best to evaluate project relevance, impact, | ||
and funding needs based on publicly available data from Gitcoin, but | ||
we cannot guarantee that it will be completely accurate. The agent | ||
will also provide the recipient addresses of each project based on | ||
data in their Gitcoin applications, but we cannot guarantee that | ||
each project is still in control of its address, so please do not | ||
send large amounts. | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
) : null; | ||
}; | ||
|
||
export default Disclaimer; |
Oops, something went wrong.