lesli_shield 1.1.8 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/lesli_shield/login-background.webp +0 -0
  3. data/app/assets/images/lesli_shield/register-background.webp +0 -0
  4. data/app/assets/stylesheets/lesli_shield/application.css +325 -408
  5. data/app/assets/stylesheets/lesli_shield/confirmations.css +89 -557
  6. data/app/assets/stylesheets/lesli_shield/invitations.css +116 -580
  7. data/app/assets/stylesheets/lesli_shield/passwords.css +76 -542
  8. data/app/assets/stylesheets/lesli_shield/registrations.css +96 -544
  9. data/app/assets/stylesheets/lesli_shield/sessions.css +99 -565
  10. data/app/controllers/lesli_shield/profile/passwords_controller.rb +0 -2
  11. data/app/controllers/lesli_shield/profiles_controller.rb +0 -1
  12. data/app/controllers/lesli_shield/user/roles_controller.rb +35 -59
  13. data/app/controllers/lesli_shield/users_controller.rb +4 -2
  14. data/app/controllers/users/registrations_controller.rb +27 -0
  15. data/app/controllers/users/sessions_controller.rb +11 -0
  16. data/app/interfaces/lesli_shield/security_interface.rb +146 -0
  17. data/app/models/concerns/lesli_shield/user_authentication.rb +0 -29
  18. data/app/models/concerns/lesli_shield/user_legal_acceptance.rb +45 -0
  19. data/app/models/concerns/lesli_shield/user_security.rb +23 -14
  20. data/app/services/lesli_shield/user_role_service.rb +37 -0
  21. data/app/services/lesli_shield/user_validator_service.rb +6 -28
  22. data/app/views/devise/confirmations/new.html.erb +1 -1
  23. data/app/views/devise/confirmations/show.html.erb +3 -3
  24. data/app/views/devise/passwords/edit.html.erb +1 -1
  25. data/app/views/devise/passwords/new.html.erb +2 -2
  26. data/app/views/devise/registrations/_terms.html.erb +34 -0
  27. data/app/views/devise/registrations/new.html.erb +5 -7
  28. data/app/views/devise/sessions/new.html.erb +3 -2
  29. data/app/views/devise/shared/_application-devise-simple.erb +1 -1
  30. data/app/views/devise/shared/_application-devise.html.erb +4 -4
  31. data/app/views/devise/shared/_demo.html.erb +2 -2
  32. data/app/views/devise/shared/_error_messages.html.erb +5 -5
  33. data/app/views/devise/shared/_links.html.erb +4 -4
  34. data/app/views/lesli_shield/invites/_invite.html.erb +9 -9
  35. data/app/views/lesli_shield/invites/_invite_actions.html.erb +3 -3
  36. data/app/views/lesli_shield/invites/_status_badge.html.erb +4 -4
  37. data/app/views/lesli_shield/invites/index.html.erb +20 -20
  38. data/app/views/lesli_shield/partials/_navigation.html.erb +5 -5
  39. data/app/views/lesli_shield/profiles/_password-form.html.erb +1 -1
  40. data/app/views/lesli_shield/role/actions/_custom_actions.html.erb +7 -7
  41. data/app/views/lesli_shield/role/actions/_deployment_status.html.erb +2 -2
  42. data/app/views/lesli_shield/role/actions/_matrix.html.erb +13 -13
  43. data/app/views/lesli_shield/role/actions/_permissions.html.erb +9 -9
  44. data/app/views/lesli_shield/role/actions/_toggle.html.erb +3 -3
  45. data/app/views/lesli_shield/role/actions/index.html.erb +0 -1
  46. data/app/views/lesli_shield/roles/_deployment_badge.html.erb +3 -3
  47. data/app/views/lesli_shield/roles/_empty_state.html.erb +4 -4
  48. data/app/views/lesli_shield/roles/_field_errors.html.erb +1 -1
  49. data/app/views/lesli_shield/roles/_filters.html.erb +9 -9
  50. data/app/views/lesli_shield/roles/_form.html.erb +22 -22
  51. data/app/views/lesli_shield/roles/_management_menu.html.erb +5 -5
  52. data/app/views/lesli_shield/roles/_pagination.html.erb +7 -7
  53. data/app/views/lesli_shield/roles/_role_list.html.erb +19 -19
  54. data/app/views/lesli_shield/roles/_status_badge.html.erb +4 -4
  55. data/app/views/lesli_shield/roles/_type_badge.html.erb +2 -2
  56. data/app/views/lesli_shield/roles/new.html.erb +1 -1
  57. data/app/views/lesli_shield/roles/show.html.erb +40 -50
  58. data/app/views/lesli_shield/user/roles/index.html.erb +1 -16
  59. data/app/views/lesli_shield/users/_information-card.html.erb +3 -3
  60. data/app/views/lesli_shield/users/_management-privileges.html.erb +74 -68
  61. data/app/views/lesli_shield/users/show.html.erb +1 -1
  62. data/app/views/users/invitations/show.html.erb +10 -10
  63. data/app/views/users/invitations/unavailable.html.erb +4 -4
  64. data/config/locales/translations.en.yml +8 -1
  65. data/config/locales/translations.es.yml +8 -1
  66. data/config/locales/user_roles.en.yml +16 -0
  67. data/config/locales/user_roles.es.yml +16 -0
  68. data/config/routes.rb +1 -1
  69. data/lib/lesli_shield/engine.rb +4 -0
  70. data/lib/lesli_shield/version.rb +2 -2
  71. metadata +10 -12
  72. data/app/assets/images/lesli_shield/login-background.jpg +0 -0
  73. data/app/assets/images/lesli_shield/register-background.jpg +0 -0
  74. data/app/assets/stylesheets/lesli_shield/confirmations.tailwind.css +0 -918
  75. data/app/assets/stylesheets/lesli_shield/devise/oauth.css +0 -33
  76. data/app/assets/stylesheets/lesli_shield/passwords.tailwind.css +0 -873
  77. data/app/assets/stylesheets/lesli_shield/registrations.tailwind.css +0 -908
  78. data/app/assets/stylesheets/lesli_shield/sessions.tailwind.css +0 -984
  79. data/app/assets/stylesheets/lesli_shield/users.css +0 -31
  80. data/app/interfaces/lesli_shield/authentication_interface.rb +0 -64
  81. data/app/interfaces/lesli_shield/authorization_interface.rb +0 -46
