docbrown/app
Mario See fda048dc12 Listing Drafts and Deletion (#3540)
* wip init handle draft class and styling

* add draft button

* start splitting up listing row into multile files

* separate tag links

* split location

* fix location

* separate listing row action buttons

* update listing row proptypes to describe listing object

* contact via connect to jsx

* fix default checked

* init draft creation and first publish charge

* fix first publish logic and credit charging

* handle drafts in dashboard filtering

* adjust isDraft bool statement

* hide drafts from main listings feed

* fix expired and draft bools in listing row

* adjust create listing org credits

* internally handle drafts

* adjust listing row

* break down update method

* remove unnecessary logic and shorten lines

* fix logic again woops

* convert input hidden value + submit into one form button submit with corresponding name and value

also adds clear message that drafts do not cost credits

* handle insufficient org credits on first publish

- uses user credits to publish
- similar to bump implementation

* fix sorting for personal and all orgs

* space out some elements

* don't spend original users credit for them

* add delete buttons and delete_confirm and destroy methods

* remove notification removal since listings dont trigger notifications

* move draft message and add draft_params to tests

* Update classified_listings_controller.rb

* update tests

* update snapshot

* add del tests

* add guard preventing free draft publish

* fix draft filter

* update from master and resolve merge conflict in listing preact

* Revert "update from master and resolve merge conflict in listing preact"

This reverts commit 0a34fccf334a2ca0902644b486cb26ead6bef664.

* update column spec

instead of setting and saving

* separate two expectations into their own tests

* split more tests into single expectations

* change to unless bumped_at? instead of if nil

* Fix listing draft edge cases and styling

* Add title tags to listings pages
2019-09-01 13:54:54 -04:00
..
assets Listing Drafts and Deletion (#3540) 2019-09-01 13:54:54 -04:00
black_box Add watercooler as sidebar tag and watercooler flare (#3465) 2019-07-12 14:24:33 -04:00
controllers Listing Drafts and Deletion (#3540) 2019-09-01 13:54:54 -04:00
dashboards Add random variants to onboarding for a/b testing (#3742) 2019-08-18 18:30:22 -04:00
decorators Sponsorship: business logic (step 2) (#3440) 2019-07-10 16:40:56 -04:00
errors Add API Analytics Endpoints (#2293) 2019-04-04 10:52:45 -04:00
fields Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
helpers Update Email Copy for internal/reports (#3867) 2019-08-30 09:58:30 -04:00
javascript Listing Drafts and Deletion (#3540) 2019-09-01 13:54:54 -04:00
jobs Improve mod roundrobin notification and internal tooling (#3855) 2019-08-27 21:54:09 -04:00
labor Update mod internal backend to be safer and more intuitive (#3869) 2019-08-28 23:26:32 -04:00
lib Add hackers.town to allowed Mastodon instances (#3642) 2019-08-06 10:37:35 -04:00
liquid_tags Support for runnable kotlin snippets #3776 (#3801) 2019-08-29 16:06:17 -04:00
mailers Improve mod roundrobin notification and internal tooling (#3855) 2019-08-27 21:54:09 -04:00
models Listing Drafts and Deletion (#3540) 2019-09-01 13:54:54 -04:00
observers Add comment markdown to warned_user_ping (#3750) 2019-08-22 22:04:45 -04:00
policies Listing Drafts and Deletion (#3540) 2019-09-01 13:54:54 -04:00
sanitizers Add support for mark element in markdown (#2089) 2019-03-18 17:10:58 -04:00
services Modify onboarding slides (#3864) 2019-08-28 11:05:57 -04:00
uploaders Set max file size limit for profile images (#3313) 2019-06-28 12:06:25 -04:00
views Listing Drafts and Deletion (#3540) 2019-09-01 13:54:54 -04:00