Flag ordering mechanism

Created on 20 October 2021, about 3 years ago
Updated 30 October 2023, about 1 year ago

Problem/Motivation

Right now all flags provided by modules get mixed together, and are not ordered in any sensible way. For example, if you install farmOS + the Organic module, your flag list looks like this:

  • Monitor
  • Not Organic
  • Organic
  • Priority
  • Needs review
  • Transitional Organic

It would be nice if all the "Organic"-related flags were grouped together.

Proposed resolution

Two ideas:

  1. Add a weight property to flag config entities, which is used for ordering by weight.
  2. Add a group property, which allows for flags to be grouped together.

I think the latter option (group) makes more sense, and would allow for other modules to add flags to the same group, without worrying about weight changes affecting things.

Remaining tasks

Decide on approach and implement.

User interface changes

Order flags in an intentional way.

API changes

None.

Data model changes

Add a new property to flag config entities for ordering.

✨ Feature request
Status

Active

Version

3.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States m.stenta

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024