Sitelet https://github.com/errbit/errbit/pull/3169
Skip to content

Git Stack: Port UI to Bootstrap 5. Style users views. 3/? - #3169

Open
biow0lf wants to merge 26 commits into
port-ui-to-bootstrap-5-part-2from
port-ui-to-bootstrap-5-part-3
Open

biow0lf wants to merge 26 commits into
port-ui-to-bootstrap-5-part-2from
port-ui-to-bootstrap-5-part-3

Conversation

@biow0lf

@biow0lf biow0lf commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

Changes

  1. Add breadcrumbs to application.html.erb
  2. Enable stylesheet_link_tag integrity
  3. Style users views
  4. Configure kaminari
  5. Fix GitHub Action jobs names
  6. Enable stylesheet integrity
  7. Add breadcrumbs to users views

Screenshots

Users#index

Знімок екрана 2026-09-14 о 21 48 49 Знімок екрана 2026-09-14 о 21 49 25 Знімок екрана 2026-09-14 о 21 50 15 Знімок екрана 2026-09-14 о 21 51 34

Users#new

Знімок екрана 2026-09-14 о 22 03 47 Знімок екрана 2026-09-14 о 22 04 06 Знімок екрана 2026-09-14 о 22 04 26 Знімок екрана 2026-09-14 о 22 05 02

Users#show

Знімок екрана 2026-09-14 о 22 46 43 Знімок екрана 2026-09-14 о 22 46 56 Знімок екрана 2026-09-14 о 22 47 12 Знімок екрана 2026-09-14 о 22 47 23 Знімок екрана 2026-09-14 о 22 48 13

Users#edit

Знімок екрана 2026-09-14 о 22 50 58 Знімок екрана 2026-09-14 о 22 51 14 Знімок екрана 2026-09-14 о 22 52 05 Знімок екрана 2026-09-14 о 22 52 21 Знімок екрана 2026-09-14 о 22 53 05

@biow0lf biow0lf self-assigned this Sep 13, 2026
@biow0lf
biow0lf added this pull request to stack #3168 September 13, 2026 13:23
@biow0lf biow0lf changed the title Git Stack: Port UI to Bootstrap 5. 3/? Git Stack: Port UI to Bootstrap 5. Style users#new. 3/? Sep 13, 2026
@biow0lf biow0lf changed the title Git Stack: Port UI to Bootstrap 5. Style users#new. 3/? Git Stack: Port UI to Bootstrap 5. Style users views. 3/? Sep 14, 2026
@biow0lf
biow0lf marked this pull request as ready for review September 14, 2026 18:53
@biow0lf
biow0lf requested review from mikelolasagasti and a lite review from Copilot September 14, 2026 18:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The layout switch omits user-page controls, notices, and the Gravatar avatar.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Continues the Bootstrap 5 migration for user views with breadcrumbs, styled forms, Kaminari localization, and CI updates.

Changes:

  • Styles user CRUD views and adds breadcrumbs.
  • Configures Kaminari with localized translations.
  • Enables stylesheet integrity.
  • Renames GitHub Actions jobs and updates the view spec.
File summaries
File Change
spec/views/users/index.html.erb_spec.rb Updates users table assertion.
config/locales/pt-BR.yml Adds localization entries.
config/locales/kaminari.pt-BR.yml Adds Portuguese pagination translations.
config/locales/kaminari.en.yml Adds English pagination translations.
config/locales/en.yml Adds localization entries.
config/initializers/kaminari.rb Configures pagination windows.
app/views/users/show.html.erb Updates user details styling.
app/views/users/new.html.erb Styles the new-user view.
app/views/users/index.html.erb Adds breadcrumbs and Bootstrap styling.
app/views/users/edit.html.erb Styles the edit-user view.
app/views/users/_fields.html.erb Adds Bootstrap form controls.
app/views/shared/_notice_fingerprinter.html.erb Applies formatting updates.
app/views/shared/_link_google_account.html.erb Applies formatting updates.
app/views/shared/_link_github_account.html.erb Applies formatting updates.
app/views/layouts/application.html.erb Adds breadcrumbs and stylesheet integrity.
app/controllers/users_controller.rb Removes the legacy layout override.
.github/workflows/herb.yml Renames the workflow job.
.github/workflows/brakeman.yml Renames the workflow job.
Review details
  • Files reviewed: 18/18 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread app/controllers/users_controller.rb
Comment thread app/views/layouts/application.html.erb

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Moderate issues remain with user-page layout content, Bootstrap field classes, breadcrumb localization, and pagination accessibility.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (4)

app/controllers/users_controller.rb:3

  • Removing this layout declaration makes new, edit, show, and their redirects use application, but that layout currently comments out the title/action-bar/flash rendering (app/views/layouts/application.html.erb:40-53). Consequently the user pages lose the cancel/edit/delete/account links and the create/update/delete feedback. Keep the legacy layout for these actions until the Bootstrap layout renders those slots, or enable equivalent rendering there.
class UsersController < ApplicationController

app/views/users/_fields.html.erb:54

  • The existing toggleRequiredPasswordMarks JavaScript (app/assets/javascripts/errbit.js:109-125) sets each password input's parent class to either "required" or "" on page load and when GitHub login changes. With this new Bootstrap structure, that parent is the .col wrapper, so the class is overwritten and the password fields lose their Bootstrap column layout on every new/edit page. Update the script to toggle a dedicated class without replacing the wrapper classes, or isolate the legacy marker in a separate wrapper.
<div class="row">
  <div class="col">
    <%= f.label :password, t(".password"), class: "form-label" %>
    <%= f.password_field :password, autocomplete: "new-password", class: "form-control" %>

config/locales/kaminari.en.yml:7

  • These new values replace First, Last, Previous, and Next with bare symbols. The existing Kaminari partials put these translations directly in anchors without an aria-label or visually hidden text, so screen-reader users cannot identify the pagination controls. Keep accessible textual labels or add accessible names in the pagination partials.
      first: "&laquo;"
      last: "&raquo;"
      previous: "&lsaquo;"
      next: "&rsaquo;"

config/locales/kaminari.pt-BR.yml:7

  • These new values replace First, Last, Previous, and Next with bare symbols. The existing Kaminari partials put these translations directly in anchors without an aria-label or visually hidden text, so screen-reader users cannot identify the pagination controls. Keep accessible textual labels or add accessible names in the pagination partials.
      first: "&laquo;"
      last: "&raquo;"
      previous: "&lsaquo;"
      next: "&rsaquo;"
  • Files reviewed: 18/18 changed files
  • Comments generated: 4
  • Review effort level: Lite

Comment on lines +8 to +9
<li class="breadcrumb-item"><%= link_to("Home", root_path) %></li>
<li class="breadcrumb-item"><%= link_to("Users", users_path) %></li>
<div class="col">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><%= link_to("Home", root_path) %></li>
Comment on lines +8 to +9
<li class="breadcrumb-item"><%= link_to("Home", root_path) %></li>
<li class="breadcrumb-item"><%= link_to("Users", users_path) %></li>
Comment on lines +8 to +9
<li class="breadcrumb-item"><%= link_to("Home", root_path) %></li>
<li class="breadcrumb-item"><%= link_to("Users", users_path) %></li>
@biow0lf
biow0lf force-pushed the port-ui-to-bootstrap-5-part-3 branch from 746465b to 5176ec0 Compare September 14, 2026 21:24

This branch has not been deployed

No deployments
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.

2 participants