Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
109c5f9
Enhancement: Switched from Google Analytics to Vercel Analytics
OverDsh Oct 18, 2025
49743fc
Enhancement: Improved auth toaster
OverDsh Oct 22, 2025
5ebe9b8
[FEAT] Email verification (#6)
OverDsh Oct 22, 2025
d5817ba
Enhancement: Switch to Jetbrains IDE and qodana for code quality anal…
OverDsh Oct 26, 2025
55c66f0
Merge remote-tracking branch 'origin/dev' into dev
OverDsh Oct 26, 2025
224f510
Merge remote-tracking branch 'origin/dev' into dev
OverDsh Oct 26, 2025
c448660
Merge branch 'dev' of https://github.com/rmanager-dev/rmanager-core i…
OverDsh Oct 26, 2025
8348595
Remove Qodana from Github workflow (#10)
OverDsh Nov 2, 2025
1858dba
Refactor: Made Navbar and User Dropdown components to be re-used on t…
OverDsh Nov 2, 2025
d1d71ec
Chore: Add sidebar component from shadcn/ui
OverDsh Nov 2, 2025
790506e
Refactor: Update Navbar component to accept className prop
OverDsh Nov 2, 2025
7f96be3
Refactor: Update UserDropdown component to accept tirggerProps prop
OverDsh Nov 2, 2025
44e532a
Feat: Created the dashboard navbar
OverDsh Nov 2, 2025
fc7a115
Chore: Update to Next.js 16.0.1
OverDsh Nov 2, 2025
7cbef97
Migration from Firebase ecosystem to Better-Auth + Turso (and Drizzle…
OverDsh Nov 10, 2025
48374ba
[FEAT] 2FA Auth (#15)
OverDsh Nov 22, 2025
5c3e3e5
Feat/user settings (#16)
OverDsh Nov 30, 2025
73487b2
Fix: Cleanup unused Dialog folder
OverDsh Nov 30, 2025
5fc7c4c
Security: Patched React2Shell
OverDsh Dec 14, 2025
1712517
Feat/user settings (#22)
OverDsh Dec 19, 2025
ca31306
Merge main into dev
OverDsh Dec 22, 2025
99da13e
Chore: Uninstall old react-query package
OverDsh Dec 22, 2025
d7bc56b
Enhancement: Feature branches now creates a deployment only on PRs. (…
OverDsh Dec 23, 2025
089c46b
Enhancement: Ignore deployment workflows if changes are not affecting
OverDsh Dec 23, 2025
dd7b293
Enhancement: Added README.md to paths-ignore and added paths-ignore to
OverDsh Dec 23, 2025
84adb0b
Potential fix for code scanning alert no. 4: Workflow does not contai…
OverDsh Dec 23, 2025
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
22 changes: 0 additions & 22 deletions .github/scripts/generate_db_name.sh

This file was deleted.

41 changes: 18 additions & 23 deletions .github/workflows/database_cleanup.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,37 @@
name: Cleanup Database Branch
on:
delete:
branches-ignore:
- main
- dev
pull_request:
types:
- closed
workflow_dispatch:
inputs:
pr_number:
description: "Pull Request Number"
required: false
type: number

jobs:
cleanup_database:
if: ${{ github.event.ref_type == 'branch' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# Checkout the main branch to retrieve the scripts
ref: main

- name: Install Turso CLI
run: |
curl -sSfL https://get.tur.so/install.sh | bash
echo "$HOME/.turso" >> $GITHUB_PATH

- name: Generate Safe DB Name
- name: Get DB Name
run: |
# Make the script executable, might not be necessary
chmod +x .github/scripts/generate_db_name.sh

# Get the deleted branch name
RAW_REF="${{ github.event.ref }}"
CLEAN_REF="${RAW_REF#refs/heads/}"

# Generate the safe branch name and store it in an environment variable
BRANCH_NAME=$(.github/scripts/generate_db_name.sh "$CLEAN_REF")
echo "SAFE_BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
PR_NUM="${{ github.event.inputs.pr_number || github.event.pull_request.number }}"
if [ -z "$PR_NUM" ]; then
echo "No PR number provided"
exit 1
fi
DB_NAME="pr-$PR_NUM"
echo "DB_NAME=$DB_NAME" >> $GITHUB_ENV

- name: Destroy Turso Database
env:
TURSO_API_TOKEN: ${{ secrets.TURSO_API_TOKEN }}
DB_NAME: ${{ env.DB_NAME }}
run: |
turso db destroy ${{env.SAFE_BRANCH_NAME}} --yes || echo "Database already gone"
turso db destroy "$DB_NAME" --yes || echo "Database already gone or never existed"
47 changes: 47 additions & 0 deletions .github/workflows/dev_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Make Development Deployment

on:
push:
branches:
- dev
paths-ignore:
- .gitignore
- .github/**
- README.md
workflow_dispatch:

permissions:
contents: read

concurrency:
group: deployment-dev
cancel-in-progress: true

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"

- run: npm ci

- name: Push schema changes to database
env:
TURSO_DATABASE_URL: ${{ secrets.DEV_DB_URL }}
TURSO_AUTH_TOKEN: ${{ secrets.DEV_DB_TOKEN }}
run: |
npx drizzle-kit push

- name: Make Development Deployment
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
run: |
npx vercel deploy --target preview --yes --token ${{ secrets.VERCEL_TOKEN }}
140 changes: 140 additions & 0 deletions .github/workflows/pr_preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
name: Make Pull Request Preview Deployment
on:
pull_request:
types:
- opened
- reopened
- synchronize
paths-ignore:
- .gitignore
- .github/**
- README.md
workflow_dispatch:
inputs:
pr_number:
description: "Pull Request Number"
required: false
type: number

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

permissions:
pull-requests: write
contents: read

jobs:
deploy:
environment: Preview
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"

- run: npm ci

- name: Install Turso CLI
run: |
curl -sSfL https://get.tur.so/install.sh | bash
echo "$HOME/.turso" >> $GITHUB_PATH

- name: Generate DB Name
run: |
PR_NUM="${{ github.event.inputs.pr_number || github.event.pull_request.number }}"
if [ -z "$PR_NUM" ]; then
echo "Error: No PR number found. If running manually, please provide the PR number input."
exit 1
fi
echo "PR_NUM=$PR_NUM" >> $GITHUB_ENV
echo "SAFE_BRANCH_NAME=pr-${PR_NUM}" >> $GITHUB_ENV

- name: Provision Turso Database
env:
TURSO_API_TOKEN: ${{ secrets.TURSO_API_TOKEN }}
run: |
# Create a branch from the dev database with the generated safe name
turso db create ${{ env.SAFE_BRANCH_NAME }} --from-db dev || true

- name: Get Database Credentials
env:
TURSO_API_TOKEN: ${{ secrets.TURSO_API_TOKEN }}
run: |
DB_URL=$(turso db show ${{ env.SAFE_BRANCH_NAME }} --url)
DB_TOKEN=$(turso db tokens create ${{ env.SAFE_BRANCH_NAME }})

# Mask database credentials
echo "::add-mask::$DB_URL"
echo "::add-mask::$DB_TOKEN"

# Add the database credentials to the environment variables
echo "DB_URL=$DB_URL" >> $GITHUB_ENV
echo "DB_TOKEN=$DB_TOKEN" >> $GITHUB_ENV

- name: Sync schema to database
env:
TURSO_DATABASE_URL: ${{ env.DB_URL }}
TURSO_AUTH_TOKEN: ${{ env.DB_TOKEN }}
run: |
# Push changes to the created database
npx drizzle-kit push

- name: Make Preview Deployment
id: vercel-deployment
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
run: |
# Make a preview deployment with the created database
DEPLOYMENT_URL=$(npx vercel deploy --target preview --token ${{ secrets.VERCEL_TOKEN }} \
--build-env TURSO_DATABASE_URL=${{ env.DB_URL }} \
--build-env TURSO_AUTH_TOKEN=${{ env.DB_TOKEN }} \
--env TURSO_DATABASE_URL=${{ env.DB_URL }} \
--env TURSO_AUTH_TOKEN=${{ env.DB_TOKEN }} \
--yes --logs)
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The --logs flag passed to vercel deploy will output deployment logs along with the URL. When capturing the output in DEPLOYMENT_URL, this will include log content rather than just the deployment URL, which will break the deployment link in the PR comment. Remove the --logs flag to capture only the deployment URL.

Suggested change
--yes --logs)
--yes)

Copilot uses AI. Check for mistakes.

echo "DEPLOYMENT_URL=$DEPLOYMENT_URL" >> $GITHUB_ENV

- name: Comment on PR
if: always()
uses: actions/github-script@v8
env:
DEPLOYMENT_URL: ${{ env.DEPLOYMENT_URL }}
DEPLOY_STATUS: ${{ steps.vercel-deployment.outcome }}
RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
PR_NUM: ${{ env.PR_NUM }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const {DEPLOYMENT_URL, DEPLOY_STATUS, RUN_URL} = process.env;
const status = DEPLOY_STATUS === "success" ? "✅ Ready" : "❌ Failed to deploy";

const body = `### 🚀 Preview Deployment:
- **Vercel Deployment:** ${DEPLOYMENT_URL ? `[View Deployment](${DEPLOYMENT_URL})` : "N/A"}
- **Status:** ${status}
- **Workflow Logs:** [View Run](${RUN_URL})`;

const { data: comments } = await github.rest.issues.listComments({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: Number(PR_NUM),
});

const existingComment = comments.find(comment => comment.body.includes('### 🚀 Preview Deployment'));
const payload = {
owner: context.repo.owner,
repo: context.repo.repo,
body: body
};

if (existingComment) {
await github.rest.issues.updateComment({...payload, comment_id: existingComment.id})
} else {
await github.rest.issues.createComment({...payload, issue_number: Number(PR_NUM)})
}
83 changes: 0 additions & 83 deletions .github/workflows/preview_deploy.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/production_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches:
- main
paths-ignore:
- .gitignore
- .github/**
- README.md
workflow_dispatch:

jobs:
Expand Down
Loading
Loading