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

Sub-menu Organization Page #1070

Merged
merged 5 commits into from
Nov 17, 2021
Merged

Sub-menu Organization Page #1070

merged 5 commits into from
Nov 17, 2021

Conversation

bhaggya
Copy link
Contributor

@bhaggya bhaggya commented Nov 16, 2021

Closes #1040
Closes #1042

@@ -27,7 +27,7 @@ describe('Contributors Page (using API)', () => {

it('should find affiliatedOrg via search', () => {
cy.intercept(`${Cypress.env('REACT_APP_API_URL')}/api/organizations/`).as('getOrganizations');
cy.visit('/organizations/affiliated');
cy.visit('/organizations/all');
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason to change this route to /all ?

@@ -47,7 +47,7 @@ describe('Contributors Page (using API)', () => {
cy.intercept(`${Cypress.env('REACT_APP_API_URL')}/api/organizations/`).as(
'getOrganizations'
);
cy.visit('/organizations/affiliated');
cy.visit('/organizations/all');
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason to change this route to /all ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The test is failing if it is affiliated. To pass the test I gave this

@@ -79,7 +79,7 @@ describe('Contributors Page (using fixture)', () => {
cy.intercept(`${Cypress.env('REACT_APP_API_URL')}/api/organizations/`, {
fixture: 'orgs.json',
});
cy.visit('/organizations/');
cy.visit('/organizations/all');
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason to change this route to /all ?

@@ -115,8 +115,7 @@ const NotableUsersSection = () => {
<NavButton
color='primary'
href={{
pathname: '/organizations/affiliated',
query: { contributor: true },
pathname: '/organizations/contributors',
Copy link
Member

@bruceplai bruceplai Nov 16, 2021

Choose a reason for hiding this comment

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

Looks good. Just a minor update to code style

  const MoreContributors = () => {
    return (
      <Grid item xs={12} style={{ padding: '30px' }}>
        <div align='center'>
          <NavButton
            color='primary'
            href={{ pathname: '/organizations/contributors' }}
          >
            View contributors
          </NavButton>
        </div>
      </Grid>
    );
  };

@codeclimate
Copy link

codeclimate bot commented Nov 17, 2021

Code Climate has analyzed commit add35ff and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 81.6% (0.0% change).

View more on Code Climate.

Copy link
Member

@bruceplai bruceplai left a comment

Choose a reason for hiding this comment

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

Approved. Thanks

@bruceplai bruceplai merged commit a0fc739 into main Nov 17, 2021
@bruceplai bruceplai deleted the Organizations-submenu-options branch November 17, 2021 19:52
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.

Organizations Index Contributor check box denoted in URL Civic Tech Organizations submenu options
2 participants