docbrown/app
Andy Zhao 47d9ec27fb Allow users to belong to multiple orgs (#2583)
* Allow user to have many orgs

* Allow users to handle multi orgs in settings

* Make rounded buttons inline

* Add multi org function to dashboards

* Fix merge conflicts

* Fix mistake in merge conflict fix oops

* Display the correct membership level

* Fix accessibility issues

* Display organizations for article editors

* Handle submitting org id with preact editors

* Make listings work with multiple organizations

* Allow listings to have multiple orgs on create

* Display the correct number of credits for each org

* Move script tag to Webpack

* Allow multi orgs for purchasing and viewing credits

* Use OrganizationMembership as authorization check

* Display multiple organizations for notifications

* Allow dashboard to be viewable under multi-orgs

* Remove unused method

* Add multi-org functionality for article editors

* Show pro dashboard buttons for member+ org levels

* Leave the correct organization

* Allow article API to change org id

* Add left-out authorization method oops

* Make nav buttons a bit more clear

* Fix merge conflict

* Fix adding org id for /api/articles and tests

* Fix tests for org policy

* Use proper logic for displaying org members

* Update org actions with new authorization

* Use correct org when creating a listing

* Remove additional payment charge oops

* Mark org notifications as read with authorization

* Remove deprecated post_as_organization attribute

* Use new org_admin syntax

* Remove deprecated org logic for article create and update

* Default all RSS posts to not belong to any org

* Render org_member page for guest users

* Update org policy spec to work with multi orgs

* Use org_membership for org traits and move identity code

* Use org_member trait

* Update to work with multi-orgs

* Validate article's org_id if param org_id is blank

* Make  a let variable

* Remove unnecessary eager load for credits

* Fix HTML structure and org logic for non-org users

* Update credits spec for multi-org

* Add test for failed payment when purchased by org

* Lint listings_spec

* Test that the listing was created under the user

* Add tests for POST /listings multi-org

* Use double quotes for classes

* Fix /manage and a few other multi-org bugs

* Fix test for multi org

* Use correct method SQL exists? not Rails exist?

* Fix reads spec for multi-org

* Fix org_controller actions to work with multi org

* Test only multi org and not old usage and fix leave_org

* Fix org showing user profile img test for multi-org

* Fix org logic for users with no orgs

* Remove switch org functionality

* Update tests and add hidden param for org id

* Redirect to the specific organization

* Test other org button actions

* Use settings_notice instead of legacy notice and refactor

* Fix weird extra end issue prob from merge conflicts

* Test for with new flash key

* Fix user_views_org tests for multi-org

* Test for new flash message

* Update snapshot with new a11y html

* Move styling to stylesheet

* Add site admins functionality

* Move org_member? method in user model and refactor

* Use unspent_credits_count for organizations

* Add tests for /listings/new and minor bug fixes

* Use .present? in case of empty array

* Fix a lingering deprecated method

* Use greater than 1 for random numbers

* Add tests for counting spent and unspent credits
2019-06-04 09:30:52 -04:00
..
assets Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
black_box BlackBox specs #2524 (#2542) 2019-04-25 10:19:11 -04:00
controllers Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
dashboards Add nightmode image (#2640) 2019-05-01 15:14:18 -04:00
decorators Change format of the user languages_settings #2369 (#2496) 2019-04-30 17:01:19 -04:00
errors Add API Analytics Endpoints (#2293) 2019-04-04 10:52:45 -04:00
facades/dashboard Use published scope for articles (#2374) 2019-04-11 13:18:26 -04:00
fields Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
helpers Remove some dead code for very minor perf improvements and code quality (#2905) 2019-05-20 13:40:02 -04:00
javascript Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
jobs Move remove_each notifications method in own job (#2946) 2019-05-29 16:26:18 -04:00
labor Add missing instance var for /manage & Bust rails cache on comments (#3004) 2019-05-30 12:23:20 -04:00
lib Fix non-english characters delete on tags (#2579) 2019-04-29 17:33:14 -04:00
liquid_tags Codepen Links with Underscore Usernames (#2985) 2019-05-28 16:32:34 -04:00
mailers Add mailers specs for tracking (#2523) 2019-04-23 12:38:11 -04:00
models Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
observers Update Slack Notifications (#2870) [ci skip] 2019-05-21 15:06:04 -04:00
policies Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
sanitizers Add support for mark element in markdown (#2089) 2019-03-18 17:10:58 -04:00
services Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
uploaders Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
views Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00