Skip to content

[FIX][UI]: Display readOnlyHint icon in tools table rows#3045

Merged
crivetimihai merged 2 commits intomainfrom
2986-read-only-hint-icon
Feb 21, 2026
Merged

[FIX][UI]: Display readOnlyHint icon in tools table rows#3045
crivetimihai merged 2 commits intomainfrom
2986-read-only-hint-icon

Conversation

@gcgoncalves
Copy link
Copy Markdown
Collaborator

🐛 Bug-fix PR

📌 Summary

The read only icon was not displayed on the tool rows, difficulting a quick read.

Screen.Recording.2026-02-18.at.19.09.18.mov

Closes #2986

🔁 Reproduction Steps

  1. Open the Admin UI
  2. Navigate to the Tools panel
  3. Edit/add a tool with the readOnlyHint annotation set to true
  4. Look at the Annotations column

🐞 Root Cause

The Jinja template had the wrong attribute on the read-only icon display condition.

💡 Fix Description

Use the correct attribute on the Jinja row template.

🧪 Verification

Check Command Status
Lint suite make lint
Unit tests make test
Coverage ≥ 80 % make coverage
Manual regression no longer fails steps / screenshots

✅ Checklist

  • Code formatted (make black isort pre-commit)
  • No secrets/credentials committed

@gcgoncalves gcgoncalves marked this pull request as ready for review February 18, 2026 19:52
marekdano
marekdano previously approved these changes Feb 19, 2026
Copy link
Copy Markdown
Collaborator

@marekdano marekdano left a comment

Choose a reason for hiding this comment

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

Tested it locally and the annotation is displayed when readOnlyHint is true!

LGTM 🚀

crivetimihai
crivetimihai previously approved these changes Feb 19, 2026
Copy link
Copy Markdown
Member

@crivetimihai crivetimihai left a comment

Choose a reason for hiding this comment

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

Correct fix — the read-only hint badge was gated on annotations.title instead of annotations.readOnlyHint. Consistent fix across both template files.

@crivetimihai crivetimihai changed the title 2986 - Add Read Only Hint to tool rows [FIX][UI]: Display readOnlyHint icon in tools table rows Feb 20, 2026
@crivetimihai crivetimihai added bug Something isn't working MUST P1: Non-negotiable, critical requirements without which the product is non-functional or unsafe labels Feb 20, 2026
@crivetimihai crivetimihai added this to the Release 1.0.0-GA milestone Feb 20, 2026
gcgoncalves and others added 2 commits February 20, 2026 23:22
Signed-off-by: Gabriel Costa <gabrielcg@proton.me>
Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
@crivetimihai crivetimihai dismissed stale reviews from marekdano and themself via fbcb369 February 20, 2026 23:55
@crivetimihai crivetimihai force-pushed the 2986-read-only-hint-icon branch from b40a956 to fbcb369 Compare February 20, 2026 23:55
@crivetimihai
Copy link
Copy Markdown
Member

Review Changes

Rebased onto main and added test coverage.

Tests

  • Added test_tools_annotation_icons_rendered — verifies all 4 annotation hint icons (📖 readOnlyHint, ⚠️ destructiveHint, 🔄 idempotentHint, 🌍 openWorldHint) render when set to True
  • Added test_tools_no_annotation_icons_when_false — verifies icons are absent when hints are False

@gcgoncalves — please review the changes and let me know if anything looks off.

@crivetimihai crivetimihai merged commit c1e6a37 into main Feb 21, 2026
99 of 102 checks passed
@crivetimihai crivetimihai deleted the 2986-read-only-hint-icon branch February 21, 2026 00:05
vishu-bh pushed a commit that referenced this pull request Feb 24, 2026
* 2986 - Add Read Only Hint to tool rows

Signed-off-by: Gabriel Costa <gabrielcg@proton.me>

* test(ui): add tests for readOnlyHint annotation icon rendering

Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>

---------

Signed-off-by: Gabriel Costa <gabrielcg@proton.me>
Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
Co-authored-by: Mihai Criveti <crivetimihai@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working MUST P1: Non-negotiable, critical requirements without which the product is non-functional or unsafe

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG][UI]: readOnlyHint annotation not displayed in tools table

3 participants