Skip to content

Fix braille settings controls layout#17142

Merged
SaschaCowley merged 1 commit into
nvaccess:betafrom
CyrilleB79:brlControl
Sep 10, 2024
Merged

Fix braille settings controls layout#17142
SaschaCowley merged 1 commit into
nvaccess:betafrom
CyrilleB79:brlControl

Conversation

@CyrilleB79

@CyrilleB79 CyrilleB79 commented Sep 9, 2024

Copy link
Copy Markdown
Contributor

Link to issue number:

Closes #17141

Summary of the issue:

Description of user facing changes

TBD

Description of development approach

Testing strategy:

Known issues with pull request:

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

Summary by CodeRabbit

  • Bug Fixes
    • Adjusted the layout of a checkbox in the settings dialog for improved grouping and organization within the GUI.
    • Ensured the checkbox remains functionally intact while enhancing its contextual placement.

@CyrilleB79

Copy link
Copy Markdown
Contributor Author

@nishimotz could you check the build when ready?

@CyrilleB79 CyrilleB79 marked this pull request as ready for review September 9, 2024 21:16
@CyrilleB79 CyrilleB79 requested a review from a team as a code owner September 9, 2024 21:16
@coderabbitai

coderabbitai Bot commented Sep 9, 2024

Copy link
Copy Markdown
Contributor

Walkthrough

The pull request modifies the instantiation of a wx.CheckBox in the makeSettings method of the source/gui/settingsDialogs.py file. The parent widget of the checkbox is changed from self to self.followCursorGroupBox, which refines its layout within the GUI. The binding of the help event and the configuration value assignment remain unchanged, maintaining the functional behavior of the checkbox.

Changes

File Change Summary
source/gui/settingsDialogs.py Changed parent of wx.CheckBox from self to self.followCursorGroupBox.

Assessment against linked issues

Objective Addressed Explanation
The checkbox should be displayed correctly to avoid overlap (#[17141])

Tip

New features

Walkthrough comment now includes:

  • Possibly related PRs: A list of potentially related PRs to help you recall past context.
  • Suggested labels: CodeRabbit can now suggest labels by learning from your past PRs. You can also provide custom labeling instructions in the UI or configuration file.

Notes:

  • Please share any feedback in the discussion post on our Discord.
  • Possibly related PRs, automatic label suggestions based on past PRs, learnings, and possibly related issues require data opt-in (enabled by default).

Recent review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 10b4403 and 41ace6f.

Files selected for processing (1)
  • source/gui/settingsDialogs.py (1 hunks)
Additional context used
Path-based instructions (1)
source/gui/settingsDialogs.py (2)

Pattern **/*: Focus on code smells, logic errors, edge cases, missing test cases, security flaws and serious issues. Avoid commenting on minor issues such as linting, formatting and style issues. This project uses tabs instead of spaces, do not suggest usage of spaces over tabs. Are there any 'red flags' in this code that might warrant closer investigation from a security standpoint? Explain what makes them suspicious. When providing code suggestions, particularly when requested, ensure GitHub's suggestion format is used, i.e.: suggestion <code changes>


Pattern **/*.py: _, pgettext, ngettext, and ngettext are defined globally, errors for this being undefined can be ignored.

Additional comments not posted (5)
source/gui/settingsDialogs.py (5)

4453-4454: LGTM!

The code changes are approved. The checkbox is bound to the appropriate config value.


Line range hint 4456-4476: LGTM!

The code changes are approved. The onSave method correctly saves all the expected voice settings.


Line range hint 4478-4484: LGTM!

The code changes are approved. The onShowCursorChange method correctly enables/disables dependent settings based on the "Show cursor" checkbox state.


Line range hint 4486-4488: LGTM!

The code changes are approved. The onBlinkCursorChange method correctly enables/disables the cursor blink rate setting.


Line range hint 4490-4492: LGTM!

The code changes are approved. The onShowMessagesChange method correctly enables/disables the message timeout setting.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@seanbudd seanbudd added the conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review. label Sep 10, 2024
@seanbudd seanbudd added this to the 2024.4 milestone Sep 10, 2024

@SaschaCowley SaschaCowley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for this nice fix, @CyrilleB79 .

@SaschaCowley SaschaCowley merged commit 38225bf into nvaccess:beta Sep 10, 2024
@CyrilleB79 CyrilleB79 deleted the brlControl branch September 10, 2024 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants