63 Commits

Author SHA1 Message Date
Rafael dos Santos Silva
1834095b23
DEV: Dart Sass deprecation (#150) 2023-02-07 16:25:47 -03:00
David Taylor
7fb0936e5c
DEV: Update eslint-config-discourse, use prettier for hbs (#146) 2023-01-04 13:39:58 +01:00
Bianca Nenciu
c00e539304
UX: Make styling consistent with everything else (#134) 2022-10-03 16:14:32 +03:00
Faizaan Gagan
945af4f140
FIX: Allow user to update card details for recurring subscriptions (#123)
* add new route for card update

* create backend route

* update label

* basic functionality working

* ran rubocop

* added rspec tests for functionality

* make payment_method param compulsory

* fixed js linting

* improve client side error handling

* improve server side error handling

* improved update card page UI

* improve button UI for user subscriptions page

* give feedback to user about save status

* remove heading from last column

* fix padding on edit/delete buttons for update table

Co-authored-by: Blake Erickson <o.blakeerickson@gmail.com>
2022-07-05 19:53:27 -06:00
Penar Musaraj
1c104da947
DEV: Use CSS custom properties for colors (#82) 2021-06-24 09:19:56 -04:00
Justin DiRose
d660149ad2
UX: Hide campaign button on goal completion (#81) 2021-06-22 11:26:28 -05:00
Jordan Vidrine
beb73b58f3
FEATURE: Add fireworks + gradient animation to campaign success banner (#77) 2021-06-21 09:01:35 -05:00
Jordan Vidrine
a4f36e4966
Campaign topic footer (#72)
* UX: Restyle banner, add topic footer functionality, other updates
2021-06-10 16:02:54 -05:00
Justin DiRose
791c7fa7a5
UX: Improve mobile campaign flow (#69)
1. Improve mobile checkout styling

These are pretty simple changes. The buttons were crammed together and not wrapping properly on mobile if there were more than a few. Also the padding was weird and causing text to overflow out of the #main-outlet on phone viewports.
2. Renders the top campaign banner on mobile even if sidebar is selected

In the original PR, we refactored using the connector JS out since we now have more Ember operators; however, we needed some more complex logic that couldn't be done in the template. Basically, we choose which outlet to render the component in based on two criteria:

    If the setting is set to sidebar or top
    If we're on a mobile device

Previously, if the site showed the banner on the sidebar and the user browsed to mobile, they wouldn't see a banner at all. This PR changes the logic to use the top outlet on mobile, even if the sidebar is selected.
2021-06-08 12:52:29 -05:00
Justin DiRose
f596a0f78a
FEATURE: Campaigns (#67)
Co-authored-by: Jordan Vidrine <jordan@jordanvidrine.com>

See https://github.com/discourse/discourse-subscriptions/pull/67 for the full description.
2021-06-02 13:15:03 -05:00
Justin DiRose
7f84cee940
UX: Improve usability of purchase page (#54)
Commit does 3 things:

    Remove the duplicative currency abbreviation in favor of the currency symbol alone
    Reorders plans by the cost in ascending order.
    Fixes a flexbox button bug
2021-02-16 12:07:53 -06:00
Justin DiRose
0126b12761
DEV: Remove unused CSS selector (#55) 2021-02-16 11:54:21 -06:00
Justin DiRose
ab9b81471b
UX: Adjust repurchase styles to look better (#53)
Suggested here: https://meta.discourse.org/t/subscriptions-suggestions-for-interface-improvements/177970

Changes order and alignment so it makes a bit more sense in the UX of the /s route. Otherwise it looks too cluttered. This specifically impacted products that can be repurchased.
2021-02-15 15:17:45 -06:00
Justin DiRose
400313cded
FEATURE: Allow creation of coupons in admin panel (#43)
Adds full support to create coupon/promo codes in the Admin > Plugins > Subscriptions section of the plugin. The Create Coupon button opens a form on the same page, and the active checkboxes toggle the active status of the coupon code.
2021-01-13 11:47:22 -06:00
Justin DiRose
b950926538
FIX: Payments could not complete (#28)
Due to putting the Stripe Elements HTML inside an if block in the
template, this caused state to be funky. As a result, calling
`this.stripe.createToken` failed to return a promise. Opted instead to
hide the elements via CSS for anonymous users to prevent this
showstopping bug.
2020-10-29 10:21:14 -05:00
Justin DiRose
83002fab3c
FEATURE: New styling of product page 2020-07-28 12:46:59 -05:00
Justin DiRose
0a244111bc
FIX: Buttons out of alignment on some browsers 2020-07-28 11:49:15 -05:00
Rimian Perkins
49ac965b24 tidy some scss class names etc 2019-12-18 08:47:01 +11:00
Rimian Perkins
38c444c489 tidy scss a bit 2019-12-16 13:59:58 +11:00
Rimian Perkins
57fb508514 buttons for selecting price and one time payment 2019-12-13 10:41:14 +11:00
Rimian Perkins
d3eed3546d test button click 2019-12-06 14:33:38 +11:00
Rimian Perkins
2ce314fc8d initial payment buttons component 2019-12-06 13:52:03 +11:00
Rimian Perkins
7db60e2c4b tidy up the user subscription list 2019-12-05 14:59:07 +11:00
Rimian Perkins
6d71d26574 rename assets 2019-12-03 11:51:18 +11:00
Rimian Perkins
709aebb593 set the currency in the plan 2019-11-30 16:39:28 +11:00
Rimian Perkins
b4429e4473 rm extra line prettier is complaining about 2019-11-29 15:26:33 +11:00
Rimian Perkins
947ec4338e css the card 2019-11-29 15:08:51 +11:00
Rimian Perkins
3999e1f7fd style the product page a bit 2019-11-14 11:13:12 +11:00
Rimian Perkins
e3ac6f7dac date format and product description 2019-11-01 12:30:19 +11:00
Rimian Perkins
bec2d57920 pretty 2019-10-31 13:31:24 +11:00
Rimian Perkins
dbaa30ba18 user cancels subscription 2019-10-31 10:01:41 +11:00
Rimian Perkins
87c83abcd3 add basic invoices page 2019-10-28 14:05:58 +11:00
Rimian Perkins
1f7549060d fix eslint and rubocop 2019-10-25 14:00:59 +11:00
Rimian Perkins
c26ce1fc80 plans are child of product 2019-10-22 15:45:51 +11:00
Rimian Perkins
b727347b6c basic plans form 2019-10-15 09:40:49 +11:00
Rimian Perkins
0a6ade7ab9 stylin, translations 2019-10-08 22:26:58 +11:00
Rimian Perkins
813937dd22 intial load more 2019-09-14 17:04:02 +10:00
Rimian Perkins
6fe149c4a5 basic admin interface 2019-09-14 12:56:28 +10:00
Rimian Perkins
c6555ccc63 some css 2019-09-12 19:04:10 +10:00
Rimian Perkins
22af03a42e add billing to confirm dialog 2019-09-12 18:51:40 +10:00
Rimian Perkins
926aee79bb make the payment section a different colour 2019-09-12 18:34:00 +10:00
Rimian Perkins
ba73e688f2 validate billing 2019-09-12 17:47:08 +10:00
Rimian Perkins
e2cec16b99 forms and settings 2019-09-12 16:16:38 +10:00
Rimian Perkins
1add7e9cdf Fix broken test and form wrap 2019-09-12 15:52:30 +10:00
Rimian Perkins
fdd4d1ed5f yarn prettier 2019-09-12 07:14:16 +10:00
Rimian Perkins
df1d5a3181 the form submits but an ajax error happens 2019-09-11 21:52:04 +10:00
Rimian Perkins
02c9ea873a add stylesheets 2019-09-11 21:14:48 +10:00
Rimian Perkins
78914e0511 Add new plugin files.
This gets the plugin running again without name collisions. A solid starting point
2019-09-11 13:19:07 +10:00
Rimian Perkins
0cb3a9acde format with prettier 2019-08-27 20:37:20 +10:00
Angus McLeod
794793f7c3 tweak 2019-04-03 13:15:01 +11:00