Openbravo Issue Tracking System - POS2
View Issue Details
0057349POS2POSpublic2024-12-02 15:402025-03-06 18:53
meriem_azaf 
meriem_azaf 
normalmajorhave not tried
closedfixed 
5
 
25Q2 
approved
No
No
0057349: Platform: invalid obc2AppMode-null in scss class of body tag in the login screen
The scss class of the body tag has an obc2AppMode-null class which is invalid. I checked live builds and it happens for pos2 as well as ssms, both installed separately or together on one server.

To make our styling specific for the application we would need a class like obc2AppMode-SSMS (or obc2AppMode-POS2 I guess).
-
No tags attached.
Issue History
2024-12-02 15:40meriem_azafNew Issue
2024-12-02 15:40meriem_azafAssigned To => Retail
2024-12-02 15:40meriem_azafOBNetwork customer => No
2024-12-02 15:40meriem_azafTriggers an Emergency Pack => No
2024-12-02 15:40meriem_azafAssigned ToRetail => meriem_azaf
2024-12-02 15:40meriem_azafStatusnew => scheduled
2024-12-03 13:45hgbotMerge Request Status => open
2024-12-03 13:45hgbotNote Added: 0172925
2025-03-06 18:53hgbotMerge Request Statusopen => approved
2025-03-06 18:53hgbotResolutionopen => fixed
2025-03-06 18:53hgbotStatusscheduled => closed
2025-03-06 18:53hgbotNote Added: 0176537
2025-03-06 18:53hgbotFixed in Version => 25Q2
2025-03-06 18:53hgbotNote Added: 0176538

Notes
(0172925)
hgbot   
2024-12-03 13:45   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1675 [^]
(0176537)
hgbot   
2025-03-06 18:53   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1675 [^]
(0176538)
hgbot   
2025-03-06 18:53   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 1e513362e04f2407f8319b40a9adc681ab9ffa89
Author: meriem azaf <m.azaf@orisha.com>
Date: 06-03-2025 17:45:59
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/commit/1e513362e04f2407f8319b40a9adc681ab9ffa89 [^]

Fixes ISSUE-57349: Invalid obc2AppMode-null in scss class of body tag in the login screen

The scss class of the body tag has an obc2AppMode-null class is invalid in pos2 as well as ssms.

To fix this, we tried to get the default application mode from the json file and put it if the one from session is null.

---
M web-jspack/org.openbravo.core2/src/components/ThemeProvider/ThemeProvider.jsx
M web-jspack/org.openbravo.core2/src/components/ThemeProvider/__test__/ThemeProvider.test.jsx
M web-jspack/org.openbravo.core2/src/components/ThemeProvider/stories/ThemeProvider.stories.jsx
---