-
Notifications
You must be signed in to change notification settings - Fork 41
updates #623
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
flipvh
wants to merge
50
commits into
main
Choose a base branch
from
development
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+9,437
−15,048
Open
updates #623
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
a2e02ef
improve: sentry initialization
LemonardoD 4d5eeb8
fix: offline name update
LemonardoD 6ed7bea
fix: uppy preview
LemonardoD 0fbfc38
fix: preview render
LemonardoD 2e88f0e
progress: auth code improvements
flipvh fb816b5
improve: PendingInvitations on offline
LemonardoD 13da638
improve: more progress on auth improvements
flipvh a5f50fc
improve: invite flow
flipvh 953cc27
fix: attachments publicity
LemonardoD 8ef08cf
Git actions (#624)
flipvh 346b5c8
test: Do not let storybook build, but only run test in github
gino1991 2602deb
Auth ref (#625)
flipvh 01d47b3
chore: add todo
LemonardoD 661d453
chore: add code for delete prev session not fully tested yet
LemonardoD 57ce3e1
improve: FE dev script
LemonardoD d9ed5c6
fix: system invite
flipvh 47e0812
fix: member invite
flipvh fdf216f
refactor: restructure auth helpers
flipvh 54fcc67
fix: auth imports
flipvh 96da59a
fixes
flipvh bbf3104
fix: new memberships order gaps
LemonardoD ccdbcad
Refactor/app error (#626)
LemonardoD 1c6f4e4
chore: small fixes
LemonardoD 45494ba
improve: progress on oauth
flipvh e74c29f
chore: add todo for create membership
flipvh 2a1e2e0
chore: align auth endpoint naming
flipvh 520b4f4
add: email response on app request (#627)
LemonardoD f033266
improve: ui tunings
flipvh 6f8217f
Chore/auth todos (#628)
flipvh f90d63b
improve: avoid db connection on generate-openapi script
LemonardoD 9d2999d
improve: styling passkey and session tiles in user settings page
flipvh 0bccbc6
Chore/auth todos (#629)
LemonardoD 9f61e82
improve: use lastUser as state for mfa
flipvh 0f55bed
fix: pending count
LemonardoD 536a0f5
fix(createMemberships): usage of existingUser membeship
LemonardoD ee36b8b
improve: auth store, remove context
flipvh 04fb8e9
improve: better token handling
flipvh e788928
improve: css/styling
flipvh 19b83a5
improve: openapi consistency
flipvh 4d0f454
Refactor/sse (#630)
LemonardoD 05ee764
Improve/open api (#633)
LemonardoD f312f63
chore: add account-security template for multiple scenarios
LemonardoD f72e758
fix: Tests (remove res.jons on empty responses)
gino1991 5afa171
Potential fix for code scanning alert no. 27: Workflow does not conta…
gino1991 240601d
Chore/update blocknote (#636)
LemonardoD 1641ed6
fix: When not at least 2 prev tags → Use all commits, Else use second…
gino1991 22e0c33
Potential fix for code scanning alert no. 23: Workflow does not conta…
gino1991 5ee5245
Merge pull request #640 from cellajs/alert-autofix-23
gino1991 b24561b
Potential fix for code scanning alert no. 22: Workflow does not conta…
gino1991 23ebf39
Merge pull request #641 from cellajs/alert-autofix-22
gino1991 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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,199 @@ | ||
name: CI | ||
|
||
permissions: | ||
contents: read | ||
|
||
# Controls which events and branches will trigger the workflow | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main, development ] | ||
|
||
# Cancel older runs of the same PR when a new push arrives | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# Install deps once and reuse for other jobs (optional optimization) | ||
install: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v5 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v5 | ||
with: | ||
node-version: 24 | ||
cache: 'pnpm' | ||
|
||
- name: Create .env files | ||
run: | | ||
cp ./backend/.env.example ./backend/.env | ||
cp ./frontend/.env.example ./frontend/.env | ||
|
||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
# Save node_modules so other jobs can reuse | ||
- name: Cache node_modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
**/node_modules | ||
key: ${{ runner.os }}-modules-${{ hashFiles('pnpm-lock.yaml') }} | ||
|
||
# Runs linting | ||
lint: | ||
runs-on: ubuntu-latest | ||
needs: install | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v5 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v5 | ||
with: | ||
cache: 'pnpm' | ||
|
||
- name: Restore node_modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
**/node_modules | ||
key: ${{ runner.os }}-modules-${{ hashFiles('pnpm-lock.yaml') }} | ||
|
||
- name: Run Biome | ||
run: pnpm biome check . | ||
|
||
# Runs all tests | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
needs: install | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v5 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v5 | ||
with: | ||
cache: 'pnpm' | ||
|
||
- name: Create .env files | ||
run: | | ||
cp ./backend/.env.example ./backend/.env | ||
cp ./frontend/.env.example ./frontend/.env | ||
|
||
- name: Restore node_modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
**/node_modules | ||
key: ${{ runner.os }}-modules-${{ hashFiles('pnpm-lock.yaml') }} | ||
- run: pnpm test | ||
|
||
# Will run a quick startup check to ensure the app starts without issues | ||
quick: | ||
|
||
runs-on: ubuntu-latest | ||
needs: [lint, test] | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v5 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v5 | ||
|
||
- name: Create .env files | ||
run: | | ||
cp ./backend/.env.example ./backend/.env | ||
cp ./frontend/.env.example ./frontend/.env | ||
|
||
- name: Restore node_modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
**/node_modules | ||
key: ${{ runner.os }}-modules-${{ hashFiles('pnpm-lock.yaml') }} | ||
|
||
- name: Start quick and wait for Vite ready | ||
run: | | ||
timeout 120s stdbuf -oL pnpm quick 2>&1 | while IFS= read -r line; do | ||
# Show all output for debugging | ||
echo "$line" | ||
# Remove ANSI escape codes | ||
clean_line=$(echo "$line" | sed -r "s/\x1B\[[0-9;]*[mK]//g") | ||
# Match "VITE <version> ready in <ms>" anywhere in the line | ||
if echo "$clean_line" | grep -E ".*VITE [^ ]+ +ready in [0-9]+ ms"; then | ||
echo ">>> Vite server is ready! <<<" | ||
pkill -P $$ pnpm || true | ||
break | ||
fi | ||
done || true | ||
|
||
# Generates draft release notes (for testing only) | ||
draft-release-notes: | ||
|
||
permissions: | ||
contents: read | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v5 | ||
with: | ||
fetch-depth: 0 # needed so changelog sees full commit history | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v5 | ||
|
||
- name: Install changelog deps | ||
run: pnpm add -Dw conventional-changelog-cli conventional-changelog-conventionalcommits | ||
|
||
- name: Generate draft release notes | ||
run: | | ||
# Check latest and previous tags | ||
LATEST_TAG=$(if [ "$(git tag | wc -l)" -ge 1 ]; then git describe --tags --abbrev=0; fi) | ||
PREV_TAG=$(if [ "$(git tag | wc -l)" -ge 2 ]; then git tag --sort=creatordate | tail -2 | head -1; fi) | ||
|
||
echo "Latest tag: $LATEST_TAG" | ||
echo "Previous tag: $PREV_TAG" | ||
|
||
if [ -z "$PREV_TAG" ]; then | ||
echo "First release — include all commits" | ||
npx conventional-changelog -p conventionalcommits -r 0 -o RELEASE_NOTES.md | ||
else | ||
echo "Generating changelog since previous tag $PREV_TAG" | ||
# Use -r 2 and output commits since PREV_TAG | ||
npx conventional-changelog -p conventionalcommits -r 2 -o RELEASE_NOTES.md | ||
fi | ||
|
||
- name: Upload draft release notes | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: draft-release-notes | ||
path: RELEASE_NOTES.md |
This file contains hidden or 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,53 @@ | ||
name: Release | ||
permissions: | ||
contents: write | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" # Runs only when pushing version tags like v1.0.0, v2.3.4 | ||
|
||
jobs: | ||
release-notes: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v5 | ||
with: | ||
fetch-depth: 0 # so changelog sees all commit history | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v5 | ||
with: | ||
cache: "pnpm" | ||
|
||
- name: Install changelog deps | ||
run: pnpm add -Dw conventional-changelog-cli conventional-changelog-conventionalcommits | ||
|
||
- name: Generate release notes | ||
run: | | ||
# Check latest and previous tags | ||
LATEST_TAG=$(if [ "$(git tag | wc -l)" -ge 1 ]; then git describe --tags --abbrev=0; fi) | ||
PREV_TAG=$(if [ "$(git tag | wc -l)" -ge 2 ]; then git tag --sort=creatordate | tail -2 | head -1; fi) | ||
|
||
echo "Latest tag: $LATEST_TAG" | ||
echo "Previous tag: $PREV_TAG" | ||
|
||
if [ -z "$PREV_TAG" ]; then | ||
echo "First release — include all commits" | ||
npx conventional-changelog -p conventionalcommits -r 0 -o RELEASE_NOTES.md | ||
else | ||
echo "Generating changelog since previous tag $PREV_TAG" | ||
# Use -r 2 and output commits since PREV_TAG | ||
npx conventional-changelog -p conventionalcommits -r 2 -o RELEASE_NOTES.md | ||
fi | ||
|
||
- name: Publish GitHub Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
body_path: RELEASE_NOTES.md | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains hidden or 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 |
---|---|---|
|
@@ -33,10 +33,10 @@ | |
</div> | ||
|
||
> [!CAUTION] | ||
> This is a prerelease. It does NOT meet production requirements yet and large breaking changes occur regularly. Versioned releases will begin once we have solid tests for authentication, authorization and data access. Want to contribute or discuss cella with us? Let's connect! ✉️ <[email protected]> | ||
> This is a prerelease. Versioned releases will start once we have enough tests for authentication, authorization and data access. Want to contribute or discuss cella with us? Let's connect! ✉️ <[email protected]> | ||
|
||
#### Contents | ||
- [Installation](#installation) | ||
- [Create app](#create-app) | ||
- [Architecture](/info/ARCHITECTURE.md) | ||
- [Roadmap](/info/ROADMAP.md) | ||
- [Deployment](/info/DEPLOYMENT.md) | ||
|
@@ -47,18 +47,18 @@ | |
|
||
<br> | ||
|
||
## Create your own app | ||
Want to try cella to build a new web app with sync engine? We recommend NOT TO FORK this repo directly. Instead, use the create CLI to get started: | ||
## Create app | ||
Do **not fork** this repo directly. Use the create CLI to get started: | ||
|
||
```bash | ||
pnpm create @cellajs/cella@latest | ||
pnpm create @cellajs/cella | ||
``` | ||
|
||
You now have an implementation-ready web app 🤯. But ... without any unique functionality 🤓. Read the [Quickstart](/info/QUICKSTART.md) so you can build something unique quickly. | ||
|
||
<p> </p> | ||
|
||
## Installation | ||
## Contribute | ||
For those that (also) want to participate in development: | ||
|
||
```bash | ||
|
@@ -89,8 +89,6 @@ pnpm dev | |
|
||
Check it out at [localhost:3000](http://localhost:3000)! Generated API docs can be found at [localhost:4000/docs](http://localhost:4000/docs). Manage your local db with [local.drizzle.studio](http:local.drizzle.studio). | ||
|
||
|
||
<br /> | ||
<br /> | ||
<p> </p> | ||
|
||
💙💛 Big thank you to [drizzle](https://github.com/drizzle-team/drizzle-orm), [hono](https://github.com/honojs/hono), [tanstack-router](https://github.com/tanstack/router) & [electric](https://github.com/electric-sql/electric). |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.