- Lunar version: 1.5.0-beta.6
- Laravel Version: 12.62.0
- PHP Version: 8.4.22
- Database Driver & Version: MariaDB 10.11.18
Expected Behaviour:
Boolean values stored in an order's meta data should be displayed clearly in the Additional Information section of the admin panel.
For example, true and false values could be displayed as Yes and No, or their localized equivalents. This would make the values easier to understand for non-technical shop administrators.
Actual Behaviour:
When a boolean value is stored in an order's meta data:
true is displayed as 1.
false is displayed as an empty value, with only the key being visible.
The empty value shown for false can easily be mistaken for missing data. Additionally, displaying true as 1 may not be clear to shop owners and other non-technical users who manage the admin panel.
Steps To Reproduce:
-
Store both a true and a false boolean value in an order's meta data. For example, the meta data stored in the database may look like this:
{
"express_shipping": true,
"shipping_zone": "UK"
}
-
Open the order in the Lunar admin panel.
-
Navigate to the Additional Information section.
-
Observe that the true value is displayed as 1, while the false value is displayed as an empty value.
Expected Behaviour:
Boolean values stored in an order's
metadata should be displayed clearly in the Additional Information section of the admin panel.For example,
trueandfalsevalues could be displayed as Yes and No, or their localized equivalents. This would make the values easier to understand for non-technical shop administrators.Actual Behaviour:
When a boolean value is stored in an order's
metadata:trueis displayed as1.falseis displayed as an empty value, with only the key being visible.The empty value shown for
falsecan easily be mistaken for missing data. Additionally, displayingtrueas1may not be clear to shop owners and other non-technical users who manage the admin panel.Steps To Reproduce:
Store both a
trueand afalseboolean value in an order'smetadata. For example, themetadata stored in the database may look like this:{ "express_shipping": true, "shipping_zone": "UK" }Open the order in the Lunar admin panel.
Navigate to the Additional Information section.
Observe that the
truevalue is displayed as1, while thefalsevalue is displayed as an empty value.