Skip to content

Sonarqube cleanup 5#32

Merged
xprilion merged 3 commits intomainfrom
dev
Apr 29, 2026
Merged

Sonarqube cleanup 5#32
xprilion merged 3 commits intomainfrom
dev

Conversation

@xprilion
Copy link
Copy Markdown
Owner

No description provided.

@xprilion
Copy link
Copy Markdown
Owner Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bf223bc9c5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread frontend/src/components/ModelModal.tsx Outdated
className="bg-surface rounded-xl border border-border w-full max-w-lg flex flex-col shadow-xl"
style={{ height: 'min(80vh, 600px)' }}
onClick={(e) => e.stopPropagation()}
onKeyDown={(e) => e.stopPropagation()}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Let Escape bubble from Model modal content

The new onKeyDown={(e) => e.stopPropagation()} on the inner modal container prevents Escape from reaching the outer overlay handler (onKeyDown={(e) => e.key === 'Escape' && setOpen(false)}), so keyboard users focused inside the dialog cannot dismiss it with Escape. This makes the newly added Escape-close behavior effectively unreachable during normal use.

Useful? React with 👍 / 👎.

<div
className="bg-surface border border-border rounded-xl shadow-xl w-full max-w-lg max-h-[70vh] flex flex-col"
onClick={(e) => e.stopPropagation()}
onKeyDown={(e) => e.stopPropagation()}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Let Escape bubble from project manager modal

Stopping all keydown propagation on the inner project manager modal blocks the overlay's Escape handler, so pressing Escape while focus is in any control inside the modal will not close it. Since the close logic was added on the outer container in this change, this child-level stopPropagation defeats that behavior.

Useful? React with 👍 / 👎.

<div
className="bg-surface rounded-xl border border-border w-full max-w-md flex flex-col shadow-xl p-6"
onClick={(e) => e.stopPropagation()}
onKeyDown={(e) => e.stopPropagation()}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Let Escape bubble from custom provider modal

The inner custom provider modal now stops all keydown propagation, which prevents the outer overlay's Escape handler from firing when focus is inside the form. As a result, users cannot dismiss this modal with Escape during typical keyboard interaction.

Useful? React with 👍 / 👎.

onClick={(e) => e.stopPropagation()}
role="dialog"
aria-modal="true"
aria-labelledby="confirm-dialog-title"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3 Badge Bind aria-labelledby to an existing title element

This dialog now sets aria-labelledby="confirm-dialog-title", but there is no element in the dialog with that ID, so assistive tech cannot resolve the label reference. The dialog therefore loses its explicit accessible name and will fail ARIA ID-reference validation.

Useful? React with 👍 / 👎.

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@xprilion xprilion merged commit 33c2d01 into main Apr 29, 2026
5 of 6 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.

1 participant