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

refactor(sanity, release): rename interface focused components from bundle to release #7469

Merged
merged 16 commits into from
Sep 10, 2024

Conversation

RitaDias
Copy link
Contributor

@RitaDias RitaDias commented Sep 5, 2024

Description

❗ My plan in the PR was to also move the components to the right folders. However, when I started doing that the tests in releases started failing and I wasn't able to find out why in time, so I kept them where they were and created a related ticket so this doesn't get lost.
I'm on rotation this week and he PR is already pretty big across different files so I want to make sure that this PR doesn't hang for long. I kept the moving folders out of scope.

  • Renamed BundlesMetadataContext.ts to ReleasesMetadaContext
  • Rename UI components from bundles[X] to releases[X]
  • General clean up of tests (unneeded props, duplicates etc)

❓ There are quite a few places within the components where we have const named based on bundles vs releases. We can rename those as well but I feel that the name of the components is more important?
I can rename those, but I wanted to get this larger chunk out of the way

What to review

Overall if naming needs to be re-adjusted

Copy link

vercel bot commented Sep 5, 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 10, 2024 8:31am
performance-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 10, 2024 8:31am
test-compiled-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 10, 2024 8:31am
test-next-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 10, 2024 8:31am
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 10, 2024 8:31am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview Sep 10, 2024 8:31am

Copy link
Contributor

github-actions bot commented Sep 5, 2024

No changes to documentation

Copy link
Contributor

github-actions bot commented Sep 5, 2024

Component Testing Report Updated Sep 10, 2024 8:35 AM (UTC)

✅ All Tests Passed -- expand for details
File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 51s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 9s 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) 46s 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) 27s 9 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 19s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 37s 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

@@ -25,15 +25,15 @@ export function getPreviewStateObservable(
schemaType: SchemaType,
documentId: string,
title: ReactNode,
bundlePerspective?: string,
perspective?: string,
Copy link
Member

Choose a reason for hiding this comment

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

Nice – great call renaming

@@ -46,7 +50,6 @@ describe('BundleMenuButton', () => {
_type: 'release',
archivedAt: undefined,
title: 'activeBundle',
slug: 'activeBundle',
Copy link
Member

Choose a reason for hiding this comment

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

Good catch!

Copy link
Member

@bjoerge bjoerge left a comment

Choose a reason for hiding this comment

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

Very nice, thank you for doing this @RitaDias!

@RitaDias RitaDias merged commit 0f8a0c9 into corel Sep 10, 2024
38 of 41 checks passed
@RitaDias RitaDias deleted the corel-150 branch September 10, 2024 08:48
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