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

[Stateful sidenav] Update feedback urls #198143

Merged
merged 4 commits into from
Oct 31, 2024

Conversation

sebelga
Copy link
Contributor

@sebelga sebelga commented Oct 29, 2024

In this PR I've updated the "Let us know" button URL to point to unique URLs based on the side nav solution.

New URLs

Note on implementation

I didn't want to introduce a new state on the ChromeService or create a dependency of the space plugin on the SharedUX navigation package.
I decided to change the id type of the navigation tree from a string to a strict SolutionId type.

Most of the changes in this PR are to accommodate to this stricter requirements, with very little changes (and thus regression risks) to the implementation (those are mainly in packages/shared-ux/chrome/navigation/src/ui/navigation.tsx and packages/shared-ux/chrome/navigation/src/ui/components/feedback_btn.tsx).

@sebelga
Copy link
Contributor Author

sebelga commented Oct 29, 2024

/ci

@sebelga
Copy link
Contributor Author

sebelga commented Oct 29, 2024

/ci

@sebelga
Copy link
Contributor Author

sebelga commented Oct 30, 2024

/ci

@sebelga sebelga self-assigned this Oct 30, 2024
@sebelga sebelga added release_note:skip Skip the PR/issue when compiling release notes Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) backport:prev-major Backport to (8.x, 8.17, 8.16) the previous major branch and other branches in development Feature:Chrome Core's Chrome UI (sidenav, header, breadcrumbs) labels Oct 30, 2024
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/core-chrome-browser 103 104 +1
cloud 21 20 -1
total -0

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
navigation 25.6KB 25.8KB +150.0B
serverless 26.3KB 26.5KB +151.0B
total +301.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
core 450.8KB 450.8KB +9.0B
navigation 17.4KB 17.4KB +15.0B
serverlessSearch 21.4KB 21.4KB -4.0B
total +20.0B
Unknown metric groups

API count

id before after diff
@kbn/core-chrome-browser 210 211 +1
cloud 84 83 -1
total -0

History

cc @sebelga

@sebelga sebelga marked this pull request as ready for review October 30, 2024 13:11
@sebelga sebelga requested review from a team as code owners October 30, 2024 13:11
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

@@ -195,7 +195,7 @@ export class NavigationPublicPlugin
}
}

if (isProjectNav) {
if (isProjectNav && solutionView !== 'classic') {
Copy link
Contributor

Choose a reason for hiding this comment

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

is this to make typescript happy? isProjectNav will always be true when solutionView !== 'classic', i guess unless we introduce a different solutionView value in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, just to make TS happy 😊

@sebelga sebelga merged commit 89fe548 into elastic:main Oct 31, 2024
33 of 34 checks passed
@sebelga sebelga deleted the stateful-sidenav/update-feedback-urls branch October 31, 2024 08:55
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.15, 8.16, 8.x

https://github.com/elastic/kibana/actions/runs/11608885027

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.15 Backport failed because of merge conflicts
8.16 Backport failed because of merge conflicts
8.x Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 198143

Questions ?

Please refer to the Backport tool documentation

sebelga added a commit to sebelga/kibana that referenced this pull request Oct 31, 2024
(cherry picked from commit 89fe548)

# Conflicts:
#	x-pack/plugins/serverless_search/public/plugin.ts
#	x-pack/plugins/spaces/tsconfig.json
@sebelga
Copy link
Contributor Author

sebelga commented Oct 31, 2024

💔 Some backports could not be created

Status Branch Result
8.x An unhandled error occurred. Please see the logs for details
8.16
8.15 Conflict resolution was aborted by the user

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 198143

Questions ?

Please refer to the Backport tool documentation

@sebelga
Copy link
Contributor Author

sebelga commented Oct 31, 2024

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

sebelga added a commit to sebelga/kibana that referenced this pull request Oct 31, 2024
(cherry picked from commit 89fe548)

# Conflicts:
#	x-pack/plugins/spaces/tsconfig.json
sebelga added a commit that referenced this pull request Oct 31, 2024
# Backport

This will backport the following commits from `main` to `8.16`:
- [[Stateful sidenav] Update feedback urls
(#198143)](#198143)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Sébastien
Loix","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-31T08:55:49Z","message":"[Stateful
sidenav] Update feedback urls
(#198143)","sha":"89fe54815d9c25b860b34451f3045d43994ad42e","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-major","Feature:Chrome"],"number":198143,"url":"https://github.com/elastic/kibana/pull/198143","mergeCommit":{"message":"[Stateful
sidenav] Update feedback urls
(#198143)","sha":"89fe54815d9c25b860b34451f3045d43994ad42e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198143","number":198143,"mergeCommit":{"message":"[Stateful
sidenav] Update feedback urls
(#198143)","sha":"89fe54815d9c25b860b34451f3045d43994ad42e"}}]}]
BACKPORT-->
sebelga added a commit that referenced this pull request Oct 31, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Stateful sidenav] Update feedback urls
(#198143)](#198143)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Sébastien
Loix","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-31T08:55:49Z","message":"[Stateful
sidenav] Update feedback urls
(#198143)","sha":"89fe54815d9c25b860b34451f3045d43994ad42e","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-major","Feature:Chrome"],"number":198143,"url":"https://github.com/elastic/kibana/pull/198143","mergeCommit":{"message":"[Stateful
sidenav] Update feedback urls
(#198143)","sha":"89fe54815d9c25b860b34451f3045d43994ad42e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198143","number":198143,"mergeCommit":{"message":"[Stateful
sidenav] Update feedback urls
(#198143)","sha":"89fe54815d9c25b860b34451f3045d43994ad42e"}},{"url":"https://github.com/elastic/kibana/pull/198479","number":198479,"branch":"8.16","state":"OPEN"}]}]
BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-major Backport to (8.x, 8.17, 8.16) the previous major branch and other branches in development Feature:Chrome Core's Chrome UI (sidenav, header, breadcrumbs) release_note:skip Skip the PR/issue when compiling release notes Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) v8.16.0 v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants