Skip to content

feat: add convertible notes #485

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 49 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
20a48cc
feat: add convertible note schema
G3root Aug 12, 2024
e51b1fb
feat: add register
G3root Aug 12, 2024
f18f246
feat: add create convertible note
G3root Aug 12, 2024
09ba976
feat: add basic modal
G3root Aug 12, 2024
1c47e68
chore: fix schema
G3root Aug 12, 2024
d426ee7
chore: fix formatting
G3root Aug 12, 2024
fba122b
feat: add basic fields
G3root Aug 12, 2024
9d93350
feat: add basic form
G3root Aug 13, 2024
bf85928
feat: add hooks
G3root Aug 13, 2024
7d87a02
feat: add file uploader component
G3root Aug 13, 2024
7c00b32
feat: add document step
G3root Aug 13, 2024
280048b
feat: add api client
G3root Aug 13, 2024
860a5c7
feat: add document step
G3root Aug 13, 2024
ebd8f34
fix: api client
G3root Aug 14, 2024
243996b
feat: make header optional
G3root Aug 14, 2024
793ab83
fix: schema
G3root Aug 14, 2024
4875829
fix: auth
G3root Aug 14, 2024
c63d8f8
chore: add ky
G3root Aug 14, 2024
e6d5cd5
feat: add api client
G3root Aug 14, 2024
1b49d96
feat: add api client
G3root Aug 14, 2024
597f5ab
feat: add handler utility
G3root Aug 14, 2024
b55c22e
fix: schema
G3root Aug 14, 2024
72c0159
chore: remove modal
G3root Aug 14, 2024
ae4af43
feat: update modal
G3root Aug 14, 2024
6f75f9e
fix: formatting
G3root Aug 14, 2024
37b5198
fix: client
G3root Aug 15, 2024
72b8e8f
feat: add get many route and handler
G3root Aug 15, 2024
8654bbe
feat: add no store option
G3root Aug 15, 2024
c1b5dcb
feat: add limit
G3root Aug 15, 2024
aa5c090
chore: remove ky
G3root Aug 15, 2024
485a60c
feat: add delete step
G3root Aug 15, 2024
0806365
feat: add refresh
G3root Aug 15, 2024
df381fd
chore: add notes
G3root Aug 15, 2024
9cf947e
feat: add upload
G3root Aug 15, 2024
784fd51
feat: add session
G3root Aug 15, 2024
582821c
feat: add handler
G3root Aug 15, 2024
d413da5
Merge branch 'main' into convertible-notes
G3root Aug 15, 2024
6f7d7ea
chore: upgrade packages
G3root Aug 15, 2024
7c5f3fc
feat: close
G3root Aug 15, 2024
d513408
fix: combobox
G3root Aug 15, 2024
1096aef
feat: add dialog provider
G3root Aug 15, 2024
72efb92
fix: prop
G3root Aug 15, 2024
6fa68ee
feat: fix logic
G3root Aug 15, 2024
9ea3519
fix: type
G3root Aug 15, 2024
d1b698b
fix: logic handling
G3root Aug 15, 2024
2fd9f69
fix: type
G3root Aug 15, 2024
a03bafb
feat: revert
G3root Aug 16, 2024
88ed9cf
feat: improve
G3root Aug 16, 2024
65a3ae8
feat: add loading state
G3root Aug 16, 2024
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
23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"test": "vitest"
},
"dependencies": {
"@ark-ui/react": "^2.2.3",
"@aws-sdk/client-s3": "^3.577.0",
"@aws-sdk/s3-request-presigner": "^3.577.0",
"@blocknote/react": "^0.12.2",
Expand All @@ -41,21 +40,21 @@
"@prisma/client": "^5.13.0",
"@prisma/generator-helper": "^5.17.0",
"@radix-ui/react-accordion": "^1.2.0",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-alert-dialog": "^1.1.1",
"@radix-ui/react-avatar": "^1.1.0",
"@radix-ui/react-checkbox": "^1.1.1",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-popover": "^1.1.1",
"@radix-ui/react-radio-group": "^1.2.0",
"@radix-ui/react-scroll-area": "^1.1.0",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-switch": "^1.0.3",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toolbar": "^1.0.4",
"@radix-ui/react-select": "^2.1.1",
"@radix-ui/react-separator": "^1.1.0",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-switch": "^1.1.0",
"@radix-ui/react-tabs": "^1.1.0",
"@radix-ui/react-toolbar": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"@react-email/components": "0.0.22",
"@react-pdf/renderer": "^3.4.4",
Expand Down
1,396 changes: 196 additions & 1,200 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ const EquityPlanForm = ({
{shareClasses.length > 0 ? (
<LinearCombobox
options={shareClassOpts}
onValueChange={(option) => field.onChange(option.value)}
onChange={field.onChange}
defaultValue={field.value}
>
<button
type="button"
Expand Down Expand Up @@ -294,7 +295,8 @@ const EquityPlanForm = ({
<div>
<LinearCombobox
options={defaultCancellatonBehaviorOpts}
onValueChange={(option) => field.onChange(option.value)}
onChange={field.onChange}
defaultValue={field.value}
/>
</div>
<FormMessage className="text-xs font-light" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Button } from "@/components/ui/button";
import { Dialog, DialogTrigger } from "@/components/ui/dialog";
import { AddConvertibleNotesModal } from "./add-convertible-notes-modal";

export function AddConvertibleNotesButton() {
return (
<Dialog>
<DialogTrigger asChild>
<Button>Add Convertible Note</Button>
</DialogTrigger>
<AddConvertibleNotesModal title="Create a new convertible note" />
</Dialog>
);
}
Loading