@@ -1,74 +1,80 @@
1
- <%
2
- columns = [{
3
- label: "ID"
4
- }, {
5
- label: "Name"
6
- }, {
7
- label: "status"
8
- }]
9
- %>
1
+ <%= turbo_frame_tag dom_id(@user, :roles) do %>
2
+ <section class="w-full space-y-8 rounded-2xl border border-neutral-200 bg-white p-5 sm:p-8" aria-label="<%= t("lesli_shield.user_roles.title") %>">
3
+ <header>
4
+ <h2 class="text-lg font-semibold text-neutral-900"><%= t("lesli_shield.user_roles.title") %></h2>
5
+ <p class="mt-1 text-sm text-neutral-500"><%= t("lesli_shield.user_roles.description") %></p>
6
+ </header>
10
7
 
11
- <% roles = @user.account.roles.joins("
12
- LEFT JOIN lesli_shield_user_roles
13
- ON lesli_shield_user_roles.role_id = lesli_roles.id
14
- AND lesli_shield_user_roles.user_id = #{@user.id}
15
- ").select(
16
- "lesli_roles.*",
17
- "lesli_shield_user_roles.id AS user_role_id"
18
- )
19
- %>
8
+ <% if @role_error.present? %>
9
+ <p role="alert" class="text-sm text-danger-700"><%= @role_error %></p>
10
+ <% end %>
20
11
 
21
- <%= render(LesliView::Elements::Table.new(:columns => columns)) do |table| %>
22
- <% roles.each do |role| %>
23
- <% table.with_row do |row| %>
24
- <% row.with_cell do %>
25
- <%= role[:id] %>
26
- <% end %>
27
- <% row.with_cell do %>
28
- <%= role[:name] %>
29
- <% end %>
30
- <% row.with_cell do %>
31
- <%= button_to user_role_path(role),
32
- class: "mini-toggle #{'active' if role[:user_role_id].present?}",
33
- method: (role[:user_role_id].present? ? :delete : :patch) do %>
34
- <span class="mini-toggle-slider"></span>
35
- <% end %>
12
+ <% if @available_roles.any? %>
13
+ <%= form_with scope: :user_role, url: user_roles_path(@user),
14
+ builder: LesliView::Forms::Builder,
15
+ data: { turbo_frame: dom_id(@user, :roles) },
16
+ html: { "x-data": "{ roleId: '' }", class: "grid items-end gap-3 sm:grid-cols-[minmax(0,1fr)_auto] [&_.lesli-form-field]:mb-0" } do |form| %>
17
+ <%= form.field_control_select(:role_id,
18
+ @available_roles.map { |role| [role.name, role.id] },
19
+ label: t("lesli_shield.user_roles.role"), humanize: false,
20
+ options: { prompt: t("lesli_shield.user_roles.select_role") },
21
+ html_options: { required: true, "x-model": "roleId" }) %>
22
+ <%= form.field_control_button(t("lesli_shield.user_roles.add"),
23
+ { disabled: true, "x-bind:disabled": "!roleId", class: "h-11 w-full" }, icon: "add") %>
36
24
  <% end %>
25
+ <% else %>
26
+ <p class="text-sm text-neutral-500"><%= t("lesli_shield.user_roles.no_available_roles") %></p>
37
27
  <% end %>
38
- <% end %>
39
- <% end %>
40
28
 
41
- <style>
42
- .mini-toggle {
43
- position: relative;
44
- width: 40px;
45
- height: 20px;
46
- background: #ccc;
47
- border-radius: 9999px;
48
- border: none;
49
- cursor: pointer;
50
- padding: 0;
51
- transition: background 0.25s ease;
52
- display: inline-block;
53
- }
29
+ <div>
30
+ <h3 class="mb-3 flex items-center gap-2 text-sm font-semibold text-neutral-700">
31
+ <%= t("lesli_shield.user_roles.assigned") %>
32
+ <span class="rounded-full bg-neutral-100 px-2 py-0.5 text-xs text-neutral-500"><%= @user_roles.size %></span>
33
+ </h3>
54
34
 
55
- .mini-toggle.active {
56
- background: #22c55e; /* green */
57
- background: var(--lesli-color-primary)
58
- }
59
-
60
- .mini-toggle-slider {
61
- position: absolute;
62
- top: 2px;
63
- left: 2px;
64
- width: 16px;
65
- height: 16px;
66
- background: white;
67
- border-radius: 50%;
68
- transition: transform 0.25s ease;
69
- }
70
-
71
- .mini-toggle.active .mini-toggle-slider {
72
- transform: translateX(20px);
73
- }
74
- </style>
35
+ <% if @user_roles.empty? %>
36
+ <p class="rounded-xl border border-dashed border-neutral-200 p-6 text-center text-sm text-neutral-500">
37
+ <%= t("lesli_shield.user_roles.empty") %>
38
+ </p>
39
+ <% else %>
40
+ <ul class="divide-y divide-neutral-100 border-t border-neutral-200">
41
+ <% @user_roles.each do |assignment| %>
42
+ <% role = assignment.role %>
43
+ <li class="flex items-start justify-between gap-4 py-5">
44
+ <div class="min-w-0">
45
+ <div class="flex flex-wrap items-center gap-2">
46
+ <h4 class="break-words text-sm font-semibold text-neutral-900"><%= role.name %></h4>
47
+ <% unless role.active? %>
48
+ <span class="rounded-full bg-neutral-100 px-2 py-0.5 text-xs text-neutral-600">
49
+ <%= t("lesli_shield.user_roles.inactive") %>
50
+ </span>
51
+ <% end %>
52
+ </div>
53
+ <% if role.description.present? %>
54
+ <p class="mt-1 break-words text-sm leading-6 text-neutral-500"><%= role.description %></p>
55
+ <% end %>
56
+ <% unless role.active? %>
57
+ <p class="mt-1 text-xs text-neutral-500"><%= t("lesli_shield.user_roles.inactive_help") %></p>
58
+ <% end %>
59
+ </div>
60
+ <div class="shrink-0">
61
+ <% if role.account_id == current_user.account_id && role.permission_level.to_i <= current_user.max_level_permission %>
62
+ <%= render LesliView::Elements::Button.new(
63
+ t("lesli_shield.user_roles.remove"),
64
+ url: user_role_path(@user, assignment), method: :delete,
65
+ solid: false, small: true,
66
+ data: { turbo_frame: dom_id(@user, :roles),
67
+ turbo_confirm: t("lesli_shield.user_roles.confirm_remove",
68
+ role: role.name, user: @user.email) }
69
+ ) %>
70
+ <% else %>
71
+ <span class="text-xs text-neutral-500"><%= t("lesli_shield.user_roles.read_only") %></span>
72
+ <% end %>
73
+ </div>
74
+ </li>
75
+ <% end %>
76
+ </ul>
77
+ <% end %>
78
+ </div>
79
+ </section>
80
+ <% end %>
@@ -7,7 +7,7 @@
7
7
  <% tabs.with_tab(title:"information", icon:"info") do %>
8
8
  <%= render("information-form") %>
9
9
  <% end %>
10
- <% tabs.with_tab(title:"Privileges", icon:"security") do %>
10
+ <% tabs.with_tab(title: t("lesli_shield.user_roles.title"), icon:"security") do %>
11
11
  <%= render("management-privileges") %>
12
12
  <% end %>
13
13
 
@@ -7,27 +7,27 @@ title = I18n.t("lesli_shield.invites.acceptance_title")
7
7
  title: title,
8
8
  back_to_login: true
9
9
  ) do %>
10
- <p class="mb-6 text-center text-sm leading-6 text-slate-600">
10
+ <p class="mb-6 text-center text-sm leading-6 text-neutral-600">
11
11
  <%= I18n.t(
12
12
  "lesli_shield.invites.acceptance_description",
13
13
  account: @invitation.account.account.name
14
14
  ) %>
15
15
  </p>
16
16
 
17
- <dl class="mb-6 overflow-hidden rounded-lg border border-slate-200 bg-slate-50 text-sm">
18
- <div class="grid grid-cols-3 gap-4 border-b border-slate-200 px-4 py-3">
19
- <dt class="font-medium text-slate-500">
17
+ <dl class="mb-6 overflow-hidden rounded-lg border border-neutral-200 bg-neutral-50 text-sm">
18
+ <div class="grid grid-cols-3 gap-4 border-b border-neutral-200 px-4 py-3">
19
+ <dt class="font-medium text-neutral-500">
20
20
  <%= I18n.t("lesli_shield.invites.acceptance_organization") %>
21
21
  </dt>
22
- <dd class="col-span-2 font-medium text-slate-900">
22
+ <dd class="col-span-2 font-medium text-neutral-900">
23
23
  <%= @invitation.account.account.name %>
24
24
  </dd>
25
25
  </div>
26
26
  <div class="grid grid-cols-3 gap-4 px-4 py-3">
27
- <dt class="font-medium text-slate-500">
27
+ <dt class="font-medium text-neutral-500">
28
28
  <%= I18n.t("lesli_shield.invites.acceptance_role") %>
29
29
  </dt>
30
- <dd class="col-span-2 font-medium text-slate-900">
30
+ <dd class="col-span-2 font-medium text-neutral-900">
31
31
  <%= @invitation.role.name %>
32
32
  </dd>
33
33
  </div>
@@ -80,11 +80,11 @@ title = I18n.t("lesli_shield.invites.acceptance_title")
80
80
  autocomplete: "tel"
81
81
  ) %>
82
82
 
83
- <div class="mb-4 rounded-xl border border-sky-100 bg-sky-50 px-4 py-3" role="note">
84
- <p class="text-sm font-semibold text-sky-900">
83
+ <div class="mb-4 rounded-xl border border-info-100 bg-info-50 px-4 py-3" role="note">
84
+ <p class="text-sm font-semibold text-info-900">
85
85
  <%= I18n.t("lesli_shield.invites.acceptance_password_requirements") %>
86
86
  </p>
87
- <p class="mt-1 text-sm leading-5 text-sky-700">
87
+ <p class="mt-1 text-sm leading-5 text-info-700">
88
88
  <%= I18n.t(
89
89
  "lesli_shield.invites.acceptance_password_length",
90
90
  minimum: @minimum_password_length,
@@ -3,17 +3,17 @@
3
3
  title: @invitation_error_title,
4
4
  back_to_login: true
5
5
  ) do %>
6
- <section class="rounded-2xl border border-slate-200 bg-white p-6 text-center shadow-sm" role="alert">
7
- <div class="mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-amber-50 text-amber-700">
6
+ <section class="rounded-2xl border border-neutral-200 bg-white p-6 text-center shadow-sm" role="alert">
7
+ <div class="mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-warning-50 text-warning-700">
8
8
  <svg class="h-6 w-6" viewBox="0 0 24 24" fill="none" aria-hidden="true">
9
9
  <path d="M12 8v5m0 3.5v.01M10.3 4.4 3.6 16a2 2 0 0 0 1.7 3h13.4a2 2 0 0 0 1.7-3L13.7 4.4a2 2 0 0 0-3.4 0Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/>
10
10
  </svg>
11
11
  </div>
12
- <p class="mt-4 text-sm leading-6 text-slate-600">
12
+ <p class="mt-4 text-sm leading-6 text-neutral-600">
13
13
  <%= @invitation_error_description %>
14
14
  </p>
15
15
  <%= link_to I18n.t("actions.back_to_login", default: "Back to login"),
16
16
  new_user_session_path,
17
- class: "mt-6 inline-flex h-11 w-full items-center justify-center rounded-xl bg-sky-600 px-4 text-sm font-semibold text-white shadow-sm transition hover:bg-sky-700 focus:outline-none focus:ring-4 focus:ring-sky-500/20" %>
17
+ class: "mt-6 inline-flex h-11 w-full items-center justify-center rounded-xl bg-primary px-4 text-sm font-semibold text-white shadow-sm transition hover:bg-primary-strong focus:outline-none focus:ring-4 focus:ring-primary/20" %>
18
18
  </section>
19
19
  <% end %>
@@ -36,6 +36,14 @@ en:
36
36
  view_update_description: "Choose a new password for your account and enter it twice to confirm it."
37
37
  view_update_title: "Create a new password"
38
38
  devise_registrations:
39
+ label_terms_html: "I accept the %{terms}."
40
+ link_terms: "Terms and conditions"
41
+ link_terms_new_tab: "Terms and conditions (opens a new tab)"
42
+ link_privacy: "Privacy policy"
43
+ link_privacy_new_tab: "Privacy policy (opens a new tab)"
44
+ message_terms_required: "You must accept the terms and conditions to register."
45
+ message_legal_documents_changed: "The legal documents have changed. Review them and confirm again."
46
+ view_privacy_notice_html: "Read the %{privacy} to learn how your data is used. We record the version presented; this is not consent to advertising or other optional uses."
39
47
  button_create_account: "Create account"
40
48
  button_creating_account: "Creating account…"
41
49
  button_login: "Log in"
@@ -46,7 +54,6 @@ en:
46
54
  message_too_many_attempts: "Too many account creation attempts. Try again later."
47
55
  view_already_have_an_account: "Already have an account?"
48
56
  view_description: "Enter your email address and choose a password to create your account."
49
- view_legal_notice: "By creating an account, you agree to the Terms and acknowledge the Global Privacy Statement."
50
57
  view_password_length: "Your password must contain between %{minimum} and %{maximum} characters."
51
58
  view_title: "Create an account to discover Lesli"
52
59
  devise_sessions:
@@ -36,6 +36,14 @@ es:
36
36
  view_update_description: "Elige una nueva contraseña para tu cuenta e ingrésala dos veces para confirmarla."
37
37
  view_update_title: "Crea una nueva contraseña"
38
38
  devise_registrations:
39
+ label_terms_html: "Acepto los %{terms}."
40
+ link_terms: "Términos y condiciones"
41
+ link_terms_new_tab: "Términos y condiciones (abre una pestaña nueva)"
42
+ link_privacy: "Política de privacidad"
43
+ link_privacy_new_tab: "Política de privacidad (abre una pestaña nueva)"
44
+ message_terms_required: "Debes aceptar los términos y condiciones para registrarte."
45
+ message_legal_documents_changed: "Los documentos legales cambiaron. Revísalos y vuelve a confirmar."
46
+ view_privacy_notice_html: "Consulta la %{privacy} para conocer cómo usamos tus datos. Conservamos la versión presentada; esto no supone consentimiento para publicidad u otros usos opcionales."
39
47
  button_create_account: "Crear cuenta"
