Skip to content

Conversation

joshsadam
Copy link
Contributor

What does this PR do and why?

• Consolidated localization keys: Replaced separate title and aria_label keys with unified label keys for navbar buttons
• Updated components: Modified sidebar_component.html.erb and layout_component.html.erb to use the new key structure
• Updated translations: Updated both en.yml and fr.yml locale files to reflect the new consistent key structure
• Fixed tests: Updated system tests in groups_test.rb and projects_test.rb to use the new localization keys
• Updated html tags to ensure proper semantic html

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other pull requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

• Navbar buttons display correct tooltips and aria-labels
• System tests pass with updated localization keys
• Both English and French translations are consistent

PR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

- Change `<div>` to `<header>` in `layout_component.html.erb` for better structure.
- Update `<aside>` to `<nav>` in `sidebar_component.html.erb` to reflect navigation semantics.
- Replace `<div>` with `<header>` in `header_component.html.erb` for improved accessibility.
- Remove unused localization key `navigation` from `en.yml` and `fr.yml` for consistency.
- Adjust the formatting of the `flashes` div in `layout_component.html.erb` for better code clarity and maintainability.
@joshsadam joshsadam self-assigned this Oct 16, 2025
@joshsadam joshsadam added the accessibility Accessibility concerns and/or requests label Oct 16, 2025
Copy link

Code Metrics Report

Coverage Test Execution Time
96.3% 17m46s

Code coverage of files in pull request scope (100.0%)

Files Coverage
app/components/layout/sidebar/header_component.html.erb 100.0%
app/components/layout/sidebar_component.html.erb 100.0%
app/components/layout_component.html.erb 100.0%

Reported by octocov

@joshsadam joshsadam requested a review from ericenns October 16, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility Accessibility concerns and/or requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant