Skip to content

fix(calm-hub): CalmHub UI Colour Improvements Refactor MCP Sever Tools#2424

Merged
jpgough-ms merged 5 commits intofinos:mainfrom
jpgough-ms:mcp-improvements
May 6, 2026
Merged

fix(calm-hub): CalmHub UI Colour Improvements Refactor MCP Sever Tools#2424
jpgough-ms merged 5 commits intofinos:mainfrom
jpgough-ms:mcp-improvements

Conversation

@jpgough-ms
Copy link
Copy Markdown
Member

@jpgough-ms jpgough-ms commented May 6, 2026

Description

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 would cause existing functionality to not work as expected)
  • 📚 Documentation update
  • 🎨 Code style/formatting changes
  • ♻️ Refactoring (no functional changes)
  • ⚡ Performance improvements
  • ✅ Test additions or updates
  • 🔧 Chore (maintenance, dependencies, CI, etc.)

Affected Components

  • CLI (cli/)
  • Schema (calm/)
  • CALM AI (calm-ai/)
  • CALM Hub (calm-hub/)
  • CALM Hub UI (calm-hub-ui/)
  • CALM Server (calm-server/)
  • CALM Widgets (calm-widgets/)
  • Documentation (docs/)
  • Shared (shared/)
  • VS Code Extension (calm-plugins/vscode/)
  • Dependencies
  • CI/CD

Commit Message Format ✅

Testing

  • I have tested my changes locally
  • I have added/updated unit tests
  • All existing tests pass

Checklist

  • My commits follow the conventional commit format
  • I have updated documentation if necessary
  • I have added tests for my changes (if applicable)
  • My changes follow the project's coding standards

jpgough-ms and others added 3 commits May 6, 2026 15:39
…olDetailSection

Replace hardcoded accent token with primary so all active tabs in ControlDetailSection
use a single DaisyUI semantic token, ensuring uniform recolouring when the theme changes.

Closes finos#2420 (item 4)
…#2420

- Refactor createControlRequirement and createControlConfiguration onto
  McpValidationHelper.firstError for consistency with read methods
- Add max-length validation on name (200), description (1024), and JSON
  payloads (100k bytes) in both create methods
- Add unit tests covering all new validation paths in TestControlToolsShould
- Add create->list->versions->get->configure integration tests for controls
  in MongoMcpIntegration and NitriteMcpIntegration

Closes finos#2420 (items 1-3)
@github-actions github-actions Bot added calm-hub Affects `calm-hub` calm-hub-ui Affects `calm-hub-ui` labels May 6, 2026
@jpgough-ms jpgough-ms marked this pull request as ready for review May 6, 2026 14:56
@rocketstack-matt
Copy link
Copy Markdown
Member

Nit on calm-hub/src/main/java/org/finos/calm/mcp/tools/ControlTools.java:134:

() -> McpValidationHelper.validateMaxLength(name, 200, "Name"),

This 200 is the only inline length limit in the file — MAX_DESCRIPTION_LENGTH (1024) and MAX_JSON_PAYLOAD_LENGTH (100_000) are both constants on McpValidationHelper. Suggest adding a sibling MAX_NAME_LENGTH = 200 constant and referencing it here (and in the matching unit test reject_oversized_name_for_create_requirement, which also asserts against the literal 200).

@jpgough-ms jpgough-ms changed the title fix(calm-hub-ui): unify tab colours to DaisyUI primary token in Contr… fix(calm-hub): CalmHub UI Colour Improvements Refactor MCP Sever Tools May 6, 2026
jpgough-ms and others added 2 commits May 6, 2026 17:50
…Helper

Replace inline literal 200 in ControlTools and ArchitectureTools with
a named constant McpValidationHelper.MAX_NAME_LENGTH, consistent with
the existing MAX_DESCRIPTION_LENGTH and MAX_JSON_PAYLOAD_LENGTH constants.
Update the matching unit test to reference the constant instead of the literal.
@jpgough-ms jpgough-ms merged commit d941488 into finos:main May 6, 2026
17 checks passed
@jpgough-ms jpgough-ms deleted the mcp-improvements branch May 6, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

calm-hub Affects `calm-hub` calm-hub-ui Affects `calm-hub-ui`

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants