Skip to content

インタビュー新規設定の設定名にログインユーザー名を自動入力する #817

Description

@michitomo

概要

インタビュー新規設定画面(/bills/[id]/interview/new)を開いたとき、設定名フィールドに日付ベースのデフォルト名(例: 2026/05/13 作成)が入っているが、誰が作成した設定か一目でわかるように、ログインユーザー名(メールアドレスの @ より前の部分)を自動入力するようにしたい。

現状

設定名の初期値: 2026/05/13 作成(日付のみ)

期待する動作

設定名の初期値: michitomo(ログインユーザーのメールアドレスの @ 前)

実装方針

  • Server Component の page.tsxgetCurrentAdmin() を呼び出し、メールアドレスの @ 前をユーザー名として取得
  • InterviewConfigFormdefaultValues.name に反映(優先度: 既存設定名 > ユーザー名 > 日付デフォルト)

Resolved by #816

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions