Skip to content

feat: simplify size options per acceptance criteria#132

Open
ihordubas99 wants to merge 3 commits intodevfrom
bug/74651-improve-size-menu-wp
Open

feat: simplify size options per acceptance criteria#132
ihordubas99 wants to merge 3 commits intodevfrom
bug/74651-improve-size-menu-wp

Conversation

@ihordubas99
Copy link
Copy Markdown
Collaborator

@ihordubas99 ihordubas99 commented May 5, 2026

Ticket

https://community.openproject.org/projects/communicator-stream/work_packages/74651

What are you trying to accomplish?

Simplify the size menu in the work package options popover per acceptance criteria.

  • Removed the icon before the selected size entry in the size button
  • Commented out "Regular card" and "Full card" block size entries (kept for potential future reuse)
  • Removed "(inline)" suffix from Tiny, Compact and Regular size labels

Screenshots

image image

What approach did you choose and why?

Changes were minimal - only the SIZE_META labels and BLOCK_SIZE_OPTIONS array were touched. No logic was changed, only presentation.

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

@ihordubas99 ihordubas99 self-assigned this May 5, 2026
@ihordubas99 ihordubas99 marked this pull request as ready for review May 5, 2026 11:39
@ihordubas99 ihordubas99 requested a review from judithroth May 5, 2026 11:39
xxs: { label: "Tiny (inline)", desc: "Identifier" },
xs: { label: "Compact (inline)", desc: "Type, Identifier, Subject" },
s: { label: "Regular (inline)", desc: "Status, Type, Identifier, Subject" },
m: { label: "Compact card", desc: "Compact card - Status, Type, Identifier, Subject" },
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.

Thanks for also removing the duplicate "Compact card" here!

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.

Please be aware that you updated this to translations in another PR and you need to do the change there as well when you merge.

Copy link
Copy Markdown
Contributor

@judithroth judithroth left a comment

Choose a reason for hiding this comment

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

Ok, this looks good in general! Nice work!
However, there is another PR about translations which is still open I think and which will conflict with the changes here.
Please merge that first, then rebase on current dev (or merge current dev if you prefer that workflow) and ping me again for review.

s: { label: "Regular", desc: "Status, Type, Identifier, Subject" },
m: { label: "Compact card", desc: "Status, Type, Identifier, Subject" },
l: { label: "Regular card", desc: "Regular card - Identifier, Subject, Type, Status, Parent, Project" },
xl: { label: "Full card", desc: "Full card - Identifier, Subject, Type, Status, Parent, Project, Description" },
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.

We don't show these at the moment, but since it is still there, please also remove the duplicate "Regular card - " and "Full card - " as well.
Be aware of the translations in the other PR for this as well. Please merge that other PR first, then rebase or merge the changes from dev and after that fix the texts.


const INLINE_SIZE_OPTIONS: InlineWpSize[] = ["xxs", "xs", "s"];
const BLOCK_SIZE_OPTIONS: BlockWpSize[] = ["m", "l", "xl"];
const BLOCK_SIZE_OPTIONS: BlockWpSize[] = ["m"];
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.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants