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

Add changeset map #14

Merged
merged 22 commits into from
Apr 24, 2017
Merged

Add changeset map #14

merged 22 commits into from
Apr 24, 2017

Conversation

kepta
Copy link
Contributor

@kepta kepta commented Apr 21, 2017

This does a bunch of things

  • Adds changeset map (it currently uses global var render. need a fix, issue
  • Adds a toastr element for warnings/notifications
  • Handles the changeset-map network requests login and caching on redux level and feeds the data directly to changeset-map module.

cc @ajithranka

@kepta kepta changed the title Records Add changeset map Apr 21, 2017
@@ -6,6 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<link href="https://api.mapbox.com/mapbox-assembly/v0.12.0/assembly.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey, if possible can we pull this in from the component?

@@ -0,0 +1 @@
export function initKeyGobal() {}
Copy link
Contributor

Choose a reason for hiding this comment

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

We should remove this.

src/app.js Outdated
if (document && document.body) {
document.body.addEventListener('showToast', this.showToast);
}
initKeyGobal();
Copy link
Contributor

Choose a reason for hiding this comment

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

We should remove this.

src/app.js Outdated
>
<Route exact path="/" component={Changeset} />
<Route exact path="/" component={Changeset} customProp="hi" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Cleanup: customProp="hi".

<div>
<Header
changesetId={changesetId}
date={properties.get('date')}
Copy link
Contributor

Choose a reason for hiding this comment

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

Send all properties?

import {Tooltip} from 'react-tippy';

class Filter extends React.PureComponent {
showForm = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add props?

@kepta
Copy link
Contributor Author

kepta commented Apr 24, 2017

@ajithranka you are good to merge this.

@ajithranka
Copy link
Contributor

Thanks @kepta!

@ajithranka ajithranka merged commit 0e1fbb7 into master Apr 24, 2017
@ajithranka ajithranka deleted the records branch April 24, 2017 13:05
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