Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
225 changes: 112 additions & 113 deletions .betterer.results

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .devops/aws/src/stacks/cloudfront/cloudfront.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class CloudfrontStack extends Stack {
bundling: {
image: cdk.DockerImage.fromBuild(`${repoRootDir}/client`, {
buildArgs: {
REACT_APP_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:
VITE_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:
props.otelCollectorUrl,
},
}),
Expand Down
4 changes: 2 additions & 2 deletions .devops/migrator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:24-bullseye-slim AS builder
FROM node:24.14.0-bullseye-slim AS builder

WORKDIR /app

Expand All @@ -13,7 +13,7 @@ RUN npm run build

RUN npm prune --omit=dev

FROM node:24-bullseye-slim AS base
FROM node:24.14.0-bullseye-slim AS base

WORKDIR /app

Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/apply_pr_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
- uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
check-latest: true
cache: 'npm'
- run: npm ci
- name: Generate graphql
Expand All @@ -56,7 +55,6 @@ jobs:
- uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
check-latest: true
cache: 'npm'

- name: Install dependencies in root and client directory
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish-db-migrator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
check-latest: true
registry-url: 'https://registry.npmjs.org'
cache: 'npm'

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish-types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
check-latest: true
registry-url: 'https://registry.npmjs.org'
cache: 'npm'

Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24
24.14.0
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Docker's cache will let us skip installs when the dependencies haven't changed.
# We build on debian because it has fewer dependency issues than Alpine for our
# native modules, and we don't really care about the larger image size.
FROM node:24-bullseye-slim AS server_base
FROM node:24.14.0-bullseye-slim AS server_base
WORKDIR /app

# Append "--build-arg OMIT_SNOWFLAKE='true'" to your call to avoid installing
Expand All @@ -25,7 +25,7 @@ FROM server_base AS build_backend
RUN npm run build

# make a shared layer that can be the base for worker and api images.
FROM node:24-bullseye-slim AS backend_base
FROM node:24.14.0-bullseye-slim AS backend_base
WORKDIR /app
RUN apt-get update && apt-get install dumb-init
COPY --from=build_backend ["/app/package.json", "/app/package-lock.json", "./"]
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ npm install \
npm run create-org
```

Use the credentials provided to log in at `http://localhost:3000`.
Use the credentials provided to log in at `http://localhost:3000`.
Please note that the initial page load may take a while.


### **Database Structure and Migrations**
Expand Down Expand Up @@ -164,4 +165,4 @@ Writing code is not the only way to help the project. Reviewing pull requests, a
* General discussion channel \#general
* Development discussions \#coop
* Join our [newsletter](https://roost.tools/#get-started) for more announcements and information
* Follow us on [LinkedIn](https://www.linkedin.com/company/roost-tools/) or [Bluesky](https://bsky.app/profile/roost.tools)
* Follow us on [LinkedIn](https://www.linkedin.com/company/roost-tools/) or [Bluesky](https://bsky.app/profile/roost.tools)
1 change: 0 additions & 1 deletion client/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

!src/
!public/
!craco.config.js
!package*.json
!postcss.config.js
!tailwind.config.js
Expand Down
2 changes: 1 addition & 1 deletion client/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
# (e.g., to debug production errors).
# GENERATE_SOURCEMAP=false

REACT_APP_NOTION_PROXY_SERVER_URL=http://localhost:4000
VITE_NOTION_PROXY_SERVER_URL=http://localhost:4000
5 changes: 3 additions & 2 deletions client/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ module.exports = {
'.eslintrc.cjs',
'eslint',
'tailwind.config.js',
'craco.config.js',
'*.stories.tsx'
'*.stories.tsx',
'vite.config.ts',
'vite-env.d.ts'
],
plugins: ['etc', 'custom-rules'],
rules: {
Expand Down
6 changes: 3 additions & 3 deletions client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:24-bullseye-slim AS client_base
FROM node:24.14.0-bullseye-slim AS client_base
WORKDIR /app

# ARG is used to get the release id into the ENV from the command line, and then
Expand All @@ -13,10 +13,10 @@ RUN --mount=type=cache,target=/root/.npm npm ci
COPY . .
FROM client_base

ARG REACT_APP_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
ARG VITE_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT

# Don't run eslint over the frontend code when building the image, b/c we should
# assume that it'll be run by CRA during local dev, and on Github as a PR hook,
# before we ever deploy. So no need to do it again here.
ENV DISABLE_ESLINT_PLUGIN=true
RUN NODE_OPTIONS="--max-old-space-size=5250" REACT_APP_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=$REACT_APP_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT npm run build
RUN NODE_OPTIONS="--max-old-space-size=5250" VITE_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=$VITE_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT npm run build
21 changes: 0 additions & 21 deletions client/craco.config.js

This file was deleted.

16 changes: 4 additions & 12 deletions client/public/index.html → client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,22 @@
src="https://cdn-cookieyes.com/client_data/dc1f6469ed06cb8b7d7dc617/script.js"
></script>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="A no-code platform for Trust and Safety"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="apple-touch-icon" href="/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="manifest" href="/manifest.json" />
<style>
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');
</style>
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.

Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Coop</title>
<!-- Google tag (gtag.js) -->
<script
Expand Down Expand Up @@ -76,6 +67,7 @@
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
Expand Down
Loading
Loading