Commit graph

528 commits

Author SHA1 Message Date
Eric Schultz
5b21befe8e Migrate to use Money as the base of all monetary values in the event work 2021-02-24 18:10:10 -06:00
Eric Schultz
33210c1871 Use BigNumber for Money calculations 2021-02-24 17:34:08 -06:00
Eric Schultz
8c47573501 Rubocop controller concerns and specs 2021-02-24 16:18:43 -06:00
Eric Schultz
cdfafcdd1c Rubocop app/controllers/widget_controller.rb 2021-02-24 16:18:43 -06:00
Eric Schultz
9264297a51 Add super_admin? method to User 2021-02-19 11:34:40 -06:00
Eric Schultz
7f9e643915 Add validation for length of object_event_types 2021-02-18 14:53:06 -06:00
Eric Schultz
ff8420541e Change list of events to jsonb 2021-02-18 14:53:06 -06:00
Eric Schultz
6fd2ca346a Remove commented out code 2021-02-17 17:44:29 -06:00
Eric Schultz
0313b27b2e Correct the list of params that get passed to a supporter update controller call 2021-02-17 17:44:29 -06:00
Eric Schultz
a987b8f8f8 Add event listeners for supporter.* 2021-02-17 17:44:29 -06:00
Clarissa Borges
885bcee03a Fixing supporter and supporter note creation 2021-02-16 17:19:13 -06:00
Clarissa Borges
3f8f5559ab Creates ObjectEventListener and WebhookTransmitJob 2021-02-14 15:19:34 -06:00
Eric Schultz
7bab0ec5c5 Make init_builder do more 2021-02-13 16:14:54 -06:00
Eric Schultz
a538f25ecd WebhookAdapters are autoregistered 2021-02-13 16:03:54 -06:00
Clarissa Borges
095f241ae1 Creates ObjectEventHookConfig 2021-02-13 16:03:54 -06:00
Eric Schultz
fb03b49806 Simplify a builder expansion in SupporterNote 2021-02-13 14:48:50 -06:00
Eric Schultz
8bd3837b54 Correct the visibility of a few routes 2021-02-11 19:10:48 -06:00
Eric Schultz
a38937cadb Fix bug in refunds_controller 2021-02-11 19:10:48 -06:00
Eric Schultz
092f9baa7f Removed apparently unused CC specific SVG 2021-02-11 17:15:55 -06:00
Eric Schultz
dad2873314 Move some common elements of TransactionAssignments to a single module 2021-02-11 11:42:54 -06:00
Eric Schultz
d0197eb62e campaign_gift_purchase.* events can be published 2021-02-11 11:28:03 -06:00
Eric Schultz
a7244f97ec Fix for serialization bug in CampaignGiftOption 2021-02-11 11:28:03 -06:00
Eric Schultz
52817d29b9 campaign_gift.* events can be published 2021-02-11 11:28:03 -06:00
Eric Schultz
84ae414355 Adding callbacks and object_events 2021-02-11 11:28:03 -06:00
Eric Schultz
d27b0b66f4 Some of the model work done for CGP 2021-02-11 11:28:03 -06:00
Eric Schultz
6ab7473ef7 donation.* event publishing 2021-02-09 11:18:14 -06:00
Eric Schultz
a401f4bea4 Correct a tense bug in app/models/tag_master.rb 2021-02-09 11:03:45 -06:00
Eric Schultz
2ab6c9bf27 Add custom_field_definition.* events 2021-02-05 11:15:14 -06:00
Eric Schultz
4c1d7ddd4e Remove unused gmail integration 2021-02-04 12:22:36 -06:00
Eric Schultz
fae212b842 Remove unused coupon class 2021-02-04 12:08:26 -06:00
Eric Schultz
59ef8d1bde Remove latitude and longitude from database 2021-02-04 11:13:21 -06:00
Eric Schultz
16a6b63e05 Remove everything related to mapping nonprofits and supporters 2021-02-04 11:13:21 -06:00
Eric Schultz
ed177e03d6 Remove the use of coordinates in the dashboard since we're not actually creating them. 2021-02-04 11:13:21 -06:00
Eric Schultz
825feea620 Initial removal of geocoding, need to remove db 2021-02-04 11:13:21 -06:00
Eric Schultz
d47c80594c ticket.deleted is published 2021-02-04 10:58:38 -06:00
Eric Schultz
b7a8f16de6 ticket.updated object event now published 2021-02-04 10:58:38 -06:00
Eric Schultz
512672a174 Verifies that all the events related to ticket_creation are fired 2021-02-04 10:58:38 -06:00
Eric Schultz
09b5edaaf8 Ticket purchase json works correctly 2021-02-04 10:58:38 -06:00
Eric Schultz
a52b539449 Convert all the external uses of tag_master to tag_definitions 2021-02-02 11:58:10 -06:00
Eric Schultz
e6f83f388b Correct the tense of a method on SupporterNote 2021-02-01 17:40:34 -06:00
Eric Schultz
e806d8764f Create HoudIDs for stringy ids 2021-01-22 11:56:58 -06:00
Eric Schultz
cab6465e30 Support for SupporterAddress events and some Supporter events 2021-01-20 13:01:01 -06:00
Eric Schultz
6097ad68b7 Support for campaign_gift_option events 2021-01-17 18:05:43 -06:00
Eric Schultz
70d18591c3 Add support for supporter_note.* events 2021-01-17 17:08:52 -06:00
Eric Schultz
9aec278449 Create a current_supporter to include in controllers 2021-01-15 11:59:51 -06:00
Eric Schultz
f55a676bbf Move to_event method into a concern 2021-01-15 11:44:11 -06:00
Eric Schultz
e7c482bf3a Add support for 'event_discount.*' events 2021-01-14 11:32:59 -06:00
Eric Schultz
2893a2bf47 Add ticket_level object events 2021-01-13 11:10:18 -06:00
Eric Schultz
8c9477dab9 HoudiniEvent object value to 'object_event' (since we also have events) 2021-01-12 13:26:26 -06:00
Eric Schultz
5ae4f20637 EventPublisher Support for TagMaster events 2021-01-12 13:26:26 -06:00
Eric Schultz
7fb83b8657 Use the typescript version of semicolon eslint rule 2021-01-11 12:38:44 -06:00
Eric Schultz
79da440af2 Fix bug in credit_card.spec.ts 2021-01-06 17:15:20 -06:00
Eric Schultz
d68b68fb70 DirectUploadsController only accepts confirmed users 2021-01-06 17:15:20 -06:00
Eric Schultz
229c688664 Fix for add_template_helper being removed without announcement
Explained at: https://stackoverflow.com/questions/65528227/the-method-add-template-helper-does-not-seem-to-work-in-rails-6-1
2021-01-06 17:15:20 -06:00
Eric Schultz
93d41ec2f7 fix bug in loading peer-to-peer javascript pack 2021-01-06 17:15:20 -06:00
Eric Schultz
bdd32643db Add support for non-html authenticate_user! responses 2021-01-06 17:15:20 -06:00
Eric Schultz
3d92560e7a Use proxy-only urls for all ActiveStorage images 2021-01-06 17:15:20 -06:00
Eric Schultz
fcdd5bcbab Improve i18n-js generation and use 2020-11-24 17:02:45 -06:00
Eric Schultz
de840411fb Create a version of yup that uses useIntl 2020-11-24 13:00:40 -06:00
Eric Schultz
1bbb83c280 Fix bug preventing jest from ever finishing on build server 2020-11-10 16:52:26 -06:00
Eric Schultz
ed62f02b53 Fix a lint error in a spec file 2020-11-10 16:52:26 -06:00
Eric Schultz
c9a1bdb3e4 Fix an eslint for hooks issue 2020-11-10 16:52:26 -06:00
Eric Schultz
8fb92ef1ca Fix bug in loading countries in nonprofit_controller.rb 2020-10-26 19:03:50 -05:00
Eric Schultz
b423daed20 Fix cors bug on WidgetController 2020-10-26 18:18:54 -05:00
Eric Schultz
e8d439d63c Creating intl expected messages from yup is simpler 2020-10-24 19:49:23 -05:00
Eric Schultz
94f63f3b3c Translations regenerate at runtime when using webpack-dev-server or storybook 2020-10-24 19:02:19 -05:00
Eric Schultz
57af3b92ea Extract the Intl decorator for storybook 2020-10-24 19:02:19 -05:00
Eric Schultz
9a02e56800 Rename Intl so you can use normal react-intl interface but only use our module 2020-10-24 19:02:19 -05:00
Eric Schultz
1a87c097ab Convert from comma-dangle to @typescript-eslint/comma-dangle in eslint 2020-10-23 15:08:04 -05:00
Eric Schultz
edcb2613f1 Add @typescript-eslint/member-delimiter-style to eslint 2020-10-23 15:08:04 -05:00
Eric Schultz
c43eb07638 Add documentation to Money.isNegative 2020-10-23 15:08:04 -05:00
Eric Schultz
659c2eecc2 Add @typescript-eslint/member-ordering to eslint 2020-10-23 15:08:04 -05:00
Eric Schultz
aedb45e78b Fix warnings on components/tests/intl/index.tsx 2020-10-21 15:00:06 -05:00
Eric Schultz
203a62ac51 Fix some types which were set to any 2020-10-21 15:00:06 -05:00
Eric Schultz
2ff0c5460e Fix warning about Formik in jest tests 2020-10-21 13:48:09 -05:00
Eric Schultz
cba2acfe55 Reorganize HoudiniIntl 2020-10-20 17:08:34 -05:00
Eric Schultz
0fe9810f1b Make hooks a subdirectory of app/javascript 2020-10-20 17:08:34 -05:00
Eric Schultz
7f37a826fe Add max-width to .campaign-banner so it's responsive for mobile 2020-10-14 12:00:30 -05:00
Eric Schultz
807143fe65 Add the intl-polyfill for IE11 2020-10-09 11:47:39 -05:00
Eric Schultz
35402a0d18 Correct blocklist/allowlist language 2020-10-05 15:07:21 -05:00
Eric Schultz
0f0a0d2063 Add comma-dangle requirement for eslint 2020-09-30 13:23:39 -05:00
Eric Schultz
176f88a9c4 Fix supporter import bug 2020-09-01 21:32:32 -05:00
Eric Schultz
45bf8cb2c1 Create MoneyTextField 2020-08-10 16:06:30 -05:00
Eric Schultz
e1979d809f Add HoudiniIntl 2020-08-01 11:14:08 -05:00
Eric
ae0e3e0da0 Correct bug preventing translations from displaying 2020-07-30 21:20:56 -05:00
Eric Schultz
260e0596ab Add useSteps hook 2020-07-16 15:39:40 -05:00
Eric
0e9ab03352 Add lodash-joins 2020-07-15 12:30:18 -05:00
Eric
40fdd7a8b9 Add missing license information on money.spec.ts 2020-07-15 11:47:45 -05:00
Eric
238eba4a50 full_contact action only returns FullContact details if the gem is installed 2020-07-06 17:14:41 -05:00
Eric
64ebf2f26b Remove Gemfile, fix bugs in gemspec 2020-07-06 17:14:41 -05:00
Eric
219c815bec Fix the build from react-intl changes 2020-06-30 17:26:32 -05:00
Eric
d33600f663 Update specs to pass on updated react-intl 2020-06-30 17:26:32 -05:00
Eric
415e3b80cc Add additional react eslint checks. Illustrate its use on a single file. 2020-06-29 17:20:56 -05:00
Eric
862eea3867 Update snapshots due to upgraded jest packages 2020-06-27 15:09:03 -05:00
Eric
48f2303216 Enforce ts tab indents for accessibility 2020-06-27 15:09:03 -05:00
Eric
4e51e9ecfc Lint money.spec.ts 2020-06-27 15:09:03 -05:00
Eric
6554861627 Add money.ts as first linted .ts file 2020-06-27 15:09:03 -05:00
Eric
9eedc704b5 Change names of the Money properties and add some specs 2020-06-26 17:04:39 -05:00
Eric
79d7d2c99d Correct a few ts bugs 2020-06-24 17:53:22 -05:00
Eric
977fff89be Add JS Money type 2020-06-24 17:53:22 -05:00