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

Organization filter on bureau positions page #1263

Merged
merged 7 commits into from
Nov 30, 2020
Merged

Conversation

mjoyce91
Copy link

  • Get organization_permissions for user
  • Conditionally display the organization and bureau filters by post_user vs bureau_user
  • Wrap organization filter in StaticDevContent
  • Pass organization choices along as fake query param

Comment on lines -19 to -21
import ListItem from '../../BidderPortfolio/BidControls/BidCyclePicker/ListItem';
import { filtersFetchData } from '../../../actions/filters/filters';
import SelectForm from '../../SelectForm';

Choose a reason for hiding this comment

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

😍

<Flag
name="flags.static_content"
render={() => (
/* eslint-disable-next-line no-nested-ternary */

Choose a reason for hiding this comment

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

❤️

<div className="filter-div">
<div className="label">Organization:</div>
<Picky
placeholder="Select Bureau(s)"

Choose a reason for hiding this comment

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

placeholder Select Organization(s)

Comment on lines +130 to +132
if (!noBureausSelected || !noOrgsSelected) {
props.fetchBureauPositions(query);
}

Choose a reason for hiding this comment

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

nice job saving a call 🦜

@@ -386,7 +423,7 @@ const PositionManager = props => {
<ExportButton
onClick={exportPositions}
isLoading={isLoading}
disabled={noBureausSelected}
disabled={noBureausSelected && noOrgsSelected}

Choose a reason for hiding this comment

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

Nit Picky: we hide all filters and Export Button when overlay triggered, so we don't really need to disable it, but unsure if this way is a better practice.

Copy link
Author

Choose a reason for hiding this comment

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

Ah good point. Yeah, maybe we just keep this in case we decide to show them in the future

Choose a reason for hiding this comment

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

coolio!

Copy link

@elizabeth-jimenez elizabeth-jimenez left a comment

Choose a reason for hiding this comment

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

🍰 🍥 🍬 👍

@mjoyce91 mjoyce91 merged commit 257ec7a into dev Nov 30, 2020
@mjoyce91 mjoyce91 deleted the feature/org-bureau-filter branch November 30, 2020 20:29
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.

2 participants