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

fix(core): update intent link for releases tool #7468

Merged
merged 3 commits into from
Sep 5, 2024
Merged

Conversation

pedrobonamin
Copy link
Contributor

@pedrobonamin pedrobonamin commented Sep 4, 2024

Description

Fixes an issue with intent link in which the intent was not resolved correctly.
It also replaces the for a component, which will allow users to cmd + click to open in new tab.

Updates the bundleId param in the releases tool router for releaseId

What to review

Are the changes correct?

Testing

Existing tests have been updated to reflect the change.

Notes for release

n/a

Copy link

vercel bot commented Sep 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
page-building-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 6:53am
performance-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 6:53am
test-compiled-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 6:53am
test-next-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 6:53am
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 6:53am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview Sep 5, 2024 6:53am

Copy link
Contributor

github-actions bot commented Sep 4, 2024

No changes to documentation

return Boolean(intent === 'release' && params.slug)
canHandleIntent: (intent) => {
// If intent is release, open the releases tool.
return Boolean(intent === 'release')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Instead of not resolving the intent if the params are missing, resolve to the tool at root level.

Copy link
Contributor

github-actions bot commented Sep 4, 2024

Component Testing Report Updated Sep 5, 2024 6:55 AM (UTC)

✅ All Tests Passed -- expand for details
File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 49s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 8s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 31s 6 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 36s 11 7 0
formBuilder/inputs/PortableText/copyPaste/CopyPasteFields.spec.tsx ✅ Passed (Inspect) 0s 0 12 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 18s 6 0 0
formBuilder/inputs/PortableText/DisableFocusAndUnset.spec.tsx ✅ Passed (Inspect) 10s 3 0 0
formBuilder/inputs/PortableText/DragAndDrop.spec.tsx ✅ Passed (Inspect) 3m 0s 0 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 45s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 1m 50s 21 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 1m 16s 18 0 0
formBuilder/inputs/PortableText/PresenceCursors.spec.tsx ✅ Passed (Inspect) 9s 3 9 0
formBuilder/inputs/PortableText/RangeDecoration.spec.tsx ✅ Passed (Inspect) 26s 9 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 18s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 36s 12 0 0
formBuilder/tree-editing/TreeEditing.spec.tsx ✅ Passed (Inspect) 0s 0 3 0
formBuilder/tree-editing/TreeEditingNestedObjects.spec.tsx ✅ Passed (Inspect) 0s 0 3 0

@pedrobonamin pedrobonamin requested review from binoy14, a team and juice49 and removed request for a team and binoy14 September 5, 2024 06:56
expect(screen.queryByTestId('button-document-release')).toBeNull()
})

it('should navigate to the release intent when the bundle badge is clicked', async () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test doesn't apply anymore, because we are not rendering a button, we are now rendering a <a>
That's also the reason why instead of using a getByTestId getter for the button we are now using a getByRole("link") getter in this tests

Copy link
Contributor

@RitaDias RitaDias left a comment

Choose a reason for hiding this comment

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

Great job ✅

@pedrobonamin pedrobonamin merged commit 0ccb10d into corel Sep 5, 2024
40 of 42 checks passed
@pedrobonamin pedrobonamin deleted the corel-157 branch September 5, 2024 07:33
RitaDias pushed a commit that referenced this pull request Oct 3, 2024
* fix(core): update intent link for releases tool

* chore(core): rename releases tool bundleId param to releaseId

* chore(core): update DocumentPerspectiveMenu test
juice49 pushed a commit that referenced this pull request Oct 4, 2024
* fix(core): update intent link for releases tool

* chore(core): rename releases tool bundleId param to releaseId

* chore(core): update DocumentPerspectiveMenu test
juice49 pushed a commit that referenced this pull request Oct 7, 2024
* fix(core): update intent link for releases tool

* chore(core): rename releases tool bundleId param to releaseId

* chore(core): update DocumentPerspectiveMenu test
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.

2 participants