-
Notifications
You must be signed in to change notification settings - Fork 19
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 Hearing icon to queue/case views #8904
Conversation
@@ -46,7 +46,7 @@ const HearingBadge = ({ hearing }) => { | |||
</div>; | |||
|
|||
// We expect this badge to be shown in a table, so we use this to get rid of the standard table padding. | |||
return <div {...css({ marginRight: '-3rem' })} className="cf-hearing-badge"> | |||
return <div {...css({ marginRight: '-2.5rem' })} className="cf-hearing-badge"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we need to make this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This spacing works well in all the contexts that the badge shows up in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition to a few small notes I left, let's explore making the request for hearing information for an appeal related to a task asynchronously.
…ent-of-veterans-affairs/caseflow into joey-hearing-badge-queue
…ent-of-veterans-affairs/caseflow into joey-hearing-badge-queue
back to you! |
const mapStateToProps = (state, ownProps) => { | ||
let externalId, hearing; | ||
|
||
if (ownProps.hearing) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accept either a hearing or a task
Looks good! Can we add a few tests to make sure the hearing icon shows up as we expect (and doesn't) on the case search page and on a queue table view? |
Case search hearing badge tests can be found here in search_spec.rb, and I'll add tests for the queue table view now! |
@@ -79,7 +79,7 @@ | |||
|
|||
scenario "Entire set of attributes for hearing are displayed" do | |||
visit "/queue" | |||
page.find(:xpath, "//tr[@id='table-row-#{appeal.vacols_id}']/td[1]/a").click | |||
page.find(:xpath, "//tr[@id='table-row-#{appeal.vacols_id}']/td[2]/a").click |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about spinning this pattern out to its own helper function? I imagine something like the click_dropdown
function perhaps with a signature like find_table_cell(id: appeal.vacols_id, row_header: COPY::CASE_LIST_TABLE_VETERAN_NAME_COLUMN_TITLE)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will make this change in a separate PR!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Resolves #7478
Description
Adds the
HearingBadge
"H" to all<TaskTable>
s and loads them asynchronously.ex.