Skip to content

chore(expert): tool-permissions review follow-ups (comments + generic JsonViewer)#7730

Merged
andypalmi merged 3 commits into
mainfrom
feat/7728-7729-hitl-followup-cleanup
Jul 7, 2026
Merged

chore(expert): tool-permissions review follow-ups (comments + generic JsonViewer)#7730
andypalmi merged 3 commits into
mainfrom
feat/7728-7729-hitl-followup-cleanup

Conversation

@andypalmi

Copy link
Copy Markdown
Contributor

Follow-up cleanups agreed during review of #7639 (human-in-the-loop tool permissions). No behaviour change.

Comments cleanup (#7728)

  • Shorten the /mcp/tools handler and curatePlatformTool doc blocks in forge/ee/routes/expert/index.js.
  • Drop the stale TODO: decide with the team whether this belongs on the branch in the catalog catch block, keeping the rationale for why an upstream 401/403 must not be forwarded as our own 401.
  • Trim the size prop comment in ToggleButtonGroup.vue.

Generic JsonViewer (#7729)

  • Move JsonViewer.vue out of the expert message tree into frontend/src/components so it can be reused (its only consumer, ToolApprovalCard, is updated to the new import).
  • Move its safeStringify helper into the shared strings composable (frontend/src/composables/strings/String.js) and add a unit test.

Testing

  • New safeStringify unit tests pass.
  • eslint and colour lint green (pre-commit hook).

Closes #7728
Closes #7729

andypalmi added 2 commits July 4, 2026 16:50
Shorten the /mcp/tools and curatePlatformTool doc blocks, drop the stale
TODO in the catalog catch block while keeping the 401 rationale, and trim
the ToggleButtonGroup size prop comment.

Closes #7728
Move JsonViewer out of the expert message tree into frontend/src/components
so it can be reused, and update its only consumer (ToolApprovalCard). Move
its safeStringify helper into the shared strings composable with a unit test.

Closes #7729
@codecov

codecov Bot commented Jul 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.37%. Comparing base (2f572a5) to head (870d8a6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7730      +/-   ##
==========================================
- Coverage   75.37%   75.37%   -0.01%     
==========================================
  Files         425      425              
  Lines       22518    22518              
  Branches     5945     5945              
==========================================
- Hits        16974    16973       -1     
- Misses       5544     5545       +1     
Flag Coverage Δ
backend 75.37% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@andypalmi andypalmi merged commit 4f57168 into main Jul 7, 2026
29 checks passed
@andypalmi andypalmi deleted the feat/7728-7729-hitl-followup-cleanup branch July 7, 2026 08:45
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.

HITL tool permissions: promote JsonViewer to a generic component and share safeStringify HITL tool permissions: tidy verbose comments from review

2 participants