docbrown/app/controllers
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
..
admin Add Twitch to Profile Links (#2557) 2019-04-25 16:14:28 -04:00
api/v0 Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
concerns Edem/improvements/pundit coverage (#498) 2018-06-28 09:38:20 -04:00
internal Sort internal/listings by recently bumped listings (#2938) 2019-05-22 15:28:03 -04:00
notifications Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
additional_content_boxes_controller.rb Improve performance for additional content boxes and tags index (#1750) 2019-02-06 16:50:35 -04:00
api_secrets_controller.rb Remove trailing dot from API token message [ci skip] (#2918) 2019-05-21 15:09:27 -04:00
application_controller.rb Remove extra param and add message for prefill (#2487) 2019-04-18 15:34:50 -04:00
article_mutes_controller.rb Allow archiving of posts (#2798) 2019-05-13 15:40:52 -04:00
articles_controller.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
async_info_controller.rb Allow users to follow podcasts (#2690) 2019-05-04 15:30:40 -04:00
badges_controller.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
blocks_controller.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
buffer_updates_controller.rb Add page for users to "manage" their posts after publication (distribution, etc.) (#2627) 2019-05-01 09:00:09 -04:00
buffered_articles_controller.rb Rubocop cleanups (#1415) 2019-01-02 11:20:02 -05:00
chat_channel_memberships_controller.rb [WIP] Connect misc improvements/debugs (#2880) 2019-05-20 10:08:51 -04:00
chat_channels_controller.rb Add messaging option in listings (#2854) 2019-05-31 13:48:45 -04:00
classified_listings_controller.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
comment_mutes_controller.rb Mute notifications for a comment thread (#1636) 2019-01-24 17:20:38 -05:00
comments_controller.rb Refactor: fix issues raised by bullet (#2965) 2019-05-28 17:32:53 -04:00
credits_controller.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
dashboards_controller.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
email_subscriptions_controller.rb Use timezone aware methods (#893) 2018-10-18 16:26:29 -04:00
events_controller.rb Remove Honeycomb from the app (#2366) 2019-04-11 10:49:35 -04:00
feedback_messages_controller.rb Removed bug reports from app (#1565) 2019-01-16 11:28:59 -05:00
follows_controller.rb Allow users to follow podcasts (#2690) 2019-05-04 15:30:40 -04:00
ga_events_controller.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
github_repos_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
giveaways_controller.rb Some small performance improvements (#2876) 2019-05-20 18:53:31 -04:00
html_variant_successes_controller.rb Add HTML variants for cta optimization and other nav bar adjustments (#970) 2018-10-22 17:03:57 -04:00
html_variant_trials_controller.rb Add HTML variants for cta optimization and other nav bar adjustments (#970) 2018-10-22 17:03:57 -04:00
html_variants_controller.rb Rubocop fixes (#2232) 2019-03-28 07:35:17 -04:00
image_uploads_controller.rb Limit number of cover image uploads (#2851) 2019-05-17 15:59:07 -04:00
live_articles_controller.rb Fix rubocop lints (#794) 2018-10-03 13:00:09 -04:00
messages_controller.rb Use timezone aware methods (#893) 2018-10-18 16:26:29 -04:00
moderations_controller.rb Refactor: fix issues raised by bullet (#2965) 2019-05-28 17:32:53 -04:00
notifications_controller.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
omniauth_callbacks_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
organizations_controller.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
page_views_controller.rb Fix/augment dashboard and article view count issues (#2449) 2019-04-15 10:24:38 -04:00
pages_controller.rb Add security and faq pages as generatable via the Page model (#2792) 2019-05-10 16:20:40 -04:00
podcast_episodes_controller.rb Refactor: fix issues raised by bullet (#2965) 2019-05-28 17:32:53 -04:00
push_notification_subscriptions_controller.rb Add more test coverage (#1829) 2019-02-22 09:16:57 -08:00
pusher_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
rating_votes_controller.rb Add experience level averaging to articles (#1922) 2019-02-28 08:17:29 -08:00
reactions_controller.rb Remove Honeycomb from the app (#2366) 2019-04-11 10:49:35 -04:00
reading_list_items_controller.rb Upgrade rubocop and rubocop-performance (#2802) [ci skip] 2019-05-13 19:21:24 -04:00
registrations_controller.rb Use timezone aware methods (#893) 2018-10-18 16:26:29 -04:00
social_previews_controller.rb Social Card upgrade - Part 1 (#2090) 2019-03-22 16:28:02 -04:00
stories_controller.rb Add listings to home page (#2912) 2019-05-21 10:21:49 -04:00
stripe_active_cards_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
stripe_cancellations_controller.rb Add Stripe Cancellation Webhook (#1682) 2019-02-13 15:56:19 -05:00
stripe_subscriptions_controller.rb Rubocop cleanups (#1415) 2019-01-02 11:20:02 -05:00
tag_adjustments_controller.rb Fix braces around hash params Rubocop offense (#1453) 2019-01-11 13:08:45 -05:00
tags_controller.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
twilio_tokens_controller.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
twitch_live_streams_controller.rb Embed Twitch Live Streaming (#2591) 2019-04-29 18:11:53 -04:00
twitch_stream_updates_controller.rb Twitch Webhook Fixes (#2692) 2019-05-05 11:52:43 -04:00
users_controller.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
video_states_controller.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
videos_controller.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00