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

Categorize messages in dropdown menu #195

Merged
merged 6 commits into from
Jul 19, 2022
Merged

Categorize messages in dropdown menu #195

merged 6 commits into from
Jul 19, 2022

Conversation

dericksonmark
Copy link
Member

@dericksonmark dericksonmark commented Jul 14, 2022

The change

Categories! I've added categories for duplicates, invalids, ARs, panels/notices, and miscellaneous items. Here's a sample.
Feedback is, of course, welcome, for both the code changes and the categories. This implements #97. Thank you! :)

How this affects future messages

This change requires a category field in every message definition. Additional categories can be configured within the categories section.

@dericksonmark dericksonmark linked an issue Jul 14, 2022 that may be closed by this pull request
assets/js/index.js Show resolved Hide resolved
assets/js/index.js Outdated Show resolved Hide resolved
assets/js/index.js Outdated Show resolved Hide resolved
Copy link
Member

@SPGoding SPGoding left a comment

Choose a reason for hiding this comment

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

Also variables is for strings that can be referenced in messages. I think it'd make more sense to put categories at the top level instead of as a child of variables.

assets/js/index.js Outdated Show resolved Hide resolved
assets/js/index.js Outdated Show resolved Hide resolved
assets/messages.yml Outdated Show resolved Hide resolved
@dericksonmark
Copy link
Member Author

I've made a change to allow undefined categories. It changes a bunch of things, including ordering categories alphabetically instead of in order of appearance. Please let me know if you'd like me to revert this change!

Copy link
Contributor

@Marcono1234 Marcono1234 left a comment

Choose a reason for hiding this comment

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

Thanks! To me these changes look fine.

Copy link
Member

@osfanbuff63 osfanbuff63 left a comment

Choose a reason for hiding this comment

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

reapproving as I approved early :P

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.

Seperate messages into categories
4 participants