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(core): array editing improvements #6682

Open
wants to merge 114 commits into
base: next
Choose a base branch
from
Open

feat(core): array editing improvements #6682

wants to merge 114 commits into from

Conversation

RitaDias
Copy link
Contributor

@RitaDias RitaDias commented May 15, 2024

Description

This pull request introduces a new experience for editing arrays of objects. The form now allows for navigation through a single dialog instead of multiple dialogs layered on top of each other.

Screenshot 2024-05-31 at 18 46 50

What to review

  • General review of the code
  • Make sure the feature is behaving as expected.
    • The tree structure navigation in the sidebar
    • The search
    • The breadcrumbs navigation
  • Everything should work as it currently does, except that the new dialog is being used.
  • ⚠️ Since this is a shadow release, the most crucial aspect to review is that the feature is only visible in the Studio if it is enabled in the config (see below). If it is not present or is disabled in the configuration, the new way of editing arrays should not be visible.
export default defineConfig({
  // ...

  features: {
    beta: {
      treeArrayEditing: {
        enabled: true
      }
    }
  }
})

Notes

  • Arrays within the The Portable Text Editor will continue to use the existing solution.

Notes for release

N/A – this is a shadow release

Copy link

vercel bot commented May 15, 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 Jun 2, 2024 6:38pm
performance-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 2, 2024 6:38pm
test-compiled-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 2, 2024 6:38pm
test-next-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 2, 2024 6:38pm
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 2, 2024 6:38pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview Jun 2, 2024 6:38pm

Copy link
Contributor

No changes to documentation

@hermanwikner hermanwikner changed the title array editing WIP feat(core): array editing improvements May 15, 2024
@hermanwikner hermanwikner changed the title feat(core): array editing improvements feat(core): array editing improvements [WIP] May 15, 2024
Copy link
Contributor

github-actions bot commented May 15, 2024

Component Testing Report Updated Jun 2, 2024 6:43 PM (UTC)

File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 37s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 6s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 27s 6 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 31s 11 7 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 14s 6 0 0
formBuilder/inputs/PortableText/DisableFocusAndUnset.spec.tsx ✅ Passed (Inspect) 8s 3 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 37s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 1m 18s 20 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 1m 4s 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) 30s 12 0 0

@hermanwikner hermanwikner self-assigned this May 15, 2024
@RitaDias RitaDias requested review from hermanwikner and removed request for hermanwikner May 16, 2024 11:34
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