Commit Graph

39 Commits

Author SHA1 Message Date
discoursebot 9a9b5a79c1
DEV: Update CI setup and fix linting issues (#119)
* DEV: Update CI workflows
* DEV: Update deps
* DEV: Fix template linting

Co-authored-by: discoursebuild <build@discourse.org>
Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2022-06-11 12:54:30 +02:00
Jarek Radosz 21d71e09fc
DEV: Fix linting errors (#83)
Template lint errors and broken rubocop linting.
2021-07-04 21:53:55 +02: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 9c46794e80
DEV: Remove deprecations & improve error handling (#12)
- Replace deprecated methods on client
- Fix broken dropdowns due to select kit 2 upgrade
- Graceful error handling when Stripe keys are not configured but plugin enabled
2020-05-28 10:32:57 -05:00
Justin DiRose fb4fac197b
REFACTOR: Use models to store data (#11)
* REFACTOR: Use api to add subscribe link

* FIX: I18n subscribe link

* REFACTOR: Use models to store some data

This enables the plugin to show only subscription information which was
generated on Discourse. Subscription data storage is limited to the
external identifiers Stripe generates so we can interact with the API.

* DEV: Test/linting fixes/rake task
2020-05-22 11:20:05 -05:00
Rimian Perkins b79eed42ef redirect and rm activity connector 2019-12-16 10:47:59 +11:00
Rimian Perkins 55f4592033 subscription and billing templates 2019-12-16 10:42:55 +11:00
Rimian Perkins 8264930e92 user activity link to payments 2019-12-13 13:44:25 +11:00
Rimian Perkins 4b334a69b5 remove subscribe index 2019-12-13 11:54:32 +11:00
Rimian Perkins 21b8340f4f rename the translations 2019-12-04 09:29:13 +11:00
Rimian Perkins 08cbff0c1c change engine mount point and base path in jsapp 2019-12-03 10:29:44 +11:00
Rimian Perkins 4a812ceff6 toggle the subscribe button 2019-11-06 20:43:16 +11:00
Rimian Perkins 7edb0fe39b list subscriptions 2019-10-29 11:43:32 +11:00
Rimian Perkins edd6449105 basic user billing page 2019-10-25 13:23:32 +11:00
Rimian Perkins bb31deae89 basic subscribe page 2019-10-10 13:52:55 +11:00
Angus McLeod 45ece34200 Add donations causes 2018-09-22 14:03:30 +10:00
Angus McLeod 8453d5cc03 various 2018-06-25 18:14:50 +10:00
Chris Beach c6f416788c Hide nav link if plugin disabled 2018-01-17 23:10:15 +00:00
Chris Beach 8fdd5dad27 Revert removal of donate menu item 2017-10-11 23:58:22 +01:00
Chris Beach 6814c80540 Stripe Checkout can be created via BBCode markup 2017-10-09 08:39:21 +01:00
Rimian Perkins 8b21d44bc9 Change the route to something meaningful 2017-05-18 14:57:27 +10:00
Rimian Perkins 92e5bf76d7 add anon payments 2017-03-20 12:24:39 +11:00
Rimian Perkins a80272caff title and navigation item can be different 2017-03-13 15:28:50 +11:00
Rimian Perkins 17d9fe8289 fix path 2017-03-07 11:17:33 +11:00
Rimian Perkins 39bbde5760 only show link for current user 2017-03-06 15:38:07 +11:00
Rimian Perkins 011ae1b2be add an extra nav item 2017-03-06 14:44:11 +11:00
Rimian Perkins 8eea4337af use jquery to render a link where there is no plugin outlet 2017-03-02 16:39:05 +11:00
Rimian Perkins 65317324f2 only show the link when the plugin is enabled 2017-02-27 12:52:00 +11:00
Rimian Perkins 97e4497cc8 acceptance test link 2017-02-24 13:09:27 +11:00
Rimian Perkins 4eef7131ed check payment link exists 2017-02-14 10:19:59 +11:00
Rimian Perkins 3f32c212d8 rename to "payments" 2017-02-14 10:11:10 +11:00
Rimian Perkins c0529c5bdb a child page at user/:username/choice 2017-02-10 15:10:47 +11:00
Rimian Perkins 90ed0e03df rename the component 2017-02-10 12:11:59 +11:00
Rimian Perkins b2321ba965 move payment button into choice page and make a link 2017-02-09 12:17:25 +11:00
Rimian Perkins 35ac1bc3c3 Transaction works. Still need to tidy up response 2017-02-02 11:49:22 +11:00
Rimian Perkins df7607043a stripe button requests mounted engine 2017-01-31 14:21:27 +11:00
Rimian Perkins f6c9977c7a initial stripe checkout button that posts to staging 2017-01-30 12:35:04 +11:00