Files
multica/packages/views/locales/ja/projects.json
Bohan Jiang 47e3fdedd0 feat(projects): start_date / due_date UI + create-project footer aligned with create-issue (MUL-4388) (#5331)
* feat(projects): add start_date / due_date pickers to project create modal and sidebar

#5313 landed the backend start_date/due_date fields + types but deliberately
shipped no UI. Wire up the two editor surfaces users expect:

- ProjectStartDatePicker / ProjectDueDatePicker mirror the issue pickers (same
  calendar-day contract, clear idiom, shared @multica/core/issues/date helpers)
  but are typed to UpdateProjectRequest and scoped to the "projects" i18n
  namespace. One component serves both surfaces via a custom trigger.
- Create-project modal: two date pills; values flow into the create payload and
  the persisted draft (draft-store gains startDate/dueDate).
- Project sidebar (project-detail): two PropRows after Lead, wired to the update
  mutation, with clear support (send null).
- i18n: prop_start_date / prop_due_date / clear_date across en/zh-Hans/ja/ko,
  reusing the existing issue date wording.

Tests: picker display + clear behavior (real popover), and the create modal
renders both pills. typecheck + lint + i18n parity pass.

Part of #5227

Co-authored-by: multica-agent <github@multica.ai>

* refactor(projects): align create-project footer with create-issue

Restructure the create-project modal footer to match the create-issue pattern
(per design feedback): the primary action moves out of the cramped single
justify-between row into its own border-t action strip, and the property pills
sit in a dedicated wrapping toolbar above it. Low-frequency fields (start/due
date) collapse into a ⋯ overflow via progressive disclosure — a pill only
renders inline once its date is set or the user opens it from the menu — so the
default toolbar stays a clean single row (Status · Priority · Lead · Repos · ⋯).

- Use the shared PillButton (../common/pill-button) instead of the modal-local
  copy, gaining the data-popup-open styling create-issue uses.
- ProjectStartDatePicker / ProjectDueDatePicker gain controlled open props so
  the overflow menu can reveal + open them (mirrors the issue pickers).
- i18n: create_project.set_start_date / set_due_date / more_options_aria across
  en / zh-Hans / ja / ko, reusing the create-issue wording.

Test updated to assert the dates are revealed from the overflow rather than
shown inline by default. typecheck / lint / i18n parity pass.

Part of #5227

Co-authored-by: multica-agent <github@multica.ai>

* refactor(views): extract shared DateOnlyPicker base for date pills (Elon nit2)

The issue and project start/due-date pickers were near-complete copies of the
same Popover + Calendar + clear wiring, so they could drift in behaviour or
formatting. Extract that into one entity-agnostic DateOnlyPicker
(packages/views/common/date-only-picker.tsx); each of the four pills is now a
thin wrapper supplying only its field name (via onChange), icon, overdue flag,
and localized copy. -264 lines of duplication, single source of truth.

Behaviour is unchanged: the issue pickers keep their full API (trigger /
triggerRender / open / onOpenChange / align / defaultOpen — all still used by
board-card, issue-detail, create-issue) and the calendar-day contract stays in
@multica/core/issues/date. The en-US display format now lives in one place
rather than being duplicated per entity.

Full views test suite (1857 tests) + typecheck + lint pass.

Part of #5227

Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: J <j@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
2026-07-13 17:13:43 +08:00

150 lines
7.1 KiB
JSON

{
"page": {
"title": "プロジェクト",
"new_project": "新規プロジェクト",
"empty": "プロジェクトはまだありません",
"create_first": "最初のプロジェクトを作成",
"view_compact": "コンパクト",
"view_comfortable": "ゆったり",
"search_placeholder": "プロジェクトを検索...",
"no_search_results": "検索条件に一致する結果はありません",
"view_table": "テーブル",
"view_cards": "カード",
"row_menu": "プロジェクトの操作",
"pin": "サイドバーにピン留め",
"unpin": "ピン留め解除",
"delete": "削除",
"no_matches": "該当するプロジェクトはありません",
"selected_other": "{{count}} 件選択中",
"clear_selection": "選択を解除"
},
"table": {
"name": "名前",
"priority": "優先度",
"status": "ステータス",
"progress": "進捗",
"lead": "リード",
"created": "作成日",
"issues": "Issue 数"
},
"status": {
"planned": "計画中",
"in_progress": "進行中",
"paused": "一時停止",
"completed": "完了",
"cancelled": "キャンセル"
},
"priority": {
"urgent": "緊急",
"high": "高",
"medium": "中",
"low": "低",
"none": "優先度なし"
},
"lead": {
"no_lead": "リードなし",
"assign_placeholder": "リードを割り当て...",
"members_group": "メンバー",
"agents_group": "エージェント",
"no_results": "結果なし"
},
"relative_date": {
"today": "今日",
"one_day_ago": "1日前",
"days_ago": "{{count}}日前",
"months_ago": "{{count}}か月前"
},
"detail": {
"not_found": "プロジェクトが見つかりません",
"breadcrumb_fallback": "プロジェクト",
"title_placeholder": "プロジェクトのタイトル",
"icon_tooltip": "アイコンを変更",
"pin_tooltip": "サイドバーに固定",
"unpin_tooltip": "サイドバーの固定を解除",
"sidebar_tooltip": "サイドバーの開閉",
"copy_link": "リンクをコピー",
"delete_action": "プロジェクトを削除",
"section_properties": "プロパティ",
"section_progress": "進捗",
"section_description": "説明",
"prop_start_date": "開始日",
"prop_due_date": "期限",
"clear_date": "日付をクリア",
"description_placeholder": "説明を追加...",
"description_hint": "このプロジェクトのすべてのタスクで、コンテキストとしてエージェントに共有されます。",
"empty_issues_title": "リンクされたイシューはありません",
"empty_issues_hint": "新しいイシューを作成するか、既存のイシューをこのプロジェクトに割り当ててください。",
"empty_issues_new_button": "新規イシュー",
"no_issues_yet": "イシューはまだありません",
"toast_link_copied": "リンクをコピーしました",
"toast_project_deleted": "プロジェクトを削除しました",
"toast_move_issue_failed": "イシューを移動できませんでした"
},
"resources": {
"section_header": "リソース",
"empty": "添付されたリソースはありません。",
"add_button": "リソースを追加",
"popover_title": "GitHub リポジトリを添付",
"repos_search_placeholder": "リポジトリを検索...",
"repos_search_empty": "検索条件に一致するリポジトリはありません。",
"attached_badge": "添付済み",
"remove_tooltip": "削除",
"url_placeholder": "https://github.com/owner/repo or git@github.com:owner/repo.git",
"url_submit": "追加",
"toast_attached": "リポジトリを添付しました",
"toast_attach_failed": "添付できませんでした",
"toast_removed": "リソースを削除しました",
"toast_remove_failed": "リソースを削除できませんでした",
"add_local_directory_button": "ローカルディレクトリを追加",
"local_daemon_offline_hint": "このマシンのディレクトリを添付するには、ローカルデーモンを起動してください。",
"local_daemon_already_attached_hint": "このマシンにはすでにローカルディレクトリが添付されています。新しく追加するには、先に既存のものを削除してください。",
"local_rename_tooltip": "名前を変更",
"local_rename_label": "ローカルディレクトリのラベル",
"local_no_daemon_tooltip": "ローカルデーモンがまだ ID を報告していないため、エージェントはこのディレクトリを開けません。",
"local_other_machine_tooltip": "このディレクトリを登録したマシンでのみ利用できます。",
"chat_hint_prefix": "エージェントは次の場所で直接作業します:",
"toast_local_attached": "ローカルディレクトリを添付しました",
"toast_local_renamed": "名前を変更しました",
"toast_local_rename_failed": "名前を変更できませんでした",
"toast_local_pick_failed": "ディレクトリを選択できませんでした",
"toast_local_already_attached": "このディレクトリはすでにこのマシンのプロジェクトに添付されています。",
"toast_local_daemon_already_attached": "このマシンにはすでにこのプロジェクトのローカルディレクトリが添付されています。新しく追加するには、先に既存のものを削除してください。",
"toast_local_daemon_not_running": "ローカルデーモンが実行されていません。",
"local_validate_not_absolute": "絶対パスを選択してください。",
"local_validate_not_found": "パスが存在しません。",
"local_validate_not_a_directory": "パスはディレクトリではありません。",
"local_validate_not_readable": "ディレクトリを読み取れません。",
"local_validate_not_writable": "ディレクトリに書き込めません。",
"local_validate_unsupported": "ローカルディレクトリはデスクトップアプリでのみ選択できます。"
},
"delete_dialog": {
"title": "プロジェクトを削除",
"description": "プロジェクトが削除されます。イシューは削除されませんが、リンクが解除されます。",
"confirm": "削除",
"cancel": "キャンセル"
},
"picker": {
"no_project": "プロジェクトなし",
"remove": "プロジェクトから削除",
"empty": "プロジェクトはまだありません"
},
"chip": {
"fallback_label": "プロジェクト"
},
"toolbar": {
"result_count_title": "該当プロジェクト / すべてのプロジェクト",
"filter_label": "フィルター",
"filter_active_count_other": "{{count}} 件のフィルター",
"clear_filters": "フィルターをクリア",
"section_status": "ステータス",
"section_priority": "優先度",
"section_lead": "リード",
"display": "表示",
"sort_by": "並び替え",
"direction_asc": "昇順",
"direction_desc": "降順",
"section_columns": "列",
"view": "ビュー"
}
}