-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: Drop old inaccuracy reports, add new feedback category #2801
Conversation
<FeedbackOption | ||
onClick={() => handleFeedbackViewClick("inaccuracy")} | ||
Icon={RuleIcon} | ||
label="Inaccuracy" | ||
showArrow | ||
/> |
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.
We could conditionally display this if the node type matches the previous places we used to show this option, but that seems a little inconsistent for users potentially? I've opted against it here to very much open to thoughts.
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.
I think this is right - easy to imagine someone wanting to report "inaccurate" help text, etc 👍
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.
Yep - agreed!
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.
I think that's a very good point about the consistency although I think 4 options is quite a lot to choose from and maybe makes it a little overwhelming for users?
Rather than rendering it conditionally in the triage the "Report an inaccuracy" could potentially be directly opened the same way that "Report an issue with this page" does?
So rather than select "feedback" link in the footer text they see the "inaccuracy" link and it renders this form? I don't think it would be too jarring as it's the same style and it would also scope inaccuracy reports to the places we were recording it before?
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.
Hey sorry for the very slow response here! Kept on de-prioritising this one.
I think in this instance I'm in favour of keeping the fourth option everywhere, over conditionally showing a form in certain places.
The main motivation behind this is that we can't necessarily know which places may contain inaccurate data.
I'll make sure though that this issue is explicitly raised at PO testing just so we have another pair of eyes on this.
Removed vultr server and associated DNS entries |
f696801
to
f66e4bd
Compare
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.
Quick comment about a potential wee UI trap.
<FeedbackOption | ||
onClick={() => handleFeedbackViewClick("inaccuracy")} | ||
Icon={RuleIcon} | ||
label="Inaccuracy" | ||
showArrow | ||
/> |
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.
I think that's a very good point about the consistency although I think 4 options is quite a lot to choose from and maybe makes it a little overwhelming for users?
Rather than rendering it conditionally in the triage the "Report an inaccuracy" could potentially be directly opened the same way that "Report an issue with this page" does?
So rather than select "feedback" link in the footer text they see the "inaccuracy" link and it renders this form? I don't think it would be too jarring as it's the same style and it would also scope inaccuracy reports to the places we were recording it before?
1dd9e3b
to
ffa8c48
Compare
Update: I just realised there was an error rather than the submit being successful:
I have the migration to add the new type but maybe something is out of sync, I'll test again on the pizza rather than locally. Screen.Recording.2024-03-27.at.11.27.25.mov |
Thanks @Mike-Heneghan - taking a look just now! |
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.
nit:
It would be ace to get some tests for the new option if you have the chance.
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.
Good spot thanks! See 76040f8
I think this was initially missed as there was a ticket for tests still in "To do this sprint" when I opened the 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.
Ahahahaha yeah it did take me a while to get the testing setup 😅
It would also be good to get an accompanying accessibility test along the lines of
test("Inaccuracy form should have no accessibility violations", async () => {
const { container, getByText, getByRole, user } = setup(<Feedback />);
await user.click(getByText("feedback"));
await waitFor(() => {
expect(getByRole("button", { name: "Inaccuracy" })).toBeInTheDocument();
});
await user.click(getByRole("button", { name: "Inaccuracy" }));
await waitFor(() => {
expect(getByText("Report an inaccuracy")).toBeInTheDocument();
});
const results = await axe(container);
expect(results).toHaveNoViolations();
});
Not that these tests have been particularly useful when it came to the accessibility report 😓
I can't recreate this locally or on the Pizza. Which environment was this recording taken in? |
I just retested on the pizza and it was a local issue for me. Sorry for the false alarm! I ran the migration in the CLI but I think that wasn't picked up by Hasura for the mutation. When I reloaded the metadata for |
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.
Looks good 👍
What does this PR do?
FeedbackInput
componentfeedback_types
enum valueinaccuracy
What's not in the PR?
Next steps
If approved, I'll update the testing notes for the feedback tool once merged.