Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1489 commits
Select commit Hold shift + click to select a range
3d54751
feat: add policy
G3root Jul 12, 2024
34dc0fa
feat: use rbac
G3root Jul 12, 2024
1a85522
feat: add documents subject
G3root Jul 12, 2024
84f9999
feat: add rbac for document procedure
G3root Jul 12, 2024
fb15bce
chore: format
G3root Jul 12, 2024
4c9dc2b
feat: add rbac for documents
G3root Jul 12, 2024
ee23ed5
feat: add apiKey in AuditSchema action and target
VK-RED Jul 13, 2024
d82ed14
feat: add Audit functionality in ApiKeyRouter
VK-RED Jul 13, 2024
02423c7
feat: add bucket in AuditSchema action and target
VK-RED Jul 13, 2024
669bc7e
feat: add Audit functionality in bucket-router
VK-RED Jul 13, 2024
0080c0d
feat: add stripeSession in AuditSchema action and target
VK-RED Jul 13, 2024
ddcf6ed
feat: add Stripe Billing Portal Session in AuditSchema target and action
VK-RED Jul 13, 2024
1c9ca34
feat: add Audit functionality in billing-router
VK-RED Jul 13, 2024
0ef4d4a
feat: add company actions in AuditSchema
VK-RED Jul 14, 2024
897d5c8
feat: add Audit functionality in company router
VK-RED Jul 14, 2024
2f2da97
feat: add Dataroom action in AuditSchema
VK-RED Jul 14, 2024
6fa0be1
feat: add audit functionality in data-room-router
VK-RED Jul 14, 2024
ffb25bb
chore(deps): bump @radix-ui/react-checkbox from 1.0.4 to 1.1.1
dependabot[bot] Jul 15, 2024
aeca234
chore(deps): bump @hookform/resolvers from 3.6.0 to 3.9.0
dependabot[bot] Jul 15, 2024
72e6a24
chore(deps): bump @tremor/react from 3.17.2 to 3.17.4
dependabot[bot] Jul 15, 2024
bd13b01
chore: remove dataroom-document and dataroom-recipient audits
VK-RED Jul 15, 2024
5879375
chore: drop dataRoom-document and dataroom-recipient actions
VK-RED Jul 15, 2024
d878aca
Merge pull request #445 from captableinc/dependabot/npm_and_yarn/trem…
dahal Jul 15, 2024
4d9625b
Merge pull request #444 from captableinc/dependabot/npm_and_yarn/hook…
dahal Jul 15, 2024
2846d27
Merge branch 'main' into dependabot/npm_and_yarn/radix-ui/react-check…
dahal Jul 15, 2024
d1231f1
Merge pull request #442 from captableinc/dependabot/npm_and_yarn/radi…
dahal Jul 15, 2024
d3344f7
chore(deps): bump react-hook-form from 7.51.5 to 7.52.1
dependabot[bot] Jul 15, 2024
981b777
Merge pull request #443 from captableinc/dependabot/npm_and_yarn/reac…
dahal Jul 15, 2024
d87a4c1
feat: add Role action in AuditSchema
VK-RED Jul 15, 2024
37e7acb
feat: add Audit functionality in rbac-router
VK-RED Jul 15, 2024
c005623
feat: add rbac for esign
G3root Jul 15, 2024
cc2fe78
feat: add Audit in addStakeholders procedure
VK-RED Jul 15, 2024
d527b75
feat: add template and templateField action in AuditSchema
VK-RED Jul 15, 2024
02287bb
feat: add Audit functionality in template-field-router
VK-RED Jul 15, 2024
1ef4178
feat: add Audit functionality in createTemplate Procedure in template…
VK-RED Jul 15, 2024
2e9ed6d
feat: add update actions in AuditSchema
VK-RED Jul 16, 2024
f5512f4
feat: add Audit functionality in update router
VK-RED Jul 16, 2024
1dd38cf
chore: reuse StakeholderMutationSchema for InvestorSchema
VK-RED Jul 16, 2024
15c210d
chore: drop group field
VK-RED Jul 16, 2024
6f0382e
chore: add StakeholderTypeEnum from prisma/enum and remove hardcoded …
VK-RED Jul 16, 2024
95490e7
feat: add camelCase function
VK-RED Jul 16, 2024
939e3ad
chore: use enums from prisma/enum
VK-RED Jul 16, 2024
b50dc23
feat: add camelCase function to camelcase the names
VK-RED Jul 16, 2024
c32214b
Merge branch 'main' into feat/investor-modal
VK-RED Jul 16, 2024
6586d56
feat: resolve merge conflicts
VK-RED Jul 16, 2024
b383012
feat: add share endpoints in postman/collections
VK-RED Jul 16, 2024
0a766ca
feat: add user actions in AuditSchema
VK-RED Jul 17, 2024
b14a3c9
feat: add Audit functionality in auth router
VK-RED Jul 17, 2024
b47330f
feat: add passkey action in AuditSchema
VK-RED Jul 17, 2024
714a145
feat: create PasskeyAudit type
VK-RED Jul 17, 2024
d020327
feat: add Audit functionality in passkey router
VK-RED Jul 17, 2024
8058527
feat: add Audit in delete-apiKey procedure
VK-RED Jul 17, 2024
1f7cff0
fix: Audit action in signup procedure
VK-RED Jul 17, 2024
4c5ac2e
fix: Audit action in verify-email procedure
VK-RED Jul 17, 2024
a1aee6a
feat: update user.password action in Audit Schema
VK-RED Jul 17, 2024
11f1a7c
feat: add Audit in new-password procedure
VK-RED Jul 17, 2024
54da3e5
chore: remove query to find company
VK-RED Jul 17, 2024
60ed72d
fix: stripe actions in AuditSchema and Audits
VK-RED Jul 17, 2024
8924d36
fix: company.lastAccessed action
VK-RED Jul 17, 2024
4bb24ef
fix: minor changes
VK-RED Jul 17, 2024
78d02e1
fix: minor changes
VK-RED Jul 17, 2024
bc0cc1e
Merge branch 'main' into feat/add-Audit.create
VK-RED Jul 17, 2024
4c9a714
fix: createBucketHandlerOptions Type
VK-RED Jul 17, 2024
8616b4d
fix: pass args to createBucketHandler and createTemplateHandler
VK-RED Jul 17, 2024
d27ead5
feat: add unauthorized state
G3root Jul 17, 2024
9bc4c1c
feat: add unauthorized state
G3root Jul 17, 2024
122214d
feat: add unauthorized state
G3root Jul 17, 2024
d785e3c
feat: add unauthorized state
G3root Jul 17, 2024
9d325da
Merge branch 'main' into rbac-apikeys
dahal Jul 17, 2024
33460c1
Merge pull request #435 from captableinc/rbac-apikeys
dahal Jul 17, 2024
c7260b6
Merge branch 'main' into rbac-stakeholder
G3root Jul 17, 2024
3d3dae7
Merge branch 'main' into rbac-company
dahal Jul 17, 2024
fa30499
Merge branch 'main' into rbac-documents
G3root Jul 17, 2024
5f1bdff
Merge branch 'main' into rbac-esign
dahal Jul 17, 2024
db246cb
Merge branch 'main' into feat/investor-modal
dahal Jul 17, 2024
2159078
feat: some minor changes
dahal Jul 17, 2024
b46cc48
Merge pull request #436 from VK-RED/feat/investor-modal
dahal Jul 17, 2024
a3f504c
Merge pull request #437 from captableinc/rbac-company
dahal Jul 17, 2024
4526f35
Merge branch 'main' into rbac-esign
dahal Jul 17, 2024
ba741e4
Merge branch 'main' into rbac-stakeholder
dahal Jul 17, 2024
70b2ce8
Merge pull request #438 from captableinc/rbac-stakeholder
dahal Jul 17, 2024
023f3ff
Merge branch 'main' into rbac-documents
dahal Jul 17, 2024
2dc44ba
Merge pull request #439 from captableinc/rbac-documents
dahal Jul 17, 2024
902b150
Merge branch 'main' into rbac-esign
dahal Jul 17, 2024
3dd2491
Merge pull request #447 from captableinc/rbac-esign
dahal Jul 17, 2024
37f2bcc
chore: fix build error
G3root Jul 17, 2024
9d9cf82
Merge pull request #448 from captableinc/fix-build-error
dahal Jul 17, 2024
bb02900
chore: remove stripe from Audit
VK-RED Jul 17, 2024
3a9e3b0
add: edit template Audit action
VK-RED Jul 17, 2024
f7095b1
feat: edit passkey Audit action
VK-RED Jul 17, 2024
a131e19
chore: remove company-lastAccessed Audit action
VK-RED Jul 17, 2024
7a3b9d4
feat: edit update Audit action
VK-RED Jul 17, 2024
c178efe
feat: export all stakeholder routes from index
Raju-kadel-27 Jun 29, 2024
97d87fd
fix: conflict in index routes
dahal Jun 30, 2024
d7d64d7
fix: take vs limit
dahal Jun 30, 2024
c7842b1
feat: openapi update route for stakeholder
Raju-kadel-27 Jul 1, 2024
74a55c2
feat: find many proxy for reusable cursor based pagination
Raju-kadel-27 Jul 1, 2024
23b65fb
feat: prisma-proxy for reusable cursor based pagination
Raju-kadel-27 Jul 1, 2024
0d3b27d
feat: types for reusable cursor based pagination
Raju-kadel-27 Jul 1, 2024
d862118
feat: openapi getMany route for stakeholder
Raju-kadel-27 Jul 1, 2024
ffcbaa5
feat: openapi create route for stakeholder
Raju-kadel-27 Jul 1, 2024
a945ed3
feat: update stakeholder reusable service
Raju-kadel-27 Jul 2, 2024
dbae275
feat: add stakeholders reusable service
Raju-kadel-27 Jul 2, 2024
95afb26
feat: delete stakeholders reusable service
Raju-kadel-27 Jul 2, 2024
ff5e83d
feat: get stakeholder by Id reusable service
Raju-kadel-27 Jul 2, 2024
c0a7a84
feat: get many stakeholders reusable service
Raju-kadel-27 Jul 2, 2024
15f8c55
feat: openapi route for deleting stakeholder
Raju-kadel-27 Jul 2, 2024
1f48548
feat: delete stakeholder trpc procedure
Raju-kadel-27 Jul 2, 2024
5ec15eb
fix: getting query parameters
Raju-kadel-27 Jul 3, 2024
f0e6522
feat: utility functions for error free parsing
Raju-kadel-27 Jul 6, 2024
829093a
chore: minor updates in stakeholder service
Raju-kadel-27 Jul 6, 2024
07511bd
feat: minor updates in stakeholder routes
Raju-kadel-27 Jul 6, 2024
0961e27
feat: minor updates in pagination proxy stuffs
Raju-kadel-27 Jul 6, 2024
ac5cce2
fix: conflict in stakeholder procedures
Raju-kadel-27 Jul 6, 2024
e6997eb
feat: pre-process to parse string to int
Raju-kadel-27 Jul 6, 2024
58fdc78
chore: remove lint-ignore line
Raju-kadel-27 Jul 6, 2024
558b2a0
chore: cleanups
Raju-kadel-27 Jul 6, 2024
e9b27ae
fix: conflict
Raju-kadel-27 Jul 7, 2024
d68c7ba
chore: more cleanups
Raju-kadel-27 Jul 7, 2024
3d78b84
chore: make total union type as number or undefined in pagination res…
Raju-kadel-27 Jul 10, 2024
1dcdade
feat: provide total count only for first request
Raju-kadel-27 Jul 10, 2024
47d52e5
fix: cursor type in paginated interface and response schema
Raju-kadel-27 Jul 10, 2024
bc4906f
feat: minor refactoring
Raju-kadel-27 Jul 11, 2024
f10288b
fix: conflict
Raju-kadel-27 Jul 11, 2024
ba966c8
chore: improvements
Raju-kadel-27 Jul 12, 2024
693f0fa
feat: export stakeholder endpoint to postman collection
Raju-kadel-27 Jul 16, 2024
268a8aa
feat: minor cleanups
Raju-kadel-27 Jul 16, 2024
8a5a1ca
chore: remove console logs
Raju-kadel-27 Jul 16, 2024
69dad40
chore: import db instance directly in service
Raju-kadel-27 Jul 16, 2024
24d3e14
fix: remove content-type for GET and DELETE routes
Raju-kadel-27 Jul 16, 2024
3081b45
feat: update error message
dahal Jul 17, 2024
2a512dd
chore: replace limit with take
dahal Jul 17, 2024
5c336ab
fix: errors with prisma proxy
dahal Jul 17, 2024
8c5c27b
feat: remove payload on delete request
dahal Jul 17, 2024
c35f035
feat: update collection
dahal Jul 17, 2024
c50d374
fix: add partial and add zod refine
Raju-kadel-27 Jul 17, 2024
014d72a
chore: some types updation
Raju-kadel-27 Jul 17, 2024
401ef0c
fix: minor issues
Raju-kadel-27 Jul 17, 2024
cfacc43
fix: some merge errors
Raju-kadel-27 Jul 17, 2024
54e377e
fix: merge conflicts
VK-RED Jul 17, 2024
9b34b51
feat: add additional status in TemplateStatus
VK-RED Jul 18, 2024
c67f4f9
feat: add templateStatus migration
VK-RED Jul 18, 2024
9c61770
feat: add BadgeVariant type and function
VK-RED Jul 18, 2024
30f96cc
feat: add error state to EmptyState component
dahal Jul 19, 2024
f0223e0
feat: model for bank account
dahal Jul 19, 2024
a16b99e
feat: getting started with bank account settings
dahal Jul 19, 2024
06bffea
chore: fix build error
dahal Jul 19, 2024
ceb538d
feat: fix build error
dahal Jul 19, 2024
05d95e4
Merge pull request #451 from captableinc/feat/bank-account-init
dahal Jul 19, 2024
15af28c
feat: update template Status to SENT on esignEmails
VK-RED Jul 19, 2024
c5b543d
feat: migration to seperate vesting schedule to seperate columns
dahal Jul 19, 2024
d119eb3
feat: update template status on signing a template
VK-RED Jul 19, 2024
09bcf46
Merge pull request #453 from captableinc/feat/vesting-schedule
dahal Jul 19, 2024
12b9d6a
feat: add ZodSchema for cancelTemplate
VK-RED Jul 19, 2024
5351ecc
feat: create cancelTemplate procedure
VK-RED Jul 19, 2024
f7f02e8
feat: add cancelTemplate procedure in router
VK-RED Jul 19, 2024
6d4837c
fix: cancel-template response
VK-RED Jul 19, 2024
9671cea
feat: create TemplateCancelButton
VK-RED Jul 19, 2024
c2d1fd6
feat: add TemplateCancelButton in ESignTable
VK-RED Jul 19, 2024
e1c5323
Merge branch 'main' into feat/add-Audit.create
dahal Jul 19, 2024
14c133a
feat: add error prop to EmptyState
VK-RED Jul 19, 2024
b9df609
feat: send templateStatus with the response
VK-RED Jul 19, 2024
e50a81f
feat: add cancelled Status check in esign page
VK-RED Jul 19, 2024
6f93ea1
fix: merge conflicts
VK-RED Jul 19, 2024
dcb5836
Merge pull request #440 from VK-RED/feat/add-Audit.create
dahal Jul 20, 2024
ccb1a16
Merge branch 'main' into feat/openapi-for-stakeholders
dahal Jul 20, 2024
3740bb5
feat: update openapi schema and version
dahal Jul 20, 2024
4f74d33
feat: omit id, createdAt and updatedAt when creating stakeholders
dahal Jul 20, 2024
dad3353
feat: cleanup stakeholder create API endpoint
dahal Jul 20, 2024
1ce382d
fix: update stakeholder endpoint
dahal Jul 20, 2024
e7bd539
chore: update /companies/:id to /companies/{id}
dahal Jul 20, 2024
a2d2db4
fix: update stakeholder endpoint
dahal Jul 20, 2024
964d0d2
Merge pull request #407 from captableinc/feat/openapi-for-stakeholders
dahal Jul 20, 2024
d2852fe
feat: remove postman/collection
dahal Jul 20, 2024
d5c5c91
feat: update api pagination stuff
dahal Jul 20, 2024
958de7f
feat: remove postman/collection
dahal Jul 20, 2024
040d5a6
Merge branch 'main' into feat/openapi-for-shares
dahal Jul 20, 2024
a7b9440
fix: issues during issueing a share, and some openapi specs
dahal Jul 20, 2024
be43dfb
feat: update share POST response with the data
dahal Jul 20, 2024
a686b43
fix: some ts errors
dahal Jul 20, 2024
b187ee5
fix: build errors
dahal Jul 20, 2024
83f4ab1
[vesting schedule] separated vestingSchedule
Alfredoeb9 Jul 21, 2024
7cd998e
fix: pagination issues
dahal Jul 21, 2024
786ac00
chore: update file names
dahal Jul 21, 2024
dbbd029
fix: issues with updating existing share & stakeholder
dahal Jul 21, 2024
e0662bf
fix: delete share endpoint
dahal Jul 21, 2024
c81f96f
chore: some type safety issues
dahal Jul 21, 2024
7cac612
fix: issues with share create endpoints
dahal Jul 21, 2024
6e0f367
fix: build error
dahal Jul 21, 2024
632e39c
Merge pull request #431 from VK-RED/feat/openapi-for-shares
dahal Jul 21, 2024
3449f39
Merge branch 'main' into separate-vesting-schedule
dahal Jul 21, 2024
402b9b3
fix: deploying with vm-cpu-kind=performance
dahal Jul 21, 2024
20a50eb
[build] fixed build errors
Alfredoeb9 Jul 21, 2024
980b8db
Merge branch 'separate-vesting-schedule' of https://github.com/Alfred…
Alfredoeb9 Jul 21, 2024
a35c141
[vestingSchedule] fixed errors on server
Alfredoeb9 Jul 21, 2024
785d0f3
[type] fixed default value on cliffYears and vestingYears
Alfredoeb9 Jul 21, 2024
f5be4bf
chore(deps): bump @radix-ui/react-popover from 1.0.7 to 1.1.1
dependabot[bot] Jul 22, 2024
c71b9c6
chore(deps): bump hono from 4.4.8 to 4.5.1
dependabot[bot] Jul 22, 2024
3ecda3b
chore(deps): bump @sentry/nextjs from 8.9.2 to 8.19.0
dependabot[bot] Jul 22, 2024
0cef709
chore(deps): bump pino from 9.1.0 to 9.3.1
dependabot[bot] Jul 22, 2024
eb966ea
Merge pull request #459 from captableinc/dependabot/npm_and_yarn/radi…
dahal Jul 22, 2024
c3a28a1
Merge branch 'main' into dependabot/npm_and_yarn/hono-4.5.1
dahal Jul 22, 2024
70f7693
Merge branch 'main' into dependabot/npm_and_yarn/sentry/nextjs-8.19.0
dahal Jul 22, 2024
106a18a
Merge branch 'main' into dependabot/npm_and_yarn/pino-9.3.1
dahal Jul 22, 2024
c2f2385
chore(deps-dev): bump @types/react from 18.3.2 to 18.3.3
dependabot[bot] Jul 22, 2024
c310d0a
Merge pull request #460 from captableinc/dependabot/npm_and_yarn/hono…
dahal Jul 22, 2024
72ae4e7
Merge pull request #461 from captableinc/dependabot/npm_and_yarn/sent…
dahal Jul 22, 2024
30da6f0
Merge pull request #462 from captableinc/dependabot/npm_and_yarn/pino…
dahal Jul 22, 2024
6395e96
Merge pull request #463 from captableinc/dependabot/npm_and_yarn/type…
dahal Jul 22, 2024
218abcb
[vestingSchedule] removed vestingSchedule import and fixed type errors
Alfredoeb9 Jul 22, 2024
ff2041c
[revert] revert un-needed change
Alfredoeb9 Jul 23, 2024
ea618a2
[prisma] created migration as vestingSchedule was separated
Alfredoeb9 Jul 23, 2024
a799f65
chore: some minor cleanups
dahal Jul 25, 2024
925fc2c
Merge branch 'main' into separate-vesting-schedule
dahal Jul 25, 2024
3d251f1
Merge pull request #458 from Alfredoeb9/separate-vesting-schedule
dahal Jul 25, 2024
22dfe30
Merge pull request #450 from VK-RED/feat/eSign-template-status
dahal Jul 25, 2024
6fe9893
chore(deps-dev): bump husky from 9.0.11 to 9.1.3
dependabot[bot] Jul 29, 2024
6e2b7b2
chore(deps): bump @stripe/stripe-js from 3.5.0 to 4.1.0
dependabot[bot] Jul 29, 2024
0d7d650
chore(deps): bump sonner from 1.4.41 to 1.5.0
dependabot[bot] Jul 29, 2024
4667778
chore(deps-dev): bump postcss from 8.4.38 to 8.4.40
dependabot[bot] Jul 29, 2024
2df6298
Merge pull request #466 from captableinc/dependabot/npm_and_yarn/husk…
dahal Jul 30, 2024
9cba2dc
Merge branch 'main' into dependabot/npm_and_yarn/stripe/stripe-js-4.1.0
dahal Jul 30, 2024
832c0b2
Merge pull request #467 from captableinc/dependabot/npm_and_yarn/stri…
dahal Jul 30, 2024
d5c3eee
Merge branch 'main' into dependabot/npm_and_yarn/sonner-1.5.0
dahal Jul 30, 2024
7d9047d
Merge pull request #468 from captableinc/dependabot/npm_and_yarn/sonn…
dahal Jul 30, 2024
9e72293
Merge branch 'main' into dependabot/npm_and_yarn/postcss-8.4.40
dahal Jul 30, 2024
e8030e6
Merge pull request #469 from captableinc/dependabot/npm_and_yarn/post…
dahal Jul 30, 2024
58124b4
chore(deps): bump @prisma/generator-helper from 5.14.0 to 5.17.0 (#470)
dependabot[bot] Jul 30, 2024
d383856
feat: add auth middleware (#449)
G3root Aug 7, 2024
9d460ae
chore: remove redundant package
dahal Aug 7, 2024
2c45b1b
chore: Improve startup performance (#476)
G3root Aug 7, 2024
48db3b9
chore: dependencies in bulk (#486)
dahal Aug 14, 2024
1af9bae
chore(deps): bump hono from 4.5.3 to 4.5.8 (#496)
dependabot[bot] Aug 29, 2024
29cb018
chore(deps): bump next-nprogress-bar from 2.3.12 to 2.3.13 (#490)
dependabot[bot] Aug 29, 2024
a19f78c
chore(deps): bump @radix-ui/react-avatar from 1.0.4 to 1.1.0 (#489)
dependabot[bot] Aug 29, 2024
4053302
chore(deps): bump ts-pattern from 5.1.1 to 5.3.1 (#488)
dependabot[bot] Aug 29, 2024
e20809e
feat: improve audit log template (#495)
G3root Aug 29, 2024
e5204b5
refactor: pg-boss jobs and esign (#493)
G3root Sep 19, 2024
40d4c5e
feat: add Hanzo IAM OIDC SSO provider
hanzo-dev Mar 1, 2026
1e3463f
Upgrade to Next.js 15, TypeScript 5.9, Prisma 5.22
hanzo-dev Mar 2, 2026
2da6066
Add CI/CD workflow for GHCR build and K8s deployment
hanzo-dev Mar 2, 2026
f79e51b
fix: resolve Next.js 15 build compatibility issues
hanzo-dev Mar 2, 2026
e9391f5
fix: use client-side tRPC for InvestorDetails in modal context
hanzo-dev Mar 2, 2026
5735b1c
fix: skip TypeScript build errors for Next.js 15 page props migration
hanzo-dev Mar 2, 2026
d7b5bc4
chore: rebrand from Captable Inc to Hanzo Captable
hanzo-dev Mar 1, 2026
993bd83
feat: Hanzo H logo + IAM-only auth
hanzo-dev Mar 3, 2026
5cec25a
feat: add org_id claim from IAM to JWT/session, document IAM env vars
hanzo-dev Mar 10, 2026
8220c9f
chore: rename HANZO_IAM_ env vars to IAM_ prefix
hanzo-dev Mar 10, 2026
45551c9
ci: migrate deploy to HANZO_API_KEY + KMS via reusable workflow
hanzo-dev Mar 11, 2026
30f7fb6
ci: migrate to canonical hanzoai/.github/docker-build.yml reusable wo…
hanzo-dev Apr 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
51 changes: 51 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
bun.lockb
yarn.lock
package-lock.json

# testing
/coverage

# database
/prisma/db.sqlite
/prisma/db.sqlite-journal

# next.js
/.next/
/out/
next-env.d.ts

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables
.env
.env*.local
/prisma/enums.ts
/prisma/generated/*

# vercel
.vercel

# typescript
*.tsbuildinfo

#local
/local
.vscode/
45 changes: 37 additions & 8 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,46 @@
# When adding additional environment variables, the schema in "/src/env.js"
# should be updated accordingly.

# Next.js environment variables
NODE_ENV="development"
NEXT_PUBLIC_NODE_ENV="development"
NEXT_PUBLIC_BASE_URL="http://localhost:3000"

# Disable telemetry at run time
NEXT_TELEMETRY_DISABLED=1 # Injected in Dockerfile

# Prisma
# https://www.prisma.io/docs/reference/database-reference/connection-urls#env
DATABASE_URL="file:./db.sqlite"
DATABASE_URL="postgres://captable:password@pg:5432/captable"

# Next Auth
# You can generate a new secret on the command line with:
# openssl rand -base64 32
# https://next-auth.js.org/configuration/options#secret
# NEXTAUTH_SECRET=""
# Run `openssl rand -base64 32` to generate a new secret
NEXTAUTH_SECRET="xxxxxxxxxx"
NEXTAUTH_URL="http://localhost:3000"

# Hanzo IAM OAuth (required for production)
IAM_URL="https://hanzo.id"
IAM_CLIENT_ID=""
IAM_CLIENT_SECRET=""
# IAM_PROVIDER_NAME="Hanzo"

## Auth Optional (deprecated — use Hanzo IAM above)
# GOOGLE_CLIENT_ID=""
# GOOGLE_CLIENT_SECRET=""

# SMTP
EMAIL_SERVER=smtp://username:password@smtp.example.com:587
EMAIL_FROM=email@example.com
EMAIL_FROM="'Captable, Inc.' <support@captable.inc>"
EMAIL_SERVER=smtp://captable:password@localhost:1025

# Uploads
UPLOAD_ENDPOINT="http://127.0.0.1:9002"
NEXT_PUBLIC_UPLOAD_DOMAIN="http://127.0.0.1:9002"
UPLOAD_REGION="us-east-1" # value should be 'auto' while using r2
UPLOAD_ACCESS_KEY_ID="captable"
UPLOAD_SECRET_ACCESS_KEY="password"
UPLOAD_BUCKET_PUBLIC="captable-public-bucket"
UPLOAD_BUCKET_PRIVATE="captable-private-bucket"

# Sentry
SENTRY_ORG=YOUR_SENTRY_ORG
SENTRY_PROJECT=YOUR_SENTRY_PROJECT
NEXT_PUBLIC_SENTRY_DSN=YOUR_SENTRY_DSN
37 changes: 0 additions & 37 deletions .eslintrc.cjs

This file was deleted.

7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
# Maintain dependencies for npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
Binary file added .github/images/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "Build docker image"

on:
pull_request:
branches: ["main"]
types: [opened, synchronize, reopened, ready_for_review]

concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true

jobs:
build_docker:
name: Build Docker Image
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: ⛅ Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: 🎁 Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-

- name: 🚀 Build Docker Image
uses: docker/build-push-action@v5
with:
push: false
context: .
file: ./docker/Dockerfile
tags: captable-${{ github.sha }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

- # Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
name: 🚚 Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
29 changes: 29 additions & 0 deletions .github/workflows/clean-cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Cleanup cache
on:
pull_request:
types:
- closed

jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Cleanup
run: |
gh extension install actions/gh-actions-cache

echo "Fetching list of cache key"
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 )

## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
done
echo "Done"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge
25 changes: 25 additions & 0 deletions .github/workflows/docker-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build & Deploy

on:
push:
branches: [main]
workflow_dispatch:

jobs:
docker:
uses: hanzoai/.github/.github/workflows/docker-build.yml@main
with:
image: ghcr.io/hanzoai/captable
dockerfile: docker/Dockerfile
secrets: inherit

deploy:
needs: docker
uses: hanzoai/universe/.github/workflows/reusable-deploy-service.yml@main
with:
service: captable
image: ghcr.io/hanzoai/captable:${{ github.sha }}
cluster: hanzo-k8s
namespace: hanzo
secrets:
HANZO_API_KEY: ${{ secrets.HANZO_API_KEY }}
36 changes: 36 additions & 0 deletions .github/workflows/first-interaction.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: First interaction greeting

on:
pull_request:
types: ["opened"]
issues:
types: ["opened"]

permissions:
pull-requests: write
issues: write

jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-message: |
Welcome @${{github.actor}} :wave:

Thank you for creating your first Pull Request!

One of our team members will review it and get back to you as soon as possible.

In the meantime feel free to hop into our community in [Discord](https://discord.gg/rCpqnD6G6p)

Thanks again, and welcome to the community! :smiley:

issue-message: |
Welcome @${{github.actor}} :wave:

thank you for opening your first issue! We will get back to you shortly.

Meanwhile, please feel free to hop into our community in [Discord](https://discord.gg/rCpqnD6G6p)
63 changes: 63 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Production

on:
release:
types: [published]

jobs:
push_to_registries:
name: Publish docker image & deploy to production
runs-on: ubuntu-latest
concurrency:
group: release
cancel-in-progress: true
permissions:
packages: write
contents: read
id-token: write
attestations: write

steps:
- name: ✅ Check out the repo
uses: actions/checkout@v4

- name: 🐬 Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: 🗄️ Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: 🗃️ Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
captable/captable
ghcr.io/${{ github.repository }}

- name: 🚀 Build and push Docker images
id: push
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: 🪰 Setup flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
with:
version: latest

- name: 🚀 Deploy Production
run: flyctl deploy --vm-cpu-kind=performance --remote-only --image captable/captable:latest
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
Loading
Loading