Ghost/ghost
Kevin Ansfield 581f0b34b4
🐛 Fixed missing validation of offer amounts in the admin panel (#16022)
closes https://github.com/TryGhost/Team/issues/2380

- improved offer validation for `amount` field to cover all type/amount cases
- added validate-on-blur to the amount field to match our standard validation behaviour
- added re-validation of the amount field when the type is changed and the amount gets reset
- removed the internal parsing of a decimal trial days entry to an integer so the field value matches what is set internally and we let the user know that partial trial days are not supported

Non-user-facing refactors:
- renamed `_saveOfferProperty` to `_updateOfferProperty` to better reflect what it does
- fixed missing indentation for conditional blocks in the offer template
2023-01-03 09:23:11 +00:00
..
adapter-manager Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
admin 🐛 Fixed missing validation of offer amounts in the admin panel (#16022) 2023-01-03 09:23:11 +00:00
api-framework Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
api-version-compatibility-service Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
audience-feedback Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
bootstrap-socket Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
constants Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
core 🐛 Fixed tiers order by monthly_price (#16013) 2023-01-03 12:59:18 +04:00
custom-theme-settings-service Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
data-generator Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
domain-events Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
email-analytics-provider-mailgun Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
email-analytics-service Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
email-content-generator Update dependency fs-extra to v11 2022-12-13 10:59:55 +07:00
email-events Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
email-service Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
email-suppression-list Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
express-dynamic-redirects Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
extract-api-key Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
html-to-plaintext Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
importer-revue Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
job-manager Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
link-redirects Update dependency @types/express to v4.17.15 2022-12-14 07:33:05 +07:00
link-replacer Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
link-tracking Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
magic-link Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
mailgun-client Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
member-attribution Updated @tryghost dependencies (#16005) 2022-12-14 11:18:55 +07:00
member-events Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
members-api Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
members-csv Update dependency fs-extra to v11 2022-12-13 10:59:55 +07:00
members-events-service Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
members-importer Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
members-ssr Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
minifier Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
mw-api-version-mismatch Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
mw-cache-control Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
mw-error-handler Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
mw-session-from-token Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
mw-update-user-last-seen Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
mw-vhost Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
oembed-service Update metascraper to v5.32.4 2023-01-03 04:07:06 +00:00
offers Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
package-json Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
payments Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
portal Released Portal v2.22.0 2022-12-14 16:12:20 +05:30
referrers Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
security Updated @tryghost dependencies (#16005) 2022-12-14 11:18:55 +07:00
session-service Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
settings-path-manager Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
staff-service Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
stats-service Update dependency sqlite3 to v5.1.4 2022-12-13 10:59:30 +07:00
stripe Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
tiers Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
update-check-service Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
verification-trigger Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
version-notifications-data-service Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00