Skip to content

Allow creating groups for methods - #532

Open
alan412 wants to merge 2 commits into
wpilibsuite:mainfrom
alan412:multiple_methods
Open

alan412 wants to merge 2 commits into
wpilibsuite:mainfrom
alan412:multiple_methods

Conversation

@alan412

@alan412 alan412 commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

Overview

Creates an ability to have multiple methods categorized for ease of discoverability.

Linked Issues

None

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that causes existing functionality to change)
  • Documentation update
  • Code style/formatting updates
  • Refactoring / Renaming
  • Other

How Has This Been Tested?

Created some sample ones in test_category.ts to see how it would work in theory.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • [N/A] I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • [N/A] I have run through the [docs/testing_before_pr_checklist.md]

Comment thread frontend/blocks/mrc_multiple_methods.ts Outdated

/**
* @fileoverview A block that calls one of the many methods of a single python
* object. The methods are described by JSON, grouped into categories. The user picks a category from

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It's not a deal-breaker, but I'm a bit concerned with using the word category for this concept because the toolbox has categories. Can you think of a better word? I looked up synonyms and here are some possibilities: group, grouping, bracket, genre, section, breed, genus. What do you think?
(I'm sorry that I used the word category on the blinkin blocks in ftc_sdk.)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good point. I changed to group.

@lizlooney

Copy link
Copy Markdown
Collaborator

I think we should talk about the problem that this is addressing.

@alan412 alan412 changed the title Allow creating categories for methods Allow creating groups for methods Sep 12, 2026
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.

2 participants