Skip to content

Add option to remove banner image#863

Merged
Airyzz merged 10 commits intocommetchat:mainfrom
RxmTaco:feat/remove-banner
Mar 30, 2026
Merged

Add option to remove banner image#863
Airyzz merged 10 commits intocommetchat:mainfrom
RxmTaco:feat/remove-banner

Conversation

@RxmTaco
Copy link
Copy Markdown
Contributor

@RxmTaco RxmTaco commented Mar 22, 2026

This creates a new UI molecule image_select_dialog.dart, which provides an intermediate dialog with options to remove or select a new image. The button text from picker_utils.dart for "Use Original Image" has been changed to "Use Without Cropping" in order to make the button's function clearer. The dialog has been implemented for changing user profile banner and space banner. The previous implementation only had one option to select a new image and no way to remove the existing one, if a user wanted to not have a banner at all. This solution closes #801 and could serve as a platform for selecting possible future image editing features if the need arises.

Profile banner:

Profile_Banner.mp4

Space banner:

Space_Banner.mp4

Copy link
Copy Markdown
Contributor

@Airyzz Airyzz left a comment

Choose a reason for hiding this comment

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

Looks pretty good! just a few small changes please

key,
'',
{
'url': '',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i think the content should just be {}

),
Expanded(
child: tiamat.Button(
text: "Remove Image",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you please make sure all added text across the whole PR is translatable

@RxmTaco
Copy link
Copy Markdown
Contributor Author

RxmTaco commented Mar 25, 2026

Thanks! The strings have now been changed to intl messages. "Remove" and "Cancel" were added to common_strings.dart and the body of the removeBanner is now completely empty.

@Airyzz Airyzz merged commit 40a6526 into commetchat:main Mar 30, 2026
6 checks passed
@Airyzz
Copy link
Copy Markdown
Contributor

Airyzz commented Mar 30, 2026

Thank you!

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] Ability to delete a banner in a Space

2 participants