-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Nav Block - enable page creation from within Block #19775
Commits on Feb 14, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 49ef0eb - Browse repository at this point
Copy the full SHA 49ef0ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6758a60 - Browse repository at this point
Copy the full SHA 6758a60View commit details -
Configuration menu - View commit details
-
Copy full SHA for f3f74f9 - Browse repository at this point
Copy the full SHA f3f74f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7046ff8 - Browse repository at this point
Copy the full SHA 7046ff8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1269745 - Browse repository at this point
Copy the full SHA 1269745View commit details -
Add state and UI to represent link being in a resolving/loading state
This is require to accommodate the new async mode for setting a link. For example when a Page is being created async with the API.
Configuration menu - View commit details
-
Copy full SHA for 0ff7ddf - Browse repository at this point
Copy the full SHA 0ff7ddfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 78cf21a - Browse repository at this point
Copy the full SHA 78cf21aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4dc6b3c - Browse repository at this point
Copy the full SHA 4dc6b3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ce1457 - Browse repository at this point
Copy the full SHA 9ce1457View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79f4db7 - Browse repository at this point
Copy the full SHA 79f4db7View commit details -
Configuration menu - View commit details
-
Copy full SHA for b4a26cd - Browse repository at this point
Copy the full SHA b4a26cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 46b5312 - Browse repository at this point
Copy the full SHA 46b5312View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e5dd16 - Browse repository at this point
Copy the full SHA 6e5dd16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0aa60c6 - Browse repository at this point
Copy the full SHA 0aa60c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf9cd62 - Browse repository at this point
Copy the full SHA cf9cd62View commit details -
Configuration menu - View commit details
-
Copy full SHA for c7863bb - Browse repository at this point
Copy the full SHA c7863bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e29dad - Browse repository at this point
Copy the full SHA 8e29dadView commit details -
Fix test to expose bug in implementation
Previously both tests would pass even though when testing in browser (using real API requests) the one with spaces would fail. This is because the mocked API always results results which ensures that suggestinos are always shown. However, if the API doesn’t return any results then URLInput has no suggestions state and so the suggestions dropdown doesn’t display which causes the Create Page option also not display. In fact it should display.
Configuration menu - View commit details
-
Copy full SHA for b9f4d80 - Browse repository at this point
Copy the full SHA b9f4d80View commit details -
Configuration menu - View commit details
-
Copy full SHA for f32ea3c - Browse repository at this point
Copy the full SHA f32ea3cView commit details -
Hide Create option if suggestion is a single Direct (URL) result only.
This is becase we shouldn’t create pages from anything that looks like a Direct Entry URL.
Configuration menu - View commit details
-
Copy full SHA for 2f31fa7 - Browse repository at this point
Copy the full SHA 2f31fa7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a410810 - Browse repository at this point
Copy the full SHA a410810View commit details -
Promote Create button to top level suggestion.
Previously the Create button was not part of the proper suggestions state. This caused several issues: 1. The Create option was only shown if there were suggestions (not what we want in certain circumstances) 2. It wasn’t possible to use keyboard to move to the Create button. 3. a11y concerns regarding having Create option outside of the true suggestions. We now make the searchSuggestions handler always append a special suggestion to the result set for create. This is a reserved suggestion which is only displayed in the UI when the appropriate conditions are met. Also fixes bug with un-needed call to `setIsEditingLink( false )` in async `onChange` handler causes invalid test failures.
Configuration menu - View commit details
-
Copy full SHA for a59b971 - Browse repository at this point
Copy the full SHA a59b971View commit details -
Reinstate full test conditions
Left some commented out test conditions. These have revealed that the previous commit did not fix the outstanding broken tests.
Configuration menu - View commit details
-
Copy full SHA for 38e9be5 - Browse repository at this point
Copy the full SHA 38e9be5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9914409 - Browse repository at this point
Copy the full SHA 9914409View commit details -
Configuration menu - View commit details
-
Copy full SHA for e148a12 - Browse repository at this point
Copy the full SHA e148a12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f24acb - Browse repository at this point
Copy the full SHA 5f24acbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4370ff1 - Browse repository at this point
Copy the full SHA 4370ff1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55f3e26 - Browse repository at this point
Copy the full SHA 55f3e26View commit details -
Improve code comments around promoting CREATE option to a first class…
… suggestion This code is particularly ambiguous. Adding a clear comment here should remove a lot of confusion as to why this particular work around is required. It is far from ideal but without decoupling `LinkContorl` from `URLInput` it is necessary.
Configuration menu - View commit details
-
Copy full SHA for 139bedf - Browse repository at this point
Copy the full SHA 139bedfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 11e40f2 - Browse repository at this point
Copy the full SHA 11e40f2View commit details -
Use generated Ids for
id
prop of faux suggestions rather than ever ……decrementing static negative numbers
Configuration menu - View commit details
-
Copy full SHA for 28ee868 - Browse repository at this point
Copy the full SHA 28ee868View commit details -
Remove Create option from initial suggestions
Addresses #18900 (comment) If we need to reinstate this functionality we can simply revert this commit.
Configuration menu - View commit details
-
Copy full SHA for c6cab25 - Browse repository at this point
Copy the full SHA c6cab25View commit details -
Configuration menu - View commit details
-
Copy full SHA for c93a877 - Browse repository at this point
Copy the full SHA c93a877View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92c73e3 - Browse repository at this point
Copy the full SHA 92c73e3View commit details -
Catch invalid saveEntityRecord response types and throw error
Throwing here causes a rejected Promise to be returned from `createEntity`. This is then caught and handled inside `LinkControl` in order to centralise error handling. This area will need additional safeguards adding to catch response types which are errors or which don’t confirm to the expected format of `entity`.
Configuration menu - View commit details
-
Copy full SHA for c1c1f18 - Browse repository at this point
Copy the full SHA c1c1f18View commit details -
Add Error handling to LinkControl for Creating Entities
If `createEntities` promise is rejected then the erorr is caught and handled and an appropriate error notice is shown to the user.
Configuration menu - View commit details
-
Copy full SHA for c3048be - Browse repository at this point
Copy the full SHA c3048beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 47a2351 - Browse repository at this point
Copy the full SHA 47a2351View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0799ed8 - Browse repository at this point
Copy the full SHA 0799ed8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bc9df0 - Browse repository at this point
Copy the full SHA 6bc9df0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1949c91 - Browse repository at this point
Copy the full SHA 1949c91View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9206a44 - Browse repository at this point
Copy the full SHA 9206a44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cebe7c - Browse repository at this point
Copy the full SHA 6cebe7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 26aa318 - Browse repository at this point
Copy the full SHA 26aa318View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83bef9f - Browse repository at this point
Copy the full SHA 83bef9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bacea1 - Browse repository at this point
Copy the full SHA 7bacea1View commit details -
Removes unused keypress handler.
This appears never to be called. The prop is not used directly within `URLInput` or “spread” from the passed props. Testing by adding console.log and running the tests confirms that the code is not being run. Manual testing also.
Configuration menu - View commit details
-
Copy full SHA for 8d10183 - Browse repository at this point
Copy the full SHA 8d10183View commit details -
Remove redundant onKeyDown prop
Again onKeyDown prop is not used within `URLInput`. Nor is it spread from props. Never called in tests. Not called when testing manually either.
Configuration menu - View commit details
-
Copy full SHA for 7a644a2 - Browse repository at this point
Copy the full SHA 7a644a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b959d9 - Browse repository at this point
Copy the full SHA 5b959d9View commit details -
Fix to allow keyboard and form submit to handle entity creation
Previously only mouse click on the “create” suggestion correctly created a new entity. Improved by ensuring the form `onSubmit` handler also correctly triggers the onCreate handler if the suggestion type is the “create” type.
Configuration menu - View commit details
-
Copy full SHA for 7cd70f2 - Browse repository at this point
Copy the full SHA 7cd70f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for decd4de - Browse repository at this point
Copy the full SHA decd4deView commit details -
Update to ensure created Page entities conform to object schema requi…
…red by LinkControl
Configuration menu - View commit details
-
Copy full SHA for 0f09491 - Browse repository at this point
Copy the full SHA 0f09491View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c7206a - Browse repository at this point
Copy the full SHA 4c7206aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3263b5e - Browse repository at this point
Copy the full SHA 3263b5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for cc9bc97 - Browse repository at this point
Copy the full SHA cc9bc97View commit details -
Configuration menu - View commit details
-
Copy full SHA for c28a41f - Browse repository at this point
Copy the full SHA c28a41fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 579490c - Browse repository at this point
Copy the full SHA 579490cView commit details -
Fixes render conditionals to be mutually exclusive
Rebasing with master caused conditionals to be normalised into one. Now we have `isResolving` as state we need to ensure the component renders differently with this conditional involved. The clearest means of doing this is to break the render up into exclusive sections based on conditions.
Configuration menu - View commit details
-
Copy full SHA for faaf3fa - Browse repository at this point
Copy the full SHA faaf3faView commit details -
Configuration menu - View commit details
-
Copy full SHA for db73fd5 - Browse repository at this point
Copy the full SHA db73fd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c644a60 - Browse repository at this point
Copy the full SHA c644a60View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8203176 - Browse repository at this point
Copy the full SHA 8203176View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe7a96f - Browse repository at this point
Copy the full SHA fe7a96fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3263bb5 - Browse repository at this point
Copy the full SHA 3263bb5View commit details -
Reduced padding on bottom of LinkControl list results and moved error…
… message up to match design specs more closely.
Configuration menu - View commit details
-
Copy full SHA for b192520 - Browse repository at this point
Copy the full SHA b192520View commit details -
Only add separator when it needs separating
We only need a separator when there are other suggestions the Create button needs separation from.
Configuration menu - View commit details
-
Copy full SHA for ee4ce2c - Browse repository at this point
Copy the full SHA ee4ce2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 996a992 - Browse repository at this point
Copy the full SHA 996a992View commit details -
Fixed broken unit test for checking 'Loading' string instead of updat…
…ed 'Creating' string
Configuration menu - View commit details
-
Copy full SHA for b5e0856 - Browse repository at this point
Copy the full SHA b5e0856View commit details -
Removed uniqueID from Manual URLs in Navigation Link results from Lin…
…k Control Based on discussion about how to handle link results, I've removed the uniqueId as we may not need an ID at all for manual link results. Other possibilities are to include the ID property again and either set it to null or to the URL value
Configuration menu - View commit details
-
Copy full SHA for f6adf54 - Browse repository at this point
Copy the full SHA f6adf54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81e2c4d - Browse repository at this point
Copy the full SHA 81e2c4dView commit details -
Update packages/block-editor/src/components/link-control/index.js
Co-Authored-By: Andrew Duthie <andrew@andrewduthie.com>
Configuration menu - View commit details
-
Copy full SHA for 5780610 - Browse repository at this point
Copy the full SHA 5780610View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb135c1 - Browse repository at this point
Copy the full SHA fb135c1View commit details -
Remove unnecessary cast to Boolean
Co-Authored-By: Andrew Duthie <andrew@andrewduthie.com>
Configuration menu - View commit details
-
Copy full SHA for f67c538 - Browse repository at this point
Copy the full SHA f67c538View commit details -
Update to utilise
rendered
title value.Co-Authored-By: Andrew Duthie <andrew@andrewduthie.com>
Configuration menu - View commit details
-
Copy full SHA for c38f072 - Browse repository at this point
Copy the full SHA c38f072View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f97a87 - Browse repository at this point
Copy the full SHA 6f97a87View commit details -
This should never have been committed with commented out code.
Configuration menu - View commit details
-
Copy full SHA for 015e5d3 - Browse repository at this point
Copy the full SHA 015e5d3View commit details -
Update to invert create entity “type” dependency
Previously `LInkControl` was specifiying the type of `page`. This meant it was “aware” of the entity being created. This commit inverts that so that the consuming component is now required to define the type itself (this has been updated on Nav Block).
Configuration menu - View commit details
-
Copy full SHA for 5fe3d2a - Browse repository at this point
Copy the full SHA 5fe3d2aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a623d85 - Browse repository at this point
Copy the full SHA a623d85View commit details -
Fix so that CREATE option not displayed if result is a direct entry URL
Also amends tests which were incorrectly asserting.
Configuration menu - View commit details
-
Copy full SHA for e2aff99 - Browse repository at this point
Copy the full SHA e2aff99View commit details -
Configuration menu - View commit details
-
Copy full SHA for 704341c - Browse repository at this point
Copy the full SHA 704341cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c81c7a7 - Browse repository at this point
Copy the full SHA c81c7a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27d534c - Browse repository at this point
Copy the full SHA 27d534cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bbd5d3 - Browse repository at this point
Copy the full SHA 1bbd5d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4119ddb - Browse repository at this point
Copy the full SHA 4119ddbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 64fc2b2 - Browse repository at this point
Copy the full SHA 64fc2b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 313dad2 - Browse repository at this point
Copy the full SHA 313dad2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22a207f - Browse repository at this point
Copy the full SHA 22a207fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ef5de4 - Browse repository at this point
Copy the full SHA 3ef5de4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01b9727 - Browse repository at this point
Copy the full SHA 01b9727View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3049729 - Browse repository at this point
Copy the full SHA 3049729View commit details -
Configuration menu - View commit details
-
Copy full SHA for c63f8e1 - Browse repository at this point
Copy the full SHA c63f8e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7496092 - Browse repository at this point
Copy the full SHA 7496092View commit details -
Configuration menu - View commit details
-
Copy full SHA for 52dd8fe - Browse repository at this point
Copy the full SHA 52dd8feView commit details -
Set url items from LinkControl to have sanitized url as the id and up…
…dated e2e snapshot Based on conversations around potential issues with not including an id on navigation links, the ID has been added back in as the sanitized url as it should be fairly unique and not actually matter if it's unique.
Configuration menu - View commit details
-
Copy full SHA for 07463be - Browse repository at this point
Copy the full SHA 07463beView commit details -
Reinstate keyboard handling of suggestion selection bug fix.
Failing to pass the current input value as `url` of the suggestion causes the keyboard handling to break when hitting `ENTER`. Not entirely sure why at this stage.
Configuration menu - View commit details
-
Copy full SHA for 79c6064 - Browse repository at this point
Copy the full SHA 79c6064View commit details -
Update comment to better reflect need for
title
andurl
props to ……reflect input text value
Configuration menu - View commit details
-
Copy full SHA for a6bd883 - Browse repository at this point
Copy the full SHA a6bd883View commit details -
Remove unwanted reference to entity type.
The more generic we keep the errors the simpler this component needs to be. Addresses #19775 (comment)
Configuration menu - View commit details
-
Copy full SHA for f2609b6 - Browse repository at this point
Copy the full SHA f2609b6View commit details -
Corrects usage of aria-label and aria-labelled by on the link control…
… search results Use aria-labelledby to reference the visible label ID Use aria-label when no visible label
Configuration menu - View commit details
-
Copy full SHA for e176aa1 - Browse repository at this point
Copy the full SHA e176aa1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7149b44 - Browse repository at this point
Copy the full SHA 7149b44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6dae057 - Browse repository at this point
Copy the full SHA 6dae057View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff4701d - Browse repository at this point
Copy the full SHA ff4701dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 435778c - Browse repository at this point
Copy the full SHA 435778cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 53ec1d5 - Browse repository at this point
Copy the full SHA 53ec1d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac3eb3d - Browse repository at this point
Copy the full SHA ac3eb3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f004ca - Browse repository at this point
Copy the full SHA 9f004caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0aaa082 - Browse repository at this point
Copy the full SHA 0aaa082View commit details -
Co-Authored-By: Andrew Duthie <andrew@andrewduthie.com>
Configuration menu - View commit details
-
Copy full SHA for 5615e7f - Browse repository at this point
Copy the full SHA 5615e7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a04df7 - Browse repository at this point
Copy the full SHA 9a04df7View commit details -
Avoid unwanted arial-label* roles for visually hidden elements
`aria-labelledby` is only suitable when the referenced element is visible. `aria-label` should not be used to duplicate content already accessible within the element.
Configuration menu - View commit details
-
Copy full SHA for 56ea4d1 - Browse repository at this point
Copy the full SHA 56ea4d1View commit details -
Move cancellable refs to component scope.
Partially addresses #19775 (comment)
Configuration menu - View commit details
-
Copy full SHA for 2530978 - Browse repository at this point
Copy the full SHA 2530978View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56fabd5 - Browse repository at this point
Copy the full SHA 56fabd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 483ecc1 - Browse repository at this point
Copy the full SHA 483ecc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e25eea - Browse repository at this point
Copy the full SHA 7e25eeaView commit details -
Configuration menu - View commit details
-
Copy full SHA for bf754e4 - Browse repository at this point
Copy the full SHA bf754e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1b09d3 - Browse repository at this point
Copy the full SHA a1b09d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ea5142 - Browse repository at this point
Copy the full SHA 9ea5142View commit details -
Configuration menu - View commit details
-
Copy full SHA for a239257 - Browse repository at this point
Copy the full SHA a239257View commit details -
Correct test to look for new Create button wording
Changed due to Design request to change text but test was not updated.
Configuration menu - View commit details
-
Copy full SHA for a93821d - Browse repository at this point
Copy the full SHA a93821dView commit details -
Fix to use cancelable async handler and call stopEditing
Previously only the keyboard version of handleCreate was cancellable and treated as async. Now the onClick mouse version is also cancellable. Moreover we call stopEditing() correctly on resolve.
Configuration menu - View commit details
-
Copy full SHA for 86dfc0d - Browse repository at this point
Copy the full SHA 86dfc0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b115c9f - Browse repository at this point
Copy the full SHA b115c9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0842cc4 - Browse repository at this point
Copy the full SHA 0842cc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 219af6b - Browse repository at this point
Copy the full SHA 219af6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e3db29c - Browse repository at this point
Copy the full SHA e3db29cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a6103c - Browse repository at this point
Copy the full SHA 2a6103cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2978a24 - Browse repository at this point
Copy the full SHA 2978a24View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05c4982 - Browse repository at this point
Copy the full SHA 05c4982View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2ff268 - Browse repository at this point
Copy the full SHA c2ff268View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6de5fa1 - Browse repository at this point
Copy the full SHA 6de5fa1View commit details -
Removes unnecessary closing of Link UI
Calling setIsLinkOpen in the useEffect was causing setIsLinkOpen to be called twice. The act of moving focus back to the label is enough to trigger setIsLinkOpen to be called by the `Popover` onClose handler. Trying to call it again in the effect caused an error to be thrown regarding setting state on the unmounted component.
Configuration menu - View commit details
-
Copy full SHA for 97d1050 - Browse repository at this point
Copy the full SHA 97d1050View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50f436d - Browse repository at this point
Copy the full SHA 50f436dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e30d545 - Browse repository at this point
Copy the full SHA e30d545View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1065983 - Browse repository at this point
Copy the full SHA 1065983View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8df3050 - Browse repository at this point
Copy the full SHA 8df3050View commit details -
Wait for rich-text to be focused instead of waiting for link control …
…to disappear in e2e test We can't rely on the .block-editor-link-control__search-results-wrapper to be hidden, as there's a quick loading state between when that disappears and the link is focused. Waiting for the link to be focused allows this test to be passed while also checking that focus is placed correctly.
Configuration menu - View commit details
-
Copy full SHA for d42cc27 - Browse repository at this point
Copy the full SHA d42cc27View commit details -
Added a check on the active element to make sure the focused block ma…
…tches our newly created page title
Configuration menu - View commit details
-
Copy full SHA for dd5d124 - Browse repository at this point
Copy the full SHA dd5d124View commit details -
Update test to target specific input field for focus state rather tha…
…n wrapper Previously the test was checking for focus on a <div>. Amended to target the <input /> element as that is what actually will receive focus.
Configuration menu - View commit details
-
Copy full SHA for 58b3823 - Browse repository at this point
Copy the full SHA 58b3823View commit details -
Refactor e2e test to be absolutelty 100% sure we’re in the input befo…
…re typing Previously the tests were less than strict about whether the focus was in the input element. Improve this across all tests.
Configuration menu - View commit details
-
Copy full SHA for 3c5b712 - Browse repository at this point
Copy the full SHA 3c5b712View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2867ebf - Browse repository at this point
Copy the full SHA 2867ebfView commit details -
Ensure Create button is “in view” by removing other results.
It’s possible that on certain screen sizes there is not enough room to display the Create button without having to scroll the LinkContorl seaerch results panel. This could cause the selection of the button to fail. Testing if this fixes the broken e2e tests or at least makes them more resilient.
Configuration menu - View commit details
-
Copy full SHA for bd8f05c - Browse repository at this point
Copy the full SHA bd8f05cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 156312d - Browse repository at this point
Copy the full SHA 156312dView commit details -
Updated routes on mock responses in e2e navigation tests and snapshot…
…s to hopefully make e2e tests easier to debug
Configuration menu - View commit details
-
Copy full SHA for e524060 - Browse repository at this point
Copy the full SHA e524060View commit details -
Configuration menu - View commit details
-
Copy full SHA for b4c932f - Browse repository at this point
Copy the full SHA b4c932fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 73eeefc - Browse repository at this point
Copy the full SHA 73eeefcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0087c57 - Browse repository at this point
Copy the full SHA 0087c57View commit details -
Fixed xpath selector in updateActiveNavigationLink and made the searc…
…h page term more unique
Configuration menu - View commit details
-
Copy full SHA for 24c3680 - Browse repository at this point
Copy the full SHA 24c3680View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a3e9f2 - Browse repository at this point
Copy the full SHA 8a3e9f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6137f6f - Browse repository at this point
Copy the full SHA 6137f6fView commit details -
Simply listbox labelling for a11y
As per this thread in WPOrg Slack (https://wordpress.slack.com/archives/C02RP4X03/p1581500184181100) it’s better to have a HTML based label over aria labels under all circumstances. Therefore despite what it says on MDN docs for listbox (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listbox_role) we simplify to only use a HTML label and refer to that with aria-labelledby.
Configuration menu - View commit details
-
Copy full SHA for a2c7667 - Browse repository at this point
Copy the full SHA a2c7667View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b29067 - Browse repository at this point
Copy the full SHA 8b29067View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd9ab52 - Browse repository at this point
Copy the full SHA cd9ab52View commit details -
Handle cancellable handler props using refs
Addresses #19775 (comment). Previously we were treating a functional component as though it would live forever when in fact it could easily be unmounted and all internal var references wiped. Using refs solves this as they persiste between renders.
Configuration menu - View commit details
-
Copy full SHA for 2fe9a5c - Browse repository at this point
Copy the full SHA 2fe9a5cView commit details -
Fix Promise flow so that stopEditing is not called on createSuggestio…
…n error and error message is shown There were several problems here. * Originally the handleCreate method did `return` with a undefined value when the error was cancelled. This caused incorrect logic flows. * The `stopEditing` method was being called even if the Promise flow was handling an error state. This caused the “Currently selected” UI to show with an `undefined` value. * The `errorMessage` state was being reset ever time the input “changed”. This meant the error set in the Promise chain was being reset before it could be displayed. Fixing all the above issues has resolved the errors.
Configuration menu - View commit details
-
Copy full SHA for 415d4d5 - Browse repository at this point
Copy the full SHA 415d4d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6305e6 - Browse repository at this point
Copy the full SHA c6305e6View commit details -
This was used to try and “clean” the id primarily to make it valid as a React key. However we’ve discovered that any string is potentially valid. Moreover cleanForSlug might end up making two urls that are otherwise distinct become identical via stripping out of various parts of the full URL. See #19775 (comment)
Configuration menu - View commit details
-
Copy full SHA for 6289a0c - Browse repository at this point
Copy the full SHA 6289a0cView commit details -
Removes
id
prop from “Create” result and uses static string for Rea……ct key prop. See #19775 (comment)
Configuration menu - View commit details
-
Copy full SHA for e9845da - Browse repository at this point
Copy the full SHA e9845daView commit details -
Fix e2e test snapshot to account for using full URL as the suggestion…
… prop without cleanForSlug
Configuration menu - View commit details
-
Copy full SHA for 4b10550 - Browse repository at this point
Copy the full SHA 4b10550View commit details -
Configuration menu - View commit details
-
Copy full SHA for d54a682 - Browse repository at this point
Copy the full SHA d54a682View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef0c09c - Browse repository at this point
Copy the full SHA ef0c09cView commit details
Commits on Feb 17, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c11ff36 - Browse repository at this point
Copy the full SHA c11ff36View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a6e8e3 - Browse repository at this point
Copy the full SHA 3a6e8e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b51533 - Browse repository at this point
Copy the full SHA 4b51533View commit details -
Fix to not render create button if there is no search term.
This was a throw back to a previous state of the `LinkControl` component whereby we wanted to render a create option to allow the user to create blank pages. This was removed as a requirement but the component was not fixed to account for that. Addresses: #19775 (comment)
Configuration menu - View commit details
-
Copy full SHA for d081116 - Browse repository at this point
Copy the full SHA d081116View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05e0b42 - Browse repository at this point
Copy the full SHA 05e0b42View commit details -
Removes unecessary response checking on advice from @aduth
See * #19775 (comment) * #19775 (comment)
Configuration menu - View commit details
-
Copy full SHA for 382683f - Browse repository at this point
Copy the full SHA 382683fView commit details -
Configuration menu - View commit details
-
Copy full SHA for df38a5d - Browse repository at this point
Copy the full SHA df38a5dView commit details -
Configuration menu - View commit details
-
Copy full SHA for cbe4bd7 - Browse repository at this point
Copy the full SHA cbe4bd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5e1130 - Browse repository at this point
Copy the full SHA c5e1130View commit details -
Configuration menu - View commit details
-
Copy full SHA for 437ed18 - Browse repository at this point
Copy the full SHA 437ed18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8bd0c1e - Browse repository at this point
Copy the full SHA 8bd0c1eView commit details -
Consolidate createSuggestion handling logic within single method
Previously the code to handle the async flow including error handling was duplicated across two handler props. Consolidating helps DRY things and avoid accidental errors being introduced. Addresses #19775 (comment)
Configuration menu - View commit details
-
Copy full SHA for f70a2bc - Browse repository at this point
Copy the full SHA f70a2bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 665f76e - Browse repository at this point
Copy the full SHA 665f76eView commit details -
Update error handling to include the message prop of the Error object…
… if provided. Addresses #19775 (comment)
Configuration menu - View commit details
-
Copy full SHA for ab1a199 - Browse repository at this point
Copy the full SHA ab1a199View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a0e6b1 - Browse repository at this point
Copy the full SHA 9a0e6b1View commit details