Gabriel Csapo
beb5ae1737
[chore] adds ember-template-lint and fixes all fixable issues ( #2238 )
...
no issue
- This will help with the octane migration and you can still run the lint rules even when they are todos. (Checkout the docs at 158b119667/docs/todos.md
) The good news is any new code will be checked against the recommended config.
- I fixed all the auto fixable things we could get in this PR as well
2022-02-02 16:09:43 +00:00
Rishabh
9c00a21b55
Fixed enter causing new offer screen to redirect
...
closes https://github.com/TryGhost/Team/issues/1215
2021-11-10 17:46:58 +05:30
Peter Zimon
4e9ea71c80
Fixed offer duration month error positioning
2021-10-22 16:33:25 +02:00
Peter Zimon
df80cc091a
Made offer Archive less scary
2021-10-22 11:51:19 +02:00
Peter Zimon
cbfca5f23f
Updated offer durations copy and order
2021-10-22 11:04:31 +02:00
Peter Zimon
e893369f96
Fixed input field alignment issue for offer value
2021-10-21 23:12:07 +02:00
Peter Zimon
79a40d2592
Responsive fixes for offers details
2021-10-21 22:49:13 +02:00
Rishabh
c69f3a4035
Updated labels in offer screens when multiple tiers is disabled
...
refs https://github.com/TryGhost/Team/issues/1162
Removes tier name from labels when multiple tiers is disabled
2021-10-21 22:59:16 +05:30
Peter Zimon
328a59466c
Making archive offer button less scary
2021-10-21 13:56:30 +02:00
Peter Zimon
24b51d7f77
Copy updates for Offers
2021-10-20 10:10:09 +02:00
Peter Zimon
7e28e2f173
Offer details screen refinements
...
- changed order of URL and description
- added "Read only" indication to discount info
- added default placeholder for URL field
2021-10-19 15:58:22 +02:00
Rishabh
21847b822c
Fixed offer ui updating offer values directly on input change
...
no refs
- without marking input fields in template as `readonly` value, it updates the value directly on any change which is undesirable and causes side-effects in actual update of property
2021-10-19 13:39:16 +05:30
Rishabh
eddeb07a52
Added error handling and validation for offer
...
closes https://github.com/TryGhost/Team/issues/1159
- validates offer fields before save client-side
2021-10-19 13:05:18 +05:30
Rishabh
bb575dbb87
Added portal preview to offer screen
...
refs https://github.com/TryGhost/Team/issues/1137
- adds new portal preview using portal offer url on offer screen
- adds new utility to calculate portal offer preview url from data
- fixed tiny bug with discount type currency not shown correctly
2021-10-18 14:31:29 +05:30
Peter Zimon
be5ef010a5
Offers archive/active refinements
...
- added empty archive screen
- added indication of archive offer on detail page
- set default dropdown style to non-selected
- removed archive button for new offers
2021-10-15 12:49:42 +02:00
Peter Zimon
2234b04a56
Fix form group bottom margins
2021-10-14 17:11:29 +02:00
Rishabh
2645bb895c
Updated copy for archive/reactivate offers
...
refs https://github.com/TryGhost/Team/issues/1148
2021-10-14 00:53:31 +05:30
Rishabh
88049f1692
Updated offers list to filter on archived offers
...
refs https://github.com/TryGhost/Team/issues/1136
- adds dropdown for active/archived offers selection
- wires active/archived offers on list screen to API
- filters offers list on archived/active based on selection
2021-10-13 21:23:30 +05:30
Rishabh
667a4b6e78
Added (un)archive button to offer detail screen
...
refs https://github.com/TryGhost/Team/issues/1136
- adds option to archive/unarchive an offer
- adds new modals for confirmation of archive or unarchive of offer
- wired (un)archiving of offers to API
2021-10-13 21:23:30 +05:30
Rishabh
7ef2b08883
Fixed offer percentage amount not getting set
...
no refs
2021-10-08 19:15:56 +05:30
Rishabh
4bbbea29ed
Refined fixed discount type amount UI
...
refs https://github.com/TryGhost/Team/issues/1084
refs https://github.com/TryGhost/Team/issues/1085
- uses price helper to show Stripe amount instead of manual calculation
2021-10-08 18:50:18 +05:30
Peter Zimon
600edc0d60
Updated percentage/amount selector for offers
2021-10-08 12:48:41 +02:00
Rishabh
bbaad743a3
Refined offer detail screen
...
refs https://github.com/TryGhost/Team/issues/1085
- adds unsaved changes modal for navigating away
- adds link url for offer redemption
- updated amount calculation for fixed amount offers (1000 for 10 USD)
- disabled discount info section for existing offers
2021-10-08 01:43:59 +05:30
Peter Zimon
1861c8b4eb
Copy update for offer details
2021-10-07 12:17:50 +02:00
Peter Zimon
b5d30ba92e
Temporarily removed Archive option for offers
2021-10-07 12:16:30 +02:00
Peter Zimon
e244304538
Offer list and detail improvements
...
- added icon to offer value
- added link popup to list
- renamed "Delete offer" to "Archive offer"
2021-10-07 11:21:53 +02:00
Peter Zimon
b942029cc9
Added dynamic currency to offers form
2021-10-06 17:49:45 +02:00
Rishabh
31e4b77525
Added initial wiring for offer screens
...
refs https://github.com/TryGhost/Team/issues/1084
refs https://github.com/TryGhost/Team/issues/1085
- adds model/validator/config and router for offers
- updates template for offer list and detail with dynamic values
- updated route handling for offer list and creation
- wires offer data from API to list and detail pages
2021-10-06 20:01:25 +05:30
Peter Zimon
611fbf5926
Added static URL to offers detail screen
2021-10-05 15:03:39 +02:00
Peter Zimon
24d28f3d79
Added static duration to Offers edit
2021-10-05 14:34:19 +02:00
Peter Zimon
84c9123bfd
Added mock content for offers list help
2021-10-04 16:17:32 +02:00
Peter Zimon
5343b9f6b5
Added unit to offer value
2021-10-04 15:21:28 +02:00
Peter Zimon
96ec92a47b
Update offer details structure
...
- Added static UI to offer details page
- Deleted offer modal
2021-10-04 15:00:41 +02:00
Peter Zimon
390b2b136f
Added base files for Offers structure
...
- Moving Offers outside settings to main menu
- Moving Integrations and Staff to settings
2021-10-04 13:01:12 +02:00