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(scheduled-publishing): don't include it if it's the only plugin available #6530

Merged
merged 2 commits into from May 15, 2024

Conversation

pedrobonamin
Copy link
Contributor

@pedrobonamin pedrobonamin commented Apr 30, 2024

Before the implementation of scheduled publishing as a default feature, when visiting the studio with no plugins added users were seeing the following screen:

Screenshot 2024-04-30 at 13 05 32

Once scheduled publishing was implemented, users no longer see that screen and instead are seeing the schedule publishing tool.
This PR fixes that, and only includes into the plugins array the scheduled publishing tool if other plugins have been added to the source.

Description

What to review

Testing

Notes for release

Copy link

vercel bot commented Apr 30, 2024

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

Name Status Preview Comments Updated (UTC)
performance-studio ✅ Ready (Inspect) Visit Preview May 6, 2024 4:44pm
test-next-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2024 4:44pm
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2024 4:44pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview May 6, 2024 4:44pm

Copy link
Contributor

No changes to documentation

Copy link
Contributor

github-actions bot commented Apr 30, 2024

Component Testing Report Updated May 6, 2024 4:49 PM (UTC)

File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 39s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 6s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 26s 6 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 20s 6 3 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 14s 6 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 36s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 1m 2s 14 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 1m 5s 18 0 0
formBuilder/inputs/PortableText/PresenceCursors.spec.tsx ✅ Passed (Inspect) 7s 3 9 0
formBuilder/inputs/PortableText/RangeDecoration.spec.tsx ✅ Passed (Inspect) 21s 9 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 15s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 22s 9 0 0

@pedrobonamin pedrobonamin marked this pull request as ready for review April 30, 2024 12:00
@pedrobonamin pedrobonamin requested a review from a team as a code owner April 30, 2024 12:00
@pedrobonamin pedrobonamin requested review from rexxars and removed request for a team April 30, 2024 12:00
@pedrobonamin pedrobonamin changed the title fix(scheduled-publishing): don't include the tool if it's the plugin available fix(scheduled-publishing): don't include it if it's the only plugin available Apr 30, 2024
@jordanl17
Copy link
Member

Just a thought on whether there are any tests we can add around this @pedrobonamin ?

@pedrobonamin pedrobonamin force-pushed the fix-scheduled-publishing-tool branch from 616c57b to e0c3c5e Compare May 6, 2024 16:39
@pedrobonamin
Copy link
Contributor Author

Just a thought on whether there are any tests we can add around this @pedrobonamin ?

Thanks @jordanl17 added some tests for this.

@pedrobonamin pedrobonamin added this pull request to the merge queue May 15, 2024
Merged via the queue into next with commit caa5567 May 15, 2024
39 checks passed
@pedrobonamin pedrobonamin deleted the fix-scheduled-publishing-tool branch May 15, 2024 07:25
ricokahler pushed a commit that referenced this pull request May 15, 2024
…vailable (#6530)

* fix(scheduled-publishing): don't include the tool if it's the plugin available

* chore(core): add tests for resolve default plugins
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.

None yet

2 participants