-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
163 additions
and
1,039 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
Warnings: | ||
- Made the column `description` on table `evaluation` required. This step will fail if there are existing NULL values in that column. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "evaluation" ALTER COLUMN "description" SET NOT NULL; | ||
|
||
-- AlterTable | ||
ALTER TABLE "invitation" ALTER COLUMN "remaining_uses" SET DEFAULT 100; |
2 changes: 2 additions & 0 deletions
2
prisma/migrations/20230830233721_add_is_upload_column/migration.sql
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,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "evaluation" ADD COLUMN "is_upload" BOOLEAN; |
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,15 +1,29 @@ | ||
import { ErrorBoundary } from "react-error-boundary"; | ||
|
||
type LayoutProps = { | ||
children?: React.ReactNode; | ||
}; | ||
|
||
function fallbackRender({ error, resetErrorBoundary }: { error: Error; resetErrorBoundary: () => void }) { | ||
// Call resetErrorBoundary() to reset the error boundary and retry the render. | ||
console.log("caught error", error); | ||
|
||
return ( | ||
<div role="alert"> | ||
<p>Something went wrong:</p> | ||
<pre style={{ color: "red" }}>{error.message}</pre> | ||
</div> | ||
); | ||
} | ||
|
||
export default function Layout({ children }: LayoutProps) { | ||
return ( | ||
<div | ||
className="w-full min-h-screen h-full bg-[#fafafa] text-offblack flex flex-col relative" | ||
onDragOver={(evt) => evt.preventDefault()} | ||
onDrop={(evt) => evt.preventDefault()} | ||
> | ||
{children} | ||
<ErrorBoundary fallbackRender={fallbackRender}>{children}</ErrorBoundary> | ||
</div> | ||
); | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
supabase/migrations/20230303165836_create_evaluation_table.sql
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.