Skip to content

v2.0.0 release #681

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

Closed
wants to merge 131 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
c962fb4
授業IDを選択時に表示 (#464)
nakaterm Oct 8, 2024
d7683f2
メッセージ編集中に ctrl + enter で確定する (#471)
aster-void Oct 10, 2024
62a3a94
keep-alive のスパンを 5 分から 2 分に短縮 (#470)
aster-void Oct 10, 2024
7aae429
[bugfix] 最初のチャットのメッセージが表示されない不具合を修正 (#469)
aster-void Oct 10, 2024
3801573
よくある質問をSettings画面にも追加した (#477)
KaichiManabe Oct 11, 2024
fe4bf7f
HeaderのCourseMateIconをクリックすると、/homeに飛ぶようにした (#478)
KaichiManabe Oct 11, 2024
e57bac5
freeze lockfile (#485)
aster-void Oct 22, 2024
af5548d
cache token (#476)
aster-void Oct 23, 2024
18bf215
HOME で REJECT した/された人を出さない (#508)
aster-void Oct 23, 2024
2370cac
Fix zod error (#506)
aster-void Oct 27, 2024
6a4fe05
prepare-deploy-server を修正 (#505)
aster-void Nov 1, 2024
d21df4d
Scraper (#487)
aster-void Nov 2, 2024
a3a8e5c
興味のある分野 (server のみ) (#488)
aster-void Nov 2, 2024
3c8d155
任意のメールアドレスでログインを可能にする (#509)
aster-void Nov 2, 2024
5737ddd
Vite + React Router → Next.js (#512)
nakaterm Nov 5, 2024
021ea3e
fix web build (#514)
aster-void Nov 7, 2024
a7a61da
delete package-lock.json (#513)
aster-void Nov 10, 2024
a9e3b78
edit pull_request_template.md (#504)
aster-void Nov 10, 2024
a91c531
SERVER_ORIGIN, WEB_ORIGIN, WEB_ORIGIN_BUILD etc の代わりに CORS_ALLOW_ORIG…
aster-void Nov 10, 2024
175724d
基本的なコンポーネントを daisyUI に移行 (#515)
nakaterm Nov 10, 2024
7b253fb
signup ページのブロックを忘れていたので追加 (#517)
nakaterm Nov 10, 2024
d58d8fc
Next移行に伴う、リロード問題を解決 (#518)
KaichiManabe Nov 10, 2024
bd7142b
BottomBar を daisyUI に置き換え (#520)
nakaterm Nov 10, 2024
67993bd
install lefthook (#522)
aster-void Nov 11, 2024
412b1ce
use object (#474)
aster-void Nov 11, 2024
2f44a82
step4を修正 (#523)
KaichiManabe Nov 17, 2024
f159108
細かいDaisyUI移行を実行 (#526)
KaichiManabe Nov 17, 2024
7b85df1
CardをDaisyUIに移行 (#529)
GuY8528 Nov 17, 2024
4f97a30
install lefthook via bun (#528)
aster-void Nov 23, 2024
81a7ca5
stop copying common (#530)
aster-void Nov 24, 2024
799a085
homeのdaisyUI対応 (#531)
GuY8528 Nov 30, 2024
85673a1
ビルドエラーの修正とpre-commitのエラーの修正 (#533)
KaichiManabe Nov 30, 2024
03aff82
Fix/home daisy UI (#534)
GuY8528 Nov 30, 2024
d6b5739
/chat/:idにアクセス可能に (#535)
KaichiManabe Nov 30, 2024
dd3dad8
ハート要素を削除した (#536)
KaichiManabe Nov 30, 2024
3d751bc
Friends タブを MUI → daisyUI に修正 (#525)
KaichiManabe Nov 30, 2024
7a845bb
リクエストを送ったら、チャットでメッセージが送れるようになる (#538)
KaichiManabe Dec 2, 2024
84a13ab
KeepMemo (#444)
RRRyoma Dec 2, 2024
4c60edc
ユーザー名検索 (#524)
RRRyoma Dec 3, 2024
59e4409
lefthook install が実行されないのを修正 (#541)
aster-void Dec 3, 2024
1606008
チャットの並びをcreatedAtの時間で時系列順にした (#542)
KaichiManabe Dec 3, 2024
3c0920f
port (#550)
aster-void Dec 8, 2024
23a2b70
手動で index するのではなく、Queue (中身は Array) を使う (#472)
aster-void Dec 10, 2024
f81e82d
fix rust ci (#552)
aster-void Dec 15, 2024
e24eec3
興味分野タグを User とともに取得 (#537)
nakaterm Dec 15, 2024
4eeb364
お知らせページを追加 運用はコードを直書き (#553)
KaichiManabe Dec 15, 2024
cf3e6f2
unread badge (#547)
aster-void Dec 17, 2024
7561741
Feat/card with interests (#543)
GuY8528 Dec 28, 2024
39bf6e7
fixed websocket (#557)
aster-void Dec 28, 2024
f7c089a
create make command for deploy web (#551)
aster-void Dec 28, 2024
94438b6
fix Buffer and Uint8Array (#559)
aster-void Dec 28, 2024
364bf27
add logging (#560)
aster-void Dec 28, 2024
b30a52e
give read default(false) (#558)
aster-void Dec 28, 2024
1fb12e0
検索画面から、リクエストを送れるようになった (#561)
KaichiManabe Dec 28, 2024
fc26536
チャットでの画像のアップロード HELP(CSS): 画像が同一行に複数個表示される (#503)
aster-void Dec 28, 2024
78c0290
log:ws: add more log (#563)
aster-void Dec 28, 2024
00df094
fix websocket not working on render (#566)
aster-void Dec 29, 2024
03f2196
初期登録画面 の daisyUI 移行 (#519)
aster-void Jan 4, 2025
6a7d5f8
Cardの表示内容が正しく更新されるようにした (#556)
GuY8528 Jan 4, 2025
a0d78b9
詳細ビュー (旧裏面) を作成 (#565)
nakaterm Jan 4, 2025
5cd9499
flake: overall improvement (#568)
aster-void Jan 7, 2025
e20dbe5
プロフィール編集の修正・興味分野編集の追加 (#527)
aster-void Jan 14, 2025
eab1f49
header, main, footerのCSSがちゃんと分けられるようになった。 (#577)
KaichiManabe Jan 14, 2025
64f2a0c
recommender を更新する (#575)
aster-void Jan 15, 2025
7c063fa
Cascade Interest on InterestSubject Deletion (#573)
aster-void Jan 17, 2025
da9449e
fix flake (again) (#579)
aster-void Jan 19, 2025
856ee9a
trap kill 0 on EXIT rather than limiting it on SIGINT (#582)
aster-void Jan 19, 2025
6457925
search by attrs (#580)
aster-void Jan 19, 2025
8ac6171
search by course (#587)
aster-void Jan 19, 2025
969b8bd
Message UI (#589)
RRRyoma Jan 19, 2025
2ebda36
edit を setting に統合 (#585)
nakaterm Jan 19, 2025
3539fdb
sync db before running CI (#591)
aster-void Jan 21, 2025
5432ac6
delete unused web/src (#592)
aster-void Jan 21, 2025
fad0c87
hack: fixed it sometimes not running on NixOS (#594)
aster-void Jan 21, 2025
5a19151
全体のCSSの再調整(特にチャット) (#584)
KaichiManabe Jan 21, 2025
c83426d
fixed image button not being focusable with tab (#593)
aster-void Jan 21, 2025
d77f077
Setting UI (#603)
RRRyoma Jan 21, 2025
2d172f8
Rust の CI を scraper/ に差分があるときのみ実行する (#581)
aster-void Jan 21, 2025
7c8626b
fixed home not loading (i'm stupid) (#604)
aster-void Jan 21, 2025
9a88f1b
BottomNavigationのアイコンを修正 (#606)
KaichiManabe Jan 21, 2025
2ce0228
不要なerror.messageをすべて削除した。 (#611)
KaichiManabe Jan 21, 2025
e9939be
チュートリアル画面のレイアウトを修正 (#612)
nakaterm Jan 21, 2025
15ddc7d
fixed home showing "sent like to all" while loading (#607)
aster-void Jan 21, 2025
7170340
fixed 608: it was because it was loading auth state. (#613)
aster-void Jan 21, 2025
42ccf8c
fixed format (#616)
aster-void Jan 22, 2025
d49a642
center warning text in account deletion (#614)
aster-void Jan 22, 2025
3584ff5
add spinner while processing (and fix async bug) (#615)
aster-void Jan 23, 2025
565fe58
useAuthorizedData と useCustomizedSWR のドキュメントを改善する (#617)
aster-void Jan 23, 2025
e4d8993
カードの裏面削除・デザイン修正 (#564)
GuY8528 Jan 23, 2025
b348655
全員にいいねを送りました!のスタイリング (#619)
nakaterm Jan 23, 2025
c97d59d
ヘッダーを新仕様に (#620)
nakaterm Jan 23, 2025
789df65
fix settings/course (#632)
aster-void Feb 11, 2025
9f2a8ba
fix settings profile (#631)
aster-void Feb 11, 2025
63309a0
Home のデザイン修正・モバイルでの挙動修正 (#629)
nakaterm Feb 11, 2025
0b00cf3
`bun.lock` に移行と flake のアップデート、あと nix-prisma-utils を使う (#634)
aster-void Feb 11, 2025
2a606c0
hack: remove frozen lockfile (#638)
aster-void Feb 11, 2025
2056ea8
remove: prisma exec (#639)
aster-void Feb 11, 2025
b3c89ea
スマホ画面で、画像がダウンロードされている問題を解決 (#641)
KaichiManabe Feb 11, 2025
038709d
common: convert zod to peerDependency
aster-void Feb 11, 2025
2247500
bun: convert to workspaces from file: protocol
aster-void Feb 11, 2025
3ff9b62
delele package-lock.json (#642)
aster-void Feb 15, 2025
349bb27
SQL のログを出力 (#648)
nakaterm Feb 15, 2025
e2ef12d
migrate most scripts from make to bun (#643)
aster-void Feb 15, 2025
2e81ddc
flake: update (#640)
aster-void Feb 15, 2025
44ed5b4
fix: prisma couldn't build with --sql (#646)
aster-void Feb 15, 2025
cc8cb6f
delete type Result and try catch (#647)
aster-void Feb 15, 2025
e46bf9f
Express のエラーハンドリングを修正 (#650)
nakaterm Feb 16, 2025
dd4c9e1
hotfix: don't throw if lastMessage is not found (#651)
aster-void Feb 16, 2025
800c394
Migrate to hono (#653)
aster-void Feb 19, 2025
f6158f6
fix: get by id (#661)
aster-void Feb 20, 2025
df61e4e
hotfix: cannot authorize (#662)
aster-void Feb 20, 2025
4712336
deploy: upgrade bun before prepare (#660)
aster-void Feb 20, 2025
da11920
授業選択ダイアログのデザイン改善 (#663)
RRRyoma Feb 20, 2025
c1dfc1d
perf: cache guid -> userid (#658)
aster-void Feb 20, 2025
0b78d47
非効率な部分を削除 (#668)
KaichiManabe Feb 20, 2025
6e75b58
Homeでユーザー取得時にloading画面にする (#665)
RRRyoma Feb 20, 2025
043bba2
prisma の includeにjoinを追加した (#666)
KaichiManabe Feb 20, 2025
407a3af
fix(deploy): bun can now ignore lockfile (#669)
aster-void Feb 20, 2025
f822e67
feat: use SSE instead of ws (#667)
aster-void Feb 20, 2025
d6a2263
fix: module not found (#670)
aster-void Feb 20, 2025
4014880
Confirmation UI (#671)
RRRyoma Feb 21, 2025
0ad837e
fix: delete bun.lock from sub packages (#675)
aster-void Feb 27, 2025
3ac461c
UI renew (#673)
RRRyoma Mar 6, 2025
0b39bd1
Homeアニメーション改善 (#659)
GuY8528 Mar 6, 2025
c53cd65
fix hono Context (#677)
GuY8528 Mar 6, 2025
548e146
deploy (#676)
aster-void Mar 6, 2025
530ba3c
static generation (#649)
nakaterm Mar 6, 2025
cb7dc5c
マイグレーションを追加 (#679)
KaichiManabe Mar 6, 2025
cebc621
Update deploy.yml (#680)
KaichiManabe Mar 6, 2025
6277fe7
Resolve release error (#682)
KaichiManabe Mar 6, 2025
83214a6
Fix v2 release error (#683)
nakaterm Mar 6, 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
20 changes: 18 additions & 2 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,28 @@
"words": [
"autoincrement",
"bunx",
"chrono",
"coursemate",
"daisyui",
"datasource",
"direnv",
"ECCS",
"isready",
"lockb",
"mytheme",
"notistack",
"psql",
"qiita",
"reqwest",
"safify",
"supabase",
"swiper"
"swiper",
"lefthook",
"stdenv",
"rustc",
"pkgs",
"nixpkgs",
"libquery"
],
"dictionaries": [
"softwareTerms",
Expand All @@ -31,6 +41,7 @@
],
"ignorePaths": [
"flake.*",
"nix/*",
"**/.git/**",
"**/node_modules/**",
"server/target/**",
Expand All @@ -39,6 +50,11 @@
"**/bun.lockb",
"**/*.svg",
"**/migration.sql",
"**/data.json"
"**/data.json",
"**/Cargo.*",
"scraper/target",
"**/rust-toolchain.toml",
"web/out",
"**/tsconfig.tsbuildinfo"
]
}
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.env*
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SQL_GENERATE_URL=postgres://sql-url
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
watch_file ./server/prisma.nix
# I recommend using nix-direnv: https://github.com/nix-community/nix-direnv
if command -v nix;
then
Expand Down
9 changes: 0 additions & 9 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
<!--変更したい場合は、`/.github/pull_request_template.md` を修正して下さい。-->
# PRの概要

<!-- 変更の目的 もしくは 関連する Issue 番号 -->
<!-- 以下のように書くと Issue にリンクでき、マージ時に自動で Issue を閉じられる-->
<!-- closes #001 -->

## 具体的な変更内容
<!-- ビューの変更がある場合はスクショによる比較などがあるとわかりやすい -->

## 影響範囲
<!-- この関数を変更したのでこの機能にも影響がある、など -->

## 動作要件
<!-- 動作に必要な 環境変数 / 依存関係 / DBの更新 など -->

## 補足
<!-- レビューをする際に見てほしい点、ローカル環境で試す際の注意点、など -->

## レビューリクエストを出す前にチェック!

Expand Down
61 changes: 35 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,39 @@ on:

env:
DATABASE_URL: ${{ secrets.DATABASE_URL_FOR_PRISMA_SQL_GENERATION }}
DIRECT_URL: ${{ secrets.DATABASE_URL_FOR_PRISMA_SQL_GENERATION }}
NEXT_PUBLIC_API_ENDPOINT: "sample"
NEXT_PUBLIC_FIREBASE_API_KEY: "sample"
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: "sample"
NEXT_PUBLIC_FIREBASE_PROJECT_ID: "sample"
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: "sample"
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: "sample"
NEXT_PUBLIC_FIREBASE_APP_ID: "sample"
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: "sample"
jobs:
sync-db:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun i --frozen-lockfile
- run: bunx prisma db push
working-directory: server

build:
name: Build
runs-on: ubuntu-latest
needs: [sync-db]
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: make setup-ci
- run: make build
- run: bun install --frozen-lockfile
- run: bun run build

biome:
name: Code style check via Biome
Expand All @@ -31,8 +53,8 @@ jobs:
with:
version: latest

- run: make setup
- run: biome check
- run: bun install --frozen-lockfile
- run: bun style:check

type-check:
name: Type Check
Expand All @@ -42,12 +64,8 @@ jobs:
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: make setup-ci

- run: bunx tsc --noEmit
working-directory: web
- run: bunx tsc --noEmit
working-directory: server
- run: bun install --frozen-lockfile
- run: bun type

spell-check:
name: Spell Check
Expand All @@ -58,33 +76,24 @@ jobs:
with:
bun-version: latest

- run: make setup-ci
- run: make spell-check
- run: bun install --frozen-lockfile
- run: bun spell .

test:
name: Bun Test
runs-on: ubuntu-latest
needs: [sync-db]
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: make setup-ci
- run: make test
- run: bun install --frozen-lockfile
- run: bun run test

deploy-test-web:
name: Deploy Test (web)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: oven-sh/setup-bun@v2
- run: make prepare-deploy-web
- run: test `ls web/dist | wc -l` != 0

deploy-test-server:
name: Deploy Test (server)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: oven-sh/setup-bun@v2
- run: make prepare-deploy-server
- run: bun prepare:deploy:web
- run: test `ls web/.next | wc -l` != 0
17 changes: 17 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Deploy
on:
push:
branches:
- release

jobs:
deploy:
name: Deploy Server to Fly.io
runs-on: ubuntu-latest
env:
SQL_GENERATE_URL: ${{ secrets.DATABASE_URL_FOR_PRISMA_SQL_GENERATION }}

steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --build-arg SQL_GENERATE_URL=$SQL_GENERATE_URL --access-token "${{ secrets.FLY_DEPLOY_TOKEN }}"
2 changes: 1 addition & 1 deletion .github/workflows/keep-alive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Keep Alive

on:
schedule:
- cron: "*/5 * * * *"
- cron: "*/2 * * * *"
workflow_dispatch:

env:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Rust
on:
pull_request:
paths:
- scraper/**
push:
branches: [main]
paths:
- scraper/**

jobs:
all:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
RUSTFLAGS: -D warnings
defaults:
run:
working-directory: scraper
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/
~/.rustup/
scraper/target
key: cargo-cache-${{ github.job }}-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.82.0
components: clippy,rustfmt
- run: cargo build
- run: cargo build --release
- run: cargo test
- run: cargo clippy
- run: cargo fmt --check
13 changes: 6 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/node_modules
.env
/.direnv
/.husky

# Logs
logs
*.log
Expand All @@ -7,11 +12,6 @@ yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
Expand All @@ -23,5 +23,4 @@ dist-ssr
*.sln
*.sw?

.env
/.direnv
tsconfig.tsbuildinfo
1 change: 0 additions & 1 deletion .husky/pre-commit

This file was deleted.

33 changes: 33 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# syntax = docker/dockerfile:1

ARG BUN_VERSION=1.2.2
FROM oven/bun:${BUN_VERSION} AS base
LABEL fly_launch_runtime="Bun/Prisma"
ENV NODE_ENV="production"

# Throw-away build stage to reduce size of final image
FROM base AS build

WORKDIR /build
ARG SQL_GENERATE_URL
RUN test -n "${SQL_GENERATE_URL}"
ENV DATABASE_URL=$SQL_GENERATE_URL
ENV DIRECT_URL=$SQL_GENERATE_URL
COPY . .
RUN --mount=type=cache,target=~/.bun/install bun install --frozen-lockfile --ignore-scripts
RUN cd server; bun prisma generate --sql
RUN cd server; bun run :build


# Final stage for app image
FROM base AS runner
WORKDIR /srv

# Copy built application
COPY --from=build /build/server/target/index.js /srv/index.js
COPY --from=build /build/node_modules/.prisma/client /node_modules/.prisma/client
COPY --from=build /build/node_modules/@img /node_modules/@img

# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
CMD [ "bun", "run", "./index.js" ]
Loading
Loading