Skip to content

[Disaster Pages] Initial Page Setup#1848

Merged
juliawu merged 4 commits intodatacommonsorg:masterfrom
juliawu:event-page
Nov 29, 2022
Merged

[Disaster Pages] Initial Page Setup#1848
juliawu merged 4 commits intodatacommonsorg:masterfrom
juliawu:event-page

Conversation

@juliawu
Copy link
Copy Markdown
Contributor

@juliawu juliawu commented Nov 28, 2022

Sets up skeleton for dedicated event pages which will eventually contain information, maps, news, etc about each natural disaster event in the disaster dashboard. Current PR is for a blank page. Future PRs will fill in with info.

@juliawu juliawu requested a review from beets November 28, 2022 22:28
Comment thread server/routes/dev.py Outdated
return flask.render_template('dev/disaster_dashboard.html',
european_countries=european_countries)

@bp.route('/event-page')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: "event" rather than "event-page" since they're all pages. drop the "-page" for the route and filenames too

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Renamed all event-page instances to event

Comment thread static/js/event_page/event_page.ts Outdated
*/

/**
* disaster dashboard
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nit: Disaster events.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed!

Comment thread static/js/event_page/types.ts Outdated
* Types specific to Event Page
*/

export interface EventInfo {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

in general, please add documentation for shared interfaces.

can we add this type as it's needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I meant it as a placeholder, removed the interface. Will add types as necessary in future PRs.

Copy link
Copy Markdown
Collaborator

@beets beets left a comment

Choose a reason for hiding this comment

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

hooray!

@juliawu juliawu merged commit aff0da6 into datacommonsorg:master Nov 29, 2022
@juliawu juliawu deleted the event-page branch May 25, 2023 16:50
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