SatsAllDay 3da395a792
multiple forwards on a post (#403)
* multiple forwards on a post

first phase of the multi-forward support

* update the graphql mutation for discussion posts to accept and validate multiple forwards

* update the discussion form to allow multiple forwards in the UI

* start working on db schema changes

* uncomment db schema, add migration to create the new model, and update create_item, update_item
stored procedures

* Propagate updates from discussion to poll, link, and bounty forms

Update the create, update poll sql functions for multi forward support

* Update gql, typedefs, and resolver to return forwarded users in items responses

* UI changes to show multiple forward recipients, and conditional upvote logic changes

* Update notification text to reflect multiple forwards upon vote action

* Disallow duplicate stacker entries

* reduce duplication in populating adv-post-form initial values

* Update item_act sql function to implement multi-way forwarding

* Update referral functions to scale referral bonuses for forwarded users

* Update notification text to reflect non-100% forwarded sats cases

* Update wallet history sql queries to accommodate multi-forward use cases

* Block zaps for posts you are forwarded zaps at the API layer, in addition
to in the UI

* Delete fwdUserId column from Item table as part of migration

* Fix how we calculate stacked sats after partial forwards in wallet history

* Exclude entries from wallet history that are 0 stacked sats from posts with 100% forwarded to other users

* Fix wallet history query for forwarded stacked sats to be scaled by the fwd pct

* Reduce duplication in adv post form, and do some style tweaks for better layout

* Use MAX_FORWARDS constants

* Address various PR feedback

* first enhancement pass

* enhancement pass too

---------

Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2023-08-23 17:44:17 -05:00
..
2021-05-24 19:08:56 -05:00
2021-09-12 11:55:38 -05:00
2021-09-23 12:42:00 -05:00
2021-09-23 12:42:00 -05:00
2021-11-04 19:07:41 -04:00
2021-12-09 14:41:09 -06:00
2022-01-05 14:37:34 -06:00
2022-01-14 17:43:12 -06:00
2022-02-24 13:05:57 -06:00
2022-03-17 15:13:19 -05:00
2022-04-18 15:19:07 -05:00
2022-07-05 14:51:13 -05:00
2022-07-30 08:51:04 -05:00
2022-07-30 08:51:04 -05:00
2022-07-30 08:51:04 -05:00
2022-08-11 15:38:10 -05:00
2022-08-11 15:38:10 -05:00
2022-09-21 14:57:36 -05:00
2022-09-27 16:19:15 -05:00
2022-09-27 16:19:15 -05:00
2022-11-16 10:57:03 -06:00
2022-11-16 10:57:03 -06:00
2022-11-16 10:57:03 -06:00
2022-12-19 16:27:52 -06:00
2022-12-19 16:27:52 -06:00
2022-12-19 16:27:52 -06:00
2023-01-13 11:52:18 -06:00
2023-01-18 12:49:20 -06:00
2023-01-22 14:17:50 -06:00
2023-02-01 17:40:49 -06:00
2023-02-01 17:40:49 -06:00
2023-02-15 11:20:43 -06:00
2023-05-01 15:58:30 -05:00
2023-05-01 15:58:30 -05:00
2023-05-01 15:58:30 -05:00
2023-05-23 09:21:04 -05:00
2023-06-12 12:41:22 -05:00
2023-06-20 09:57:06 -05:00
2023-06-20 11:27:41 -05:00
2021-03-25 14:29:24 -05:00