40
48
  button_creating_account: "Creando cuenta…"
41
49
  button_login: "Iniciar sesión"
@@ -46,7 +54,6 @@ es:
46
54
  message_too_many_attempts: "Demasiados intentos de creación de cuenta. Inténtalo de nuevo más tarde."
47
55
  view_already_have_an_account: "¿Ya tienes cuenta?"
48
56
  view_description: "Ingresa tu correo electrónico y elige una contraseña para crear tu cuenta."
49
- view_legal_notice: "Al crear una cuenta, aceptas los Términos y reconoces la Declaración global de privacidad."
50
57
  view_password_length: "Tu contraseña debe contener entre %{minimum} y %{maximum} caracteres."
51
58
  view_title: "Crea una cuenta y descubre Lesli"
52
59
  devise_sessions:
@@ -0,0 +1,16 @@
1
+ en:
2
+ lesli_shield:
3
+ user_roles:
4
+ title: "Roles"
5
+ role: "Role"
6
+ select_role: "Select a role"
7
+ add: "Add role"
8
+ assigned: "Assigned roles"
9
+ remove: "Remove"
10
+ confirm_remove: "Remove the role %{role} from %{user}?"
11
+ empty: "This user has no assigned roles."
12
+ no_available_roles: "All available roles are already assigned."
13
+ description: "Roles determine what this user can see and do."
14
+ inactive: "Inactive"
15
+ inactive_help: "This role does not grant access while inactive."
16
+ read_only: "Read only"
@@ -0,0 +1,16 @@
1
+ es:
2
+ lesli_shield:
3
+ user_roles:
4
+ title: "Roles"
5
+ role: "Rol"
6
+ select_role: "Selecciona un rol"
7
+ add: "Agregar rol"
8
+ assigned: "Roles asignados"
9
+ remove: "Quitar"
10
+ confirm_remove: "¿Quitar el rol %{role} de %{user}?"
11
+ empty: "Este usuario no tiene roles asignados."
12
+ no_available_roles: "Todos los roles disponibles ya están asignados."
13
+ description: "Los roles determinan qué puede ver y hacer este usuario."
14
+ inactive: "Inactivo"
15
+ inactive_help: "Este rol no concede acceso mientras esté inactivo."
16
+ read_only: "Solo lectura"
data/config/routes.rb CHANGED
@@ -60,7 +60,7 @@ LesliShield::Engine.routes.draw do
60
60
  resources :sessions, only: [:index, :destroy]
61
61
 
62
62
  # assign and remove roles to users
63
- resources :roles, only: [:index, :create, :update, :destroy]
63
+ resources :roles, only: [:index, :create, :destroy]
64
64
 
65
65
  # shortcuts
66
66
  resources :shortcuts, only: [:index, :create, :update, :destroy]
@@ -58,6 +58,10 @@ module LesliShield
58
58
  Lesli::User.include(LesliShield::UserSecurity)
59
59
  end
60
60
 
61
+ unless Lesli::User < LesliShield::UserLegalAcceptance
62
+ Lesli::User.include(LesliShield::UserLegalAcceptance)
63
+ end
64
+
61
65
  unless Lesli::Role < LesliShield::RoleManagement
62
66
  Lesli::Role.include(LesliShield::RoleManagement)
63
67
  end
@@ -1,4 +1,4 @@
1
1
  module LesliShield
2
- VERSION = "1.1.8"
3
- BUILD = "1794796721"
2
+ VERSION = "1.1.10"
3
+ BUILD = "1795131757"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesli_shield
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Lesli Development Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-16 00:00:00.000000000 Z
11
+ date: 2026-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lesli
@@ -48,8 +48,8 @@ extensions: []
48
48
  extra_rdoc_files: []
49
49
  files:
50
50
  - Rakefile
51
- - app/assets/images/lesli_shield/login-background.jpg
52
- - app/assets/images/lesli_shield/register-background.jpg
51
+ - app/assets/images/lesli_shield/login-background.webp
52
+ - app/assets/images/lesli_shield/register-background.webp
53
53
  - app/assets/images/lesli_shield/shield-logo.svg
54
54
  - app/assets/javascripts/lesli_shield/application.js
55
55
  - app/assets/javascripts/lesli_shield/confirmations.js
@@ -58,16 +58,10 @@ files:
58
58
  - app/assets/javascripts/lesli_shield/sessions.js
59
59
  - app/assets/stylesheets/lesli_shield/application.css
60
60
  - app/assets/stylesheets/lesli_shield/confirmations.css
61
- - app/assets/stylesheets/lesli_shield/confirmations.tailwind.css
62
- - app/assets/stylesheets/lesli_shield/devise/oauth.css
63
61
  - app/assets/stylesheets/lesli_shield/invitations.css
64
62
  - app/assets/stylesheets/lesli_shield/passwords.css
65
- - app/assets/stylesheets/lesli_shield/passwords.tailwind.css
66
63
  - app/assets/stylesheets/lesli_shield/registrations.css
67
- - app/assets/stylesheets/lesli_shield/registrations.tailwind.css
68
64
  - app/assets/stylesheets/lesli_shield/sessions.css
69
- - app/assets/stylesheets/lesli_shield/sessions.tailwind.css
70
- - app/assets/stylesheets/lesli_shield/users.css
71
65
  - app/controllers/lesli_shield/application_controller.rb
72
66
  - app/controllers/lesli_shield/dashboards_controller.rb
73
67
  - app/controllers/lesli_shield/invites_controller.rb
@@ -93,8 +87,7 @@ files:
93
87
  - app/helpers/lesli_shield/settings_helper.rb
94
88
  - app/helpers/lesli_shield/user/roles_helper.rb
95
89
  - app/helpers/lesli_shield/users_helper.rb
96
- - app/interfaces/lesli_shield/authentication_interface.rb
97
- - app/interfaces/lesli_shield/authorization_interface.rb
90
+ - app/interfaces/lesli_shield/security_interface.rb
98
91
  - app/jobs/lesli_shield/application_job.rb
99
92
  - app/jobs/lesli_shield/invitation_delivery_job.rb
100
93
  - app/mailers/lesli_shield/application_mailer.rb
@@ -102,6 +95,7 @@ files:
102
95
  - app/mailers/lesli_shield/invitation_mailer.rb
103
96
  - app/models/concerns/lesli_shield/role_management.rb
104
97
  - app/models/concerns/lesli_shield/user_authentication.rb
98
+ - app/models/concerns/lesli_shield/user_legal_acceptance.rb
105
99
  - app/models/concerns/lesli_shield/user_security.rb
106
100
  - app/models/lesli_shield/account.rb
107
101
  - app/models/lesli_shield/application_record.rb
@@ -127,6 +121,7 @@ files:
127
121
  - app/services/lesli_shield/role_service.rb
128
122
  - app/services/lesli_shield/tokens.rb
129
123
  - app/services/lesli_shield/user_registration_service.rb
124
+ - app/services/lesli_shield/user_role_service.rb
130
125
  - app/services/lesli_shield/user_session_service.rb
131
126
  - app/services/lesli_shield/user_validator_service.rb
132
127
  - app/views/devise/confirmations/new.html.erb
@@ -138,6 +133,7 @@ files:
138
133
  - app/views/devise/mailer/unlock_instructions.html.erb
139
134
  - app/views/devise/passwords/edit.html.erb
140
135
  - app/views/devise/passwords/new.html.erb
136
+ - app/views/devise/registrations/_terms.html.erb
141
137
  - app/views/devise/registrations/edit.html.erb
142
138
  - app/views/devise/registrations/new.html.erb
143
139
  - app/views/devise/sessions/new.html.erb
@@ -218,6 +214,8 @@ files:
218
214
  - config/locales/devise.es.yml
219
215
  - config/locales/translations.en.yml
220
216
  - config/locales/translations.es.yml
217
+ - config/locales/user_roles.en.yml
218
+ - config/locales/user_roles.es.yml
221
219
  - config/routes.rb
222
220
  - db/migrate/v1/0801000110_create_lesli_shield_accounts.rb
223
221
  - db/migrate/v1/0801100210_create_lesli_shield_role_actions.rb