Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sanity-io/sanity
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.10.3
Choose a base ref
...
head repository: sanity-io/sanity
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.11.0
Choose a head ref
  • 15 commits
  • 114 files changed
  • 9 contributors

Commits on May 12, 2023

  1. Copy the full SHA
    47302b5 View commit details
  2. Copy the full SHA
    5780487 View commit details
  3. fix(form/inputs): improve tracking of formState focusPath for PT-input (

    #4466)
    
    * fix(desk): DocumentPane must be keyed on id
    
    The document id must be part of the key here, or focusPath isn't propery reset when changing documents.
    
    * fix(form/inputs): improve tracking of formState focusPath for PT-input
    
    This will improve tracking of the formState focus in the PT-input. It can now restore focus on single spans of text.
    Also improved how we restore the editor selection when toggling fullscreen.
    
    Renamed hook from useScrollToOpenendMember to useTrackFocusPath as it covers more what it does.
    
    Made some small adjustments so that we scroll to both object blocks and text spans.
    
    * fix(portable-text-editor): emit selection after focused and unchanged
    
    If the selection is the same as when focus was lost, the editor will not emit a new one
    because there is no onChange done to the editor instance.
    
    Explicitly emit the selection here in that case.
    skogsmaskin committed May 12, 2023
    Copy the full SHA
    bdcea25 View commit details
  4. fix(form): show fields without groups only when 'All fields' is selec…

    …ted (#4472)
    
    * chore(test-studio): add repro case for non-grouped field appearing in all groups
    
    * fix(form): show fields without groups only when 'All fields' is selected
    bjoerge authored and skogsmaskin committed May 12, 2023
    Copy the full SHA
    b246b81 View commit details
  5. feat: document list search (#4436)

    * dev(test-studio): add draft documents item in structure
    
    * chore(core): export search types and helpers
    
    * feat(core): update sorting in search query creation helper
    
    * chore(core): update search types
    
    * test(core): update search query creation test
    
    * refactor(core): update search provider sort handling
    
    * fix(core): improve command list
    
    * feat(desk): add input provider to desk tool
    
    * feat(desk): add `contentAfter` prop to `PaneHeader`
    
    * feat(desk): add margin props to `PaneItem`
    
    * feat(desk): enable keyboard navigation in document header tabs
    
    * feat(desk): add conditional tab index to `DocumentPanelHeader`
    
    * feat(desk): add search input in `DocmentListPane`
    
    * feat(desk): add command list and update ui in `DocumentListPaneContent`
    
    * feat(desk): add conditional tab index in `DocumentListPaneHeader`
    
    * feat(desk): add search to `useDocumentList`
    
    * feat(desk): add command list to `ListPane`
    
    * feat(core,desk): add command list options, improve desk focus handling, add findability comments (#4441)
    
    * fix(desk): ensure non-document list panes conditionally set focus as expected
    
    * fix(core,desk): remove input type provider and hook, add support for command list focus ring offsets
    
    * fix(core): remove disableActivateOnHover option from command lists
    
    * refactor(desk): create separate list pane content component
    
    * refactor(desk): simplify list + document list pane content autofocusing behaviour
    
    * fix(desk): remove pane content autofocus behaviour
    
    * fix(core): don't prevent click event propagation
    
    * fix(core,desk): conditionally hide command list child selection on mouseleave
    
    * refactor(core,desk): remove unused focusVisible prop from command lists, simplify SearchCard
    
    * fix(core): fix type issues
    
    * feat(core): always include findability-mvi comment when generating search queries, append findability-source to both global and document pane lists
    
    * fix(desk): minor regression with list pane content padding
    
    * fix(core,desk): don't store previous reachedEnd state in command lists, check for lazyLoading status when attempting to load more content in document list panes
    
    * fix(core,desk): don't apply child active styles in command list when hideSelectionOnMouseLeave is true and the list is neither focused or in a hover state, fallback to index 0 in regular list panes when no previously selected item is found
    
    * refactor(core): rename hideSelectionOnMouseLeave to onlyShowSelectionWhenActive
    
    * fix(desk): apply padding to PaneHeader root and not only subActions / tabs, fixes padding issues in document changes
    
    * fix(core): fix failing command list / createSearchQuery tests
    
    * fix(core): simplify command list focus + blur events, don't hide children states on blur
    
    * refactor(core): remove unnecessary pointer overlay workaround
    
    * fix(core,desk): move command list mouse events to child container, don't wrap list pane items
    
    * fix(desk): hide pane content overflow scrollbar when also in an 'initial' loading state
    
    * "refactor(desk): add proper typing in `useDocumentList`"
    
    * fix(desk): remove scroll to index in list panes
    
    * dev(test-studio): add structure list with filter
    
    * fix(desk): update document list pane results messages
    
    * fix(desk): add debounce to listener and general fixes in `useDocumentList`
    
    * refactor(core): rename extendedProjection to __unstable_extendedProjection, add clarifying comments
    
    * fix(desk): text glitch when clearing search query
    
    * fix(core): re-enable command list pointer events on wheel events
    
    * refactor(desk): update comments and alphabetize
    
    * refactor(desk): change variable name in `useFetch`
    
    * fix(desk): improve document list query
    
    * refactor(desk): improve listen query in `useDocumentList`
    
    * refactor(desk): remove props added by spreaded props in `DocumentHeaderTabs`
    
    * fix(desk): improve error handling and data flow with listenSearchQuery
    
    * refactor(desk): clean up `listenSearchQuery` and remove `useDocumentTypeNames`
    
    * fix(core): apply mouse events on root CommandList component to prevent mouseleave triggering when the pointer overlay is visible
    
    * fix(core): ensure the document types popover autofocuses input first
    
    * refactor(desk): simplify loading logic in `useDocumentList`
    
    * refactor(desk): clarify comment in `useDocumentList`
    
    Co-authored-by: Bjørge Næss <bjoerge@gmail.com>
    
    ---------
    
    Co-authored-by: Robin Pyon <robinpyon@users.noreply.github.com>
    Co-authored-by: Robin Pyon <robin.pyon@gmail.com>
    Co-authored-by: Bjørge Næss <bjoerge@gmail.com>
    4 people authored and skogsmaskin committed May 12, 2023
    Copy the full SHA
    c6a729f View commit details
  6. Copy the full SHA
    eee026d View commit details
  7. chore: delete junk files (#4476)

    * chore: delete junk files
    
    * chore: add `.yarn` to `.gitignore`
    
    * chore: also remove `.yarnrc`
    stipsan authored and skogsmaskin committed May 12, 2023
    Copy the full SHA
    6b78d7e View commit details
  8. Copy the full SHA
    8e83e86 View commit details
  9. Copy the full SHA
    56c81ff View commit details
  10. Copy the full SHA
    9602964 View commit details
  11. 2
    Copy the full SHA
    97b923e View commit details
  12. fix(portable-text-editor): fix sync issue with text spans (#4467)

    * fix(portable-text-editor): fix sync issue with text spans
    
    When a span text is changed, it can't be updated only using setNodes on the node itself.
    
    Use Slate delete and insertText for this.
    
    * test(portable-text-editor): add some syncValue tests
    skogsmaskin authored May 12, 2023
    2
    Copy the full SHA
    036e68a View commit details

Commits on May 15, 2023

  1. fix(core): unset objects when no values in patch when empty value (#4495

    )
    
    * fix(core): add fix for objects for unsetting empty values
    
    * docs(core): add comments to onChange logic
    
    * chore(core): remove repeat comment
    
    * chore(core): Update comment in packages/sanity/src/core/form/members/object/fields/ObjectField.tsx
    
    Co-authored-by: Espen Hovlandsdal <espen@hovlandsdal.com>
    
    * chore(core): update comment to onchange logic for _type
    
    ---------
    
    Co-authored-by: Espen Hovlandsdal <espen@hovlandsdal.com>
    RitaDias and rexxars authored May 15, 2023
    2
    Copy the full SHA
    ba760f3 View commit details
  2. fix(deps): update dependency @sanity/client to v6 (#4454)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored and RitaDias committed May 15, 2023
    2
    Copy the full SHA
    e092721 View commit details
  3. v3.11.0

    rexxars committed May 15, 2023
    2
    Copy the full SHA
    be0f2d6 View commit details

This comparison is taking too long to generate.

Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.

You can try running this command locally to see the comparison on your machine:
git diff v3.10.3...v3.11.0