Skip to content

@W-21315017 feat(grpc): adjust badge styling to match HTTP method labels#78

Merged
alexpmule merged 4 commits intomainfrom
feat/grpc-badge-styling
Mar 2, 2026
Merged

@W-21315017 feat(grpc): adjust badge styling to match HTTP method labels#78
alexpmule merged 4 commits intomainfrom
feat/grpc-badge-styling

Conversation

@alexpmule
Copy link
Contributor

@alexpmule alexpmule commented Feb 27, 2026

  • Replace transparent stream-type-badge with solid badges matching HTTP style
  • Reorganize gRPC template: badge first, then method name
  • Remove brackets from badges (UNARY, CLIENT, SERVER, BIDIRECTIONAL)
  • Reuse data-method colors for consistency with existing HTTP badges
  • Add grpc-method-name class for method name styling
  • Update tests to verify new structure

Visual result:

  • UNARY → Purple badge (like PATCH)
  • CLIENT → Green badge (like publish)
  • SERVER → Blue badge (like subscribe)
  • BIDIRECTIONAL → Gray badge (like OPTIONS)

Tests: 277/277 passing in Chromium and Firefox
Coverage: 96.81%

Screenshot 2026-03-02 at 4 38 02 AM

- Replace transparent stream-type-badge with solid badges matching HTTP style
- Reorganize gRPC template: badge first, then method name
- Remove brackets from badges (UNARY, CLIENT, SERVER, BIDIRECTIONAL)
- Reuse data-method colors for consistency with existing HTTP badges
- Add grpc-method-name class for method name styling
- Update tests to verify new structure

Visual result:
- UNARY → Purple badge (like PATCH)
- CLIENT → Green badge (like publish)
- SERVER → Blue badge (like subscribe)
- BIDIRECTIONAL → Gray badge (like OPTIONS)

Tests: 277/277 passing in Chromium and Firefox
Coverage: 96.81%
@alexpmule alexpmule changed the title W-21315017 feat(grpc): adjust badge styling to match HTTP method labels @W-21315017 feat(grpc): adjust badge styling to match HTTP method labels Feb 27, 2026
- Updated the JSON structure to enhance clarity and organization.
- Removed redundant fields and streamlined the representation of gRPC methods and requests.
- Introduced new properties for better documentation and linkage within the schema.

This refactor aims to improve maintainability and readability of the gRPC API definitions.
@alexpmule alexpmule merged commit 0f39ad0 into main Mar 2, 2026
3 checks passed
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