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 Datasets index page to Levelbuilder #33140

Merged
merged 3 commits into from Feb 20, 2020
Merged

Add Datasets index page to Levelbuilder #33140

merged 3 commits into from Feb 20, 2020

Conversation

ajpal
Copy link
Contributor

@ajpal ajpal commented Feb 13, 2020

Part 1
Fetches the list of tables according to cdo-v3-shared/v3/channels/shared/counters/tables and displays them as a list.
image

Links

Testing story

Reviewer Checklist:

  • Tests provide adequate coverage
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

<ul>
{this.props.datasets.map(dataset => (
<li key={dataset}>
<a href={`/datasets/${dataset}`}>{dataset}</a>
Copy link
Contributor

@jmkulwik jmkulwik Feb 17, 2020

Choose a reason for hiding this comment

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

For accessibility, should this include a title attribute? i.e. title="{dataset} dataset" --- display as ---> "Dogs dataset"

Copy link
Contributor

Choose a reason for hiding this comment

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

(also, is levelbuilder within our accessibility goals?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think that would make this more accessible (header on the page is Datasets and the links are /datasets/{name} so I think it is already contextually clear that the list contains the names of datasets).

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -5,8 +5,13 @@ class DatasetsController < ApplicationController
before_action :initialize_firebase
authorize_resource class: false

LIVE_DATASETS = ['Daily Weather', 'Top 200 USA', 'Top 200 Worldwide', 'Viral 50 USA', 'Viral 50 Worldwide']
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a way to make this localized?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What do you mean localized? These are the names of the live tables, which is not translated/translatable.

Copy link
Contributor

Choose a reason for hiding this comment

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

Not blocking: Is translating these titles something we'd ever need to worry about? Or if we wanted to internationalize this feature would we instead import data tables with different languages?

@ajpal ajpal requested a review from a team as a code owner February 18, 2020 21:47
@ajpal ajpal changed the base branch from feb13-routes to staging February 18, 2020 21:47
@ajpal ajpal merged commit b76da03 into staging Feb 20, 2020
@ajpal ajpal deleted the feb13-index branch February 20, 2020 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants