Skip to content

Commit

Permalink
new beginnings (#365)
Browse files Browse the repository at this point in the history
* feat: initial commit for next branch

* chore: adds .ds_store files to .gitignore

* feat: todos in readme

* feat: initialises gh actions

* fix: cspell config formatting

* chore: mark gh actions task as completed

* feat: initialises playwright e2e testing

* fix: bun test should run only on spec files in src

* refactor: name playwright upload artifact step

* refactor: move home page under (marketing)

* feat: adds proper seo handling

This commit brings the following changes:
- Adds proper seo handling
- Adds pink & salmon custom color palettes to tailwind.
- Adds construct metadata utility function.
- Enables react strict mode and disables eslint & typescript checks in
  next config.
- Adds favicon, thumbnail images.

* feat: initialises work on new marketing pages

* fix: lint

* fix: e2e tests

* chore: adds playwright folders to clean script

* chore: updates all dependencies

* feat: adds red color scales

made by kami

* refactor: makes indigo glow bigger

* feat: button primitive & usage on home page

* feat: blur navbar on scroll & light/dark dashboard preview image

* feat: add clerk integration in /next branch (#364)

* feat: add clerk integration in /next branch

* feat: add signin & signup pages, add env variables to env.ts

* feat: adds env variables example

* feat: dashboard page initialisation

* fix: ci environment in pipeline

* fix: exposes clerk & upstash env vars to ci

* chore: remove forms tailwind plugin

---------

Co-authored-by: ManavJoshi <[email protected]>
Co-authored-by: Ahmed Elsakaan <[email protected]>

* refactor: next clerk publishable key to vars

* chore: update todos

* chore: removes jsdoc & tailwindcss prettier plugins because eslint

* feat: drizzle-orm/neon db integration

* fix: run main ci on next branch

* feat: adds db url to env example

* feat: trpc api

* feat: better auth routes organisation

* feat: resend & react email integration

* fix: adds resend api key to gh workflows

* feat: better colours, light mode support & db schema

* feat: early access page

* chore: trust postinstall scripts

* chore: updates deps

* feat: early access page title

* feat: refine todos in readme

* feat: new todo

* chore: exclude branch_out file

* feat: progress towards the landing page

* feat: navbar & features

* fix: hydration error

* feat: responsiveness in landing page

* feat: desktop footer

* feat: responsiveness

* fix: lint

* chore: updates deps

* feat: mobile navbar

* fix: adds missing mobile nav links

* feat: final navbar touches

* chore: updates deps

* chore: updates deps

* fix: makes footer at bottom if content size < screen size

* feat: tos & privacy policy

* chore: updates todos

* chore: update .env.example

* fix: hydration error

* feat: wip blog with next-mdx-remote

* feat: blogs page

* feat: blog post

* chore: remove unused stuff with next.config.js

* feat: sentry

* fix: ci environment vars

* 404 not found

* feat: ship it

* chore: update readme

* fix: lint

---------

Co-authored-by: Manav H Joshi <[email protected]>
Co-authored-by: ManavJoshi <[email protected]>
  • Loading branch information
3 people committed Jun 7, 2024
1 parent 0591a7b commit 882cfcd
Show file tree
Hide file tree
Showing 215 changed files with 4,234 additions and 6,208 deletions.
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
trim_trailing_whitespace = true
insert_final_newline = false
36 changes: 21 additions & 15 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
# Sqlite database url (you can leave this as is)
DATABASE_URL="file:./dev.db"
# Neon Database
DATABASE_URL=<your-neon-database-url>

# If you're using turso for the DB, you will need this too
DATABASE_AUTH_TOKEN=
# Authentication
CLERK_SECRET_KEY=<your-clerk-secret-key>
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=<your-clerk-publishable-key>

# Clerk Environment Variables
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
# You don't need to change these, just copy them over into your `.env` file.
NEXT_PUBLIC_CLERK_SIGN_IN_URL='/sign-in'
NEXT_PUBLIC_CLERK_SIGN_UP_URL='/sign-up'
NEXT_PUBLIC_CLERK_SIGN_IN_FORCE_REDIRECT_URL='/app'
NEXT_PUBLIC_CLERK_SIGN_UP_FORCE_REDIRECT_URL='/app'

# Don't need to change those
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/app
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/app
# Upstash Redis
UPSTASH_REDIS_REST_URL=<your-upstash-rest-url>
UPSTASH_REDIS_REST_TOKEN=<your-upstash-rest-token>

# Redis (Upstash) (optional)
UPSTASH_REDIS_REST_URL=
UPSTASH_REDIS_REST_TOKEN=
# Resend
RESEND_API_KEY=<your-resend-api-key>

# Sentry
NEXT_PUBLIC_SENTRY_DSN=<your-sentry-dsn>
SENTRY_ORG=<your-sentry-org>
SENTRY_PROJECT=<your-sentry-project>
SENTRY_AUTH_TOKEN=<your-sentry-auth-token>
36 changes: 0 additions & 36 deletions .eslintrc.cjs

This file was deleted.

1 change: 0 additions & 1 deletion .github/FUNDING.yml → .github/FUNDING.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# These are supported funding model platforms

github: [ixahmedxi]
15 changes: 8 additions & 7 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: bug
assignees: ""
title: ''
labels: ''
assignees: ''
---

**Describe the bug**
Expand All @@ -12,15 +12,16 @@ A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Information (please complete the following information):**

- Bun version [e.g. 1.0.8]

**Additional context**
Add any other context about the problem here.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: enhancement
assignees: ""
title: ''
labels: ''
assignees: ''
---

**Is your feature request related to a problem? Please describe.**
Expand Down
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Fixes #

## Proposed Changes

-
-
-
51 changes: 0 additions & 51 deletions .github/workflows/ci.yml

This file was deleted.

83 changes: 83 additions & 0 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Main CI

on:
push:
branches:
- main
# TODO: remove this once next branch is merged into main
- next

jobs:
main-ci:
runs-on: ubuntu-latest

environment: CI
env:
# Database
DATABASE_URL: ${{ secrets.DATABASE_URL }}

# Clerk
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ vars.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}

NEXT_PUBLIC_CLERK_SIGN_IN_URL: '/sign-in'
NEXT_PUBLIC_CLERK_SIGN_UP_URL: '/sign-up'
NEXT_PUBLIC_CLERK_SIGN_IN_FORCE_REDIRECT_URL: '/app'
NEXT_PUBLIC_CLERK_SIGN_UP_FORCE_REDIRECT_URL: '/app'

# Upstash
UPSTASH_REDIS_REST_URL: ${{ secrets.UPSTASH_REDIS_REST_URL }}
UPSTASH_REDIS_REST_TOKEN: ${{ secrets.UPSTASH_REDIS_REST_TOKEN }}

# Resend
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}

# Sentry
NEXT_PUBLIC_SENTRY_DSN: ${{ vars.NEXT_PUBLIC_SENTRY_DSN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Setup Bun
uses: oven-sh/setup-bun@v1

- name: Install Dependencies
run: bun install

- name: Install Playwright Browsers
run: bun playwright install --with-deps

- name: Run DB Migrations
run: bun db:migrate

- name: Check Format
run: bun format:check

- name: Lint
run: bun lint

- name: Typecheck
run: bun typecheck

- name: Unit tests
run: bun test

- name: Build
run: bun run build

- name: Run Playwright tests
run: bun playwright test

- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
Loading

0 comments on commit 882cfcd

Please sign in to comment.