Skip to content

feat: 英語名カラム追加と国際団体向け貸出PDF英語表示対応#2004

Open
hikahana wants to merge 5 commits intofeat/inaba/1992-add-eng-rental-listfrom
feat/hikahana/i18n-additional-fields
Open

feat: 英語名カラム追加と国際団体向け貸出PDF英語表示対応#2004
hikahana wants to merge 5 commits intofeat/inaba/1992-add-eng-rental-listfrom
feat/hikahana/i18n-additional-fields

Conversation

@hikahana
Copy link
Contributor

@hikahana hikahana commented Feb 14, 2026

対応Issue

resolve #0

概要

  • rental_items / stocker_places / group_categoriesname_en を追加し、英語名を保持できるようにしました。
  • 物品貸出表の英語版出力(国際団体向け)で、カテゴリ名・物品名・受取場所名を name_en 優先で表示するようにしました。

実装詳細

  • マイグレーション追加: api/db/migrate/20260214000000_add_name_en_to_master_tables.rb
  • スキーマ更新: api/db/schema.rb
  • fixture更新(develop/production): group_category.rb, rental_item.rb, stocker_place.rbname_en を追加
  • 管理系コントローラ更新: group_categories_controller.rb, rental_items_controller.rb, stocker_places_controller.rbname_en を受け付け
  • PDF出力更新:
    • api/app/controllers/print_pdf_controller.rb
    • api/app/views/print_pdf/output_all_groups_rental_items.pdf.erb
  • 管理画面印刷ページ更新: admin_view/nuxt-project/pages/print/index.vue に英語版ダウンロード導線を追加

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

会場割り当ては未実装なので見れない。
動作確認手順、管理画面
参加団体を作る。
物品申請をする
物品割り当てを設定する
pdf出力する

物品貸し出し表まとめ (2).pdf

テスト項目

  • 管理画面から英語版「物品貸出表(国際団体・英語版)」を出力し、カテゴリ名/物品名/受取場所が英語表示される

備考

  • locale=en 指定時は国際団体(is_international=true)で絞り込んで出力する実装です。

@YosukeIida
Copy link
Collaborator

@codex 日本語でレビューしてください.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 39854e5f8b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

api/db/schema.rb Outdated
Comment on lines +164 to +165
t.index ["fes_year_id", "group_category_id"], name: "index_groups_on_fes_year_and_category_for_order_status"
t.index ["fes_year_id", "group_category_id"], name: "index_groups_on_fes_year_id_and_group_category_id"

Choose a reason for hiding this comment

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

P2 Badge groupsテーブルの重複インデックス定義を削除する

name_en 追加とは無関係に groups へ同一カラム構成のインデックスが複数追加されており(例: [:fes_year_id, :group_category_id] が2本)、db:schema:load した環境だけで不要な重複インデックスが作成されます。これにより書き込み性能の低下と、db:migrate ベース環境との差分(スキーマドリフト)が発生するため、このコミットで混入した重複定義は除外するべきです。

Useful? React with 👍 / 👎.

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.

2 participants