Skip to content

EuiDelayRender - #1876

Merged
PhilippBaranovskiy merged 24 commits into
elastic:masterfrom
PhilippBaranovskiy:749
Jun 3, 2019
Merged

PhilippBaranovskiy merged 24 commits into
elastic:masterfrom
PhilippBaranovskiy:749

Conversation

@PhilippBaranovskiy

@PhilippBaranovskiy PhilippBaranovskiy commented Apr 23, 2019 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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

@PhilippBaranovskiy

Copy link
Copy Markdown
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

@thompsongl thompsongl left a comment

Copy link
Copy Markdown
Contributor

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

@PhilippBaranovskiy

Copy link
Copy Markdown
Contributor Author

retest

@PhilippBaranovskiy

Copy link
Copy Markdown
Contributor Author

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

@thompsongl

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

retest

@PhilippBaranovskiy

Copy link
Copy Markdown
Contributor Author

jenkins, test this

1 similar comment
@PhilippBaranovskiy

Copy link
Copy Markdown
Contributor Author

jenkins, test this

@PhilippBaranovskiy

Copy link
Copy Markdown
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