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

EuiDelayRender #1876

Merged
merged 24 commits into from
Jun 3, 2019
Merged

EuiDelayRender #1876

merged 24 commits into from
Jun 3, 2019

Conversation

PhilippBaranovskiy
Copy link
Contributor

@PhilippBaranovskiy PhilippBaranovskiy commented Apr 23, 2019

Related to #749
Related to elastic/kibana#28385

Summary

Part 1

I've added aria-pressed attrs to filter buttons those have just two states: they are toggle indeed.

Don't to get lost in snapshot updates, have a look at the list of commits: I put code updates separately to snapshots updates between commits.

Part 2

Another component, Delay Render is coded, slightly similar to DelayHide component.
Existing solutions I found around use either promise fetching or deprecated componentWillMount,
since what we need here is exactly timing based delayed rendering.

It is so as Aria Live Regions is used by ScreenReader to detect changes and announce those changes.
So, there is at least a couple way to implement that: collect all new updates in textNode, every sorting update or clear it every time and fulfill with only one necessary update.

Also, following the 2nd approach it is suitable to use such a component for any delayed render.

@PhilippBaranovskiy PhilippBaranovskiy marked this pull request as ready for review April 23, 2019 17:26
@PhilippBaranovskiy PhilippBaranovskiy changed the title WIP: DRAFT: Temporal Content Switches in Table Search and Filter #749 WIP: Temporal Content Switches in Table Search and Filter #749 Apr 23, 2019
@PhilippBaranovskiy PhilippBaranovskiy changed the title WIP: Temporal Content Switches in Table Search and Filter #749 WIP: (Accessibility) (Delay Render) Temporal Content Switches in Table Search and Filter #749 Apr 23, 2019
@PhilippBaranovskiy
Copy link
Contributor Author

@cjcenizal, as we discussed on #749, implemented delayed rendering.
Delay can be passed explicitly.
Could you please have a look at this PR?

@cjcenizal
Copy link
Contributor

Thanks for this @rockfield! I'm going to hand off review to @chandlerprall and @thompsongl, as they're the maintainers of EUI and I'm low on bandwidth ATM.

@thompsongl
Copy link
Contributor

@rockfield is this still a WIP or ready for a review?

@PhilippBaranovskiy
Copy link
Contributor Author

@rockfield is this still a WIP or ready for a review?
@thompsongl, sorry for the delay, -- Now this PR is ready for review.
Could you please have a look?

@PhilippBaranovskiy PhilippBaranovskiy changed the title WIP: (Accessibility) (Delay Render) Temporal Content Switches in Table Search and Filter #749 (Accessibility) (Delay Render) Temporal Content Switches in Table Search and Filter #749 May 6, 2019
src/components/basic_table/basic_table.js Outdated Show resolved Hide resolved
src/components/delay_render/delay_render.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

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

Sorry, I missed this bit in my last review. Looking to be ready after this last change

src/components/delay_render/delay_render.tsx Outdated Show resolved Hide resolved
@PhilippBaranovskiy
Copy link
Contributor Author

retest

@PhilippBaranovskiy
Copy link
Contributor Author

seems as yarn start failed on CI, please someone run retest 🙏

@thompsongl
Copy link
Contributor

jenkins test this

thompsongl
thompsongl previously approved these changes May 8, 2019
@thompsongl thompsongl self-requested a review May 20, 2019 14:35
@thompsongl thompsongl dismissed their stale review May 20, 2019 21:06

More changes pending

@PhilippBaranovskiy PhilippBaranovskiy changed the title WIP: (Accessibility) (Delay Render) Temporal Content Switches in Table Search and Filter #749 (Accessibility) (Delay Render) Temporal Content Switches in Table Search and Filter #749 May 21, 2019
@PhilippBaranovskiy
Copy link
Contributor Author

retest

@PhilippBaranovskiy
Copy link
Contributor Author

jenkins, test this

1 similar comment
@PhilippBaranovskiy
Copy link
Contributor Author

jenkins, test this

@PhilippBaranovskiy
Copy link
Contributor Author

@thompsongl @maryia-lapata @chandlerprall @Avinar-24
This PR is ready for the final review. No other changes are going to happen.
Please, find some time to have a look.

@PhilippBaranovskiy PhilippBaranovskiy changed the title (Accessibility) (Delay Render) Temporal Content Switches in Table Search and Filter #749 (Accessibility) EuiDelayRender May 31, 2019
@PhilippBaranovskiy PhilippBaranovskiy changed the title (Accessibility) EuiDelayRender EuiDelayRender May 31, 2019
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.

5 participants