docbrown/app/javascript
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
..
.storybook Optimise images (#2966) 2019-05-30 17:37:10 -04:00
analytics Pro: add referrers to dashboard and single article stats (#3295) 2019-06-25 13:58:09 -04:00
article-form Allow upload of multiple images at a time (#3599) 2019-08-18 15:03:14 -04:00
chat Feature/refactored onboarding (#3333) 2019-07-26 15:53:32 -04:00
githubRepos Improve Onboarding's spec & Update snapshots (#1111) [ci skip] 2018-11-14 16:18:02 -05:00
history History and reading list refactoring (#3338) 2019-07-02 09:22:21 -04:00
listings Listing Drafts and Deletion (#3540) 2019-09-01 13:54:54 -04:00
onboarding Modify onboarding slides (#3864) 2019-08-28 11:05:57 -04:00
packs Fix linting (#3714) 2019-08-13 20:32:01 -03:00
readingList History and reading list refactoring (#3338) 2019-07-02 09:22:21 -04:00
searchableItemList History and reading list refactoring (#3338) 2019-07-02 09:22:21 -04:00
sidebar-widget REF: React eslint (#2432) 2019-04-16 17:28:19 -04:00
src Feature/refactored onboarding (#3333) 2019-07-26 15:53:32 -04:00
.eslintrc.js Feature/refactored onboarding (#3333) 2019-07-26 15:53:32 -04:00