Skip to content

Composer redesign #553

@GeopJr

Description

@GeopJr

The composer is a bit complex. We can divide it into 3 sections: Text, Media and Polls

  • Each section has its own set of actions
  • There can be either Media or Polls
  • Media can be published on their own but polls require some Text
  • Text character counter includes the Content Warning
  • Text character counter replaces urls with a set amount of characters (not done in tuba yet, depends on instance's info, ex. https://geopjr.dev is 18 characters but will be counted as 7, the regex should match mastodon's so we match them 1:1 even if it has its quirks)

Below I've attached screenshots from other apps' composers. It's important to notice how the pages and actions interact with each other. Megalodon and Mastodon web make the inactive actions insensitive (the media attach button is no longer sensitive when polls are active), Elk replaces them (the media attach button gets replaced by the poll's actions) and tuba has a pages system

App Text Media Polls
Tuba Screenshot from 2023-09-25 13-00-08 Screenshot from 2023-09-25 13-00-18 Screenshot from 2023-09-25 13-00-25
Megalodon Screenshot_20230925-125433_Megalodon Screenshot_20230925-125505_Megalodon Screenshot_20230925-125518_Megalodon
Elk Screenshot from 2023-09-25 12-56-10 Screenshot from 2023-09-25 12-57-56 Screenshot from 2023-09-25 12-58-29
Mastodon Web Screenshot from 2023-09-25 12-58-45 Screenshot from 2023-09-25 12-59-13 Screenshot from 2023-09-25 12-58-59
Phanpy Zrzut ekranu z 2023-09-25 12-20-11 Zrzut ekranu z 2023-09-25 12-21-56 Zrzut ekranu z 2023-09-25 12-20-29

Metadata

Metadata

Assignees

No one assigned

    Labels

    composerComposer related issueenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions