inline_forms 8.1.19 → 8.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/inline_forms/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 54737a532af366dc98f9a6babab3c558e8aa2b14cc878d2976be8fdefe01d64e
|
|
4
|
+
data.tar.gz: 6579a4d04cb27e27a707393ae51ba4284ef41fc717b2beda53fd0a89c3bc14a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6666f86e1cc80c11405231b91bcff57241b02f764fd7305b8dca54f5da6f468e721c2bdc081d45dd78dde5cb7049b63695b65176e53e97dc052f8c8a7d0a1c06
|
|
7
|
+
data.tar.gz: 9c41aed81b79dac89a8daca2b5964720cc18fae1fcc2a3b79f05c3c16b067c8fe8c74d0ad758ee5bf9edeb82ade4bdfa6f3e502ed0feee6e6f4937d90c9d9f87
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@ All notable changes to this project are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [8.1.20] - 2026-05-29
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **`price` and `amount` showcase labels now render a non-empty validation-hint tooltip, like `count`.** On the `FormElementShowcase` show panel the `price` (`decimal_field`, bare `validates :price, numericality: true`) and `amount` (`money_field`, money-rails `monetize :amount_cents`) labels rendered the `has-tip` trigger but an **empty** `validation-hints-source` div, so hovering showed nothing. The root cause was a dead-code bug in the companion **validation_hints 8.1.20** gem: a bare `numericality: true` emitted zero hint messages (the `numericality.must_be_a_number` base key was computed but then skipped). With validation_hints fixed, `price` now shows `["must be a number"]`, and money-rails' `MoneyValidator` on `:amount` now maps to a new `"must be a valid amount"` hint. `count` is unchanged behaviorally but now also lists `"must be a number"` ahead of `"must be an integer"`; `latitude`/`longitude` range hints are likewise prefixed with `"must be a number"`.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- **`decimal_field` / `money_field` edit inputs deliberately remain `text_field_tag` (not `number_field_tag`).** `integer_field_edit` uses `number_field_tag` (`<input type="number">`, which adds browser-native validation popups on bad input), but switching `decimal_field`/`money_field` to a numeric input is unsafe: a strict `type="number"` rejects valid fixed-point decimals rendered via `BigDecimal#to_s("F")` and the money-rails currency string forms (`"99.95"`, grouped/symbol input). Cross-field consistency for malformed input is instead provided by the server-side validation hint (label tooltip) + the 8.1.19 "edit stays open on a failed save" behavior, which is retained.
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- **Regression test:** `example_app_showcase_validation_hints_test.rb` GETs the `FormElementShowcase` "Hints demo" show panel and asserts the hidden `validation-hints-source` div for `count`, `price`, and `amount` each contains a populated `<ul class="validation-hints-list">` (e.g. `"must be a number"` for `price`, `"must be a valid amount"` for `amount`) — i.e. not the empty source div the pre-8.1.20 bug produced.
|
|
20
|
+
|
|
7
21
|
## [8.1.19] - 2026-05-28
|
|
8
22
|
|
|
9
23
|
### Fixed
|
data/lib/inline_forms/version.rb
CHANGED