Skip to content

Bootstrap 5 - #4445

Draft
jekkos wants to merge 2 commits into
masterfrom
bootstrap-5
Draft

jekkos wants to merge 2 commits into
masterfrom
bootstrap-5

Conversation

@jekkos

@jekkos jekkos commented Mar 17, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features

    • Appearance settings page and a user Profile modal (includes change-password UI).
    • RTL language toggle and responsive design option.
  • Improvements

    • Site-wide migration to Bootstrap 5 with refreshed, responsive layouts and updated headers/footers.
    • Icons replaced with Bootstrap Icons; improved module tiles and forms.
    • Enhanced date-range picker and custom loading indicators in tables.
  • Documentation

    • Added a Bootstrap 5 conversion WIP notice to the README.

@coderabbitai

coderabbitai Bot commented Mar 17, 2026 •

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

This PR is a large Bootstrap 5 conversion: swaps Glyphicons/FontAwesome for Bootstrap Icons, rewrites many views to BS5 grid/flex, introduces an Appearance config flow (controller + view + DB seeds), updates frontend build/assets (package.json, gulpfile), and adds BS5 JS/CSS utilities and partials.

Changes

Cohort / File(s) Summary
Appearance & Config Controller
app/Controllers/Config.php, app/Views/configs/appearance_config.php, app/Database/Migrations/sqlscripts/initial_schema.sql
Moved theme/login/notification settings into a new postSaveAppearance(); added appearance_config view; seeded rtl_language, color_mode, config_menu_position, responsive_design; rtl_language persisted in locale save.
Config Header & Management UI
app/Views/configs/config_header.php, app/Views/configs/manage.php
Added reusable config_header partial; refactored config index to BS5 list-group with responsive dropdown and new sections (appearance, integrations, etc.).
Major Config Views (BS5 refactor)
app/Views/configs/*.php (e.g., general_config.php, locale_config.php, barcode_config.php, email_config.php, invoice_config.php, receipt_config.php, tax_config.php, info_config.php, integrations_config.php, system_info.php, table_config.php, reward_config.php, stock_config.php, license_config.php, message_config.php)
Large-scale conversion from legacy form-horizontal to Bootstrap 5 layout: new headers, BS5 switches/input-groups, reorganized fields, updated client-side validation/AJAX hooks and notify icons; system_info.php adds getBrowserNameAndVersion() and richer permission/status displays.
Views — Icons & Layouts
app/Views/** (attributes, cashups, customers, employees, expenses*, giftcards, home, item_kits, items, login, messages, people, receivings, reports, sales, taxes, partials, etc.)
Replaced Glyphicons/other icons with Bootstrap Icons across many views; converted toolbars/headers to BS5 flex patterns; removed some legacy views (e.g., home/form_change_password.php); delegated module rendering to home/modules.php and added home/profile.php.
Helpers & Reports Markup
app/Helpers/tabular_helper.php, app/Helpers/tax_helper.php, app/Controllers/Reports.php
Replaced icon markup in generated rows/actions with Bootstrap Icons (e.g., bi-pencil-square) without changing URLs or control flow.
Partials & UI Components
app/Views/partial/*.php (header.php, footer.php, daterangepicker.php, customer_rewards.php, dinner_tables.php, stock_locations.php, tax partials)
Header/footer and many partials reworked for BS5; daterangepicker options updated (button classes); partials converted to BS5 input-groups and icon controls.
Assets & Build
package.json, gulpfile.js, public/css/*, public/js/*
Upgraded to Bootstrap 5, added bootstrap-icons, tom-select, bootstrap5-toggle; gulpfile adds copy-js/copy-icons; added public/css/interface.css, removed legacy ospos.css/register.css; new JS utilities (bs-validation.js, bs-tooltips.js, bs-tab_anchor_linking.js, bs-modal_switch_content.js); table loading template changes.
Register/Register-related Views
app/Views/sales/register.php, related register assets
Significant register layout rework to BS5 card/grid and new right-side totals/customer card; many icon swaps and notify icon additions; duplicate/legacy structures partially preserved.
Database & Language
app/Database/Migrations/sqlscripts/initial_schema.sql, app/Language/en/Config.php
Default theme seed changed to bootstrap; added new config keys; added translation key dinner_table_add.
Misc (minor files & deletions)
README.md, various small view/CSS/JS changes, deleted app/Views/home/form_change_password.php
Added README note about WIP Bootstrap 5 conversion; many small presentational updates and a removed password-change view.

Sequence Diagram(s)

sequenceDiagram
    participant User as Client (Browser)
    participant View as Appearance View (JS)
    participant Ctrl as Config Controller
    participant Model as AppConfig Model
    participant DB as Database

    User->>View: open Appearance page / submit form
    View->>Ctrl: AJAX POST /config/saveAppearance
    Ctrl->>Model: appconfig->batch_save(appearance settings)
    Model->>DB: UPDATE/INSERT config rows
    DB-->>Model: OK
    Model-->>Ctrl: success
    Ctrl-->>View: JSON {success: true, message}
    View-->>User: show notification and reload on success
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~75 minutes

Possibly related issues

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bootstrap-5

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jekkos
jekkos requested a review from BudsieBuds March 17, 2026 18:18

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 16

Note

Due to the large number of review comments, Critical severity comments were prioritized as inline comments.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
gulpfile.js (1)

137-170: ⚠️ Potential issue | 🟠 Major

Inconsistent Bootstrap JS bundle and toggle library between debug and prod builds.

The debug-js task uses bootstrap.bundle.js (which includes Popper.js) and bootstrap5-toggle, but prod-js uses bootstrap.min.js (which excludes Popper.js) and the older bootstrap-toggle instead. This mismatch will cause runtime errors in production where Bootstrap 5 components (dropdowns, tooltips, popovers) require Popper.js. Additionally, the toggle library versions should be consistent between debug and prod builds.

Align prod-js to use bootstrap.bundle.js and bootstrap5-toggle as used in debug-js.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@gulpfile.js` around lines 137 - 170, The prod-js task currently pulls
'bootstrap.min.js' and 'bootstrap-toggle' which differs from debug-js; update
the 'prod-js' gulp task so it instead sources the Bootstrap bundle (use the
bootstrap/dist/js/bootstrap.bundle.min.js entry used by debug-js to include
Popper) and replace the older 'bootstrap-toggle' entry with the same
'bootstrap5-toggle' package used in debug-js, ensuring the filenames in the
opensourcepos1js src array match the bundle and toggle package names so
production behavior matches debug.
🟠 Major comments (34)
app/Views/home/modules.php-5-12 (1)

5-12: ⚠️ Potential issue | 🟠 Major

Escape all dynamic output in attributes and text.

$module->module_id and lang(...) values are rendered directly into title, href, src, and visible text. These should be escaped per output context to avoid XSS in the view.

🔧 Proposed fix
 <?php foreach ($allowed_modules as $module) { ?>
-        <div class="border border-primary rounded shadow-sm bg-primary-subtle text-center d-block" title="<?= lang("Module.$module->module_id" . '_desc') ?>">
-            <a href="<?= base_url($module->module_id) ?>">
-                <img class="d-block mx-auto p-2" src="<?= base_url("images/menubar/$module->module_id.svg") ?>" alt="Menubar Image"> <!-- TODO-BS5 alt text translatable -->
+        <?php $moduleId = (string) $module->module_id; ?>
+        <div class="border border-primary rounded shadow-sm bg-primary-subtle text-center d-block" title="<?= esc(lang("Module.{$moduleId}_desc"), 'attr') ?>">
+            <a href="<?= esc(base_url($moduleId), 'attr') ?>">
+                <img class="d-block mx-auto p-2" src="<?= esc(base_url("images/menubar/{$moduleId}.svg"), 'attr') ?>" alt="<?= esc(lang("Module.{$moduleId}"), 'attr') ?>">
             </a>
-            <a href="<?= base_url($module->module_id) ?>">
+            <a href="<?= esc(base_url($moduleId), 'attr') ?>">
                 <div class="tile-text rounded-bottom d-block bg-primary text-light fw-bold p-2">
-                    <span><?= lang("Module.$module->module_id") ?></span>
+                    <span><?= esc(lang("Module.{$moduleId}")) ?></span>
                 </div>
             </a>
         </div>
     <?php } ?>

As per coding guidelines, app/**/*.php: Sanitize user input; escape output using esc() helper.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/home/modules.php` around lines 5 - 12, Escape all dynamic outputs
used in attributes and visible text: wrap $module->module_id and all lang(...)
calls with the esc() helper before injecting into title, href, src and the
visible <span> text. Specifically update occurrences where
lang("Module.$module->module_id" . '_desc'), base_url($module->module_id),
base_url("images/menubar/$module->module_id.svg") and
lang("Module.$module->module_id") are rendered so the attribute values and the
tile text use escaped values (use esc(...) for HTML attributes and text context
as appropriate); ensure the img alt is also set to an escaped, translatable
string.
app/Views/partial/tax_jurisdictions.php-83-85 (1)

83-85: ⚠️ Potential issue | 🟠 Major

Use semantic buttons for add/remove jurisdiction actions.

These controls are interactive but implemented as <span>, so they are not keyboard accessible by default.

♿ Suggested fix
-        <span class="add_tax_jurisdiction bi bi-plus-circle" style="padding-top: 0.5em; display: inline-block; cursor: pointer;"></span>
+        <button type="button" class="add_tax_jurisdiction btn btn-link p-0" style="padding-top: 0.5em;" aria-label="<?= esc(lang('Common.add')) ?>">
+            <i class="bi bi-plus-circle" aria-hidden="true"></i>
+        </button>
         <span>&nbsp;&nbsp;</span>
-        <span class="remove_tax_jurisdiction bi bi-dash-circle" style="padding-top: 0.5em; display: inline-block; cursor: pointer;"></span>
+        <button type="button" class="remove_tax_jurisdiction btn btn-link p-0" style="padding-top: 0.5em;" aria-label="<?= esc(lang('Common.remove')) ?>">
+            <i class="bi bi-dash-circle" aria-hidden="true"></i>
+        </button>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/partial/tax_jurisdictions.php` around lines 83 - 85, Replace the
non-semantic interactive spans used for add/remove actions with real buttons so
they are keyboard accessible and announced by assistive tech: change the
elements with classes add_tax_jurisdiction and remove_tax_jurisdiction to
<button type="button">, preserve the bi bi-plus-circle / bi-dash-circle classes
for styling, add descriptive aria-label attributes (e.g., "Add tax
jurisdiction", "Remove tax jurisdiction"), and ensure any JS that queried these
elements by class still targets them (update selectors if necessary) and that
CSS retains the visual layout (padding/display/cursor).
public/js/bs-tab_anchor_linking.js-13-21 (1)

13-21: ⚠️ Potential issue | 🟠 Major

Same || bug and Bootstrap 5 buttons use data-bs-target, not href.

The selector has the same string || issue. Also, Bootstrap 5 tab buttons typically use data-bs-target attribute instead of href. Line 15 creates selTab but never uses it—this is wasteful object instantiation.

🐛 Proposed fix
-const selectableTabList = [].slice.call(document.querySelectorAll('button[data-bs-toggle="tab"]' || 'a[data-bs-toggle="tab"]'));
+const selectableTabList = [].slice.call(document.querySelectorAll('button[data-bs-toggle="tab"], a[data-bs-toggle="tab"]'));
 selectableTabList.forEach((selectableTab) => {
-    const selTab = new bootstrap.Tab(selectableTab);
     selectableTab.addEventListener("click", function () {
         var newUrl;
-        const hash = selectableTab.getAttribute("href");
+        const hash = selectableTab.getAttribute("data-bs-target") || selectableTab.getAttribute("href");
+        if (!hash) return;
         newUrl = url.split("#")[0] + hash;
         history.replaceState(null, null, newUrl);
     });
 });
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@public/js/bs-tab_anchor_linking.js` around lines 13 - 21, The tab selector
and click handler are wrong: fix the selector to combine both button and anchor
nodes properly (e.g., querySelectorAll('button[data-bs-toggle="tab"],
a[data-bs-toggle="tab"]') instead of using the string "||"), read the tab target
from the Bootstrap 5 attribute (use selectableTab.getAttribute('data-bs-target')
rather than 'href'), and stop creating an unused bootstrap.Tab instance (remove
the unused selTab = new bootstrap.Tab(selectableTab) or actually use it like
selTab.show()). Also ensure the click handler builds newUrl correctly (use the
existing url variable base and append the target/hash) before calling
history.replaceState.
app/Views/partial/footer.php-26-27 (1)

26-27: ⚠️ Potential issue | 🟠 Major

Script URLs should be absolute via CI helper.

These relative src paths can break on non-root routes. Use base_url() so assets resolve consistently.

🔧 Proposed fix
-    <script type="text/javascript" src="js/bs-tooltips.js"></script>
-    <script type="text/javascript" src="js/bs-modal_switch_content.js"></script>
+    <script type="text/javascript" src="<?= esc(base_url('js/bs-tooltips.js'), 'url') ?>"></script>
+    <script type="text/javascript" src="<?= esc(base_url('js/bs-modal_switch_content.js'), 'url') ?>"></script>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/partial/footer.php` around lines 26 - 27, Replace the relative
script src attributes with absolute URLs generated by the CI helper: call
base_url() (or the framework's URL helper) to prefix the asset paths for
"js/bs-tooltips.js" and "js/bs-modal_switch_content.js" so the <script> tags
always point to the correct location regardless of route; update the two script
tags in footer.php to use base_url() around the JS paths.
app/Views/configs/license_config.php-20-21 (1)

20-21: ⚠️ Potential issue | 🟠 Major

Escape license content before rendering.

$license['title'] and $license['text'] are output raw. In this context, unescaped content can break markup and introduce XSS.

🔧 Proposed fix
-            <label for="license_<?= $license_i; ?>" class="form-label"><?= $license['title']; ?></label>
-            <textarea name="license" rows="10" id="license_<?= $license_i; ?>" class="form-control font-monospace" style="font-size: .875rem;" readonly><?= $license['text']; ?></textarea>
+            <label for="license_<?= $license_i; ?>" class="form-label"><?= esc($license['title']); ?></label>
+            <textarea name="license" rows="10" id="license_<?= $license_i; ?>" class="form-control font-monospace" style="font-size: .875rem;" readonly><?= esc($license['text']); ?></textarea>

As per coding guidelines, "app/**/*.php: Sanitize user input; escape output using esc() helper".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/license_config.php` around lines 20 - 21, Escape the
license output before rendering: update the template where license['title'] and
license['text'] are echoed (the label and textarea with id "license_<?=
$license_i; ?>") to pass these values through the esc() helper so HTML/entities
are encoded (e.g., use esc($license['title']) and esc($license['text'])),
preserving readonly and monospace styling but ensuring both title and text are
safely escaped to prevent markup injection/XSS.
app/Views/partial/customer_rewards.php-24-26 (1)

24-26: ⚠️ Potential issue | 🟠 Major

Escape dynamic reward fields in text and attributes.

These values are rendered raw in element content/attributes. Please escape them to prevent injection and malformed HTML.

🔧 Proposed fix
-            <span class="input-group-text"><?= $customer_reward_id ?>.</span>
-            <input type="text" class="form-control customer_reward valid_chars w-25" name="customer_reward_<?= $customer_reward_id ?>" id="customer_reward_<?= $customer_reward_id ?>" value="<?= $customer_reward_name ?>" required <?= $reward_category['deleted'] ? 'disabled' : '' ?>>
-            <input type="number" min="0" class="form-control customer_reward valid_chars" name="reward_points_<?= $customer_reward_id ?>" id="reward_points_<?= $customer_reward_id ?>" value="<?= $customer_points_percent ?>" required <?= $reward_category['deleted'] ? 'disabled' : '' ?>>
+            <span class="input-group-text"><?= esc((string)$customer_reward_id) ?>.</span>
+            <input type="text" class="form-control customer_reward valid_chars w-25" name="customer_reward_<?= esc((string)$customer_reward_id) ?>" id="customer_reward_<?= esc((string)$customer_reward_id) ?>" value="<?= esc($customer_reward_name) ?>" required <?= $reward_category['deleted'] ? 'disabled' : '' ?>>
+            <input type="number" min="0" class="form-control customer_reward valid_chars" name="reward_points_<?= esc((string)$customer_reward_id) ?>" id="reward_points_<?= esc((string)$customer_reward_id) ?>" value="<?= esc((string)$customer_points_percent) ?>" required <?= $reward_category['deleted'] ? 'disabled' : '' ?>>

As per coding guidelines, "app/**/*.php: Sanitize user input; escape output using esc() helper".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/partial/customer_rewards.php` around lines 24 - 26, The dynamic
values rendered into the markup (customer_reward_id, customer_reward_name,
reward_points_percent and the reward_category['deleted'] flag used in attributes
and element content/ids/names) must be escaped with the esc() helper before
output to avoid injection/malformed HTML; update the span content, the value
attributes, and the name/id attributes for inputs (the strings inside
customer_reward_<?= ... ?> and reward_points_<?= ... ?>) to wrap those variables
with esc() and also cast/validate customer_reward_id/reward_points_percent where
appropriate, while preserving the conditional disabled attribute using esc() or
a strict boolean check for reward_category['deleted'].
app/Views/partial/stock_locations.php-24-24 (1)

24-24: ⚠️ Potential issue | 🟠 Major

Missing esc() on user-controllable output.

The $location_name value is output directly without escaping, which could lead to XSS if location names contain special HTML characters.

🛡️ Proposed fix
-        <input type="text" class="form-control stock_location valid_chars" name="stock_location<?= $location_id ?>" id="stock_location<?= $location_id ?>" value="<?= $location_name ?>" required <?= $location_data['deleted'] ? 'disabled' : '' ?>>
+        <input type="text" class="form-control stock_location valid_chars" name="stock_location<?= $location_id ?>" id="stock_location<?= $location_id ?>" value="<?= esc($location_name) ?>" required <?= $location_data['deleted'] ? 'disabled' : '' ?>>

As per coding guidelines: "Sanitize user input; escape output using esc() helper".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/partial/stock_locations.php` at line 24, The value for the input
uses unescaped user-controlled $location_name causing XSS; update the input
element in stock_locations.php (the <input ... class="form-control
stock_location valid_chars" name="stock_location<?= $location_id ?>"
id="stock_location<?= $location_id ?>" ...> line) to output the location name
via the esc() helper (replace <?= $location_name ?> with <?= esc($location_name)
?>) so the value attribute is properly escaped.
app/Views/home/profile.php-36-83 (1)

36-83: ⚠️ Potential issue | 🟠 Major

Missing esc() on user data output - XSS vulnerability.

All user-controllable data (username, email, phone_number, gender, addresses, comments, etc.) is output without escaping, which poses an XSS risk.

🛡️ Proposed fix for user data output
                                 <tr>
                                     <td class="pe-3">Username</td>
-                                    <td><?= $user_info->username; ?></td>
+                                    <td><?= esc($user_info->username); ?></td>
                                 </tr>
                                 <tr>
                                     <td class="pe-3"><?= lang('Common.id'); ?></td>
-                                    <td><?= $user_info->person_id; ?></td>
+                                    <td><?= esc($user_info->person_id); ?></td>
                                 </tr>
                                 <tr>
                                     <td class="pe-3"><?= lang('Common.email'); ?></td>
-                                    <td><?= $user_info->email; ?></td>
+                                    <td><?= esc($user_info->email); ?></td>
                                 </tr>
                                 <tr>
                                     <td class="pe-3"><?= lang('Common.phone_number'); ?></td>
-                                    <td><?= $user_info->phone_number; ?></td>
+                                    <td><?= esc($user_info->phone_number); ?></td>
                                 </tr>
                                 <tr>
                                     <td class="pe-3"><?= lang('Common.gender'); ?></td>
-                                    <td><?= $user_info->gender; ?></td>
+                                    <td><?= esc($user_info->gender); ?></td>
                                 </tr>
                                 <tr>
                                     <td class="pe-3"><?= lang('Common.address_1'); ?></td>
-                                    <td><?= $user_info->address_1; ?></td>
+                                    <td><?= esc($user_info->address_1); ?></td>
                                 </tr>
                                 <tr>
                                     <td class="pe-3"><?= lang('Common.address_2'); ?></td>
-                                    <td><?= $user_info->address_2; ?></td>
+                                    <td><?= esc($user_info->address_2); ?></td>
                                 </tr>
                                 <tr>
                                     <td class="pe-3"><?= lang('Common.city'); ?></td>
-                                    <td><?= $user_info->city; ?></td>
+                                    <td><?= esc($user_info->city); ?></td>
                                 </tr>
                                 <tr>
                                     <td class="pe-3"><?= lang('Common.state'); ?></td>
-                                    <td><?= $user_info->state; ?></td>
+                                    <td><?= esc($user_info->state); ?></td>
                                 </tr>
                                 <tr>
                                     <td class="pe-3"><?= lang('Common.zip'); ?></td>
-                                    <td><?= $user_info->zip; ?></td>
+                                    <td><?= esc($user_info->zip); ?></td>
                                 </tr>
                                 <tr>
                                     <td class="pe-3"><?= lang('Common.country'); ?></td>
-                                    <td><?= $user_info->country; ?></td>
+                                    <td><?= esc($user_info->country); ?></td>
                                 </tr>
                                 <tr>
                                     <td class="pe-3"><?= lang('Common.comments'); ?></td>
-                                    <td><?= $user_info->comments; ?></td>
+                                    <td><?= esc($user_info->comments); ?></td>
                                 </tr>

As per coding guidelines: "Sanitize user input; escape output using esc() helper".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/home/profile.php` around lines 36 - 83, The user-supplied fields in
this view are output without escaping, creating XSS risk; update every
occurrence of $user_info->username, $user_info->person_id, $user_info->email,
$user_info->phone_number, $user_info->gender, $user_info->address_1,
$user_info->address_2, $user_info->city, $user_info->state, $user_info->zip,
$user_info->country and $user_info->comments in this block to use the esc()
helper (e.g., esc($user_info->...)) before rendering so all user-controllable
output is properly escaped.
app/Views/partial/header.php-17-17 (1)

17-17: ⚠️ Potential issue | 🟠 Major

Escape dynamic header attributes and user display name.

These values are rendered directly into HTML and should be escaped before output.

🔒 Proposed fix
-<html lang="<?= current_language_code() ?>" data-bs-theme="<?= $config['color_mode'] ?>" <?= $config['rtl_language'] == 1 ? 'dir="rtl"' : '' ?>>
+<html lang="<?= esc(current_language_code()) ?>" data-bs-theme="<?= esc($config['color_mode']) ?>" <?= $config['rtl_language'] == 1 ? 'dir="rtl"' : '' ?>>
...
-<?= $user_info->first_name . '&nbsp;' . $user_info->last_name; ?>
+<?= esc($user_info->first_name . ' ' . $user_info->last_name); ?>
As per coding guidelines, `app/**/*.php`: Sanitize user input; escape output using `esc()` helper.

Also applies to: 51-51

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/partial/header.php` at line 17, Escape all dynamic attributes and
any user-displayed values by wrapping outputs with the esc() helper: replace
current_language_code(), $config['color_mode'] and the rtl_language check output
in the <html ...> tag with esc(...) calls and ensure the user display name
rendering (around the code referenced at line 51) also uses esc() before
echoing; update any ternary or concatenated attribute outputs to call esc() on
the final values to prevent unescaped HTML injection.
app/Views/configs/message_config.php-45-45 (1)

45-45: ⚠️ Potential issue | 🟠 Major

Message template prefill is broken and output should be escaped.

The textarea is rendered empty because it uses a value attribute instead of inner text; this can silently clear existing message text on submit.

🐛 Proposed fix
-<textarea class="form-control" name="msg_msg" id="msg-msg" rows="10" placeholder="<?= lang('Config.msg_msg_placeholder'); ?>" value="<?= $config['msg_msg']; ?>"></textarea>
+<textarea class="form-control" name="msg_msg" id="msg_msg" rows="10" placeholder="<?= lang('Config.msg_msg_placeholder'); ?>"><?= esc($config['msg_msg']); ?></textarea>
As per coding guidelines, `app/**/*.php`: Sanitize user input; escape output using `esc()` helper.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/message_config.php` at line 45, The textarea currently uses
a value attribute which leaves it empty and isn't escaped; replace the value
attribute with inner text and escape the output using the esc() helper so the
message pre-fills safely. Specifically, update the element that uses
name="msg_msg" and id="msg-msg" to remove the value="<?= $config['msg_msg']; ?>"
attribute and instead place <?= esc($config['msg_msg'] ?? '') ?> between the
opening and closing <textarea> tags, keeping the existing placeholder and rows
attributes intact.
app/Views/partial/dinner_tables.php-23-24 (1)

23-24: ⚠️ Potential issue | 🟠 Major

Escape dynamic values in HTML attributes.

$dinner_table_name (and dynamic IDs) should be escaped/cast before rendering into attributes.

As per coding guidelines, app/**/*.php: Sanitize user input; escape output using esc() helper.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/partial/dinner_tables.php` around lines 23 - 24, Escape all dynamic
values before rendering into HTML attributes and element content: replace raw
<?=$dinner_table_id?> and <?=$dinner_table_name?> with escaped versions (e.g.
esc($dinner_table_id, 'attr') for id/name and esc($dinner_table_name) or
esc($dinner_table_name, 'attr') for the value and span text). Update usages in
the span, input name, id and value attributes (references: variables
$dinner_table_id, $dinner_table_name and the input element) to use the esc()
helper so user input is sanitized per app/**/*.php guidelines.
app/Views/partial/header.php-60-60 (1)

60-60: ⚠️ Potential issue | 🟠 Major

Add an accessible label to the icon-only home link.

Screen-reader users currently get no explicit label for this control.

♿ Proposed fix
-<a class="navbar-brand py-2 pe-1 ps-3 ps-lg-0 fs-4" href="<?= site_url() ?>"><i class="bi bi-house-fill"></i></a>
+<a class="navbar-brand py-2 pe-1 ps-3 ps-lg-0 fs-4" href="<?= site_url() ?>" aria-label="<?= lang('Common.home') ?>">
+    <i class="bi bi-house-fill" aria-hidden="true"></i>
+    <span class="visually-hidden"><?= lang('Common.home') ?></span>
+</a>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/partial/header.php` at line 60, The home link anchor with class
"navbar-brand py-2 pe-1 ps-3 ps-lg-0 fs-4" containing the icon element <i
class="bi bi-house-fill"></i> is missing an accessible label; update that anchor
to provide an accessible name (e.g., add aria-label="Home" to the anchor or
include a visually hidden text node like a <span
class="visually-hidden">Home</span> inside the anchor) so screen-reader users
can identify the control.
app/Views/sales/register.php-143-151 (1)

143-151: ⚠️ Potential issue | 🟠 Major

Duplicate id="cart_contents" creates invalid HTML.

The ID cart_contents is used twice (lines 143 and 221), which violates HTML specification and may cause JavaScript targeting issues. Consider using distinct IDs or refactoring the duplicate table structure.

Also applies to: 221-227

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/sales/register.php` around lines 143 - 151, The HTML uses the same
id "cart_contents" twice which creates invalid HTML and can break JS selectors;
update one of the duplicates (e.g., rename the second occurrence to a unique id
like "cart_contents_footer" or remove the id and use a class) and update any
JavaScript that references "cart_contents" to the new id or class so DOM
targeting remains correct; locate both occurrences in register.php (the tbody
with id="cart_contents" and the other tbody at the later block) and ensure only
a single unique id remains, or switch to class-based selectors if both elements
must be targeted.
app/Views/items/manage.php-94-96 (1)

94-96: ⚠️ Potential issue | 🟠 Major

Delete button is non-functional.

The delete button has no click handler or data-href attribute to trigger the delete action.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/items/manage.php` around lines 94 - 96, The delete button in
manage.php is just a static element and lacks a trigger; give it an explicit
identifier and target URL (e.g. add a class like "btn-delete" and a data-href
attribute set to the delete endpoint such as <?=
site_url('items/delete/'.$item->id) ?>) and implement a corresponding
client-side handler (in your items JS module—e.g.
document.querySelectorAll('.btn-delete') listener) that reads data-href, shows
confirmation, and then navigates or issues a DELETE/fetch to that URL; update
manage.php's button element and ensure the JS file (e.g. assets/js/items.js)
registers the click handler to perform the confirmed delete.
app/Views/cashups/manage.php-62-64 (1)

62-64: ⚠️ Potential issue | 🟠 Major

Delete button is non-functional.

The delete button has no click handler, data-href, or form submission logic. It appears incomplete compared to the original functionality.

Would you like me to help implement the delete action for this button?

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/cashups/manage.php` around lines 62 - 64, The delete button
currently lacks any action; update the button in cashups/manage.php to include a
unique selector (e.g., add class "btn-delete-cashup" and a data-id or data-href
attribute pointing to the delete endpoint for the specific cashup), and
implement a small client-side handler (e.g., function handleCashupDelete) that
listens for clicks on ".btn-delete-cashup", shows a confirmation prompt, then
either submits a hidden form (with CSRF token and method override to DELETE) or
performs a POST/DELETE fetch to the data-href to perform the deletion; ensure
the handler uses the data-id/data-href and that the hidden form has a
predictable id (e.g., "deleteCashupForm") so the view and JS align.
app/Views/configs/barcode_config.php-101-114 (1)

101-114: ⚠️ Potential issue | 🟠 Major

barcode_formats is currently non-functional.

The configurable select is commented out and replaced by a disabled input, so this setting cannot be edited or posted anymore.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/barcode_config.php` around lines 101 - 114, The
barcode_formats control was disabled and commented out so users cannot edit or
submit barcode formats; restore the original multi-select so the setting is
editable and posted. Re-enable the block that decodes
config('OSPOS')->settings['barcode_formats'], recreates $options, and renders
the <select> with id/name "barcode_formats" and data-role="tagsinput" (keeping
the foreach that sets selected options based on $barcode_formats) instead of the
disabled <input>, and ensure the form will submit the "barcode_formats[]" field
so the controller/method that saves config receives the updated array.
app/Views/configs/system_info.php-36-40 (1)

36-40: ⚠️ Potential issue | 🟠 Major

Guard fileperms() calls for missing files/directories.

fileperms($importCustomers) (and similar calls) will emit warnings when the path does not exist, which can leak server paths and break rendering.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/system_info.php` around lines 36 - 40, The check that uses
fileperms/decoct/substr on $logs, $uploads, $images, and $importCustomers must
first guard each path to avoid warnings for missing files; update the condition
(around the block using fileperms($logs), fileperms($uploads),
fileperms($images), fileperms($importCustomers)) to call fileperms only if
file_exists() or is_dir()/is_file() returns true (for example, ensure
file_exists($importCustomers) before calling fileperms($importCustomers)) and
treat a missing path as a non-matching permission (i.e., make the overall check
fail), so no raw fileperms() is invoked on nonexistent paths.
app/Views/configs/system_info.php-70-79 (1)

70-79: ⚠️ Potential issue | 🟠 Major

Escape dynamic values before rendering.

current_language_code() and $config['timezone'] are rendered raw. These should be escaped in views.

🔧 Proposed fix
-            <div>Language Code: <?= current_language_code(); ?></div><br>
+            <div>Language Code: <?= esc(current_language_code()); ?></div><br>
@@
-                    <div id="ostimezone"><?= $config['timezone']; ?></div>
+                    <div id="ostimezone"><?= esc($config['timezone']); ?></div>

As per coding guidelines app/**/*.php: Sanitize user input; escape output using esc() helper.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/system_info.php` around lines 70 - 79, The view renders
unescaped dynamic values: replace raw outputs of current_language_code() and
$config['timezone'] with escaped versions using the esc() helper to prevent XSS;
locate the occurrences of current_language_code() and the $config['timezone']
echo in the system_info.php view and wrap them with esc(...) so both language
code and os timezone are escaped before rendering.
app/Views/configs/invoice_config.php-40-54 (1)

40-54: ⚠️ Potential issue | 🟠 Major

Escape config-derived values in form fields.

Several value and <textarea> contents are rendered without esc().

🔧 Proposed fix (examples)
-                <input type="text" class="form-control" name="recv_invoice_format" id="recv_invoice_format" value="<?= $config['recv_invoice_format']; ?>">
+                <input type="text" class="form-control" name="recv_invoice_format" id="recv_invoice_format" value="<?= esc($config['recv_invoice_format']); ?>">
@@
-        <textarea class="form-control" name="invoice_default_comments" id="invoice_default_comments" rows="10" required><?= $config['invoice_default_comments']; ?></textarea>
+        <textarea class="form-control" name="invoice_default_comments" id="invoice_default_comments" rows="10" required><?= esc($config['invoice_default_comments']); ?></textarea>

As per coding guidelines app/**/*.php: Sanitize user input; escape output using esc() helper.

Also applies to: 76-109, 121-129

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/invoice_config.php` around lines 40 - 54, The form outputs
use raw config values; wrap all echoed config fields with the esc() helper to
prevent XSS—replace direct usages like $config['recv_invoice_format'],
$config['invoice_default_comments'], and $config['invoice_email_message'] with
esc($config['...']) in the value attribute and inside the <textarea> contents
(also apply same change for other occurrences noted at lines 76-109 and 121-129)
so that recv_invoice_format, invoice_default_comments, and invoice_email_message
are properly escaped before rendering.
app/Views/configs/barcode_config.php-23-190 (1)

23-190: ⚠️ Potential issue | 🟠 Major

Escape dynamic values in attributes/options.

Values from $config, $support_barcode, and $barcode_fonts are rendered raw in multiple places.

As per coding guidelines app/**/*.php: Sanitize user input; escape output using esc() helper.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/barcode_config.php` around lines 23 - 190, The template
renders unescaped dynamic values from $config, $support_barcode and
$barcode_fonts into attributes and option text; update each echo to use the
esc() helper (e.g. esc($config['barcode_width']), esc($key), esc($value),
esc($config['barcode_font']), esc($config['barcode_content']) etc.) for all
value attributes, option labels and input values (including the disabled
barcode_formats input) and inside the foreach loops that output <option>
elements so all user-controlled output is escaped before rendering.
app/Views/configs/locale_config.php-12-20 (1)

12-20: ⚠️ Potential issue | 🟠 Major

save_number_locale hidden field is missing while JS depends on it.

The script in this file reads/writes input[name='save_number_locale'] for checkNumberLocale, but the rewritten form no longer renders that field.

🔧 Proposed fix
 <?= form_open('config/saveLocale/', ['id' => 'locale_config_form']) ?>
+    <input type="hidden" name="save_number_locale" value="<?= esc($config['number_locale']) ?>">
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/locale_config.php` around lines 12 - 20, The form no longer
includes the hidden input the JS expects (input[name='save_number_locale']),
breaking checkNumberLocale; add a hidden field named save_number_locale inside
the form with the appropriate default/value logic used elsewhere so the script
can read/write it, e.g. ensure the hidden input is rendered within the form with
name "save_number_locale" and id or selector consistent with the JS that
references locale_config_form and checkNumberLocale.
app/Views/configs/locale_config.php-26-27 (1)

26-27: ⚠️ Potential issue | 🟠 Major

Escape dynamic values in input attributes.

These fields output config/user-provided values directly without esc().

As per coding guidelines app/**/*.php: Sanitize user input; escape output using esc() helper.

Also applies to: 51-52, 59-60, 157-158

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/locale_config.php` around lines 26 - 27, The inputs in
locale_config.php (e.g., the <input> with name/id "number_locale" and the other
inputs referenced at lines 51-52, 59-60, 157-158) are outputting raw config/user
values; update each value attribute to use the esc() helper to escape the
dynamic values (e.g., replace occurrences like value="<?=
$config['number_locale'] ?>" with an escaped variant using
esc($config['number_locale'])) so all user-provided config fields are properly
sanitized before rendering.
app/Views/configs/appearance_config.php-24-26 (1)

24-26: ⚠️ Potential issue | 🟠 Major

Escape theme option values and labels.

$value and $display are rendered directly into attributes/text.

🔧 Proposed fix
-                        <option value="<?= $value ?>" <?= $config['theme'] == $value ? 'selected' : '' ?>><?= $display ?></option>
+                        <option value="<?= esc($value) ?>" <?= $config['theme'] == $value ? 'selected' : '' ?>><?= esc($display) ?></option>

As per coding guidelines app/**/*.php: Sanitize user input; escape output using esc() helper.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/appearance_config.php` around lines 24 - 26, The option
rendering iterates $themes and injects $value and $display raw into the option
tag; update the foreach block that builds the <option> inside the view so both
the option value attribute and the displayed label are escaped using the esc()
helper (use esc($value, 'attr') for the value attribute and esc($display) for
the text) and keep the selected check using the escaped comparison against
$config['theme'] (e.g., compare esc($config['theme'], 'attr') or cast
appropriately before checking) to prevent unescaped output.
app/Views/configs/system_info.php-156-220 (1)

156-220: ⚠️ Potential issue | 🟠 Major

Permission verdict logic can report false “pass” states.

For logs/uploads, the condition fails only when writable and mode mismatch. Non-writable paths currently fall into “Security Check Passed”. The same pattern exists for readability checks.

🔧 Proposed fix (pattern)
-                    if (is_writable($logs) && substr(decoct(fileperms($logs)), -4) != 750) {
+                    if (!is_writable($logs) || substr(decoct(fileperms($logs)), -4) != 750) {
                         echo $permissions_fail;
                     } else {
                         echo $permissions_check;
                     }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/system_info.php` around lines 156 - 220, The security-check
logic incorrectly treats non-writable/non-readable paths as "Security Check
Passed"; change each permission verdict to require both the
readability/writability check AND the expected mode. Specifically update the
conditional for $logs, $uploads, $images to echo $permissions_check only when
is_writable($var) && substr(decoct(fileperms($var)), -4) == '750' (otherwise
echo $permissions_fail), and update the importCustomers check to echo
$permissions_check only when is_readable($importCustomers) &&
(substr(decoct(fileperms($importCustomers)), -4) == '640' ||
substr(decoct(fileperms($importCustomers)), -4) == '660'), otherwise echo
$permissions_fail; use the existing variables ($logs, $uploads, $images,
$importCustomers) and messages ($permissions_check, $permissions_fail) to
implement this.
app/Views/configs/system_info.php-35-64 (1)

35-64: ⚠️ Potential issue | 🟠 Major

Fix conditional alert markup; it currently emits invalid HTML.

The closing </div></div> is always printed, even when the card was never opened, and <ul> is never closed. This can break the layout.

🔧 Proposed fix
-    if (!((substr(decoct(fileperms($logs)), -4) == 750)
+    $hasPermissionIssues = !((substr(decoct(fileperms($logs)), -4) == 750)
         && (substr(decoct(fileperms($uploads)), -4) == 750)
         && (substr(decoct(fileperms($images)), -4) == 750)
         && ((substr(decoct(fileperms($importCustomers)), -4) == 640)
-        || (substr(decoct(fileperms($importCustomers)), -4) == 660)))) {
+        || (substr(decoct(fileperms($importCustomers)), -4) == 660)));
+
+    if ($hasPermissionIssues) {
             echo '<div class="card border-danger-subtle mb-4">
             <div class="card-header bg-danger-subtle border-danger-subtle fw-bold"><i class="bi bi-exclamation-circle"></i> ' . lang('Config.security_issue') . '</div>
                 <div class="card-body">
                     <p class="card-text">' . lang('Config.perm_risk') . '</p>
                     <ul class="list-unstyled mb-0">';
         }
@@
-        echo '</div></div>';
+        if ($hasPermissionIssues) {
+            echo '</ul></div></div>';
+        }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/system_info.php` around lines 35 - 64, The conditional that
opens the warning card (the big if checking fileperms of $logs, $uploads,
$images, $importCustomers) currently prints the opening <div class="card"> and
<ul> but the closing '</div></div>' is always echoed afterwards and the <ul> is
never closed, causing invalid HTML; fix by moving the closing markup so it is
only output when that initial if condition is true and ensure you output a
matching '</ul></div></div>' (close the <ul> then both card divs) within the
same block; update the code paths that echo list items (those checking
substr(decoct(fileperms($logs))... etc.) to remain unchanged, and reference the
same variables $logs, $uploads, $images, $importCustomers and $bullet when
assembling the list so list items appear inside the properly opened and closed
card.
package.json-37-37 (1)

37-37: ⚠️ Potential issue | 🟠 Major

Pin GitHub dependency to an immutable ref.

#master is mutable and produces non-reproducible builds. The fork has no published releases, but commit SHA 6138177 (latest, from May 9, 2025) is available for pinning. Use a specific commit SHA instead of the branch.

🔧 Proposed fix
-        "bootstrap-notify": "github:BudsieBuds/bootstrap-notify#master",
+        "bootstrap-notify": "github:BudsieBuds/bootstrap-notify#6138177",
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@package.json` at line 37, Replace the mutable GitHub branch reference for the
bootstrap-notify dependency with the immutable commit SHA to ensure reproducible
builds: update the dependency string "github:BudsieBuds/bootstrap-notify#master"
in package.json to use the specific commit SHA "6138177" (i.e.,
"github:BudsieBuds/bootstrap-notify#6138177"), so the project pulls that exact
commit instead of the moving master branch.
app/Views/taxes/tax_rates.php-21-25 (1)

21-25: ⚠️ Potential issue | 🟠 Major

Add missing modal-dlg class to trigger modal dialog.

The "new" button is missing the modal-dlg class that is used throughout the codebase to trigger modal dialogs via JavaScript. Similar buttons in app/Views/receivings/receiving.php and app/Views/sales/register.php consistently pair data-href with the modal-dlg class. Without it, clicking this button will not open the expected modal form.

Add modal-dlg to the button's class attribute:

<button type="button" class="btn btn-primary modal-dlg" data-btn-submit="<?= lang('Common.submit') ?>" data-href="<?= esc("$controller_name/view") ?>" ...>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/taxes/tax_rates.php` around lines 21 - 25, The "new" button in
app/Views/taxes/tax_rates.php (the <button> using data-href="<?=
esc("$controller_name/view") ?>" and data-btn-submit="<?= lang('Common.submit')
?>") is missing the modal trigger class; add the modal-dlg class to that
button's class attribute (so the element with class="btn btn-primary ..."
becomes class="btn btn-primary modal-dlg") to ensure the JavaScript modal
handling picks it up and opens the form.
app/Views/taxes/tax_rates.php-27-33 (1)

27-33: ⚠️ Potential issue | 🟠 Major

Add id="delete" to the delete button so the click handler can attach properly.

The delete button in the toolbar is missing the id="delete" attribute required by manage_tables.js (line 271). Without this, the delete functionality will not work.

Fix
<button type="button" class="btn btn-secondary" id="delete">
    <i class="bi bi-trash"></i><span class="d-none d-sm-inline ms-2"><?= lang('Common.delete') ?></span>
</button>

This same issue affects other manage pages with identical toolbar patterns (sales, people, giftcards, etc.).

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/taxes/tax_rates.php` around lines 27 - 33, The delete toolbar
button is missing the id expected by the JS click handler (manage_tables.js at
the delete handler around line 271); add the id="delete" attribute to the delete
button element in the tax rates view (the <button ...> in tax_rates.php within
the `#toolbar`) so the handler can attach properly; apply the same id="delete" fix
to other views that use the same toolbar pattern (sales, people, giftcards,
etc.).
app/Controllers/Config.php-412-426 (1)

412-426: ⚠️ Potential issue | 🟠 Major

Validate the new appearance settings before batching them into app config.

postSaveAppearance() forwards several enum-like POST values straight into Appconfig::batch_save(), which just persists each key/value pair as given. A forged request can therefore store unsupported theme, color-mode, login-form, or notification-position values and break later rendering. Please validate these fields against the same option sets used by the form before saving them. As per coding guidelines, {app/Controllers/**/*.php,app/Models/**/*.php}: Validate and sanitize all user input.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Controllers/Config.php` around lines 412 - 426, postSaveAppearance()
currently forwards unvalidated POST values (theme, login_form, notify_*
positions, color_mode, config_menu_position, responsive_design) into
Appconfig::batch_save(), allowing forged/unsupported values; add server-side
validation against the same allowed option sets used by the form: define
whitelists for each enum-like field (e.g. $allowedThemes, $allowedLoginForms,
$allowedNotifyHoriz, $allowedNotifyVert, $allowedColorModes,
$allowedMenuPositions), coerce/normalize responsive_design to a boolean, check
each $this->request->getPost(...) against its whitelist and only include it in
$batch_save_data when valid (otherwise either omit it or return a JSON error
with success=false and a validation message), and then call
$this->appconfig->batch_save($batch_save_data); keep references to
postSaveAppearance() and Appconfig::batch_save() so reviewers can locate the
change.
app/Views/configs/general_config.php-116-129 (1)

116-129: ⚠️ Potential issue | 🟠 Major

Preserve existing reCAPTCHA keys when these fields are left blank.

These inputs no longer bind the current config values, but beforeSerialize() re-enables them right before submit. postSaveGeneral() in app/Controllers/Config.php, Lines 377-379 then writes the blank strings back, so changing any unrelated general setting clears the existing CAPTCHA keys. Keep the stored values when the POST fields are empty, or repopulate them safely before submit.

Also applies to: 274-279

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/general_config.php` around lines 116 - 129, The reCAPTCHA
inputs gcaptcha_site_key and gcaptcha_secret_key are currently empty on render
and blank POSTs overwrite stored keys; either pre-populate the inputs in the
view or guard in the controller: update app/Views/configs/general_config.php to
set the value attributes of gcaptcha_site_key and gcaptcha_secret_key from the
current config (so the form posts existing values if unchanged) or modify
app/Controllers/Config.php::postSaveGeneral() to detect empty POST values for
'gcaptcha_site_key' and 'gcaptcha_secret_key' and replace them with the existing
config values before saving (use your config retrieval method), ensuring
beforeSerialize() behavior doesn't cause blank writes.
app/Views/configs/tax_config.php-25-25 (1)

25-25: ⚠️ Potential issue | 🟠 Major

Escape config and option values before echoing them into the form.

These value attributes and option labels now render stored config and tax metadata without esc(). Because tax names/codes are admin-managed data, that turns this screen into stored XSS surface. As per coding guidelines, app/**/*.php: Sanitize user input; escape output using esc() helper.

Also applies to: 40-42, 50-51, 69-94

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/tax_config.php` at line 25, The form echoes raw config and
tax metadata (e.g. <?= $config['tax_id']; ?> and the tax option labels/values in
the tax select loop) without escaping; wrap all echoed output in the view with
the esc() helper (e.g. esc($config['tax_id']), esc($config['tax_name']), and
esc($tax['code'] or $tax['name']) in the tax options) so value attributes and
option labels are sanitized; update every occurrence flagged (lines around the
tax_id input and the tax select blocks referenced: 40-42, 50-51, 69-94) to use
esc() consistently.
app/Views/configs/general_config.php-27-43 (1)

27-43: ⚠️ Potential issue | 🟠 Major

Escape the config-backed values rendered throughout this form.

This block now prints stored config into attributes and visible text without esc() in multiple places, including the discount values and the currency symbol. On an admin-managed settings page that is stored XSS surface; please use esc(..., 'attr') for attributes and esc() for visible text. As per coding guidelines, app/**/*.php: Sanitize user input; escape output using esc() helper.

Also applies to: 53-53, 74-100, 139-209

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/general_config.php` around lines 27 - 43, The form outputs
unescaped config values (e.g., inputs named default_sales_discount,
default_sales_discount_type, default_receivings_discount,
default_receivings_discount_type and the displayed currency_symbol), creating
XSS risk; update each attribute value and visible text to use the esc() helper —
use esc($config['...'], 'attr') for values placed in element attributes (like
value="", id="" if dynamic) and esc($config['...']) for visible labels/text
(like the currency symbol and any inline text). Apply this change to the shown
inputs/buttons and the other locations noted (lines 53, 74-100, 139-209) so
every config-backed output is properly escaped.
app/Views/configs/manage.php-8-57 (1)

8-57: ⚠️ Potential issue | 🟠 Major

Remove duplicate tab trigger ids between desktop and mobile navigation.

The desktop buttons (lines 9, 12, 15, etc.) and mobile dropdown links (lines 63, 68, 73, etc.) share identical ids like info-tab and general-tab. This violates HTML validity rules and breaks ARIA relationships—aria-labelledby="info-tab" (line 148) will only reference the first matching element. Rename the mobile dropdown links to unique ids such as info-dropdown-tab, general-dropdown-tab, etc., and update corresponding aria-labelledby references if needed.

Additionally, Bootstrap 5 recommends buttons use data-bs-target rather than href for better compatibility and clarity; consider updating the desktop buttons on lines 9–56 to use data-bs-target="#info" instead of href="#info".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/manage.php` around lines 8 - 57, The desktop tab triggers
(ids like info-tab, general-tab, appearance-tab, etc.) conflict with the mobile
dropdown links that reuse the same ids; rename the mobile dropdown link ids to
unique names (e.g., info-dropdown-tab, general-dropdown-tab,
appearance-dropdown-tab, etc.) and update any aria-labelledby attributes that
reference those ids so they point to the new dropdown ids; also update the
desktop button attributes (functions/markup using ids info-tab, general-tab,
appearance-tab, etc.) to use data-bs-target="#<panel>" instead of
href="#<panel>" per Bootstrap 5 recommendation to avoid ambiguity.
app/Views/configs/tax_config.php-57-98 (1)

57-98: ⚠️ Potential issue | 🟠 Major

Re-enable disabled form fields in beforeSerialize() before submission to prevent losing configuration when switching between tax modes.

When enable_disable_use_destination_based_tax() disables fields, they are not submitted with the form. Disabled controls missing from POST data cause getPost() to return null, which the controller then saves unconditionally, overwriting previously stored values. The beforeSerialize() callback (lines 129-131) is the ideal place to re-enable all disabled inputs before form submission, ensuring all configuration values are preserved regardless of which tax mode is active.

Form field dependencies
  • When use_destination_based_tax is checked: default_tax_code, default_tax_category, default_tax_jurisdiction are enabled; legacy fields (tax_included, default_tax_1_*, default_tax_2_*) are disabled
  • When unchecked: the inverse is true

Submitting while fields are disabled causes them to be cleared.

Also applies to: 109-141

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/tax_config.php` around lines 57 - 98, The form currently
disables fields via enable_disable_use_destination_based_tax(), which causes
disabled inputs (e.g., default_tax_code, default_tax_category,
default_tax_jurisdiction and legacy fields tax_included, default_tax_1_*,
default_tax_2_*) to be omitted from POST and overwritten; fix it by updating the
beforeSerialize() callback to re-enable any disabled inputs before submission
(callable beforeSerialize() should query the form for disabled controls and
remove the disabled attribute or re-enable the specific named fields) so all
config values are included in getPost() regardless of the current tax mode;
ensure you reference and update the existing beforeSerialize() hook rather than
adding a new submit handler and keep enable_disable_use_destination_based_tax()
logic unchanged.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: dd065184-296f-4662-a4ab-0edf6e29e79f

📥 Commits

Reviewing files that changed from the base of the PR and between dc1e448 and a8bcfe3.

⛔ Files ignored due to path filters (2)
  • package-lock.json is excluded by !**/package-lock.json
  • public/js/clipboard.min.js is excluded by !**/*.min.js
📒 Files selected for processing (98)
  • README.md
  • app/Controllers/Config.php
  • app/Controllers/Reports.php
  • app/Database/tables.sql
  • app/Helpers/tabular_helper.php
  • app/Helpers/tax_helper.php
  • app/Views/attributes/form.php
  • app/Views/attributes/item.php
  • app/Views/attributes/manage.php
  • app/Views/cashups/form.php
  • app/Views/cashups/manage.php
  • app/Views/configs/appearance_config.php
  • app/Views/configs/barcode_config.php
  • app/Views/configs/config_header.php
  • app/Views/configs/email_config.php
  • app/Views/configs/general_config.php
  • app/Views/configs/info_config.php
  • app/Views/configs/integrations_config.php
  • app/Views/configs/invoice_config.php
  • app/Views/configs/license_config.php
  • app/Views/configs/locale_config.php
  • app/Views/configs/manage.php
  • app/Views/configs/message_config.php
  • app/Views/configs/receipt_config.php
  • app/Views/configs/reward_config.php
  • app/Views/configs/stock_config.php
  • app/Views/configs/system_config.php
  • app/Views/configs/system_info.php
  • app/Views/configs/table_config.php
  • app/Views/configs/tax_config.php
  • app/Views/customers/form.php
  • app/Views/customers/form_csv_import.php
  • app/Views/employees/form.php
  • app/Views/expenses/form.php
  • app/Views/expenses/manage.php
  • app/Views/expenses_categories/manage.php
  • app/Views/giftcards/manage.php
  • app/Views/home/form_change_password.php
  • app/Views/home/home.php
  • app/Views/home/modules.php
  • app/Views/home/office.php
  • app/Views/home/profile.php
  • app/Views/item_kits/form.php
  • app/Views/item_kits/manage.php
  • app/Views/items/form.php
  • app/Views/items/form_bulk.php
  • app/Views/items/form_count_details.php
  • app/Views/items/form_csv_import.php
  • app/Views/items/form_inventory.php
  • app/Views/items/manage.php
  • app/Views/login.php
  • app/Views/messages/form_sms.php
  • app/Views/messages/sms.php
  • app/Views/partial/customer_rewards.php
  • app/Views/partial/daterangepicker.php
  • app/Views/partial/dinner_tables.php
  • app/Views/partial/footer.php
  • app/Views/partial/header.php
  • app/Views/partial/stock_locations.php
  • app/Views/partial/tax_categories.php
  • app/Views/partial/tax_codes.php
  • app/Views/partial/tax_jurisdictions.php
  • app/Views/people/form_basic_info.php
  • app/Views/people/manage.php
  • app/Views/receivings/receipt.php
  • app/Views/receivings/receiving.php
  • app/Views/reports/date_input.php
  • app/Views/reports/graphical.php
  • app/Views/reports/inventory_summary_input.php
  • app/Views/reports/listing.php
  • app/Views/reports/specific_customer_input.php
  • app/Views/reports/specific_input.php
  • app/Views/reports/tabular.php
  • app/Views/reports/tabular_details.php
  • app/Views/sales/form.php
  • app/Views/sales/invoice.php
  • app/Views/sales/manage.php
  • app/Views/sales/quote.php
  • app/Views/sales/receipt.php
  • app/Views/sales/register.php
  • app/Views/sales/tax_invoice.php
  • app/Views/sales/work_order.php
  • app/Views/taxes/manage.php
  • app/Views/taxes/tax_categories.php
  • app/Views/taxes/tax_codes.php
  • app/Views/taxes/tax_jurisdictions.php
  • app/Views/taxes/tax_rates.php
  • gulpfile.js
  • package.json
  • public/css/interface.css
  • public/css/login.css
  • public/css/ospos.css
  • public/css/register.css
  • public/js/bs-modal_switch_content.js
  • public/js/bs-tab_anchor_linking.js
  • public/js/bs-tooltips.js
  • public/js/bs-validation.js
  • public/js/manage_tables.js
💤 Files with no reviewable changes (5)
  • public/css/register.css
  • public/css/ospos.css
  • app/Views/configs/system_config.php
  • public/css/login.css
  • app/Views/home/form_change_password.php

Comment thread app/Views/attributes/manage.php Resolved
Comment thread app/Views/cashups/manage.php Resolved
Comment thread app/Views/configs/message_config.php Resolved
Comment thread app/Views/expenses/manage.php Resolved
Comment thread app/Views/partial/dinner_tables.php Resolved
Comment thread app/Views/people/manage.php Resolved
Comment thread app/Views/sales/register.php Resolved
Comment thread public/js/bs-tab_anchor_linking.js Resolved
Comment thread public/js/bs-tooltips.js Resolved
@objecttothis

Copy link
Copy Markdown
Member

@jekkos we have a lot of balls in the air at the same time. Can we finish and merge the majority of these other changes, then pause to merge a single PSR12 fix, then turn on the linters before we move forward with more changes? I think the risk of introducing too many changes at the same time is that the changes start causing regressions in each other due to too many things being modified near simultaneously.

@jekkos

jekkos commented Mar 19, 2026 •

Copy link
Copy Markdown
Member Author

Agree that now the bottleneck is not anymore the code production. I just wanted to revive this pr as I remember quite some functionality was broken with this upgrade . Coderabbit found many of these issue so once we finish other work we can iterate to see if we can achieve a functional result.

jekkos pushed a commit that referenced this pull request Apr 1, 2026
- Fix string interpolation in data-href attributes (use double quotes for PHP variable interpolation)
- Add missing name attributes to message_config.php form inputs (msg_uid, msg_pwd, msg_src)
- Fix HTML tag mismatch in profile.php (</a> to </button>)
- Add modal-dlg class to buttons for proper modal dialog handling
- Add missing IDs for delete/generate_barcodes buttons in item_kits/manage.php
- Fix esc() wrapping around lang() calls where inappropriate
- Fix disabled attribute rendering in dinner_tables.php
- Fix date format bug in daterangepicker.php (use timeformat instead of dateformat for time component)
- Fix JavaScript selector fallback logic in bs-tab_anchor_linking.js
- Add Bootstrap guard in bs-tooltips.js to prevent errors when Bootstrap JS is not loaded

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 13

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (3)
app/Views/configs/message_config.php (1)

67-71: ⚠️ Potential issue | 🟡 Minor

Use JavaScript-safe escaping for embedded language strings.

If any translation contains quotes or special characters (e.g., "), the JavaScript will break. Use esc() with the 'js' context for safe embedding in JavaScript strings.

🛡️ Proposed fix
             messages: {
-                msg_uid: "<?= lang('Config.msg_uid_required') ?>",
-                msg_pwd: "<?= lang('Config.msg_pwd_required') ?>",
-                msg_src: "<?= lang('Config.msg_src_required') ?>"
+                msg_uid: "<?= esc(lang('Config.msg_uid_required'), 'js') ?>",
+                msg_pwd: "<?= esc(lang('Config.msg_pwd_required'), 'js') ?>",
+                msg_src: "<?= esc(lang('Config.msg_src_required'), 'js') ?>"
             }

As per coding guidelines, escape output using esc() helper.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/configs/message_config.php` around lines 67 - 71, The embedded
translation strings for the JavaScript object (keys msg_uid, msg_pwd, msg_src in
message_config.php) must be escaped for JS to avoid breaking when translations
contain quotes/special chars; replace the current "<?=
lang('Config.msg_uid_required') ?>" (and the msg_pwd/msg_src equivalents) with
escaped outputs using esc(lang('Config.msg_uid_required'), 'js') so the values
are safe to embed inside the JavaScript string literals.
app/Views/items/manage.php (2)

23-28: ⚠️ Potential issue | 🟠 Major

Restore missing toolbar hooks that the JavaScript handlers expect.

Line 23 binds a click handler to #generate_barcodes, but the button at line 100 is missing the id="generate_barcodes" attribute. The bulk edit button at line 97 is also missing the modal-dlg class that dialog_support.init("button.modal-dlg") (in public/js/manage_tables.js:267) expects. Without these hooks, both buttons become non-functional after the Bootstrap 5 restyle.

Suggested fix
-        <button type="button" class="btn btn-secondary d-print-none" data-btn-submit="<?= lang('Common.submit') ?>" data-href="<?= 'items/bulkEdit' ?>" title="<?= lang('Items.edit_multiple_items') ?>">
+        <button type="button" class="btn btn-secondary d-print-none modal-dlg" data-btn-submit="<?= lang('Common.submit') ?>" data-href="<?= 'items/bulkEdit' ?>" title="<?= lang('Items.edit_multiple_items') ?>">
             <i class="bi bi-pencil-square"></i><span class="d-none d-md-inline ms-2"><?= lang('Items.bulk_edit') ?></span>
         </button>
-        <button type="button" class="btn btn-secondary d-print-none" data-href="<?= "$controller_name/generateBarcodes" ?>" title="<?= lang('Items.generate_barcodes') ?>">
+        <button id="generate_barcodes" type="button" class="btn btn-secondary d-print-none" data-href="<?= esc($controller_name . '/generateBarcodes') ?>" title="<?= lang('Items.generate_barcodes') ?>">
             <i class="bi bi-upc-scan"></i><span class="d-none d-md-inline ms-2"><?= lang('Items.generate_barcodes') ?></span>
         </button>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/items/manage.php` around lines 23 - 28, The JS handlers expect an
element with id "generate_barcodes" and bulk-edit buttons to have the
"modal-dlg" class (dialog_support.init("button.modal-dlg") in
public/js/manage_tables.js); update the two buttons in the view so the barcode
button has id="generate_barcodes" and the bulk edit button includes
class="modal-dlg" so the click handler and dialog initializer can find and wire
them correctly (make sure the element types match the selectors, e.g.,
button.modal-dlg).

31-33: ⚠️ Potential issue | 🟠 Major

Initialize selectpicker before relying on hidden.bs.select.

Lines 31-33 listen for the hidden.bs.select event, but bootstrap-select requires explicit initialization to function. The #filters and #stock_location selects (lines 104-114) have the selectpicker class but are never initialized with $.fn.selectpicker(), so they remain plain HTML elements and the hidden.bs.select event never fires. The only place in the codebase where selectpicker is initialized is in app/Views/attributes/form.php, lines 152-154. Without the same setup here, the table refresh triggered by the event listener will not execute.

The same issue affects app/Views/expenses/manage.php (line 20), app/Views/sales/manage.php (line 21), app/Views/cashups/manage.php (line 20), and app/Views/expenses_categories/manage.php (line 29).

Suggested fix
         $("#stock_location").change(function() {
             table_support.refresh();
         });
+
+        $('.selectpicker').each(function() {
+            var $selectpicker = $(this);
+            $.fn.selectpicker.call($selectpicker, $selectpicker.data());
+        });
 
         <?php
         echo view('partial/bootstrap_tables_locale');
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/items/manage.php` around lines 31 - 33, The event handler bound to
'#filters' for 'hidden.bs.select' never fires because the bootstrap-select
plugin isn't initialized; initialize the selectpicker(s) before attaching or
relying on that event (e.g., call the selectpicker initializer on elements with
the class 'selectpicker' such as '#filters' and '#stock_location' using the
standard plugin init method) so the 'hidden.bs.select' event on '#filters' and
similar files (app/Views/expenses/manage.php, app/Views/sales/manage.php,
app/Views/cashups/manage.php, app/Views/expenses_categories/manage.php) will
fire and table_support.refresh() will run as expected.
🧹 Nitpick comments (3)
app/Views/item_kits/manage.php (2)

27-31: Use data-href in JS instead of a hardcoded controller path.

The button now provides data-href, but the click handler still hardcodes item_kits. Use the attribute (or remove it) to avoid drift when routes/controller names change.

Refactor suggestion
-        $('#generate_barcodes').click(function() {
+        $('#generate_barcodes').click(function() {
+            const generateBarcodesPath = $(this).data('href');
             window.open(
-                'index.php/item_kits/generateBarcodes/' + table_support.selected_ids().join(':'),
+                'index.php/' + generateBarcodesPath + '/' + table_support.selected_ids().join(':'),
                 '_blank' // <- This is what makes it open in a new window.
             );
         });

Also applies to: 47-47

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/item_kits/manage.php` around lines 27 - 31, The click handler for
$('#generate_barcodes') currently hardcodes
'index.php/item_kits/generateBarcodes/'; change it to read the base URL from the
element's data-href attribute (e.g. $(this).data('href') or
$(this).attr('data-href')) and then append
table_support.selected_ids().join(':') to that base, taking care to add a
separator if the data-href doesn't end with '/'. Apply the same change to the
other occurrence of the generate handler (the second $('#generate_barcodes')
block) so both handlers use the data-href attribute instead of the hardcoded
controller path.

12-12: Localize the config title instead of hardcoded English text.

Line 12 sets 'Item Kits' directly; consider pulling this from lang(...) for consistency with the rest of the view translations.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/item_kits/manage.php` at line 12, Replace the hardcoded title
assignment $title_info['config_title'] = 'Item Kits'; with a localized string
using the lang() helper (e.g. $title_info['config_title'] =
lang('YourLangFile.item_kits') or whatever existing key is used for item kits in
your language files), ensure the correct language key is used (and defined) and
that the language helper is available in this view so the title is rendered from
the translation files instead of literal English.
app/Views/expenses_categories/manage.php (1)

12-12: Localize the config title instead of hardcoding English text.

'Expenses Categories' bypasses translations. Please source this from lang(...) like the other labels in this view so localization remains consistent.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/expenses_categories/manage.php` at line 12, Replace the hardcoded
title assignment $title_info['config_title'] = 'Expenses Categories' with a
localized string using the view's existing language helper (e.g., call
lang('...') the same way other labels are sourced); update the assignment in
manage.php so $title_info['config_title'] uses lang('...') with the appropriate
language key for "Expenses Categories" to ensure consistent localization.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@app/Views/configs/message_config.php`:
- Around line 42-46: Replace the incorrect use of the value attribute on the
<textarea> (name="msg_msg", id="msg-msg") by removing the value="" and placing
the config text between the opening and closing tags, ensuring you escape it
with esc($config['msg_msg']) so the existing placeholder
(lang('Config.msg_msg_placeholder')) remains and XSS is prevented.

In `@app/Views/expenses_categories/manage.php`:
- Around line 36-37: The translated strings produced by lang(...) are being
output directly into attributes and text (e.g., the button's data-btn-submit,
data-href title and inner text) which risks injection; update these occurrences
to wrap lang(...) with the esc(...) helper (for example replace
lang(ucfirst($controller_name). ".new") and lang('Common.submit') with
esc(lang(...))) so both attribute values and displayed text are escaped; apply
the same change to the other occurrence referenced around line 44 to ensure all
translated output uses esc().
- Around line 43-45: The delete button in manage.php is missing the id the JS
expects, so add id="delete" to the <button> element so the handler bound in
manage_tables.js (uses $("#delete").click() at line ~271) can attach; also
ensure you do not hardcode a disabled attribute on that button since
manage_tables.js controls enabled/disabled state (see the selection logic around
line ~113).

In `@app/Views/item_kits/manage.php`:
- Line 38: The view outputs translated button labels using
lang(ucfirst($controller_name) .".new") (and similar lang(...) calls at the
other two spots) without escaping; wrap each lang(...) call with the esc(...)
helper (e.g., esc(lang(...))) so all translated strings are safely escaped
before rendering, and update the occurrences around the icon/button text where
ucfirst($controller_name) is used to build the translation key.

In `@app/Views/items/manage.php`:
- Around line 84-87: The data-href attributes currently echo raw concatenations
like "$controller_name/view" and "$controller_name/csvImport" in the view which
can output unescaped controller names; update the two button elements in
manage.php to wrap the concatenated path in the esc() helper before echoing
(i.e., use esc("$controller_name/view") and esc("$controller_name/csvImport"))
so the controller path is properly escaped when rendered.

In `@app/Views/partial/dinner_tables.php`:
- Line 8: Replace the hardcoded "Add table" label in the button with a language
key call (use the view's lang() helper) and add the matching entry to the
language file; for example change the button text to use
lang('Dinner.add_table') (or a similarly named key you prefer) in the
partial/dinner_tables.php button element and create/update the appropriate
language file to include the "Dinner.add_table" => "Add table" value for the
default locale (and translations for other locales as needed).
- Around line 21-23: The label id and span output are rendering raw
$dinner_table_id; update both occurrences (the label for="dinner_table_<?=
$dinner_table_id ?>" and the span <?= $dinner_table_id ?>) to harden and escape
the value by casting to int and using the esc() helper (e.g. use
esc((int)$dinner_table_id) and for the id attribute build
"dinner_table_".esc((int)$dinner_table_id) so both the id attribute and visible
number are sanitized consistently with the existing (int) hardening on Line 24.
- Around line 22-25: The remove button handler is removing only the immediate
.input-group (via $(this).parent().remove()), leaving the label and outer
wrapper behind; update the click handler for the .remove_dinner_table selector
so it removes the full row wrapper instead (use
$(this).closest('.col-12').remove() or remove the appropriate ancestor element
that contains the label, input-group and its wrapper) to ensure the entire DOM
block for that dinner table is removed and no orphaned elements remain.
- Around line 7-9: The add button is wrapped in a span that contains no input,
so the existing click handler (selector class add_dinner_table) that uses
$(this).parent().find('input') will return undefined and crash, and the remove
handler that calls $(this).parent().remove() only removes the input-group
leaving orphaned markup; fix by either moving the add_dinner_table class from
the span to the larger container that contains the input and label (so
$(this).parent().find('input') finds the field), or update the JS in the add
button handler to use a robust traversal like
$(this).closest('.col-12').find('input') (and update the remove handler to call
$(this).closest('.col-12').remove()); target the class add_dinner_table and the
two problematic calls $(this).parent().find('input') and
$(this).parent().remove() when making the change.

In `@app/Views/sales/register.php`:
- Around line 143-151: There are duplicate DOM IDs causing JS selectors to hit
the wrong element; update the new Bootstrap card section IDs (cart_contents,
select_customer_form, select_customer, customer, sale_totals,
show_keyboard_help) by prefixing them (e.g., new_cart_contents,
new_select_customer_form, etc.) or remove the legacy table/section if it's not
needed, and then update any JavaScript/jQuery selectors (e.g.,
$('#cart_contents')) to use the new ID names so the correct elements are
targeted (ensure you change references in functions handling cart updates,
customer selection, and totals rendering).
- Around line 203-204: Remove the debug placeholder <br> tags inside the
register wrapper (the element with id "register_wrapper"); delete the
consecutive <br><br><br><br><br> and, if vertical spacing is required, replace
them with proper CSS (e.g., margin or padding on `#register_wrapper` or a utility
class) rather than inline breaks so layout is handled cleanly in stylesheets.
- Line 129: The table class condition uses count($cart) == 1 which only applies
styling when there's exactly one item; change the condition to count($cart) > 0
(or >= 1) in the table class expression so table-striped and table-hover are
applied whenever the cart has any items, keeping the existing count($cart) == 0
branch for table-borderless intact and preserving the PHP echo/templating
structure around the class attribute.
- Around line 69-200: The page currently renders both the new Bootstrap 5 card
UI and the legacy panel UI causing duplicate IDs (e.g., cart_contents) and
duplicated UI; remove or gate the legacy register_wrapper section so only one UI
renders: either delete the legacy block that contains the duplicate
cart_contents and the legacy register_wrapper markup, or wrap that legacy block
in a feature-flag/condition (e.g., use a config flag or controller-provided
variable) and render it only when the flag is enabled; ensure mw-register and
cart_contents appear only once and update any JS that queries `#cart_contents` or
.mw-register to reference the surviving DOM structure (look for cart_contents,
mw-register, register_wrapper in the diff to locate the code to change).

---

Outside diff comments:
In `@app/Views/configs/message_config.php`:
- Around line 67-71: The embedded translation strings for the JavaScript object
(keys msg_uid, msg_pwd, msg_src in message_config.php) must be escaped for JS to
avoid breaking when translations contain quotes/special chars; replace the
current "<?= lang('Config.msg_uid_required') ?>" (and the msg_pwd/msg_src
equivalents) with escaped outputs using esc(lang('Config.msg_uid_required'),
'js') so the values are safe to embed inside the JavaScript string literals.

In `@app/Views/items/manage.php`:
- Around line 23-28: The JS handlers expect an element with id
"generate_barcodes" and bulk-edit buttons to have the "modal-dlg" class
(dialog_support.init("button.modal-dlg") in public/js/manage_tables.js); update
the two buttons in the view so the barcode button has id="generate_barcodes" and
the bulk edit button includes class="modal-dlg" so the click handler and dialog
initializer can find and wire them correctly (make sure the element types match
the selectors, e.g., button.modal-dlg).
- Around line 31-33: The event handler bound to '#filters' for
'hidden.bs.select' never fires because the bootstrap-select plugin isn't
initialized; initialize the selectpicker(s) before attaching or relying on that
event (e.g., call the selectpicker initializer on elements with the class
'selectpicker' such as '#filters' and '#stock_location' using the standard
plugin init method) so the 'hidden.bs.select' event on '#filters' and similar
files (app/Views/expenses/manage.php, app/Views/sales/manage.php,
app/Views/cashups/manage.php, app/Views/expenses_categories/manage.php) will
fire and table_support.refresh() will run as expected.

---

Nitpick comments:
In `@app/Views/expenses_categories/manage.php`:
- Line 12: Replace the hardcoded title assignment $title_info['config_title'] =
'Expenses Categories' with a localized string using the view's existing language
helper (e.g., call lang('...') the same way other labels are sourced); update
the assignment in manage.php so $title_info['config_title'] uses lang('...')
with the appropriate language key for "Expenses Categories" to ensure consistent
localization.

In `@app/Views/item_kits/manage.php`:
- Around line 27-31: The click handler for $('#generate_barcodes') currently
hardcodes 'index.php/item_kits/generateBarcodes/'; change it to read the base
URL from the element's data-href attribute (e.g. $(this).data('href') or
$(this).attr('data-href')) and then append
table_support.selected_ids().join(':') to that base, taking care to add a
separator if the data-href doesn't end with '/'. Apply the same change to the
other occurrence of the generate handler (the second $('#generate_barcodes')
block) so both handlers use the data-href attribute instead of the hardcoded
controller path.
- Line 12: Replace the hardcoded title assignment $title_info['config_title'] =
'Item Kits'; with a localized string using the lang() helper (e.g.
$title_info['config_title'] = lang('YourLangFile.item_kits') or whatever
existing key is used for item kits in your language files), ensure the correct
language key is used (and defined) and that the language helper is available in
this view so the title is rendered from the translation files instead of literal
English.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d4e5af4e-639e-458c-99b8-7523ca5db6c4

📥 Commits

Reviewing files that changed from the base of the PR and between a8bcfe3 and b007f58.

📒 Files selected for processing (16)
  • app/Views/attributes/manage.php
  • app/Views/cashups/manage.php
  • app/Views/configs/message_config.php
  • app/Views/expenses/manage.php
  • app/Views/expenses_categories/manage.php
  • app/Views/giftcards/manage.php
  • app/Views/home/profile.php
  • app/Views/item_kits/manage.php
  • app/Views/items/manage.php
  • app/Views/partial/daterangepicker.php
  • app/Views/partial/dinner_tables.php
  • app/Views/people/manage.php
  • app/Views/sales/register.php
  • app/Views/taxes/tax_rates.php
  • public/js/bs-tab_anchor_linking.js
  • public/js/bs-tooltips.js
✅ Files skipped from review due to trivial changes (1)
  • public/js/bs-tooltips.js
🚧 Files skipped from review as they are similar to previous changes (9)
  • public/js/bs-tab_anchor_linking.js
  • app/Views/giftcards/manage.php
  • app/Views/taxes/tax_rates.php
  • app/Views/home/profile.php
  • app/Views/attributes/manage.php
  • app/Views/expenses/manage.php
  • app/Views/cashups/manage.php
  • app/Views/people/manage.php
  • app/Views/partial/daterangepicker.php

Comment thread app/Views/configs/message_config.php Resolved
Comment on lines +36 to +37
<button type="button" class="btn btn-primary modal-dlg" data-btn-submit="<?= lang('Common.submit') ?>" data-href="<?= esc("$controller_name/view") ?>" title="<?= lang(ucfirst($controller_name). ".new") ?>">
<i class="bi bi-bookmark-plus me-2"></i><?= lang(ucfirst($controller_name). ".new") ?>

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.

⚠️ Potential issue | 🟠 Major

Escape translated output before rendering in attributes/text.

lang(...) is emitted directly in attributes and HTML text. Wrap these with esc(...) to avoid markup/attribute injection issues and align with project escaping rules.

Proposed fix
-    <button type="button" class="btn btn-primary modal-dlg" data-btn-submit="<?= lang('Common.submit') ?>" data-href="<?= esc("$controller_name/view") ?>" title="<?= lang(ucfirst($controller_name). ".new") ?>">
-        <i class="bi bi-bookmark-plus me-2"></i><?= lang(ucfirst($controller_name). ".new") ?>
+    <button type="button" class="btn btn-primary modal-dlg" data-btn-submit="<?= esc(lang('Common.submit')) ?>" data-href="<?= esc("$controller_name/view") ?>" title="<?= esc(lang(ucfirst($controller_name) . '.new')) ?>">
+        <i class="bi bi-bookmark-plus me-2"></i><?= esc(lang(ucfirst($controller_name) . '.new')) ?>
@@
-            <i class="bi bi-trash"></i><span class="d-none d-sm-inline ms-2"><?= lang('Common.delete') ?></span>
+            <i class="bi bi-trash"></i><span class="d-none d-sm-inline ms-2"><?= esc(lang('Common.delete')) ?></span>

As per coding guidelines, "Sanitize user input; escape output using esc() helper".

Also applies to: 44-44

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/expenses_categories/manage.php` around lines 36 - 37, The
translated strings produced by lang(...) are being output directly into
attributes and text (e.g., the button's data-btn-submit, data-href title and
inner text) which risks injection; update these occurrences to wrap lang(...)
with the esc(...) helper (for example replace lang(ucfirst($controller_name).
".new") and lang('Common.submit') with esc(lang(...))) so both attribute values
and displayed text are escaped; apply the same change to the other occurrence
referenced around line 44 to ensure all translated output uses esc().

Comment thread app/Views/item_kits/manage.php Outdated
<span class="glyphicon glyphicon-tags">&nbsp;</span><?= lang(ucfirst($controller_name) . '.new') ?>
<div class="d-flex gap-2 justify-content-end">
<button type="button" class="btn btn-primary modal-dlg" data-btn-submit="<?= esc(lang('Common.submit')) ?>" data-href="<?= esc("$controller_name/view") ?>" title="<?= esc(lang(ucfirst($controller_name) . '.new')) ?>">
<i class="bi bi-tags me-2"></i><?= lang(ucfirst($controller_name) .".new") ?>

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.

⚠️ Potential issue | 🟡 Minor

Escape translated button labels before rendering.

Line 38, Line 45, and Line 48 output lang(...) directly. Please wrap these with esc(...) for consistent output escaping in views.

Proposed patch
-        <i class="bi bi-tags me-2"></i><?= lang(ucfirst($controller_name) .".new") ?>
+        <i class="bi bi-tags me-2"></i><?= esc(lang(ucfirst($controller_name) . '.new')) ?>
@@
-            <i class="bi bi-trash"></i><span class="d-none d-sm-inline ms-2"><?= lang('Common.delete') ?></span>
+            <i class="bi bi-trash"></i><span class="d-none d-sm-inline ms-2"><?= esc(lang('Common.delete')) ?></span>
@@
-            <i class="bi bi-upc-scan"></i><span class="d-none d-sm-inline ms-2"><?= lang('Items.generate_barcodes') ?></span>
+            <i class="bi bi-upc-scan"></i><span class="d-none d-sm-inline ms-2"><?= esc(lang('Items.generate_barcodes')) ?></span>

As per coding guidelines app/**/*.php: "Sanitize user input; escape output using esc() helper."

Also applies to: 45-45, 48-48

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/item_kits/manage.php` at line 38, The view outputs translated
button labels using lang(ucfirst($controller_name) .".new") (and similar
lang(...) calls at the other two spots) without escaping; wrap each lang(...)
call with the esc(...) helper (e.g., esc(lang(...))) so all translated strings
are safely escaped before rendering, and update the occurrences around the
icon/button text where ucfirst($controller_name) is used to build the
translation key.

Comment thread app/Views/items/manage.php Outdated
Comment on lines +84 to +87
<button type="button" class="btn btn-primary modal-dlg" data-btn-new="<?= lang('Common.new') ?>" data-btn-submit="<?= lang('Common.submit') ?>" data-href="<?= "$controller_name/view" ?>" title="<?= lang(ucfirst($controller_name) .".new") ?>">
<i class="bi bi-tag me-2"></i><?= lang(ucfirst($controller_name) .".new") ?>
</button>

<button class="btn btn-info btn-sm pull-right modal-dlg" data-btn-new="<?= lang('Common.new') ?>" data-btn-submit="<?= lang('Common.submit') ?>" data-href="<?= "$controller_name/view" ?>" title="<?= lang(ucfirst($controller_name) . '.new') ?>">
<span class="glyphicon glyphicon-tag">&nbsp;</span><?= lang(ucfirst($controller_name) . '.new') ?>
<button type="button" class="btn btn-primary modal-dlg" data-btn-submit="<?= lang('Common.submit') ?>" data-href="<?= "$controller_name/csvImport" ?>" title="<?= lang('Items.import_items_csv') ?>">

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.

⚠️ Potential issue | 🟡 Minor

Escape the controller path before echoing it into data-href.

These attributes render raw $controller_name into HTML. Wrap the concatenated path in esc() before echoing it.

Possible fix
-    <button type="button" class="btn btn-primary modal-dlg" data-btn-new="<?= lang('Common.new') ?>" data-btn-submit="<?= lang('Common.submit') ?>" data-href="<?= "$controller_name/view" ?>" title="<?= lang(ucfirst($controller_name) .".new") ?>">
+    <button type="button" class="btn btn-primary modal-dlg" data-btn-new="<?= lang('Common.new') ?>" data-btn-submit="<?= lang('Common.submit') ?>" data-href="<?= esc($controller_name . '/view') ?>" title="<?= lang(ucfirst($controller_name) .".new") ?>">
         <i class="bi bi-tag me-2"></i><?= lang(ucfirst($controller_name) .".new") ?>
     </button>
-    <button type="button" class="btn btn-primary modal-dlg" data-btn-submit="<?= lang('Common.submit') ?>" data-href="<?= "$controller_name/csvImport" ?>" title="<?= lang('Items.import_items_csv') ?>">
+    <button type="button" class="btn btn-primary modal-dlg" data-btn-submit="<?= lang('Common.submit') ?>" data-href="<?= esc($controller_name . '/csvImport') ?>" title="<?= lang('Items.import_items_csv') ?>">
         <i class="bi bi-file-earmark-arrow-down me-2"></i><?= lang('Common.import_csv') ?>
     </button>

As per coding guidelines, app/**/*.php: Sanitize user input; escape output using esc() helper.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/items/manage.php` around lines 84 - 87, The data-href attributes
currently echo raw concatenations like "$controller_name/view" and
"$controller_name/csvImport" in the view which can output unescaped controller
names; update the two button elements in manage.php to wrap the concatenated
path in the esc() helper before echoing (i.e., use esc("$controller_name/view")
and esc("$controller_name/csvImport")) so the controller path is properly
escaped when rendered.

Comment thread app/Views/partial/dinner_tables.php Outdated
Comment on lines +22 to +25
<div class="input-group mb-3">
<span class="input-group-text"><?= $dinner_table_id ?>.</span>
<input type="text" class="form-control dinner_table valid_chars" name="dinner_table_<?= (int) $dinner_table_id ?>" id="dinner_table_<?= (int) $dinner_table_id ?>" value="<?= esc($dinner_table_name) ?>" required <?= $table['deleted'] ? 'disabled' : '' ?>>
<button class="btn btn-outline-danger remove_dinner_table" type="button"><i class="bi bi-x-lg"></i></button>

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.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

# First, let's look at the dinner_tables.php file to understand the full context
fd -e php -path "*dinner_tables*" | head -20

Repository: opensourcepos/opensourcepos

Length of output: 239


🏁 Script executed:

# Also search for the table_config.php file
fd -e php -path "*table_config*" | head -20

Repository: opensourcepos/opensourcepos

Length of output: 239


🏁 Script executed:

# Search for the remove_dinner_table handler
rg "remove_dinner_table" --type php -A 5

Repository: opensourcepos/opensourcepos

Length of output: 2373


🏁 Script executed:

# Let's read the dinner_tables.php file to see the full DOM structure
cat -n app/Views/partial/dinner_tables.php

Repository: opensourcepos/opensourcepos

Length of output: 1450


🏁 Script executed:

# Also get the full context of the remove_dinner_table handler
sed -n '60,80p' app/Views/configs/table_config.php

Repository: opensourcepos/opensourcepos

Length of output: 1157


Remove handler now deletes the wrong DOM node.

Because the button is inside .input-group (line 25), $(this).parent().remove() removes only the input group, leaving the label (line 21) and .col-12 wrapper (line 20) behind. This breaks row integrity and leaves orphaned elements in the DOM.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/partial/dinner_tables.php` around lines 22 - 25, The remove button
handler is removing only the immediate .input-group (via
$(this).parent().remove()), leaving the label and outer wrapper behind; update
the click handler for the .remove_dinner_table selector so it removes the full
row wrapper instead (use $(this).closest('.col-12').remove() or remove the
appropriate ancestor element that contains the label, input-group and its
wrapper) to ensure the entire DOM block for that dinner table is removed and no
orphaned elements remain.

Comment on lines +69 to +200
<div class="mw-register">
<?= form_open("$controller_name/changeMode", ['id' => 'mode_form', 'class' => 'mw-register card bg-secondary-subtle rounded-bottom-0']) ?>

<!-- Top register controls -->
<div class="card-body">
<div class="d-flex">
<div class="me-auto pe-2">
<div class="input-group">
<span class="input-group-text" id="mode_select"><?= lang(ucfirst($controller_name) .'.mode') ?></span>
<?= form_dropdown('mode', $modes, $mode, ['onchange' => "$('#mode_form').submit();", 'class' => 'form-select', 'aria-describedby' => 'mode_select']) ?>
<?php if ($config['dinner_table_enable']) { ?>
<span class="input-group-text" id="dinner_table_select"><?= lang(ucfirst($controller_name) .'.table') ?></span>
<?= form_dropdown('dinner_table', $empty_tables, $selected_table, ['onchange' => "$('#mode_form').submit();", 'class' => 'form-select', 'aria-describedby' => 'dinner_table_select']) ?>
<?php } ?>
<?php if (count($stock_locations) > 1) { ?>
<span class="input-group-text" id="stock_location_select"><?= lang(ucfirst($controller_name) .'.stock_location') ?></span>
<?= form_dropdown('stock_location', $stock_locations, $stock_location, ['onchange' => "$('#mode_form').submit();", 'class' => 'form-select', 'aria-describedby' => 'stock_location_select']) ?>
<?php } ?>
</div>
</div>
<div class="d-flex gap-2">
<?php
$employee = model(Employee::class);
if ($employee->has_grant('reports_sales', session('person_id'))) {
?>
<a type="button" class="btn btn-primary" id="sales_takings_button" href="<?= base_url("$controller_name/manage") ?>" title="<?= lang(ucfirst($controller_name) .'.takings') ?>">
<i class="bi bi-receipt-cutoff me-2"></i><?= lang(ucfirst($controller_name) .'.takings') ?>
</a>
<?php } ?>
<button type="button" class="btn btn-primary" id="show_suspended_sales_button" data-href="<?= esc("$controller_name/suspended") ?>" title="<?= lang(ucfirst($controller_name) .'.suspended_sales') ?>">
<i class="bi bi-pause-circle me-2"></i><?= lang(ucfirst($controller_name) .'.suspended_sales') ?>
</button>
</li>

<?php
$employee = model(Employee::class);
if ($employee->has_grant('reports_sales', session('person_id'))) {
?>
<li class="pull-right">
<?= anchor(
"$controller_name/manage",
'<span class="glyphicon glyphicon-list-alt">&nbsp;</span>' . lang(ucfirst($controller_name) . '.takings'),
array('class' => 'btn btn-primary btn-sm', 'id' => 'sales_takings_button', 'title' => lang(ucfirst($controller_name) . '.takings'))
) ?>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
<?= form_close() ?>

<?php $tabindex = 0; ?>

<?= form_open("$controller_name/add", ['id' => 'add_item_form', 'class' => 'form-horizontal panel panel-default']) ?>
<div class="panel-body form-group">
<ul>
<li class="pull-left first_li">
<label for="item" class="control-label"><?= lang(ucfirst($controller_name) . '.find_or_scan_item_or_receipt') ?></label>
</li>
<li class="pull-left">
<?= form_input(['name' => 'item', 'id' => 'item', 'class' => 'form-control input-sm', 'size' => '50', 'tabindex' => ++$tabindex]) ?>
<span class="ui-helper-hidden-accessible" role="status"></span>
</li>
<li class="pull-right">
<button id="new_item_button" class="btn btn-info btn-sm pull-right modal-dlg" data-btn-new="<?= lang('Common.new') ?>" data-btn-submit="<?= lang('Common.submit') ?>" data-href="<?= "items/view" ?>" title="<?= lang(ucfirst($controller_name) . ".new_item") ?>">
<span class="glyphicon glyphicon-tag">&nbsp;</span><?= lang(ucfirst($controller_name) . ".new_item") ?>
</button>
</li>
</ul>
<div class="row">
<div class="col-8">
<div class="row">
<div class="col-12 pe-0">
<?= form_open("$controller_name/add", ['id' => 'add_item_form', 'class' => 'card bg-primary-subtle border-top-0 border-bottom-0 rounded-0']) ?>
<div class="card-body d-flex gap-2">
<div class="input-group">
<span class="input-group-text text-primary border-primary-subtle" data-bs-toggle="tooltip" data-bs-placement="right" title="<?= lang(ucfirst($controller_name) .'.find_or_scan_item_or_receipt') ?>">
<i class="bi bi-search"></i>
</span>
<input type="text" name="item" id="item" class="form-control border-primary-subtle" tabindex="<?= ++$tabindex ?>">
</div>
<button type="button" class="btn btn-primary ms-auto text-nowrap" id="new_item_button" data-btn-new="<?= lang('Common.new') ?>" data-btn-submit="<?= lang('Common.submit') ?>" data-href='<?= "items/view" ?>' title="<?= lang(ucfirst($controller_name) .".new_item") ?>">
<i class="bi bi-tag me-2"></i><?= lang(ucfirst($controller_name) .".new_item") ?>
</button>
</div>
<?= form_close() ?>
</div>
<div class="col-12 pe-0">
<!-- Sale Items List -->
<div class="card table-responsive rounded-end-0 rounded-top-0" style="min-height: 250px;">
<table class="table <?php if(count($cart) == 1) { ?>table-striped table-hover<?php }; if(count($cart) == 0) { ?>table-borderless<?php } ?>">
<thead>
<tr>
<th scope="col" style="width: 5%;"><i class="bi bi-trash"></i></th>
<th scope="col" style="width: 15%;"><?= lang(ucfirst($controller_name) .'.item_number') ?></th>
<th scope="col" style="width: 30%;"><?= lang(ucfirst($controller_name) .'.item_name') ?></th>
<th scope="col" style="width: 10%;"><?= lang(ucfirst($controller_name) .'.price') ?></th>
<th scope="col" style="width: 10%;"><?= lang(ucfirst($controller_name) .'.quantity') ?></th>
<th scope="col" style="width: 15%;"><?= lang(ucfirst($controller_name) .'.discount') ?></th>
<th scope="col" style="width: 10%;"><?= lang(ucfirst($controller_name) .'.total') ?></th>
<th scope="col" style="width: 5%;"><?= lang(ucfirst($controller_name) .'.update') ?></th>
</tr>
</thead>

<tbody id="cart_contents">
<?php if (count($cart) == 0) { ?>
<tr>
<td colspan="8">
<div class="alert alert-primary m-0"><?= lang(ucfirst($controller_name) .'.no_items_in_cart') ?></div>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?= form_close() ?>
<div class="col-4 ps-0">
<!-- Overall Sale -->
<?= form_open("$controller_name/selectCustomer", ['id' => 'select_customer_form', 'class' => 'card border-top-0 border-start-0 rounded-top-0 rounded-start-0', 'style' => 'min-height: 320px;']) ?>
<div class="card-body" id="select_customer">
<div class="mb-3">
<label id="customer_label" for="customer" class="form-label"><?= lang(ucfirst($controller_name) .'.select_customer') . '&nbsp;' . esc("$customer_required") ?></label>
<input type="text" name="customer" id="customer" class="form-control" value="<?= lang(ucfirst($controller_name) . '.start_typing_customer_name') ?>">
</div>
<div class="d-flex gap-2 justify-content-center mb-3">
<button class="btn btn-primary modal-dlg" data-btn-submit="<?= lang('Common.submit') ?>" data-href="<?= 'customers/view' ?>" title="<?= lang(ucfirst($controller_name) .'.new_customer') ?>">
<i class="bi bi-person-add me-2"></i><?= lang(ucfirst($controller_name) .'.new_customer') ?>
</button>
<button class="btn btn-secondary modal-dlg" id="show_keyboard_help" data-href="<?= esc("$controller_name/salesKeyboardHelp") ?>" title="<?= lang(ucfirst($controller_name) .'.key_title') ?>">
<i class="bi bi-keyboard me-2"></i><?= lang(ucfirst($controller_name) .'.key_help') ?>
</button>
</div>

<table class="table table-borderless table-sm" id="sale_totals">
<tbody>
<tr>
<td class="px-0"><?= lang(ucfirst($controller_name) .'.quantity_of_items', [$item_count]) ?></td>
<td class="px-0 text-end"><?= $total_units ?></td>
</tr>
<tr>
<td class="px-0"><?= lang(ucfirst($controller_name) .'.sub_total') ?></td>
<td class="px-0 text-end"><?= to_currency($subtotal) ?></td>
</tr>
<?php foreach ($taxes as $tax_group_index=>$tax) { ?>
<tr>
<td class="px-0"><?= (float)$tax['tax_rate'] . '% ' . $tax['tax_group'] ?></td>
<td class="px-0 text-end"><?= to_currency_tax($tax['sale_tax_amount']) ?></td>
</tr>
<?php } ?>
<tr>
<td class="fs-5 fw-semibold px-0"><?= lang(ucfirst($controller_name) .'.total') ?></td>
<td class="fs-5 fw-semibold px-0 text-end"><span id="sale_total"><?= to_currency($total) ?></span></td>
</tr>
</tbody>
</table>
</div>
<?= form_close() ?>
</div>
</div>
</div>

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.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check if there are CSS rules hiding one of the register sections
rg -n "register_wrapper|mw-register" --type=css --type=scss -C2
# Check for any JS that toggles visibility between old/new UI
rg -n "register_wrapper|mw-register" --type=js -C2

Repository: opensourcepos/opensourcepos

Length of output: 99


🏁 Script executed:

#!/bin/bash
# Fix the SCSS issue - rg doesn't have a separate scss type, use css
rg -n "register_wrapper|mw-register" --type=css -C2

# Search for any JS that toggles visibility
rg -n "display.*none|hide|show|toggle" public/ --type=js -C1 | grep -A2 -B2 "register"

Repository: opensourcepos/opensourcepos

Length of output: 253


🏁 Script executed:

#!/bin/bash
# Check the total lines in the register.php file and read lines 200-250 to verify both sections exist
wc -l app/Views/sales/register.php
echo "---"
# Read lines around the boundary to see if legacy section truly exists
sed -n '195,250p' app/Views/sales/register.php | cat -n

Repository: opensourcepos/opensourcepos

Length of output: 3566


🏁 Script executed:

#!/bin/bash
# Search for any conditional rendering or feature flags that might hide one section
rg -n "if|hidden|display|visibility" app/Views/sales/register.php -A1 -B1

Repository: opensourcepos/opensourcepos

Length of output: 14579


Remove the legacy panel-based UI or conditionally hide one section to prevent simultaneous rendering.

Both the new Bootstrap 5 card-based UI (lines 69–200) and the legacy panel-based UI (lines 203–638) render unconditionally to the page. This causes duplicate element IDs—cart_contents appears in both sections (lines 143 and 221)—and displays redundant UI elements to the user.

The CSS rule for .mw-register (defined in public/css/interface.css) only sets min-width and does not hide the element, and no JavaScript toggles visibility between the sections. To resolve this:

  • Remove the legacy register_wrapper section once migration is complete, or
  • Wrap one section in a conditional display flag/feature toggle to support a phased rollout
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/sales/register.php` around lines 69 - 200, The page currently
renders both the new Bootstrap 5 card UI and the legacy panel UI causing
duplicate IDs (e.g., cart_contents) and duplicated UI; remove or gate the legacy
register_wrapper section so only one UI renders: either delete the legacy block
that contains the duplicate cart_contents and the legacy register_wrapper
markup, or wrap that legacy block in a feature-flag/condition (e.g., use a
config flag or controller-provided variable) and render it only when the flag is
enabled; ensure mw-register and cart_contents appear only once and update any JS
that queries `#cart_contents` or .mw-register to reference the surviving DOM
structure (look for cart_contents, mw-register, register_wrapper in the diff to
locate the code to change).

Comment thread app/Views/sales/register.php Outdated
<div class="col-12 pe-0">
<!-- Sale Items List -->
<div class="card table-responsive rounded-end-0 rounded-top-0" style="min-height: 250px;">
<table class="table <?php if(count($cart) == 1) { ?>table-striped table-hover<?php }; if(count($cart) == 0) { ?>table-borderless<?php } ?>">

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.

⚠️ Potential issue | 🟡 Minor

Table styling condition appears incorrect—only applies when exactly 1 item.

The condition count($cart) == 1 applies table-striped table-hover only when there's exactly one item in the cart. This is likely intended to be count($cart) > 0 or count($cart) >= 1 to style the table whenever items are present.

Proposed fix
-                        <table class="table <?php if(count($cart) == 1) { ?>table-striped table-hover<?php }; if(count($cart) == 0) { ?>table-borderless<?php } ?>">
+                        <table class="table <?php if(count($cart) > 0) { ?>table-striped table-hover<?php } else { ?>table-borderless<?php } ?>">
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<table class="table <?php if(count($cart) == 1) { ?>table-striped table-hover<?php }; if(count($cart) == 0) { ?>table-borderless<?php } ?>">
<table class="table <?php if(count($cart) > 0) { ?>table-striped table-hover<?php } else { ?>table-borderless<?php } ?>">
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/sales/register.php` at line 129, The table class condition uses
count($cart) == 1 which only applies styling when there's exactly one item;
change the condition to count($cart) > 0 (or >= 1) in the table class expression
so table-striped and table-hover are applied whenever the cart has any items,
keeping the existing count($cart) == 0 branch for table-borderless intact and
preserving the PHP echo/templating structure around the class attribute.

Comment on lines +143 to +151
<tbody id="cart_contents">
<?php if (count($cart) == 0) { ?>
<tr>
<td colspan="8">
<div class="alert alert-primary m-0"><?= lang(ucfirst($controller_name) .'.no_items_in_cart') ?></div>
</td>
</tr>
<?php } ?>
</tbody>

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.

⚠️ Potential issue | 🔴 Critical

Duplicate id="cart_contents" will break JavaScript functionality.

The ID cart_contents is defined twice—once in the new Bootstrap 5 card layout (line 143) and again in the legacy table (line 221). JavaScript selectors like $('#cart_contents') will only find the first element, causing cart updates to fail in the second table.

The same duplication issue affects several other IDs:

  • select_customer_form (lines 159, 363)
  • select_customer (lines 160, 423)
  • customer (lines 163, 427)
  • sale_totals (lines 174, 439)
  • show_keyboard_help (lines 169, 432)

If both UI sections are intentionally rendered during transition, prefix the new section's IDs (e.g., new_cart_contents) or remove the legacy markup entirely if it's no longer needed.

Also applies to: 221-228

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Views/sales/register.php` around lines 143 - 151, There are duplicate DOM
IDs causing JS selectors to hit the wrong element; update the new Bootstrap card
section IDs (cart_contents, select_customer_form, select_customer, customer,
sale_totals, show_keyboard_help) by prefixing them (e.g., new_cart_contents,
new_select_customer_form, etc.) or remove the legacy table/section if it's not
needed, and then update any JavaScript/jQuery selectors (e.g.,
$('#cart_contents')) to use the new ID names so the correct elements are
targeted (ensure you change references in functions handling cart updates,
customer selection, and totals rendering).

Comment thread app/Views/sales/register.php Resolved
jekkos pushed a commit that referenced this pull request Apr 2, 2026
- Fix string interpolation in data-href attributes (use double quotes for PHP variable interpolation)
- Add missing name attributes to message_config.php form inputs (msg_uid, msg_pwd, msg_src)
- Fix HTML tag mismatch in profile.php (</a> to </button>)
- Add modal-dlg class to buttons for proper modal dialog handling
- Add missing IDs for delete/generate_barcodes buttons in item_kits/manage.php
- Fix esc() wrapping around lang() calls where inappropriate
- Fix disabled attribute rendering in dinner_tables.php
- Fix date format bug in daterangepicker.php (use timeformat instead of dateformat for time component)
- Fix JavaScript selector fallback logic in bs-tab_anchor_linking.js
- Add Bootstrap guard in bs-tooltips.js to prevent errors when Bootstrap JS is not loaded

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 3

🧹 Nitpick comments (1)
README.md (1)

4-7: Good warning addition; minor grammar fix suggested.

The warning section appropriately alerts users that this is a work-in-progress build. However, when "under construction" is used as a compound adjective modifying "build," it should be hyphenated for clarity.

✏️ Proposed grammar fix
-This is a heavily under construction build converting OSPOS from Bootstrap 3 to Bootstrap 5. Please do not use!
+This is a heavily under-construction build converting OSPOS from Bootstrap 3 to Bootstrap 5. Please do not use!

As per static analysis hints, the grammar tool flagged: "Use a hyphen to join words" for compound adjectives.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` around lines 4 - 7, The heading paragraph uses "under construction
build" as a compound adjective; update the sentence under "## ☢️ Bootstrap 5
conversion WIP" to hyphenate the compound adjective (change "under construction
build" to "under-construction build") so it reads: "This is a heavily
under-construction build converting OSPOS from Bootstrap 3 to Bootstrap 5.
Please do not use!"
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@app/Controllers/Config.php`:
- Around line 420-426: The appearance fields being saved directly from
$this->request->getPost (theme, login_form, notify_horizontal_position,
notify_vertical_position, color_mode, config_menu_position, responsive_design)
must be validated and sanitized before calling batch_save; update the Config
controller method that builds the $data array (the code around the batch_save
call) to whitelist allowed values for each field (e.g., allowed theme names,
login_form types, color_mode enums, menu positions, and allowed positions for
notifications), coerce responsive_design to a boolean, reject or default unknown
values, and escape/normalize strings as needed; ensure these validated values
are used in the array passed to batch_save and add unit checks/unit tests where
appropriate.
- Around line 417-432: Update postSaveAppearance to return a ResponseInterface
and stop using echo/json_encode; use $this->response->setJSON(...) like other
postSave* methods. Before calling $this->appconfig->batch_save, sanitize and
validate each POST input retrieved via $this->request->getPost (follow patterns
from postSaveInfo() and postSaveGeneral() — e.g., apply appropriate filter flags
or helper functions such as FILTER_SANITIZE_* for strings, parse_decimals() for
numeric inputs, and htmlspecialchars() where needed) and build $batch_save_data
from the cleaned values; keep the success message construction but return it
with $this->response->setJSON(['success'=>$success,'message'=>...]).

In `@app/Database/Migrations/sqlscripts/initial_schema.sql`:
- Around line 82-89: The upgrade backfill migration
(3.4.2_missing_config_keys.sql) is missing the four new config keys seeded in
initial_schema.sql; add backfill INSERTs for 'rtl_language', 'color_mode',
'config_menu_position', and 'responsive_design' following the project's existing
pattern for missing config keys (same INSERT INTO ... VALUES format and default
values used in initial_schema.sql) so upgraded installations receive these
settings just like fresh installs.

---

Nitpick comments:
In `@README.md`:
- Around line 4-7: The heading paragraph uses "under construction build" as a
compound adjective; update the sentence under "## ☢️ Bootstrap 5 conversion WIP"
to hyphenate the compound adjective (change "under construction build" to
"under-construction build") so it reads: "This is a heavily under-construction
build converting OSPOS from Bootstrap 3 to Bootstrap 5. Please do not use!"
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: bfc6c209-9e8d-4f9b-9176-b23abacb7350

📥 Commits

Reviewing files that changed from the base of the PR and between b007f58 and f2092d4.

📒 Files selected for processing (6)
  • README.md
  • app/Controllers/Config.php
  • app/Controllers/Reports.php
  • app/Database/Migrations/sqlscripts/initial_schema.sql
  • app/Helpers/tabular_helper.php
  • app/Helpers/tax_helper.php
✅ Files skipped from review due to trivial changes (2)
  • app/Helpers/tax_helper.php
  • app/Controllers/Reports.php

Comment thread app/Controllers/Config.php Outdated
Comment on lines +417 to +432
public function postSaveAppearance(): void
{
$batch_save_data = [
'theme' => $this->request->getPost('theme'),
'login_form' => $this->request->getPost('login_form'),
'notify_horizontal_position' => $this->request->getPost('notify_horizontal_position'),
'notify_vertical_position' => $this->request->getPost('notify_vertical_position'),
'color_mode' => $this->request->getPost('color_mode'),
'config_menu_position' => $this->request->getPost('config_menu_position'),
'responsive_design' => $this->request->getPost('responsive_design') != null
];

$success = $this->appconfig->batch_save($batch_save_data);

echo json_encode(['success' => $success, 'message' => lang('Config.saved_' . ($success ? '' : 'un') . 'successfully')]);
}

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.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify response handling and naming in the changed method
rg -n -C3 "postSaveAppearance|echo json_encode|setJSON|\\$batch_save_data|\\$batchSaveData" app/Controllers/Config.php

Repository: opensourcepos/opensourcepos

Length of output: 263


🏁 Script executed:

cat -n app/Controllers/Config.php | sed -n '410,440p'

Repository: opensourcepos/opensourcepos

Length of output: 1726


🏁 Script executed:

rg -A 20 "function postSaveAppearance" app/Controllers/Config.php

Repository: opensourcepos/opensourcepos

Length of output: 1152


🏁 Script executed:

head -20 app/Controllers/Config.php

Repository: opensourcepos/opensourcepos

Length of output: 590


🏁 Script executed:

rg -B5 -A10 "function post" app/Controllers/Config.php | head -80

Repository: opensourcepos/opensourcepos

Length of output: 4007


🏁 Script executed:

rg "request->getPost|validate|sanitize" app/Controllers/Config.php | head -20

Repository: opensourcepos/opensourcepos

Length of output: 2049


🏁 Script executed:

grep -n "batch_save" app/Controllers/Config.php

Repository: opensourcepos/opensourcepos

Length of output: 1534


🏁 Script executed:

sed -n '417,435p' app/Controllers/Config.php

Repository: opensourcepos/opensourcepos

Length of output: 1112


Return a CI4 response and add input validation to postSaveAppearance().

Line 417 declares void and line 431 uses echo json_encode(), bypassing the framework response pipeline. All other postSave*() methods in this controller return ResponseInterface via $this->response->setJSON(). Additionally, input fields lack sanitization that other methods apply (e.g., FILTER_SANITIZE_*, parse_decimals(), htmlspecialchars()).

Proposed fix
-    public function postSaveAppearance(): void
+    public function postSaveAppearance(): ResponseInterface
     {
         $batch_save_data = [
             'theme'                      => $this->request->getPost('theme'),
             'login_form'                 => $this->request->getPost('login_form'),
             'notify_horizontal_position' => $this->request->getPost('notify_horizontal_position'),
             'notify_vertical_position'   => $this->request->getPost('notify_vertical_position'),
             'color_mode'                 => $this->request->getPost('color_mode'),
             'config_menu_position'       => $this->request->getPost('config_menu_position'),
             'responsive_design'          => $this->request->getPost('responsive_design') != null
         };
 
         $success = $this->appconfig->batch_save($batch_save_data);
 
-        echo json_encode(['success' => $success, 'message' => lang('Config.saved_' . ($success ? '' : 'un') . 'successfully')]);
+        return $this->response->setJSON([
+            'success' => $success,
+            'message' => lang('Config.saved_' . ($success ? '' : 'un') . 'successfully')
+        ]);
     }

Add input sanitization/validation filters to POST fields (review similar methods like postSaveInfo() and postSaveGeneral() for patterns).

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Controllers/Config.php` around lines 417 - 432, Update postSaveAppearance
to return a ResponseInterface and stop using echo/json_encode; use
$this->response->setJSON(...) like other postSave* methods. Before calling
$this->appconfig->batch_save, sanitize and validate each POST input retrieved
via $this->request->getPost (follow patterns from postSaveInfo() and
postSaveGeneral() — e.g., apply appropriate filter flags or helper functions
such as FILTER_SANITIZE_* for strings, parse_decimals() for numeric inputs, and
htmlspecialchars() where needed) and build $batch_save_data from the cleaned
values; keep the success message construction but return it with
$this->response->setJSON(['success'=>$success,'message'=>...]).

Comment on lines +420 to +426
'theme' => $this->request->getPost('theme'),
'login_form' => $this->request->getPost('login_form'),
'notify_horizontal_position' => $this->request->getPost('notify_horizontal_position'),
'notify_vertical_position' => $this->request->getPost('notify_vertical_position'),
'color_mode' => $this->request->getPost('color_mode'),
'config_menu_position' => $this->request->getPost('config_menu_position'),
'responsive_design' => $this->request->getPost('responsive_design') != null

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.

⚠️ Potential issue | 🟠 Major

Validate/sanitize appearance inputs before persisting config.

Lines 420-426 save raw POST values (theme, login_form, notify positions, color_mode, config_menu_position) with no constraints. Please whitelist/validate allowed values before batch_save.

As per coding guidelines, {app/Controllers/**/*.php,app/Models/**/*.php}: Validate and sanitize all user input.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/Controllers/Config.php` around lines 420 - 426, The appearance fields
being saved directly from $this->request->getPost (theme, login_form,
notify_horizontal_position, notify_vertical_position, color_mode,
config_menu_position, responsive_design) must be validated and sanitized before
calling batch_save; update the Config controller method that builds the $data
array (the code around the batch_save call) to whitelist allowed values for each
field (e.g., allowed theme names, login_form types, color_mode enums, menu
positions, and allowed positions for notifications), coerce responsive_design to
a boolean, reject or default unknown values, and escape/normalize strings as
needed; ensure these validated values are used in the array passed to batch_save
and add unit checks/unit tests where appropriate.

jekkos pushed a commit that referenced this pull request Apr 15, 2026
- Fix string interpolation in data-href attributes (use double quotes for PHP variable interpolation)
- Add missing name attributes to message_config.php form inputs (msg_uid, msg_pwd, msg_src)
- Fix HTML tag mismatch in profile.php (</a> to </button>)
- Add modal-dlg class to buttons for proper modal dialog handling
- Add missing IDs for delete/generate_barcodes buttons in item_kits/manage.php
- Fix esc() wrapping around lang() calls where inappropriate
- Fix disabled attribute rendering in dinner_tables.php
- Fix date format bug in daterangepicker.php (use timeformat instead of dateformat for time component)
- Fix JavaScript selector fallback logic in bs-tab_anchor_linking.js
- Add Bootstrap guard in bs-tooltips.js to prevent errors when Bootstrap JS is not loaded
@BudsieBuds
BudsieBuds marked this pull request as draft May 4, 2026 16:22
@BudsieBuds
BudsieBuds force-pushed the bootstrap-5 branch 2 times, most recently from 2cd5edf to 91c9286 Compare May 4, 2026 21:11
@BudsieBuds

BudsieBuds commented May 8, 2026 •

Copy link
Copy Markdown
Member

@BudsieBuds i have changed the protection rules and merged your changes. Btw I continued your work on bootstrap 5 in a new branch, but have not taken it further for now.

I ran it through coderabbit and the agents fixed any issue they found. But no further validation was done #4445

@jekkos Saw your comment in #4530 and wanted to follow up here. I don't think the work continued in a new branch, it looks like everything is still happening in the same branch I was working on. I reviewed the AI suggestions, but most tried to partially convert BS3 to BS5 in files I hadn't converted yet, so that didn't really help. It did catch a few minor issues, which I fixed.

I've updated and rebased the branch. Most changes work well, some parts are still experimental or untouched. The main blocker right now is the modals, only the profile modal works. The others don't initialize yet, and I'm still looking for the right approach to get them working.

Edit: solved the modal problem. Working on an update.

@jekkos

jekkos commented May 13, 2026

Copy link
Copy Markdown
Member Author

Hi @BudsieBuds, regarding your comment about modal dialogs - I've reviewed the branch and addressed several issues related to modals:

Modal dialog fixes applied in this branch:

  1. Added missing modal-dlg class to buttons that trigger modals:

    • attributes/manage.php
    • cashups/manage.php
    • expenses/manage.php
    • expenses_categories/manage.php
    • item_kits/manage.php - also added missing id="delete" and id="generate_barcodes"
    • items/manage.php
    • people/manage.php
    • sales/register.php
    • giftcards/manage.php
    • taxes/tax_rates.php
  2. Fixed data-href string interpolation - Single quotes were preventing PHP variable interpolation:

    • Changed '$controller_name/view' → "$controller_name/view"
    • Added proper esc() wrapping where needed
  3. Fixed Bootstrap 5 compatibility (bs-tab_anchor_linking.js, bs-tooltips.js):

    • Added guard for window.bootstrap existence before calling new bootstrap.Tab()
    • Fixed selector logic for tab anchors
  4. Bootstrap Dialog library - The codebase uses bootstrap3-dialog which still uses Bootstrap 3 patterns internally. It's working with Bootstrap 5 CSS, but you may want to consider migrating to a Bootstrap 5-compatible modal library like bootstrap-show-modal in the future (last updated May 2025 vs bootstrap3-dialog last updated March 2017).

The dialog_support.init() in manage_tables.js correctly binds to .modal-dlg elements and uses BootstrapDialog.show() to create modals dynamically. The main modal functionality should now be working.

Let me know if there are specific modals still not working and I can investigate further.

@BudsieBuds

Copy link
Copy Markdown
Member

Thanks for the detailed information. As stated, I had already resolved the issue. It indeed came down to dialog_support.init() within manage_tables.js. But I appreciate you taking the time to review everything and document the fixes.

@jekkos

jekkos commented Jun 29, 2026

Copy link
Copy Markdown
Member Author

Fyi, this skill might be useful for us to improve general ui a bit further https://github.com/nextlevelbuilder/ui-ux-pro-max-skill

Have not tried it yet and curious to see how well it works with an existing codebase

- replaced glyphicons with bootstrap-icons
- work in progress build of conversion from bootstrap 3 to 5

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants