Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organize forms using tags #4904

Open
bartjkdp opened this issue Dec 11, 2024 · 2 comments
Open

Organize forms using tags #4904

bartjkdp opened this issue Dec 11, 2024 · 2 comments

Comments

@bartjkdp
Copy link

bartjkdp commented Dec 11, 2024

Thema / Theme

Admin

Omschrijving / Description

Currently, forms are organized using categories, which provide a basic structure for managing forms. However, a form can only belong to a single category, which limits flexibility. To enhance form organization, we propose introducing tags as a more versatile solution. Tags would allow administrators to assign multiple labels to a single form, enabling better organization and more granular filtering.

Technically, this could be implemented using an ArrayField in Django:

tags = ArrayField(models.CharField(max_length=50), default=list, blank=True)

Additionally, we would develop a custom filter in the Django admin interface to display available tags, making it easy for users to filter forms based on specific tags.

Added value / Toegevoegde waarde

By incorporating tags, administrators gain a more flexible and efficient system to organize and manage forms. This enhancement improves usability, reduces categorization limitations, and provides a more intuitive way to filter and locate forms.

Aanvullende opmerkingen / Additional context

No response

@bartjkdp bartjkdp added enhancement triage Issue needs to be validated. Remove this label if the issue considered valid. labels Dec 11, 2024
@sergei-maertens
Copy link
Member

Refinement: this is a lot more work than it initially looks like:

  • Are tags centralized or not?
  • The React code for the form change page needs to be updated to be able to add/remove/select tags (autocomplete on existing tags needed?) - in a part of the codebase with quite some technical debt
  • This requires the tags to be exposed through the API too, otherwise you can't persist them
  • Not sure if the admin filter is simple to implement or not, given the custom JS for the categories/change list page

@sergei-maertens sergei-maertens removed the triage Issue needs to be validated. Remove this label if the issue considered valid. label Dec 16, 2024
@sergei-maertens
Copy link
Member

sergei-maertens commented Dec 16, 2024

@bartjkdp if you want to give it a try, feel free to open a PR, or we can make an estimate.

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

No branches or pull requests

2 participants