Skip to content

add custom actions support#2234

Merged
Tlaster merged 1 commit into
masterfrom
feature/custom-actions
Jun 18, 2026
Merged

add custom actions support#2234
Tlaster merged 1 commit into
masterfrom
feature/custom-actions

Conversation

@Tlaster

@Tlaster Tlaster commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

No description provided.

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

Copy link
Copy Markdown

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: b9bafdf895

ℹ️ 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".

icon = UiIcon.More,
text = ActionMenu.Item.Text.Localized(ActionMenu.Item.Text.Localized.Type.More),
),
actions = normalizedOverflow.toPersistentList(),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Flatten grouped actions before adding overflow

When a user moves Repost to the More menu, normalizedOverflow can contain the original repost ActionMenu.Group, and this line nests that group inside the generated More group. The Compose renderer explicitly ignores nested groups (CommonStatusComponent.kt:943-945), so the Repost/Quote actions disappear instead of moving into overflow. Flatten grouped post actions or render nested groups before placing them in the generated More menu.

Useful? React with 👍 / 👎.

Comment on lines +903 to +906
val displayItems =
remember(items, appearanceSettings.postActionLayout) {
items.applyPostActionLayout(appearanceSettings.postActionLayout)
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Do not apply post layouts to profile menus

When custom post action layout is enabled, this rewrites every caller of StatusActions, but ProfileMenu also passes profileState.actions here. Those profile actions are a MoreVerticel group with no PostActionFamily, so the layout helper treats the whole profile menu as unknown overflow and wraps it in a generated More group; because nested groups are ignored by the Compose menu renderer, the profile toolbar actions such as mute/block/report disappear. Restrict this layout pass to post rows or add an opt-out for non-post action menus.

Useful? React with 👍 / 👎.

@Tlaster Tlaster merged commit 8234aea into master Jun 18, 2026
9 checks passed
@Tlaster Tlaster deleted the feature/custom-actions branch June 18, 2026 02:16
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.

[Feature] (X/Twitter) New elements in the bottom bar of posts, button to scroll up and improved outline in posts.

1 participant