Skip to content

2026/04/29 mainマージ#1087

Merged
Chikuwa0141 merged 50 commits intomainfrom
develop
Apr 29, 2026
Merged

2026/04/29 mainマージ#1087
Chikuwa0141 merged 50 commits intomainfrom
develop

Conversation

@Wakai111
Copy link
Copy Markdown
Collaborator

対応Issue

resolve #0

概要

mainマージ用のプルリクエスト

  • 産学局の進捗報告ページ作成
  • 募金のDB反映
  • 産学局関連の微修正

画面スクリーンショット等

  • URL
    スクリーンショット

テスト項目

備考

hikahana and others added 30 commits March 20, 2026 19:06
nakatashingo and others added 20 commits April 10, 2026 22:30
…ne form default values in ProgressReportPage
…ons/SponsorActivitiesDesktopSection.tsx

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
- SponsorActivitiesDesktopSection.tsx: リファクタリングの残骸により壊れていたJSXを削除
- globals.css: 産学局用の --color-industry-university テーマ変数を追加
- createPurchaseOrderPdf.ts / createPurchaseReportPdf.ts: BUREAUS を id で検索するよう修正し、bureauID=7 でのクラッシュとオフバイワンを解消

Co-Authored-By: TkymHrt <23.h.takayama.nutfes@gmail.com>
ネイティブのtitle属性に戻すことで、オーバーフロー境界で切り取られる
問題を回避

Co-Authored-By: TkymHrt <23.h.takayama.nutfes@gmail.com>
- min-w-245は無効なTailwindクラスのためmin-w-[980px]に戻す
- 産学局用の--color-industry-university CSS変数をglobals.cssに追加し、BureauLabelのスタイル崩れを防止

Co-Authored-By: TkymHrt <23.h.takayama.nutfes@gmail.com>
BUREAUS[bureauID]は配列インデックス(0始まり)としてDBのbureauID(1始まり)を使用しており、
新規追加した産学局(id=7)でundefinedとなりクラッシュするバグを修正。
BUREAUS.find((b) => b.id === bureauID)?.name のパターンに変更。

Co-Authored-By: TkymHrt <23.h.takayama.nutfes@gmail.com>
産学局を追加し、スポンサー活動の表示を改善
…eport-frontend

協賛活動の進捗報告ページのフロントエンド
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new "Progress Report" (進捗報告) feature, including a dedicated page and several components for managing sponsorship activity status and generating invoice/receipt PDFs. It also restructures the database schema for buildings and rooms, adds the "Industry-University Bureau" (産学局) across the system, and updates the OpenAPI specification. Feedback focuses on correcting a Tailwind CSS typo, improving error handling for PDF generation, and refactoring hardcoded labels and icon logic to use centralized constants or mappings.

Comment on lines +25 to +31
className='min-w-52 text-md justify-center border-[#56daff] px-4 py-1.5 font-normal text-[#56daff]'
onClick={() => setIsBlankReceiptModalOpen(true)}
>
手書きで領収書発行
</OutlinePrimaryButton>
<OutlinePrimaryButton
className='min-w-52 text-md justify-center border-[#56daff] px-4 py-1.5 font-normal text-[#56daff]'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Tailwind CSSの標準クラスに text-md は存在しません。text-base または text-sm のタイポである可能性があります。他のコンポーネントとの一貫性を保つため、text-base への修正を検討してください。

Suggested change
className='min-w-52 text-md justify-center border-[#56daff] px-4 py-1.5 font-normal text-[#56daff]'
onClick={() => setIsBlankReceiptModalOpen(true)}
>
手書きで領収書発行
</OutlinePrimaryButton>
<OutlinePrimaryButton
className='min-w-52 text-md justify-center border-[#56daff] px-4 py-1.5 font-normal text-[#56daff]'
className='min-w-52 text-base justify-center border-[#56daff] px-4 py-1.5 font-normal text-[#56daff]'
onClick={() => setIsBlankReceiptModalOpen(true)}
>
手書きで領収書発行
</OutlinePrimaryButton>
<OutlinePrimaryButton
className='min-w-52 text-base justify-center border-[#56daff] px-4 py-1.5 font-normal text-[#56daff]'

Comment on lines +127 to +128
} catch (error) {
console.error('Failed to generate invoice PDF:', error);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

PDFの生成に失敗した場合、console.error によるログ出力のみとなっており、ユーザーにエラーが発生したことが伝わりません。ProgressReportReceiptPdfModal.tsx のように、エラー状態を管理して画面上にメッセージを表示するか、useToast を利用して通知を行うなどのフィードバックを追加することを推奨します。

{activity.sponsorStyles && activity.sponsorStyles.length > 0 ? (
activity.sponsorStyles.map((link, index) => (
<div key={`${link.sponsorStyleId}-${index}`}>
{`${link.category === 'money' ? '金' : '物'} ${link.style?.style ?? ''}${
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

協賛スタイルのカテゴリー('money' / 'goods')に応じたラベルがハードコードされています。@/utils/sponsorshipActivityProgressReport で定義されている SPONSOR_STYLE_CATEGORY_LABELS を利用するか、表示用の定数を別途定義して利用することで、保守性と一貫性を高めることができます。

Comment on lines +37 to +41
{sponsorStyleLink.category === 'goods' ? (
<MdInventory2 className='shrink-0 text-[#666666]' size={16} />
) : (
<MdAttachMoney className='shrink-0 text-[#666666]' size={16} />
)}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

カテゴリーに応じたアイコンの切り替えロジックがハードコードされています。今後カテゴリーが増えた際の拡張性を考慮し、マッピングオブジェクトを定義するか、ユーティリティ関数に切り出すことを検討してください。

@Chikuwa0141 Chikuwa0141 self-requested a review April 29, 2026 06:13
Copy link
Copy Markdown
Collaborator

@Chikuwa0141 Chikuwa0141 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Chikuwa0141 Chikuwa0141 merged commit d48ceef into main Apr 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants