-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 url overflow handling to KP #67899
Conversation
Pinging @elastic/kibana-platform (Team:Platform) |
values={{ | ||
storeInSessionStorageConfig: <code>state:storeInSessionStorage</code>, | ||
kibanaSettingsLink: ( | ||
<a href={basePath.prepend('/app/management/kibana/settings')}> |
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 will need to be changed when backporting to 7.8 branch
values={{ | ||
storeInSessionStorageParam: <code>state:storeInSessionStorage</code>, | ||
advancedSettingsLink: ( | ||
<a href={basePath.prepend('/app/management/kibana/settings')}> |
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 will need to be changed when backporting to 7.8
...lugins/maps/public/connected_components/map/features_tooltip/feature_geometry_filter_form.js
Outdated
Show resolved
Hide resolved
const [currentLocation, setCurrentLocation] = useState(history.location); | ||
useLayoutEffect(() => history.listen((location) => setCurrentLocation(location)), [history]); | ||
|
||
const searchParams = new URLSearchParams(currentLocation.search); |
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.
URLSearchParams
is not compatible with IE11: https://caniuse.com/#search=URLSearchParams (unless we have a shim?) Maybe use the 'query-string' module instead?
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.
There is a core-js polyfill, but I will double check it works in IE 👍
Here is my suggestion for copy: The URL for this dashboard is too long, Things to try:
|
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.
maps changes LGTM
code review
@@ -138,16 +138,6 @@ | |||
"charts.controls.rangeErrorMessage": "値は{min}と{max}の間でなければなりません", | |||
"charts.controls.vislibBasicOptions.legendPositionLabel": "凡例位置", | |||
"charts.controls.vislibBasicOptions.showTooltipLabel": "ツールヒントを表示", | |||
"common.ui.errorUrlOverflow.breadcrumbs.errorText": "エラー", |
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 changed the defaultMessage of these strings significantly, so I figured I should delete the old translations so they get updated. Is that the right process @Bamieh ?
Some fixes to the updated copy:
The URL for this dashboard is too long, If the two-line title is too much, we can work on it. |
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 switch to using |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
# Conflicts: # src/legacy/ui/public/_index.scss # src/plugins/kibana_legacy/public/angular/angular_config.tsx # x-pack/plugins/translations/translations/ja-JP.json # x-pack/plugins/translations/translations/zh-CN.json
Summary
Fixes #67776
This moves the previously Angular-only URL overflow handling to Core's global router and adds a new "error" application that will be displayed when a user encounters a very long URL.
The UI has been mostly unchanged, but it could really benefit from:
However, I'm keen on getting this in for the next (last?) 7.8 BC and will iterate on this as a follow up.
Screenshot
Checklist
Delete any items that are not applicable to this PR.
For maintainers