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

feat(extension-api): allow extension to register custom navigation route #8837

Merged
merged 7 commits into from
Sep 16, 2024

Conversation

axel7083
Copy link
Contributor

What does this PR do?

Following a discussion we had with @benoitf about #7709. The idea would be to make the extension register a unique navigation route id.

When they create a notification or a task, they could register the navigation route id with some arguments, so the core could navigate to the appropriate route.

Screenshot / video of UI

N/A

What issues does this PR fix or reference?

Required for #7709

How to test this PR?

  • Tests are covering the bug fix or the new feature

@axel7083 axel7083 requested review from benoitf and a team as code owners September 11, 2024 12:29
@axel7083 axel7083 requested review from feloy, deboer-tim and gastoner and removed request for a team September 11, 2024 12:29
benoitf
benoitf previously approved these changes Sep 11, 2024
Copy link
Collaborator

@benoitf benoitf left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Collaborator

@benoitf benoitf left a comment

Choose a reason for hiding this comment

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

I think routeid should be prefixed by the extension ID

so we're sure that there is no collapsing

@benoitf benoitf self-requested a review September 11, 2024 15:14
@benoitf benoitf dismissed their stale review September 11, 2024 15:14

need extensionId prefix

@axel7083 axel7083 force-pushed the feature/navigation-route-registry branch from 64e47dc to e0d5526 Compare September 13, 2024 09:21
Copy link
Contributor

@feloy feloy left a comment

Choose a reason for hiding this comment

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

just a couple of typos.
Thanks for adding the doc
LGTM

packages/extension-api/src/extension-api.d.ts Outdated Show resolved Hide resolved
packages/extension-api/src/extension-api.d.ts Outdated Show resolved Hide resolved
axel7083 and others added 7 commits September 16, 2024 10:16
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Co-authored-by: Philippe Martin <feloy1@gmail.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
@axel7083 axel7083 force-pushed the feature/navigation-route-registry branch from 8f59469 to 81db0f1 Compare September 16, 2024 08:16
@axel7083 axel7083 enabled auto-merge (squash) September 16, 2024 08:16
@axel7083 axel7083 merged commit 8c32ad4 into containers:main Sep 16, 2024
13 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.13.0 milestone Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants