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

Update all the things #57

Open
wants to merge 81 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
8ad42f2
chore: update node.js and docker image versions
rriski Apr 14, 2024
b2e2875
chore: run `yarn set version latest`
rriski Apr 14, 2024
9718fa5
chore: update `sharp` to latest
rriski Apr 14, 2024
a141c96
chore: run `yarn install`
rriski Apr 14, 2024
2dcc0ce
chore: use new `faker` package
rriski Apr 14, 2024
7a0f66d
chore: [nx migration] 15-7-0-split-configuration-into-project-json-files
rriski Apr 14, 2024
3cdaa17
chore: [nx migration] add-babel-inputs
rriski Apr 14, 2024
f0b50b2
chore: [nx migration] 15.0.0-migrate-to-inputs
rriski Apr 14, 2024
6fcfd36
chore: [nx migration] update-babel-preset
rriski Apr 14, 2024
fe072ab
chore: [nx migration] 16.0.0-remove-nrwl-cli
rriski Apr 14, 2024
d1ce2c3
chore: [nx migration] 16.0.0-update-nx-cloud-runner
rriski Apr 14, 2024
687da7d
chore: [nx migration] update-16-0-0-add-nx-packages
rriski Apr 14, 2024
1aa984a
chore: [nx migration] update-16-0-0-add-nx-packages
rriski Apr 14, 2024
d9fec0e
chore: [nx migration] update-16-0-0-add-nx-packages
rriski Apr 14, 2024
c0b0a3a
chore: [nx migration] update-16-0-0-add-nx-packages
rriski Apr 14, 2024
a84a7a0
chore: [nx migration] update-16-0-0-add-nx-packages
rriski Apr 14, 2024
c4e895e
chore: [nx migration] update-16-0-0-add-nx-packages
rriski Apr 14, 2024
0aec2be
chore: [nx migration] update-16-2-0-remove-package
rriski Apr 14, 2024
58aae37
chore: [nx migration] add-test-setup-to-inputs-ignore
rriski Apr 14, 2024
519dae3
chore: [nx migration] 17.0.0-use-minimal-config-for-tasks-runner-options
rriski Apr 14, 2024
c7d12b5
chore: [nx migration] update-17-0-0-rename-to-eslint
rriski Apr 14, 2024
7481afb
chore: [nx migration] rm-default-collection-npm-scope
rriski Apr 14, 2024
2af392c
chore: [nx migration] 18.0.0-disable-adding-plugins-for-existing-work…
rriski Apr 14, 2024
f0d3250
chore: [nx migration] move-default-base-to-nx-json-root
rriski Apr 14, 2024
8224e8e
chore: remove nx migrations file
rriski Apr 14, 2024
db0d141
chore: switch `@nrwl/js` -> `@nx/js`
rriski Apr 14, 2024
20facdb
chore: remove unused `@types/faker` package
rriski Apr 14, 2024
f5ac428
chore: update eslint and prettier deps
rriski Apr 14, 2024
bd5a65a
chore: run `yarn lint:fix`
rriski Apr 14, 2024
dce2c7e
chore: update typescript and remove deprecated option
rriski Apr 14, 2024
1829527
fix: typo in confirmation email
rriski Apr 14, 2024
abd82c4
chore: install latest version of `nx` cli
rriski Apr 14, 2024
72dfdbf
chore: update all dependencies
rriski Apr 14, 2024
6a73f81
feat: update antd from v4 to v5
rriski Apr 14, 2024
1913fc3
chore: urql updates
rriski Apr 14, 2024
48dd795
fix(graphql): install @parcel/watcher
rriski Apr 27, 2024
d987107
feat(server): server updates and fixes from upstream
rriski Apr 27, 2024
187d53c
chore: misc updates
rriski Apr 27, 2024
85ad6ed
chore: update eslintrc
rriski Apr 27, 2024
4766656
feat: update next.config.mjs
rriski Apr 27, 2024
6bf81e4
fix: `chalk` imports in worker
rriski Apr 27, 2024
0c561d2
fix: type issues in @app/components
rriski Apr 27, 2024
c17f7f8
fix: run `npx @next/codemod new-link .`
rriski Apr 27, 2024
64d07e5
fix: remove eslint-plugin-react-hooks
rriski Apr 27, 2024
4de8864
chore: lint files
rriski Apr 27, 2024
2412fac
chore: update deps
rriski Apr 27, 2024
c885ed0
chore(client): remove deprecated `images.domains` next.js option
rriski Apr 27, 2024
846c2b0
fix: clean script after rimraf upgrade
rriski Apr 28, 2024
71952b0
chore: remove version from docker-compose files
rriski Apr 28, 2024
461f10e
feat: remove CSRF protections
rriski Apr 28, 2024
70a70bf
feat: update antd theme for v5
rriski Apr 28, 2024
073405c
chore: update urql config after dep updates
rriski Apr 28, 2024
1cf949e
fix: html-to-text usage
rriski Apr 28, 2024
34d361c
deps
rriski Apr 28, 2024
c0a9848
lint
rriski Apr 28, 2024
45b2ca8
fix: silence nx local cache errors
rriski Apr 29, 2024
ab2987f
fix: app translations
rriski Apr 29, 2024
af828ea
fix: deprecated faker functions
rriski Apr 29, 2024
085ecce
fix: `next/image` usage in next.js 14
rriski Apr 29, 2024
6414c3f
fix: dayjs localized formatting
rriski Apr 29, 2024
d10e521
fix: antd notification close renamed to `destroy`
rriski Apr 29, 2024
0a8dc7f
fix: currentTime subscription
rriski Apr 29, 2024
6ba14d2
fix: decoding user from session cookie
rriski Apr 29, 2024
87cea66
fix: import antd-button-color styles
rriski Apr 29, 2024
a101161
chore: update github actions
rriski Apr 29, 2024
1af80cb
fix: clearing graphile-worker jobs in tests after update
rriski Apr 29, 2024
296cc17
fix: fix db tests
rriski Apr 29, 2024
5575720
fix: update server snapshots
rriski Apr 29, 2024
4f249a6
fix: partially fix server tests
rriski Apr 29, 2024
1c050db
chore: update readme tool versions
rriski Apr 29, 2024
bad9d42
fix: fix `yarn depcheck` check
rriski Apr 29, 2024
7751bf3
chore: rename `Dockerfile.dev.db` -> `Dockerfile.db.dev`
rriski Feb 3, 2025
8565547
chore: random yarn updates
rriski Feb 3, 2025
667209d
chore: update Dockerfile.dv.dev to latest versions
rriski Feb 3, 2025
8c122b6
chore: update `nx` to latest and run migrations
rriski Feb 3, 2025
9200ce4
feat: use new nx cache format
rriski Feb 3, 2025
b152982
fix: `yarn build` tsc errors
rriski Feb 3, 2025
1f08f99
fix(client): nullish coalescing bug
rriski Feb 3, 2025
c3e4fc8
chore(readme): add instructions on seeding db with fake data
rriski Feb 3, 2025
841f50c
chore(tests): update snapshots
rriski Feb 3, 2025
921b3cc
chore: fix running most unit tests
rriski Feb 3, 2025
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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf8
charset = utf-8

[*.{js,jsx,ts,tsx,graphql,sql,md,html,mjml,json,jsonc,json5,yml,yaml,template,sh,Dockerfile}]
indent_style = space
Expand Down
5 changes: 4 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
node_modules
.yarn/**
.nx/**
**/node_modules
**/dist
**/.next
/data/schema.graphql
/data/schema.sql
/@app/graphql/index.*
Expand Down
81 changes: 45 additions & 36 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,40 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
extends: [
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/typescript",
"prettier",
],
plugins: [
"jest",
"@typescript-eslint",
"react",
"simple-import-sort",
"import",
],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: {
version: "detect",
},
next: {
rootDir: "@app/client/",
},
},
env: {
browser: true,
node: true,
jest: true,
es6: true,
},
overrides: [
{
files: ["@app/e2e/cypress/**"],
Expand All @@ -7,6 +43,10 @@ module.exports = {
"cypress/globals": true,
},
},
{
files: ["@app/client/**", "@app/components/**"],
extends: ["next"],
},
{
files: ["*.graphql"],
rules: {
Expand Down Expand Up @@ -69,44 +109,8 @@ module.exports = {
},
{
files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.mjs", "**/*.jsx"],
parser: "@typescript-eslint/parser",
extends: [
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/recommended",
"plugin:import/typescript",
"prettier",
],
plugins: [
"jest",
"@typescript-eslint",
"react-hooks",
"react",
"simple-import-sort",
"import",
],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: {
version: "detect",
},
},
env: {
browser: true,
node: true,
jest: true,
es6: true,
},
rules: {
"react/display-name": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
Expand Down Expand Up @@ -151,6 +155,11 @@ module.exports = {
"react/jsx-filename-extension": [1, { extensions: [".ts", ".tsx"] }],
"react/no-unescaped-entities": 0,

// React rules for legacy class components
"react/no-direct-mutation-state": 0,
"react/no-string-refs": 0,
"react/require-render-return": 0,

"import/no-extraneous-dependencies": 0,
"react/destructuring-assignment": 0,

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/install-pg-dump/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ runs:
sudo bash -c "echo deb http://apt.postgresql.org/pub/repos/apt/ jammy-pgdg main >> /etc/apt/sources.list.d/pgdg.list"
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get -yqq install postgresql-client-11
sudo apt-get -yqq install postgresql-client-16
shell: bash
6 changes: 3 additions & 3 deletions .github/actions/node-and-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ description: Sets up Node.js and caches yarn installs
inputs:
node-version:
description: Node version to use with actions/setup-node
default: 14.x
default: 22.x

runs:
using: composite
steps:
- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}

Expand All @@ -20,7 +20,7 @@ runs:
shell: bash

- name: Cache node_modules
uses: actions/cache@v2
uses: actions/cache@v4
id: yarn-cache
with:
path: |
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ on:

jobs:
cypress-run:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
container:
image: cypress/browsers:node14.17.0-chrome91-ff89
image: cypress/browsers:latest
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -44,12 +44,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup node and cache
uses: ./.github/actions/node-and-cache
with:
node-version: 14

- name: Setup and build
run: |
Expand All @@ -65,7 +63,7 @@ jobs:
run: yarn worker start &

- name: Cypress run
uses: cypress-io/github-action@v2
uses: cypress-io/github-action@v6
with:
command: yarn run:ci
working-directory: "@app/e2e"
Expand All @@ -76,13 +74,13 @@ jobs:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: "@app/e2e/cypress/screenshots"

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/nextjs_bundle_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup node and cache
uses: ./.github/actions/node-and-cache
Expand All @@ -27,7 +27,7 @@ jobs:
working-directory: .

- name: Restore next build
uses: actions/cache@v2
uses: actions/cache@v4
id: restore-build-cache
env:
cache-name: cache-next-build
Expand All @@ -47,13 +47,13 @@ jobs:
run: npx -p nextjs-bundle-analysis report

- name: Upload bundle
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: bundle
path: "@app/client/.next/analyze/__bundle_analysis.json"

- name: Download base branch bundle stats
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v8
if: success() && github.event.number
with:
workflow: nextjs_bundle_analysis.yml
Expand Down Expand Up @@ -88,22 +88,22 @@ jobs:
echo ::set-output name=body::$body

- name: Find Comment
uses: peter-evans/find-comment@v1
uses: peter-evans/find-comment@v3
if: success() && github.event.number
id: fc
with:
issue-number: ${{ github.event.number }}
body-includes: "<!-- __NEXTJS_BUNDLE -->"

- name: Create Comment
uses: peter-evans/create-or-update-comment@v1.4.4
uses: peter-evans/create-or-update-comment@v4
if: success() && github.event.number && steps.fc.outputs.comment-id == 0
with:
issue-number: ${{ github.event.number }}
body: ${{ steps.get-comment-body.outputs.body }}

- name: Update Comment
uses: peter-evans/create-or-update-comment@v1.4.4
uses: peter-evans/create-or-update-comment@v4
if: success() && github.event.number && steps.fc.outputs.comment-id != 0
with:
issue-number: ${{ github.event.number }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [22.x]

services:
redis:
Expand All @@ -23,7 +23,7 @@ jobs:
- 6379:6379
postgres:
# Use a Postgres image that has wal2json installed
image: debezium/postgres:11
image: debezium/postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand All @@ -34,7 +34,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup node and cache
uses: ./.github/actions/node-and-cache
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/production-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup node and cache
uses: ./.github/actions/node-and-cache
Expand All @@ -45,10 +45,10 @@ jobs:
CI: true

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Build server
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
file: ./docker/dockerfiles/Dockerfile.prod
load: true
Expand All @@ -64,7 +64,7 @@ jobs:
target: server

- name: Build worker
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
file: ./docker/dockerfiles/Dockerfile.prod
load: true
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
node_modules
dist
cache
.nx/cache
.nx/workspace-data
/heroku-setup
/yarn-error.log
/@app/e2e/cypress/videos
Expand Down
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"graphql"
],
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll": "explicit"
},

"files.insertFinalNewline": true,
Expand All @@ -33,7 +33,7 @@

"[graphql]": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": false
"source.fixAll.eslint": "never"
}
},
"[markdown]": {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Loading