QRコードの名前・媒体・場所管理とCSV出力機能を追加#1
Open
haruto-kamijo wants to merge 2 commits into
Open
Conversation
QRコードごとにname/medium/locationを管理できるようにし、旧来のパスコード式 location設定画面(location-setup-html/location-view-html)を廃止して管理画面 上の編集フォームに統合。あわせてアクセスログのCSVエクスポート機能 (CSV_EXPORT_ENABLEDフラグでデフォルト無効)を追加し、グラフ集計だった プロジェクト分析ページは廃止した。 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
PUT /projects/qrcodes/:id と POST /projects/:id/qrcodes に権限チェックが 無く、未認可でも編集・作成できてしまっていたため TRACKING_LINK_EDIT の チェックを追加。あわせて保存失敗時(medium+location重複による409など)の エラーがページ上部の目立たないバナーにしか出ず「保存されていないように 見える」問題があったため、フォーム内に直接エラーを表示するよう変更。 Project一覧にQRコード件数も表示できるようにした。 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Aquarius0715
approved these changes
Jul 21, 2026
Aquarius0715
left a comment
There was a problem hiding this comment.
ありがとうございます!
気づいたことコメントしてあります(imoなので不必要だと判断したらマージしていいです
また、これSQLiteですかね?同時書き込みできないイメージですが、問題なさそうですかね?(RDBとかに移管したい感もあるけど、 S3じゃ厳しいですかね?
| -- Then re-run schema.sql to create the unique index. | ||
|
|
||
| ALTER TABLE QRCodes ADD COLUMN name TEXT NOT NULL DEFAULT ''; | ||
| ALTER TABLE QRCodes ADD COLUMN medium TEXT NOT NULL DEFAULT ''; |
There was a problem hiding this comment.
imo
QRをDBへ保存するメリットってあります?
都度生成でもいいような気がする、、、
| const [isLoading, setIsLoading] = useState(false); | ||
| const [error, setError] = useState<string | null>(null); | ||
| const [currentPage, setCurrentPage] = useState(1); | ||
| const [downloadingId, setDownloadingId] = useState<string | null>(null); |
There was a problem hiding this comment.
imo
不要なStateな気がする
既存もState使ってるならこのままでおk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CSV_EXPORT_ENABLEDフラグでデフォルト無効)。従来のグラフ集計ベースのプロジェクト分析ページは廃止PUT /projects/qrcodes/:idとPOST /projects/:id/qrcodesに権限チェック(TRACKING_LINK_EDIT)が無かったため追加Test plan