Skip to content

[FIX][UI]: Remove non-functional Show/Hide toggle buttons from admin UI#3508

Merged
crivetimihai merged 2 commits intomainfrom
2968-remove-non-functional-buttons
Mar 10, 2026
Merged

[FIX][UI]: Remove non-functional Show/Hide toggle buttons from admin UI#3508
crivetimihai merged 2 commits intomainfrom
2968-remove-non-functional-buttons

Conversation

@claudia-gray
Copy link
Copy Markdown
Collaborator

@claudia-gray claudia-gray commented Mar 5, 2026

Signed-off-by: Claudia Gray claudiag082004@gmail.com

🔗 Related Issue

Closes #2968


📝 Summary

This PR removes the non-functional ‘Show/Hide’ toggle buttons from the UI in admin.html. Buttons were using a function ‘ToggleInputMask’ that no longer exists and therefore serve no purpose.


🏷️ Type of Change

  • Bug fix
  • Feature / Enhancement
  • Documentation
  • Refactor
  • Chore (deps, CI, tooling)
  • Other (describe below)

Fixed By

Fixed using suggestion from: #2968 (comment)
TLDR: Deleting Show buttons


🧪 Verification

Ran tests from test_bash.txt sent into slack. https://ibm-cloud.slack.com/archives/C0A71H6HMAN/p1772704889538949

Screenshot 2026-03-05 at 21 59 12

📓 Notes (optional)

Before: (Screenshot is from original issue #2968
Screenshot 2026-03-05 at 21 32 26

After: (Screenshot is from my local server)
Screenshot 2026-03-05 at 21 29 21

@claudia-gray claudia-gray added bug Something isn't working ui User Interface labels Mar 5, 2026
@claudia-gray claudia-gray changed the title Remove non-functional Show/Hide toggle buttons from admin UI page, re… fix(ui): Remove non-functional Show/Hide toggle buttons from admin UI page, re… Mar 5, 2026
@crivetimihai crivetimihai changed the title fix(ui): Remove non-functional Show/Hide toggle buttons from admin UI page, re… [FIX][UI]: Remove non-functional Show/Hide toggle buttons from admin UI Mar 7, 2026
@crivetimihai crivetimihai added the SHOULD P2: Important but not vital; high-value items that are not crucial for the immediate release label Mar 7, 2026
@crivetimihai crivetimihai added this to the Release 1.0.0-RC2 milestone Mar 7, 2026
@crivetimihai
Copy link
Copy Markdown
Member

Thanks @claudia-gray. Clean removal of the dead toggleInputMask buttons — this correctly addresses #2968. Note: PR #3504 adds a working credential reveal feature that re-implements these buttons with a proper backend endpoint, and #3201 is the maintainer's alternative approach. We'll need to coordinate merge order between these PRs. The CI checks are also failing — please investigate.

claudia-gray and others added 2 commits March 10, 2026 10:21
…levant to token generation

Signed-off-by: Claudia Gray <claudiag082004@gmail.com>
The Show/Hide toggle buttons were removed but their corresponding
pr-16 (padding-right) CSS class was left on 8 credential inputs,
causing unnecessary empty space. Remove to match virtual server
auth field styling.

Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
@crivetimihai crivetimihai force-pushed the 2968-remove-non-functional-buttons branch from 74da914 to 53cbfe5 Compare March 10, 2026 10:31
@crivetimihai
Copy link
Copy Markdown
Member

Great work on this fix, @claudia-gray! 🎉

Rebased onto latest main (cleaned up the merge commits into a clean linear history) and added one small follow-up commit to remove the leftover pr-16 padding-right CSS class from the 8 credential inputs — that padding was only there to make room for the Show buttons, so with the buttons gone it was creating unnecessary empty space.

All 822 JS tests pass, and the styling is now consistent with how virtual server auth fields are handled (no extra padding, no toggle buttons).

Looks good — nice clean fix for #2968!

@crivetimihai crivetimihai merged commit c36e07b into main Mar 10, 2026
46 checks passed
@crivetimihai crivetimihai deleted the 2968-remove-non-functional-buttons branch March 10, 2026 10:58
mitica pushed a commit to mitica/mcp-context-forge that referenced this pull request Mar 10, 2026
…UI (IBM#3508)

* Remove non-functional Show/Hide toggle buttons from admin UI page, relevant to token generation

Signed-off-by: Claudia Gray <claudiag082004@gmail.com>

* fix(ui): remove leftover pr-16 padding from credential inputs

The Show/Hide toggle buttons were removed but their corresponding
pr-16 (padding-right) CSS class was left on 8 credential inputs,
causing unnecessary empty space. Remove to match virtual server
auth field styling.

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

---------

Signed-off-by: Claudia Gray <claudiag082004@gmail.com>
Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
Co-authored-by: Mihai Criveti <crivetimihai@gmail.com>
Signed-off-by: Dumitru C <canteadumitru@gmail.com>
gandhipratik203 added a commit that referenced this pull request Mar 10, 2026
…base

PR #3508 removed non-functional Show/Hide toggle buttons from admin.html.
After rebasing on main, re-add the buttons to the Edit Gateway form only,
now wired to the working async toggleInputMask() that calls the
POST /admin/gateways/{id}/reveal-credentials endpoint.

Also fix button state reset in editGateway() so reopening the Edit dialog
always shows the correct initial "Show" label with token masked.

Add form intentionally excluded — no stored secret exists at creation time.

Signed-off-by: Pratik Gandhi <gandhipratik203@gmail.com>
MohanLaksh pushed a commit that referenced this pull request Mar 12, 2026
…UI (#3508)

* Remove non-functional Show/Hide toggle buttons from admin UI page, relevant to token generation

Signed-off-by: Claudia Gray <claudiag082004@gmail.com>

* fix(ui): remove leftover pr-16 padding from credential inputs

The Show/Hide toggle buttons were removed but their corresponding
pr-16 (padding-right) CSS class was left on 8 credential inputs,
causing unnecessary empty space. Remove to match virtual server
auth field styling.

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

---------

Signed-off-by: Claudia Gray <claudiag082004@gmail.com>
Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
Co-authored-by: Mihai Criveti <crivetimihai@gmail.com>
gandhipratik203 added a commit that referenced this pull request Mar 12, 2026
…base

PR #3508 removed non-functional Show/Hide toggle buttons from admin.html.
After rebasing on main, re-add the buttons to the Edit Gateway form only,
now wired to the working async toggleInputMask() that calls the
POST /admin/gateways/{id}/reveal-credentials endpoint.

Also fix button state reset in editGateway() so reopening the Edit dialog
always shows the correct initial "Show" label with token masked.

Add form intentionally excluded — no stored secret exists at creation time.

Signed-off-by: Pratik Gandhi <gandhipratik203@gmail.com>
Yosiefeyob pushed a commit that referenced this pull request Mar 13, 2026
…UI (#3508)

* Remove non-functional Show/Hide toggle buttons from admin UI page, relevant to token generation

Signed-off-by: Claudia Gray <claudiag082004@gmail.com>

* fix(ui): remove leftover pr-16 padding from credential inputs

The Show/Hide toggle buttons were removed but their corresponding
pr-16 (padding-right) CSS class was left on 8 credential inputs,
causing unnecessary empty space. Remove to match virtual server
auth field styling.

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

---------

Signed-off-by: Claudia Gray <claudiag082004@gmail.com>
Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
Co-authored-by: Mihai Criveti <crivetimihai@gmail.com>
Signed-off-by: Yosief Eyob <yosiefogbazion@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 SHOULD P2: Important but not vital; high-value items that are not crucial for the immediate release ui User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG][UI]: Remove non-functional "Show" button for auth tokens after security hardening

2 participants