Skip to content

投稿元アカウントの切り替え機能を実装しました#108

Merged
totegamma merged 1 commit into
mainfrom
selectProfile
Jun 19, 2026
Merged

投稿元アカウントの切り替え機能を実装しました#108
totegamma merged 1 commit into
mainfrom
selectProfile

Conversation

@inugamine

Copy link
Copy Markdown
Contributor

resolve #107

旧 Concrnt アプリの「投稿先アイコンをタップしてサブプロフィールを選択」する挙動を、新アーキテクチャ(プロフィール単位の URI namespace)に合わせて再実装しています。

変更点

  • TimelinePicker にホームプロフィール選択メニューを追加
    • ホーム Chip タップで useSelect(SwitchAccountButton と同じボトムシート)を開き、client.profiles 一覧から投稿元を選択
    • Chip のアイコン/ユーザー名は選択中プロフィールに追従
  • Composer の投稿処理で、homeTimeline / activityTimeline / 投稿 URI の profile 引数を選択中プロフィールに差し替え
  • 通常投稿・リプライ・リルートの全モードで有効

設計メモ

  • 新モデルではプロフィールは URI namespace(profiles/{profile}/...)で表現されるため、旧アプリの profileOverride フィールドは使わず、semantics の profile 引数のみ差し替える方針。
  • association の作成構造・通知ディスパッチ(notifyTimeline)には手を入れていません。
  • 投稿先候補(コミュニティ/リスト)は currentProfile 由来のまま(旧アプリと同挙動)。
  • 作成直後で未切り替えのサブプロフィールへの投稿可否は @totogamma に確認済み(問題なし)。

既知の制限

  • 選択した投稿元は composer を閉じると初期化される(DraftBuffer 非保持)。
  • インライン版 composer には TimelinePicker が無いため投稿元選択は出ない(既存仕様)。

@totegamma totegamma left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!!!

@totegamma totegamma merged commit 804848d into main Jun 19, 2026
1 check passed
@totegamma totegamma deleted the selectProfile branch June 19, 2026 15:36
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.

composerで、投稿元プロフィールが選べるように

2 participants