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

chore: deploy staging #587

Merged
merged 43 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
4c38254
settings-org-billing (#528)
McPizza0 Jul 1, 2024
76a24d6
chore: Replace radix-theme components across the repo (Part 1) (#526)
BlankParticle Jul 1, 2024
5b84daa
chore: Replace all radix-theme components (Part 2) (#527)
BlankParticle Jul 1, 2024
5738b80
chore: Better health endpoints (#529)
BlankParticle Jul 1, 2024
a6c3f91
feat: Add worker app for scheduled/repeatable tasks (#530)
BlankParticle Jul 1, 2024
4b63284
fix: file name generation for missing filenames for attachments (#533)
BlankParticle Jul 1, 2024
1a2ad3d
chore: update `@hono/trpc-server` to 0.3.2 (#534)
BlankParticle Jul 1, 2024
9689eac
fix: replace convo list with Virtuoso component to fix bugs (#536)
BlankParticle Jul 2, 2024
b319757
chore: add more database indexes for better performance (#535)
BlankParticle Jul 2, 2024
9df941d
fix: new email based participants are correctly added now (#538)
BlankParticle Jul 4, 2024
80a21bb
feat: add turnstile to sign in, sign up, and recovery pages (#540)
BlankParticle Jul 4, 2024
a1c34b6
feat: rewrite ratelimit to be more extensible (#541)
BlankParticle Jul 4, 2024
aaade37
feat(next): add metadata to convo pages (#542)
chrisdadev13 Jul 8, 2024
0bba49c
fix: check org shortCode availability before creating org (#544)
BlankParticle Jul 8, 2024
bfb6e6e
feat: disable sending emails from unverified email identities (#545)
BlankParticle Jul 8, 2024
1ff21dc
fix: password auto complete suggestion fix (#546)
yash-kh Jul 8, 2024
6ac6079
chore: Remove Nuxt web-app and related code (#551)
McPizza0 Jul 10, 2024
dafe2fc
feat: change domain DNS flow to new planned flow (#552)
BlankParticle Jul 12, 2024
127fef9
chore: setup custom eslint package for table-needs-org-id rule (#554)
BlankParticle Jul 12, 2024
eee9470
feat: web app env is now type safe and auto prefixed (#558)
BlankParticle Jul 15, 2024
957d606
chore: update dependencies (#560)
BlankParticle Jul 15, 2024
29fbf7f
fix(signup): save profile without avatar (#561)
rockingrohit9639 Jul 15, 2024
dbaabd8
feat: org issues dialog for org admins (#547)
BlankParticle Jul 15, 2024
025562f
fix: make trpc redirects work in web (#555)
BlankParticle Jul 15, 2024
1d2a050
feat: improve middleware performance by using plain fetch calls (#563)
BlankParticle Jul 15, 2024
3fb29b0
feat: experimental standalone build mode
BlankParticle Jul 11, 2024
f95a514
Hiding/un-hiding convo fix (#565)
yash-kh Jul 15, 2024
5ae63f7
icanhaz (#569)
McPizza0 Jul 15, 2024
1794e60
When fetching a conversation, update lastReadAt (#562)
yash-kh Jul 15, 2024
3fd44f5
Rename tRPC client to platform instead of api (#571)
Esther-Lita Jul 16, 2024
8d71947
fix: rename the postal local mode env variable to be proper one (#573)
BlankParticle Jul 17, 2024
20e84d8
add-gh-autofix (#576)
McPizza0 Jul 18, 2024
32dced5
select z index fix and input box default length fix (#570)
yash-kh Jul 18, 2024
b50a94f
Created the orgAdminProcedure (#574)
Esther-Lita Jul 18, 2024
f730f55
fix-redirect-when-already-in-org (#578)
benjaminshafii Jul 18, 2024
7d10378
fix-rename-shortCode-shortcode (#580)
McPizza0 Jul 18, 2024
2393f6a
feat-display-current-theme (#581)
benjaminshafii Jul 18, 2024
f23b8ca
feat: build apps with tsup and use js files on production (#579)
BlankParticle Jul 21, 2024
317a05d
feat: hono package and helpers are now centralized in `@u22n/hono` (#…
BlankParticle Jul 21, 2024
b9813d4
feat: new sign up UI (#575)
BlankParticle Jul 21, 2024
471e56f
feat: setup optional OpenTelemetry (#585)
BlankParticle Jul 21, 2024
133039e
hotfix: OTEL env variables issue
BlankParticle Jul 22, 2024
ca84b79
hotfix: Web app variables issue
BlankParticle Jul 22, 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
  •  
  •  
  •  
20 changes: 13 additions & 7 deletions .env.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,16 @@ PRIMARY_DOMAIN='localhost'

UNKEY_ROOT_KEY=""

############################ NEXT_PUBLIC VARIABLES ############################
NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
NEXT_PUBLIC_STORAGE_URL=http://localhost:3200
NEXT_PUBLIC_PLATFORM_URL=http://localhost:3300
NEXT_PUBLIC_REALTIME_APP_KEY=secretsecretsecret
NEXT_PUBLIC_REALTIME_HOST=localhost
NEXT_PUBLIC_REALTIME_PORT=3904
########################### TURNSTILE VARIABLES ################################
TURNSTILE_SITE_KEY=
TURNSTILE_SECRET_KEY=

########################## WORKER APP VARIABLES ################################
WORKER_URL=http://localhost:3400
WORKER_ACCESS_KEY=secretsecretsecretsecretsecretsecret

######################### OpenTelemetry Variables ################################
OTEL_ENABLED=false
OTEL_EXPORTER_TRACES_ENDPOINT=
OTEL_EXPORTER_METRICS_ENDPOINT=
OTEL_EXPORTER_LOGS_ENDPOINT=
8 changes: 1 addition & 7 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
# ignore generate imports
auto-imports.d.ts
components.d.ts
nuxt.d.ts

# nuxt and other artefacts
.nuxt
# other artefacts
.output
node_modules
dist
Expand Down
14 changes: 12 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
/**
* @type {import('eslint').Linter.Config}
*/
module.exports = {
root: true,
plugins: ['prettier', 'drizzle'],
extends: ['@nuxt/eslint-config', 'prettier', 'plugin:drizzle/all'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier', 'drizzle', '@u22n/custom'],
extends: ['prettier', 'plugin:drizzle/all'],
rules: {
semi: [2, 'always']
},
Expand All @@ -16,6 +20,12 @@ module.exports = {
}
]
}
},
{
files: ['./packages/database/**/*'],
rules: {
'@u22n/custom/table-needs-org-id': 'error'
}
}
]
};
33 changes: 33 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: autofix.ci
on:
pull_request:
types: [review_requested, ready_for_review]
push:
branches: ['main']
permissions:
contents: read

jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3

- name: Install Node.js
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: '20'

- run: pnpm install

- name: Run ESLint
run: pnpm fix

- name: Run Prettier
run: pnpm format

- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
9 changes: 1 addition & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@ node_modules
.pnp.js
package-lock.json

# nuxt specific
.nuxt
.nitro
# common build outputs
.cache
.output
dist
nuxt.d.ts
framework

# misc
.DS_Store
Expand All @@ -26,9 +22,6 @@ yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
*.log*
test.get.ts
test.post.ts
test.vue

# local env files
.env
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
node_modules
.turbo
.pnpm-store
.nuxt
pnpm-lock.yaml
.next
packages/database/migrations
11 changes: 0 additions & 11 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,14 @@
"convos",
"dmarc",
"domainkey",
"hanko",
"Hanko",
"hono",
"MAILBRIDGE",
"mailfetch",
"mailserver",
"mediumint",
"nitropack",
"nuxt",
"nuxthq",
"nuxtjs",
"opentelemetry",
"otel",
"partialize",
"pinia",
"Pinia",
"planetscale",
"presign",
"presigner",
Expand All @@ -48,11 +40,8 @@
"Unin",
"uninbox",
"unkey",
"unocss",
"unref",
"unstorage",
"unvalidated",
"vueuse",
"waitlist",
"zustand",
"zxcvbn"
Expand Down
45 changes: 0 additions & 45 deletions .vscode/default-snippets-manager.code-snippets

This file was deleted.

2 changes: 0 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"amirha.better-comments-2", // Comment Highlighting for important/explainer comments
"yzhang.markdown-all-in-one", // Markdown support
"dbaeumer.vscode-eslint", // eslint plugin
"lokalise.i18n-ally", // i18n plugin
"vue.volar", // Vue 3 language support
"streetsidesoftware.code-spell-checker", // Spell checker with custom dict
"esbenp.prettier-vscode" // Prettier plugin
]
Expand Down
32 changes: 1 addition & 31 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
{
"i18n-ally.localesPaths": ["packages/locales"],
"editor.codeActionsOnSave": {},
"i18n-ally.dirStructure": "auto",
"i18n-ally.enabledFrameworks": ["vue", "vue-sfc"],
"unocss.root": ["apps/web-app"],
"prettier.bracketSameLine": true,
"prettier.enableDebugLogs": true,
"prettier.singleQuote": true,
"prettier.trailingComma": "all",
"better-comments.tags": [
{
"tag": "!",
Expand Down Expand Up @@ -73,27 +65,5 @@
"italic": false
}
],
"i18n-ally.extract.ignored": [
"w-[16px] h-[16px] text-xs",
"w-[32px] h-[32px] text-sm",
"w-[48px] h-[48px] text-base",
"w-[56px] h-[56px] text-lg",
"w-[64px] h-[64px] text-xl",
"w-[80px] h-[80px] text-2xl",
"w-[128px] h-[128px] text-3xl"
],
"typescript.tsdk": "node_modules/typescript/lib",
"conventionalCommits.scopes": [
"repo",
"web",
"mailbridge",
"storage",
"landing",
"ee",
"db",
"authjs",
"local-docker",
"postal-puppet",
"platform"
]
"typescript.tsdk": "node_modules/typescript/lib"
}
31 changes: 0 additions & 31 deletions .vscode/uninbox-code-snippets.code-snippets
Original file line number Diff line number Diff line change
@@ -1,39 +1,8 @@
{
"Pinia Setup Store Boilerplate": {
"prefix": "pin",
"description": "Bootstrap the code needed for a Vue.js Pinia Setup Store file",
"scope": "",
"body": [
"export const use${TM_FILENAME_BASE/^(.*)$/${1:/pascalcase}/}Store = definePiniaStore('$TM_FILENAME_BASE', () => {",
" $0",
" return {}",
"})",
"",
"if (import.meta.hot) {",
" import.meta.hot.accept(acceptHMRUpdate(use${TM_FILENAME_BASE/^(.*)$/${1:/pascalcase}/}Store, import.meta.hot))",
"}"
]
},
"DrizzleORM Ops": {
"prefix": "orm",
"description": "Import the conditional operators from Drizzle ORM via @u22n/database",
"scope": "",
"body": ["import { $1 } from '@u22n/database/orm'"]
}
// Place your UnInbox workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
}
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,12 @@ Instead, we're detaching from its legacy underpinnings, to build something moder

`UnInbox` is built with the following epic technologies & tools:

- [Nuxt JS](https://nuxt.com) Vue based FrontEnd & Backend + modules
- [Nitro](https://nitro.unjs.io/) Public API + Misc tooling
- [Next JS](https://nextjs.org/) React based FrontEnd & Backend + modules
- [Hono](https://hono.dev/) Public API + Misc tooling
- [Tailwind](https://tailwindcss.com/) CSS Engine
- [tRPC](https://trpc.io/) Typesafe APIs
- [DrizzleORM](https://orm.drizzle.team/) ORM + MySQL

_p.s. Things will change over time!_

## Running Locally

To get a local copy up and running, follow these simple steps.
Expand Down
Loading