Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move viewing revisions logic to redux #1903

Merged
merged 3 commits into from
Feb 17, 2020

Conversation

belcherj
Copy link
Contributor

@belcherj belcherj commented Feb 12, 2020

Fix

Move viewing revisions logic to redux.

Test

  1. open revisions
  2. cancel revisions
  3. restore revisions
  4. when revisions panel is open click outside of the revisions panel

dmsnell added a commit that referenced this pull request Feb 12, 2020
This patch introduces a new set utility library for adding, removing,
and toggling values in a set to make a working "option bag."

It also changes the `visiblePane` state from a list of strings into this
new option bag, removing the reliance on the `lodash` equivalent
functions for using the array.

This is meant to be precursor work for #1901 and #1903
@belcherj belcherj self-assigned this Feb 17, 2020
@belcherj belcherj force-pushed the refactor/move-viewing-revisions-logic-to-redux branch from 283e8e0 to 0c1983a Compare February 17, 2020 18:28
@belcherj belcherj marked this pull request as ready for review February 17, 2020 18:33
@belcherj belcherj requested a review from a team February 17, 2020 18:38
@belcherj belcherj force-pushed the refactor/move-viewing-revisions-logic-to-redux branch from 71c9242 to 37f9321 Compare February 17, 2020 19:00
@belcherj belcherj merged commit cab8de5 into develop Feb 17, 2020
@belcherj belcherj deleted the refactor/move-viewing-revisions-logic-to-redux branch February 17, 2020 19:28
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { connect, DispatchProp } from 'react-redux';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This inclusion was probably unintended.

@@ -86,7 +86,15 @@ const showNoteInfo: A.Reducer<boolean> = (state = false, action) => {

case 'App.toggleNavigation':
return false;
default:
return state;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe belongs in another PR? It looks like we introduced this bug and didn't notice it because undefined collapses into false

@dmsnell dmsnell mentioned this pull request Feb 19, 2020
41 tasks
@codebykat codebykat added this to the state refactor milestone Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants