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

Admin Next Team Create #820

Merged
merged 1 commit into from
Jul 29, 2018
Merged

Admin Next Team Create #820

merged 1 commit into from
Jul 29, 2018

Conversation

kevinhughes27
Copy link
Owner

@kevinhughes27 kevinhughes27 commented Jul 28, 2018

part of #750

This PR adds the team create mutation and form for a new team. Code re-use went pretty well but this work exposed issues with the manually defined types (this will be addressed in the next PR).

isSeeded: false
},
seed: 0
};
Copy link
Owner Author

Choose a reason for hiding this comment

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

this is the issue with the single type definition. Not everywhere uses all the parts of the type. A follow up PR will generate types from the Query

@@ -33,12 +35,13 @@ class TeamList extends React.Component<Props> {
{teams.map((t: Team) => <TeamListItem key={t.id} team={t}/>)}
</TableBody>
</Table>
<ActionButton onClick={() => this.props.history.push("/teams/new")}/>
Copy link
Owner Author

Choose a reason for hiding this comment

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

Eventually this will probably be a speed dial floating button that expands to multiple actions like import and export
https://material-ui.com/lab/speed-dial/

);
} else {
return null;
}
Copy link
Owner Author

Choose a reason for hiding this comment

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

There is an open issue to fix the types so that typescript knows that Theme will be present when withTheme: true is passed

@kevinhughes27 kevinhughes27 merged commit ec56eef into master Jul 29, 2018
@kevinhughes27 kevinhughes27 deleted the team-create branch July 29, 2018 15:17
@kevinhughes27 kevinhughes27 mentioned this pull request Jul 29, 2018
20 tasks
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.

1 participant