Skip to content
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

WIP feat: blog #155

Draft
wants to merge 1,626 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1626 commits
Select commit Hold shift + click to select a range
8ab5612
try revert hono update
flipvh Jun 11, 2024
d16408b
try restructured
flipvh Jun 11, 2024
3ccc919
fix: api consistency issues
flipvh Jun 11, 2024
bdffea4
Merge pull request #130 from cellajs/main
flipvh Jun 11, 2024
97dc330
improve: UsersTable
Jun 11, 2024
539c792
+
Jun 11, 2024
07b3795
fix: projects table
Jun 11, 2024
148ae86
feat: Extend idOrSlug validation to include checks in both params and…
gino1991 Jun 11, 2024
654a56e
fix: projects table
Jun 11, 2024
642d170
refactor: merge oauth & auth
flipvh Jun 11, 2024
ee4adfa
Merge pull request #131 from cellajs/development
flipvh Jun 11, 2024
0b074f0
Use JSON parser to extract payload in guard
gino1991 Jun 11, 2024
e5e2427
Merge branch 'development' of github.com:cellajs/cella into development
gino1991 Jun 11, 2024
ec552e7
caninvite for usersTable
flipvh Jun 11, 2024
f58b5f7
set manual maintenance
flipvh Jun 11, 2024
bc418b4
improve: usersTable & projectsTable
Jun 11, 2024
d15acbe
Merge branch 'development' of https://github.com/cellajs/cella into d…
Jun 11, 2024
764e406
refactor: Move role and userRole to membership property for entities …
gino1991 Jun 11, 2024
3979440
Merge branch 'development' of github.com:cellajs/cella into development
gino1991 Jun 11, 2024
a270743
Add TSDoc to "toMembershipInfo" adapter
gino1991 Jun 11, 2024
f400eb4
Fix: Queries for getting a list of organizatoins and projects
gino1991 Jun 11, 2024
49861e2
align add project motion with invite users
flipvh Jun 11, 2024
fe71228
Merge pull request #132 from cellajs/development
flipvh Jun 11, 2024
c527a11
improve: usersTable role change
Jun 11, 2024
7da9c86
Merge branch 'development' of https://github.com/cellajs/cella into d…
Jun 11, 2024
3cf289a
clean up user profile
flipvh Jun 11, 2024
d28f829
improve maintenance styling
flipvh Jun 11, 2024
5ba57a4
update hono
flipvh Jun 11, 2024
efb9752
Merge pull request #133 from cellajs/development
flipvh Jun 11, 2024
928ce5d
try without proxy
flipvh Jun 11, 2024
06a47bb
disable gleap
flipvh Jun 11, 2024
10ee7fb
fix check email
flipvh Jun 11, 2024
7bf19ff
fix: proxy. back to cellajs
flipvh Jun 12, 2024
671a6f1
fix proxy urls
flipvh Jun 12, 2024
3ae42df
Merge pull request #134 from cellajs/main
flipvh Jun 12, 2024
fb18adc
fixes
flipvh Jun 12, 2024
b9b6e52
change google maps key for prod
flipvh Jun 12, 2024
d2a1d80
fix: get project members and get projects by userId
flipvh Jun 12, 2024
b349c09
Merge pull request #135 from cellajs/development
flipvh Jun 12, 2024
15c1f0e
enable pwa again
flipvh Jun 12, 2024
ce28e6a
refactor: Refactor check-token and verify-email
RomanNabukhotnyi Jun 12, 2024
6f740d8
fix oauth callback
flipvh Jun 12, 2024
d89a2df
improve: usersTable fixes
Jun 12, 2024
e3070c2
Merge pull request #137 from cellajs/development
flipvh Jun 12, 2024
f19ff43
Merge branch 'development' of https://github.com/cellajs/cella into d…
Jun 12, 2024
256081f
feat: Enhance membership creation by email
gino1991 Jun 12, 2024
30d3d72
Merge branch 'development' of github.com:cellajs/cella into development
gino1991 Jun 12, 2024
59b3af8
fix isAllowedTo
flipvh Jun 12, 2024
14785bc
add: delete self
Jun 12, 2024
3920811
Tasks optimizations (#136)
flipvh Jun 12, 2024
59fc8cf
Progress improvement of create-memberships
gino1991 Jun 12, 2024
374cc42
Merge branch 'development' of github.com:cellajs/cella into development
gino1991 Jun 12, 2024
9d1a3aa
improve: usersTable
Jun 12, 2024
82c53ad
feat: Progress membership creation by email
gino1991 Jun 12, 2024
7698bb7
entity context
flipvh Jun 12, 2024
193d9f2
Merge branch 'development' of github.com:cellajs/cella into development
gino1991 Jun 12, 2024
9e67e35
Progress invite by emails
gino1991 Jun 12, 2024
f1e4da2
fixes
flipvh Jun 12, 2024
05a6a29
improve: user menu
Jun 12, 2024
5d5bd00
+
Jun 12, 2024
b75cf67
add 302 to redirects
flipvh Jun 12, 2024
acb9d95
Merge pull request #138 from cellajs/development
flipvh Jun 12, 2024
a78cb7a
refactor: delete self
flipvh Jun 12, 2024
ea1fdd1
fixes
flipvh Jun 13, 2024
47256d1
improve: sse
Jun 13, 2024
518d76d
cleanup
flipvh Jun 13, 2024
38e3490
fix: verify email not being sent
Jun 13, 2024
13acdf5
css fixes
flipvh Jun 13, 2024
9ba0238
Fix: CreateMembership param check
gino1991 Jun 13, 2024
c0ed067
Ensure entityType is always set when inviting new users
gino1991 Jun 13, 2024
0c12c0f
revert to tanstack router 1.35.1
flipvh Jun 13, 2024
256b855
Fix: Improve parameter/queries checking and body parsing
gino1991 Jun 13, 2024
aaa1392
Merge branch 'development' of github.com:cellajs/cella into development
gino1991 Jun 13, 2024
dc8d8aa
improve: reset password
Jun 13, 2024
19e0ad8
improve: AuthRoute
Jun 13, 2024
4f8ff86
improve: backend module routes
Jun 13, 2024
f206e55
refactor: Refactor counts
RomanNabukhotnyi Jun 13, 2024
93fe186
feat: Add membership information to menu items
gino1991 Jun 13, 2024
d0973de
Merge branch 'development' of github.com:cellajs/cella into development
gino1991 Jun 13, 2024
00cb3fc
Add comment for defualt toMembershipInfo (can be nullable)
gino1991 Jun 13, 2024
850fac7
fix: create tasks
flipvh Jun 13, 2024
d8bc1ad
Merge branch 'development' of github.com:cellajs/cella into development
gino1991 Jun 13, 2024
3011181
try without proxy
flipvh Jun 13, 2024
942cc41
remove proxy
flipvh Jun 13, 2024
d17a3cb
Merge pull request #139 from cellajs/development
flipvh Jun 13, 2024
46b15a5
refactor: Integrate membership info into members object
gino1991 Jun 13, 2024
afa7bb4
Merge branch 'development' of github.com:cellajs/cella into development
gino1991 Jun 13, 2024
952cdc3
fixes reset passw
flipvh Jun 13, 2024
9ec7c43
Merge pull request #140 from cellajs/development
flipvh Jun 13, 2024
649b0ae
config fix
flipvh Jun 13, 2024
7200bd1
Merge pull request #141 from cellajs/development
flipvh Jun 13, 2024
9caf30a
improve cookie handling
flipvh Jun 13, 2024
0028a99
Merge pull request #142 from cellajs/development
flipvh Jun 13, 2024
93a62f1
fixes
flipvh Jun 13, 2024
8e9f432
refactor: seed
Jun 13, 2024
1212d66
fixes
flipvh Jun 13, 2024
b4f5379
api/authentication -> api/auth
flipvh Jun 13, 2024
33ddb2c
fixes
flipvh Jun 13, 2024
f95bc49
Merge pull request #143 from cellajs/development
flipvh Jun 14, 2024
4ec790c
add: seed README
Jun 14, 2024
18392dd
fix sign in
flipvh Jun 14, 2024
f0715e9
Merge pull request #144 from cellajs/development
flipvh Jun 14, 2024
12a2930
fix: bugs
Jun 14, 2024
c6cffa4
fix: slug
Jun 14, 2024
83d5331
improve: loading on github sign-in/up
Jun 14, 2024
13c0e6c
improve: project creation
Jun 14, 2024
5a1a745
lazy import app
flipvh Jun 14, 2024
2c018b9
improve: createEnv
Jun 14, 2024
fff584d
Merge branch 'development' of https://github.com/cellajs/cella into d…
Jun 14, 2024
5970abb
move and simplify remove member
flipvh Jun 14, 2024
59fa888
use route listener to close sheet
flipvh Jun 14, 2024
e7a1570
fix double click to toggle
flipvh Jun 14, 2024
81a5759
rework: user & member tables
Jun 14, 2024
c60de63
Merge branch 'development' of https://github.com/cellajs/cella into d…
Jun 14, 2024
048689b
table refactor
flipvh Jun 15, 2024
b031ee7
renaming
flipvh Jun 15, 2024
97afc74
align table code
flipvh Jun 15, 2024
af94d87
init
flipvh Jun 16, 2024
df94d84
insert membership, progress
flipvh Jun 17, 2024
7e649c7
Merge pull request #146 from cellajs/membership-order
flipvh Jun 17, 2024
000f011
improve: project update sheet
Jun 17, 2024
3ec63d4
improve: tables toolbars
Jun 17, 2024
6bb1b71
add comments
flipvh Jun 17, 2024
e1de306
improve: signing no password handling
Jun 17, 2024
6ac260e
improve: self update
Jun 17, 2024
e6c0335
add: useEffect from tables become hook
Jun 17, 2024
689b8d0
refactor: schemas, routeConfig & some of TODOs
Jun 18, 2024
68ead1a
improve: pending state in reset password
Jun 18, 2024
9a9efa2
fix: membersTable columns
Jun 18, 2024
fd1d545
small tweaks
flipvh Jun 18, 2024
3118d50
improve: ongoing membershipOrder
Jun 18, 2024
8450fe2
Merge branch 'development' of https://github.com/cellajs/cella into d…
Jun 18, 2024
95bfc1c
refactor debugging toolbar toggle
flipvh Jun 18, 2024
b5d2476
simplify debug toolbar code
flipvh Jun 18, 2024
d556c71
improve: membershipOrder
Jun 19, 2024
7bb1af4
rework: SSE
Jun 19, 2024
9023242
improve: SSE
Jun 19, 2024
c7e385a
clean up ls after delete account
flipvh Jun 19, 2024
e2687ef
Merge branch 'development' of https://github.com/cellajs/cella into d…
Jun 20, 2024
44ec99a
fix: onboarding
Jun 20, 2024
4fa2d83
improve: move the create_entity SSE to frontend
Jun 20, 2024
5b25ca3
fix: projects appearence on board
Jun 20, 2024
3c9339c
refactor invite
flipvh Jun 20, 2024
955a417
update deps
flipvh Jun 20, 2024
467f1e2
dont use search params in membersTable for projects
flipvh Jun 20, 2024
77a9641
add: sub-task & it`s editing
Jun 20, 2024
6229ed9
add: sub-task creation
Jun 20, 2024
2c5401e
fix: onBoardind demo workspace & projects add to user`s menu
Jun 20, 2024
de5e1f2
improve: InviteEmail
Jun 20, 2024
a324f98
add: SheetNav
Jun 20, 2024
725c42e
fix: project update
Jun 20, 2024
11f07a7
get rid of EntityContext
flipvh Jun 20, 2024
3c2928f
refactor: invite email
Jun 21, 2024
35261c5
Merge branch 'development' of https://github.com/cellajs/cella into d…
Jun 21, 2024
92ac335
fix: membershipUpdate
Jun 21, 2024
93acf27
fix: forbiden resolve on tables
Jun 21, 2024
1dbd698
improve: skeleton on project & task tables
Jun 21, 2024
5a680ae
fix: project DnD
Jun 21, 2024
bd83d21
fix: tasks DnD
Jun 21, 2024
b4635a3
fix: some TODO`s
Jun 21, 2024
d1d04f0
align sheet width
flipvh Jun 21, 2024
b73fd8d
fix: select country and timezone in a sheet & slug
Jun 21, 2024
1ca0668
fixes
flipvh Jun 21, 2024
3a0415e
fixes
flipvh Jun 21, 2024
ee38979
fix: lazy-loading && orgTable delete item
Jun 21, 2024
350f547
Merge branch 'development' of https://github.com/cellajs/cella into d…
Jun 21, 2024
f6dc4d2
rewrite function names
flipvh Jun 22, 2024
0386fe7
fix queryClient
flipvh Jun 22, 2024
87e58d7
Merge pull request #145 from cellajs/development
flipvh Jun 22, 2024
98b1f80
css fixes
flipvh Jun 22, 2024
bab1fa4
update urls
flipvh Jun 22, 2024
7bb94bf
update urls
flipvh Jun 22, 2024
569db2e
fix onboarding
flipvh Jun 24, 2024
a1b2873
feat: Improve useMutateInfiniteQueryData
RomanNabukhotnyi Jun 24, 2024
483a6fb
tweak for ts perf
flipvh Jun 24, 2024
1528755
Merge pull request #147 from cellajs/main
flipvh Jun 24, 2024
964aa5c
update deps
flipvh Jun 24, 2024
baca60e
add: language-selector
Jun 24, 2024
bf3853b
fix: Fix mutations
RomanNabukhotnyi Jun 24, 2024
d196a88
+
RomanNabukhotnyi Jun 24, 2024
d4d6a75
rework: domains form
Jun 24, 2024
9583395
rework: domains form
Jun 24, 2024
bf887a5
Merge branch 'development' of https://github.com/cellajs/cella into d…
Jun 24, 2024
d079f1f
fix contact form
flipvh Jun 24, 2024
b506bf7
refactor: Refactor task-card
RomanNabukhotnyi Jun 24, 2024
809f05b
move task order to module
flipvh Jun 24, 2024
2942db8
css tweaks
flipvh Jun 24, 2024
53d875a
align table code
flipvh Jun 24, 2024
5daa22d
add spinner comp
flipvh Jun 24, 2024
96b7c7f
css fix box for max 639px
flipvh Jun 24, 2024
46f15b4
more css fixes
flipvh Jun 24, 2024
fc9ec6e
more css tweaks
flipvh Jun 24, 2024
5ada0e8
simplify board header
flipvh Jun 25, 2024
2d764ee
add: query-combobox
Jun 25, 2024
19f7117
improve: err-notice Ask for help behavior
Jun 25, 2024
c6c95f5
fix: Fix infinite queries
RomanNabukhotnyi Jun 25, 2024
51d2d11
improve: replace DebugToolbar from root to app-nav
Jun 25, 2024
a42ce51
refactor: Refactor arrays in db
RomanNabukhotnyi Jun 25, 2024
035375b
refactor: remove findMembershipOrderById
Jun 25, 2024
969661d
reset version since its prerelease
flipvh Jun 25, 2024
a4280b3
revert electric to 0.12.0
flipvh Jun 25, 2024
5efe6bc
increase offset on max-sm for toaster and electric loader
flipvh Jun 25, 2024
4203695
remove sorting on columns directly
flipvh Jun 25, 2024
684646a
improve: table colunms
Jun 25, 2024
b6f4860
simplify column header buttons
flipvh Jun 25, 2024
cc3d0c7
prevent rerender loop in tables
flipvh Jun 25, 2024
87d6053
improve: domains field
Jun 26, 2024
d8bc9a4
tweaks inf scroll
flipvh Jun 26, 2024
dbdc0eb
Merge branch 'development' of https://github.com/cellajs/cella into d…
Jun 26, 2024
a133027
fix: Fix mutation hooks
RomanNabukhotnyi Jun 26, 2024
44faee2
fix: bugs & improve: tables
Jun 26, 2024
8b371ba
tweak
flipvh Jun 26, 2024
612b5b8
hide complicated filter options for now
flipvh Jun 26, 2024
9c637bc
fix: nav-menu bug and improve: Board & queryCombobox
Jun 26, 2024
2ed55e5
fix: Fix pagination
RomanNabukhotnyi Jun 26, 2024
1bcef7d
fix: global searchOpen err & assign members/labels selectors
Jun 26, 2024
58df6e6
fix: Fix pagination
RomanNabukhotnyi Jun 26, 2024
0d3d005
improve: DnD & language-selector
Jun 26, 2024
5760c8a
fix: DnD
Jun 26, 2024
54b52f3
refactor: some of task-selectors
Jun 26, 2024
3020cad
cleanup todos
flipvh Jun 27, 2024
74aef58
fix: Fix user sheet
RomanNabukhotnyi Jun 27, 2024
8393931
feat: Add pagination for tasks table
RomanNabukhotnyi Jun 27, 2024
874a746
refactor: rest of task-selectors && task table
Jun 27, 2024
2a51af8
add: translations for user-settings & create-task-form
Jun 27, 2024
d01707c
improve: board-column-header & projects-table
Jun 27, 2024
13a06c6
feat: Add filter by summary and markdown for tasks
RomanNabukhotnyi Jun 27, 2024
9667126
add: translated error warnings
Jun 27, 2024
3e7178d
improve: domains form-field
Jun 27, 2024
d0dda21
fix: askFroHelp
Jun 27, 2024
f217b77
feat: Add filter by status for tasks table
RomanNabukhotnyi Jun 27, 2024
60cad14
improve: workspace update
Jun 27, 2024
7ffac7c
cleaning
flipvh Jun 27, 2024
eb36e84
improve: workspace & org update forms
Jun 27, 2024
f6a0b1b
Merge branch 'development' of https://github.com/cellajs/cella into d…
Jun 27, 2024
95d6a87
improve: project CRUD callback
Jun 27, 2024
db78a2c
try to fix translation
flipvh Jun 27, 2024
2f5a49c
fix translation
flipvh Jun 27, 2024
f3705e8
Merge pull request #151 from cellajs/fixtranslation
flipvh Jun 27, 2024
5ea45ca
simplify is authenticated
flipvh Jun 27, 2024
3f2f113
Revert "add: translated error warnings"
flipvh Jun 27, 2024
3df690f
small seed refactor
flipvh Jun 27, 2024
2f02b0a
dialog fixes
flipvh Jun 28, 2024
fa2eb74
dialog fixes
flipvh Jun 28, 2024
281da7e
add: updateMembersip action in hook & diadble select comboboxes for p…
Jun 28, 2024
68a95c0
improve: seed pivotal
Jun 28, 2024
4fb2552
use rem everywhere
flipvh Jun 28, 2024
81a08a3
fix: comtact-map-header
Jun 28, 2024
333ae33
add footer to account sheet
flipvh Jun 28, 2024
4e58642
feat: blog
Jun 30, 2024
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
  •  
  •  
  •  
Binary file added .github/banner-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
vite.config.ts.*
node_modules
dist
out
dist-ssr
*.local

# Editor directories and files
.idea
.DS_Store
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.turbo
.env
.env.*
!.env.example
!.env.local

# Other
.netlify
.react-email
.wrangler
backend/files
frontend/stats.html
frontend/src/generated

*.zip
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-import-method=clone-or-copy
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 cellajs
Copyright (c) 2024 CellaJS

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
120 changes: 120 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<div align="center">

<img src="./.github/banner-dark.png#gh-dark-mode-only" />
<img src="./.github/banner.png#gh-light-mode-only" />

<br />

<!--
* _ _
* ░▒▓█████▓▒░ ___ ___| | | __ _
* ░▒▓█ █▓▒░ / __/ _ \ | |/ _` |
* ░▒▓█ █▓▒░ | (_| __/ | | (_| |
* ░▒▓█████▓▒░ \___\___|_|_|\__,_|
*
-->


<p>
<h1><b>Cella</b></h1>
<p>
<b>Single stack TypeScript template to build local-first SaaS.</b>
<br />
<br />
<a href="https://cellajs.com">Website</a>
·
prerelease version
·
MIT license
</p>
<br />
<br />
</p>

</div>

#### Prerelease

> ❗ Please be aware this is a prerelease. It does not meet production requirements yet and large breaking changes still occur regularly. Want to contribute? Let's connect! ✉️ <[email protected]>


#### Contents
- [Installation](#installation)
- [Architecture](/info/ARCHITECTURE.md)
- [Roadmap](/info/ROADMAP.md)
- [Deployment](/info/DEPLOYMENT.md)

## Installation

#### Prerequisites
- **Node:** Check node with `node -v`. Install Node 20.x or 22.x. (ie. [Volta](https://docs.volta.sh/guide/)).
- **Docker:** Install [Orbstack](https://orbstack.dev/) or [Docker](https://docs.docker.com/get-docker/)

### Step 1

```bash
git clone [email protected]:cellajs/cella.git && cd cella
```

Create a `.env` in `/env` folder. Recommended defaults are in `.env.example`. Then install:

```bash
pnpm install
```

Make sure docker runs in the background with a postgres db in it.

```bash
pnpm run docker
```

### Step 2
Page-related resources are handled by a conventional API. Content-related resources are use a local-first strategy with [ElectricSQL](https://github.com/electric-sql/electric).
Therefore, `generate` and `migrate` commands will execute both for normal schemas and for electric schemas in `/backend`.

```bash
pnpm run generate
pnpm run migrate
```

Generate local-first sync layer in `/frontend` with [electric](https://github.com/electric-sql/electric)

```bash
pnpm run electrify
```

Check it out at [localhost:3000](http://localhost:3000) after

```bash
pnpm run dev
```

### Step 3

The user [seed](/backend/seed/README.md) is required to add an ADMIN user

```bash
pnpm run seed
```

Manage your local db on [local.drizzle.studio](http:local.drizzle.studio)

```bash
pnpm run studio
```

### API documentation
Autogenerated [OpenAPI docs](https://api.cellajs.com/docs). Docs refresh on changes at [localhost:4000/docs](http://localhost:4000/docs)


### More info
- Please [install](https://marketplace.visualstudio.com/items?itemName=biomejs.biome) [Biome](https://biomejs.dev/) for code style. Fix with `pnpm run check:fix` and type check with `pnpm run check:types`
- EADDRINUSE errors? Try `sudo lsof -i :1080 -i :3000 -i :4000` and then `kill -9 *PID*` with a space-separated list of `PID`
- pnpm cache issues? Try `pnpm store prune`
- turbo cache issues? Try adding `--force` to the command
- docker cache issues? Try `docker builder prune --force`

<br />
<br />

💙💛 Big thank you too [drizzle-orm](https://github.com/drizzle-team/drizzle-orm), [hono](https://github.com/honojs/hono), [tanstack-router](https://github.com/tanstack/router), [electric-sql](https://github.com/electric-sql/electric) & [shadcn](https://github.com/shadcn-ui/ui).
5 changes: 5 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Security Policy

## Reporting a Vulnerability

If you have a security issue to report, please contact us at [[email protected]](mailto:[email protected]).
3 changes: 3 additions & 0 deletions backend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

# Sentry Config File
.sentryclirc
30 changes: 30 additions & 0 deletions backend/drizzle-electric/0000_funny_skaar.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
CREATE TABLE IF NOT EXISTS "labels" (
"id" varchar PRIMARY KEY NOT NULL,
"name" varchar NOT NULL,
"color" varchar,
"organization_id" varchar NOT NULL,
"project_id" varchar NOT NULL
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "tasks" (
"id" varchar PRIMARY KEY NOT NULL,
"slug" varchar NOT NULL,
"markdown" varchar,
"summary" varchar NOT NULL,
"type" varchar NOT NULL,
"impact" integer,
"sort_order" double precision NOT NULL,
"status" integer NOT NULL,
"parent_id" varchar,
"labels" jsonb NOT NULL,
"assigned_to" jsonb NOT NULL,
"organization_id" varchar NOT NULL,
"project_id" varchar NOT NULL,
"created_at" timestamp NOT NULL,
"created_by" varchar NOT NULL,
"assigned_by" varchar,
"assigned_at" timestamp,
"modified_at" timestamp,
"modified_by" varchar,
CONSTRAINT "tasks_parent_id_tasks_id_fk" FOREIGN KEY ("parent_id") REFERENCES "tasks"("id") ON DELETE no action ON UPDATE no action
);
3 changes: 3 additions & 0 deletions backend/drizzle-electric/0001_aromatic_giant_girl.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALTER TABLE "tasks" ENABLE ELECTRIC;
--> statement-breakpoint
ALTER TABLE "labels" ENABLE ELECTRIC;
Loading