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

Re-enable table filter names for org queues #11239

Merged
merged 4 commits into from Jun 28, 2019

Conversation

lowellrex
Copy link
Contributor

@lowellrex lowellrex commented Jun 28, 2019

The move from using the TaskTable component to using the QueueTable component in PR #11213 left behind our friendly names that we display when we are filtering columns in that table. This PR adds those back in.

Before After
image image

There is probably a longer-term fix here to just use the column's header attribute as defined in TaskTable, but a quick glance at the code makes it appear as if that will be a fairly involved change.

@lowellrex lowellrex self-assigned this Jun 28, 2019
@@ -109,6 +112,7 @@ class OrganizationQueue extends React.PureComponent {
numberOfPages={tabConfig.task_page_count}
totalTaskCount={tabConfig.total_task_count}
taskPagesApiEndpoint={tabConfig.task_page_endpoint_base_path}
alternateColumnNames={COLUMN_NAMES}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Heart of the change here.

@@ -170,7 +170,8 @@ export const COLOCATED_HOLD_DURATIONS = [15, 30, 45, 60, 90, 120, CUSTOM_HOLD_DU

export const COLUMN_NAMES = {
'appeal.caseType': 'Case Type',
'appeal.docketName': 'Docket Number',
'appeal.docketName': COPY.CASE_LIST_TABLE_DOCKET_NUMBER_COLUMN_TITLE,
'assignedTo.name': COPY.CASE_LIST_TABLE_APPEAL_LOCATION_COLUMN_TITLE,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adds this alternative column name that was missing before.

@@ -170,7 +170,8 @@ export const COLOCATED_HOLD_DURATIONS = [15, 30, 45, 60, 90, 120, CUSTOM_HOLD_DU

export const COLUMN_NAMES = {
'appeal.caseType': 'Case Type',
'appeal.docketName': 'Docket Number',
'appeal.docketName': COPY.CASE_LIST_TABLE_DOCKET_NUMBER_COLUMN_TITLE,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changes the text here from "Docket Number" to "Docket" since that is really what we are filtering on (legacy, hearing, evidence, direct).

@codeclimate
Copy link

codeclimate bot commented Jun 28, 2019

Code Climate has analyzed commit 1feba1b and detected 0 issues on this pull request.

View more on Code Climate.

@hschallhorn
Copy link
Contributor

Looks like both (and only) places where we implement QueueTable (TaskTable and now OrganizationQueue) are passing COLUMN_NAMES as alternateColumnNames which is only used by FilterSummary. Is there any reason we wouldn't want to just import the alternate column names in FilterSummary rather than passing it through multiple components?

Copy link
Contributor

@hschallhorn hschallhorn left a comment

Choose a reason for hiding this comment

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

Just need to remove this pup and we're good to go!

@lowellrex lowellrex added the Ready-to-Merge This PR is ready to be merged and will be picked up by va-bot to automatically merge to master label Jun 28, 2019
@lowellrex lowellrex merged commit b06048e into master Jun 28, 2019
@lowellrex lowellrex deleted the lowell/reenable_table_filter_names branch June 28, 2019 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready-to-Merge This PR is ready to be merged and will be picked up by va-bot to automatically merge to master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants