-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
On hold - V3 splitview followup #37
Conversation
…home button for non-collapsible to make it reflect aria standards Change useDrag1D to be useMoveable and fire off events in 2D Use axis to determine reversals because we may only want to flip over one axis at a time
…ction that is passed the previous state value Write tests for useControlledState to verify all of this Change SplitView to rely more fully on useControlledState Add actions to controlled SplitView stories so that behavior can be confirmed there too
…d to what I thought it would be, will ask about in comments
# Conflicts: # packages/@react-aria/interactions/package.json # packages/@react-aria/interactions/src/index.ts
# Conflicts: # packages/@react-aria/interactions/package.json # packages/@react-aria/splitview/package.json # packages/@react-aria/utils/src/index.ts # packages/@react-spectrum/splitview/package.json # packages/@react-spectrum/splitview/src/SplitView.tsx # packages/@react-stately/splitview/src/useSplitViewState.ts # packages/@react-stately/utils/src/useControlledState.ts # yarn.lock
…into v3-splitview-followup # Conflicts: # packages/@react-aria/i18n/package.json # packages/@react-aria/splitview/package.json # packages/@react-aria/splitview/src/useSplitView.ts # packages/@react-aria/utils/src/index.ts # packages/@react-aria/utils/src/useDrag1D.ts # packages/@react-spectrum/splitview/package.json # packages/@react-spectrum/splitview/test/SplitView.test.js # packages/@react-stately/splitview/package.json # packages/@react-types/shared/src/index.d.ts # packages/@react-types/shared/src/splitview.d.ts
Build successful! View the storybook |
@snowystinger looks like you got a conflict. Seems pretty straight forward to resolve, gona resolve it locally and keep reviewing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When testing in storybook I found a bug in vertical where I click on the adjuster, I try to move down and it jumps up. I try to resize and it is confined to the new size of where it jumped to. Do this a few times, until it is almost at the top and not it jumps down.
What does the scrolling content story do?
@@ -1,3 +1,4 @@ | |||
import {direction} from '@react-types/shared'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add this to the package.json
// relative position of cursor to a container | ||
// or as keyboard events | ||
|
||
export function useMoveable({containerRef, flipAxis, onHover, onDrag, onPositionChange, onIncrement, onDecrement, onIncrementToMax, onDecrementToMin, onCollapseToggle}: UseMoveableProps): AllHTMLAttributes<HTMLElement> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't you deconstruct the props as below?
# Conflicts: # packages/@react-stately/utils/src/useControlledState.ts
Build successful! View the storybook |
Merge branch 'master' into v3-splitview-followup # Conflicts: # packages/@react-aria/splitview/package.json # packages/@react-aria/splitview/src/useSplitView.ts # packages/@react-spectrum/splitview/package.json # packages/@react-spectrum/splitview/src/SplitView.tsx # packages/@react-spectrum/splitview/stories/SplitView.stories.js # packages/@react-spectrum/splitview/test/SplitView.test.js # packages/@react-stately/utils/src/useControlledState.ts # packages/@react-stately/utils/test/useControlledState.test.js # packages/@react-types/shared/src/index.d.ts # packages/@react-types/shared/src/splitview.d.ts
Build successful! View the storybook |
…view-followup # Conflicts: # packages/@react-aria/i18n/src/context.tsx # packages/@react-aria/splitview/package.json # packages/@react-aria/splitview/src/useSplitView.ts # packages/@react-aria/utils/src/getOffset.ts # packages/@react-aria/utils/src/useDrag1D.ts # packages/@react-spectrum/splitview/package.json # packages/@react-stately/splitview/package.json # packages/@react-stately/splitview/src/useSplitViewState.ts # packages/@react-types/shared/src/index.d.ts # packages/@react-types/shared/src/splitview.d.ts
Build successful! 🎉 |
Closing since useMove work has made a lot of this obsolete. When we work on splitview again, we can look here for some of the remaining work |
Closes https://jira.corp.adobe.com/browse/RSP-1183, https://jira.corp.adobe.com/browse/RSP-1185, https://jira.corp.adobe.com/browse/RSP-1186, https://jira.corp.adobe.com/browse/RSP-1184, https://jira.corp.adobe.com/browse/RSP-1190, https://jira.corp.adobe.com/browse/RSP-1188, https://jira.corp.adobe.com/browse/RSP-1187
and there seem to be two follow up stories
so this also closes the subtask in the other one https://jira.corp.adobe.com/browse/RSP-1108
✅ Pull Request Checklist:
📝 Test Instructions:
Should match https://www.w3.org/TR/wai-aria-practices-1.1/#windowsplitter
clarified some language in the spec vs what is implemented in v2
🧢 Your Team:
RSP