Skip to content

Commit 929e8b0

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/axios-0.21.2
2 parents 82527bb + 489a3b4 commit 929e8b0

25 files changed

+39
-20
lines changed

cypress/integration/pages/organizations.spec.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,15 @@ describe('Contributors Page (using fixture)', () => {
251251

252252
// TODO: click open Code for America. need to adjust 25 number to 7 (?)
253253
it('should show index contributor indicators', () => {
254+
cy.intercept(`${Cypress.env('REACT_APP_API_URL')}/api/organizations/`, {
255+
fixture: 'orgs.json',
256+
}).as('getOrganizations');
254257
cy.visit('/organizations/affiliated');
258+
cy.wait('@getOrganizations');
255259
cy.get('[data-cy=index-contributors-checkbox] input:checkbox').check();
256260
cy.get('[class*=makeStyles-gpGrid]').within(() => {
257261
cy.get('[class*=contributorIcon]').should('exist');
258262
});
259-
cy.get('[class*=makeStyles-gpGrid]').click();
260263
// cy.get('[data-cy=contributor-icon]').should('have.length', 25);
261264
cy.get('[class*=makeStyles-dropDownGrid]').within(() => {
262265
cy.contains('Code for America').parent().parent().parent().within(() => {

src/App.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import About from './pages/About';
77
import Contact from './pages/Contact';
88
import Collaborate from './pages/Collaborate';
99
import Contributors from './pages/Contributors';
10-
import Donation from './pages/Donation';
10+
import Donate from './pages/Donate';
1111
import Faq from './pages/Faq';
1212
import IndvOrgPage from './pages/IndvOrganization';
1313
import Home from './pages/Home';
14-
import HowToUse from './pages/HowToUse';
14+
import HowToAdd from './pages/HowToAdd';
1515
import Landing from './pages/Landing';
1616
import SearchProjects from './pages/SearchProjects';
17-
import TagCreator from './pages/TagCreator';
17+
import TagGenerator from './pages/TagGenerator';
1818
import Error404 from './pages/Error404';
1919
import ShareTheCti from './pages/Share';
2020
import Guides from './guides/';
@@ -48,10 +48,10 @@ const App = () => {
4848
<RouteTitled exact path='/organizations/contributors' component={Contributors} title='Index Contributors' />
4949
<RouteTitled exact path='/home' component={Home} title='Home' />
5050
<RouteTitled exact path='/projects' component={SearchProjects} title='Search Projects' />
51-
<RouteTitled exact path='/join-index' component={TagCreator} title='Join the Index' />
52-
<RouteTitled exact path='/join-index/how-to-add' component={HowToUse} title='How to Add Your Project' />
51+
<RouteTitled exact path='/join-index' component={TagGenerator} title='Join the Index' />
52+
<RouteTitled exact path='/join-index/how-to-add' component={HowToAdd} title='How to Add Your Project' />
5353
<RouteTitled exact path='/support/collaborate' component={Collaborate} title='Collaborate with Us' />
54-
<RouteTitled exact path='/support/donate' component={Donation} title='Donate' />
54+
<RouteTitled exact path='/support/donate' component={Donate} title='Donate' />
5555
<RouteTitled exact path='/support/share' component={ShareTheCti} title='Share the CTI' />
5656
<Route exact path='/organization/:name' component={IndvOrgPage} />
5757
{/* test and error page routes begin */}

src/guides/topic-tags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import CardContent from '@material-ui/core/CardContent';
44
import Container from '@material-ui/core/Container';
55
import Typography from '@material-ui/core/Typography';
66

7-
import { GeneratedTopicTag,CopyPasteTopicTag,ClickableTopicTag } from '../pages/TagCreator/TopicTag'
7+
import { GeneratedTopicTag,CopyPasteTopicTag,ClickableTopicTag } from '../pages/TagGenerator/TopicTag'
88

99
const ShowTopicTags = () => {
1010
return (
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import Typography from '@material-ui/core/Typography';
66
import BottomCallToAction from '../../components/BottomCallToAction';
77
import Link from '../../components/common/Link';
88
import useStyles from './styles.js';
9-
import { GenericHeaderSection } from '../../components/';
9+
import { GenericHeaderSection } from '../../components';
1010

11-
const Donation = () => {
11+
const Donate = () => {
1212
const classes = useStyles();
1313
const breadCrumbLinks = [
1414
{ href: '/home', name: 'Home' },
@@ -70,4 +70,4 @@ const Donation = () => {
7070
);
7171
};
7272

73-
export default Donation;
73+
export default Donate;
Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import Box from '@material-ui/core/Box';
33
import Container from '@material-ui/core/Container';
4-
import Link from '@material-ui/core/Link';
4+
import { Link } from 'react-router-dom';
55
import Typography from '@material-ui/core/Typography';
66
import { makeStyles } from '@material-ui/core/styles';
77
import GenericHeaderSection from '../../components/GenericHeaderSection';
@@ -23,6 +23,13 @@ const useStyles = makeStyles((theme) => ({
2323
margin: '1em auto',
2424
textAlign: 'justify',
2525
width: '66%',
26+
'& a:link': {
27+
color: theme.palette.text.secondary,
28+
fontWeight:'400',
29+
},
30+
'& a:visited': {
31+
color: theme.palette.text.secondary,
32+
},
2633
[theme.breakpoints.down('md')]: {
2734
fontSize: '20px',
2835
margin: '0px auto 1em',
@@ -33,7 +40,6 @@ const useStyles = makeStyles((theme) => ({
3340
},
3441
},
3542
typoStyle: {
36-
fontWeight: '400',
3743
textAlign: 'justify',
3844
'& a:visited': {
3945
color: theme.palette.secondary.main,
@@ -47,7 +53,7 @@ const useStyles = makeStyles((theme) => ({
4753
},
4854
}));
4955

50-
const HowToUse = () => {
56+
const HowToAdd = () => {
5157
const clipboard = useClipboard();
5258
const classes = useStyles();
5359
const breadCrumbLinks = [
@@ -70,7 +76,8 @@ const HowToUse = () => {
7076
By adding the <b>&apos;civictechindex&apos; </b>
7177
topic tag to your project, we can create a continuously updated
7278
repository for all civic tech enthusiasts to find open source
73-
projects to model, connect with, and learn from.
79+
projects to model, connect with, and learn from. Need an overview of
80+
what the CTI is? See our <Link to='/about'>About</Link> page.
7481
</Typography>
7582
</Container>
7683
</Box>
@@ -80,7 +87,7 @@ const HowToUse = () => {
8087
<Box>
8188
<Typography variant='body1' className={classes.typoStyle}>
8289
1. Under your project’s repository, click <SettingsGearIcon />{' '}
83-
to paste your tags.
90+
to add topic tags.
8491
</Typography>
8592
</Box>
8693
<Box className={classes.boxPadding}>
@@ -112,6 +119,15 @@ const HowToUse = () => {
112119
, paste the topic you want to add to your repository.{' '}
113120
</Typography>
114121
</Box>
122+
<Box className={classes.boxPadding}>
123+
<Typography variant='body1' className={classes.typoStyle}>
124+
We recommend adding topic tags for your affiliated
125+
organizations, e.g., Code-for-All, Code-for-Japan,
126+
code-for-Tokyo topic tags that communicate what your project is
127+
about, e.g., food-pantry, climate, etc. and don’t forget to use
128+
the topic tag: civictechindex.
129+
</Typography>
130+
</Box>
115131
<ImageComponent src='/images/instructions-step2.png' alt='Step 2' />
116132
<Box>
117133
<Typography variant='body1' className={classes.typoStyle}>
@@ -129,4 +145,4 @@ const HowToUse = () => {
129145
);
130146
};
131147

132-
export default HowToUse;
148+
export default HowToAdd;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)