-
Notifications
You must be signed in to change notification settings - Fork 15
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
Make the token draggable #2441
Merged
Merged
Make the token draggable #2441
Changes from all commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
3f5594c
nft selector components
jakzaizzat 4735d26
Post flow using new component
jakzaizzat fbc3376
set pfp use new component
jakzaizzat ae087b9
Community flow use new component
jakzaizzat 0c6dd81
onboarding with new component
jakzaizzat d94276d
depreciate old component
jakzaizzat f17b171
Clean up messed up logic
jakzaizzat 3cc2026
Remove unused component
jakzaizzat caefb0c
lint
jakzaizzat b4cf07d
Added sync state on single contract screen
jakzaizzat 2cbbf9b
wip
jakzaizzat 5c92470
Render gallery editor
jakzaizzat 15ec0a0
Able to move between row
jakzaizzat 234d373
move gallery editor screen to root stack
jakzaizzat c870151
Add gallery bottom sheet
jakzaizzat bd280a9
Fix row change order
jakzaizzat 575229b
Able to sort section
jakzaizzat fe3f3a4
Add feature flag
jakzaizzat fd44771
Merge branch 'main' of https://github.com/gallery-so/gallery into jak…
jakzaizzat ee544e5
prettier
jakzaizzat bf50fbd
Refactor naming
jakzaizzat 7397abb
prettier
jakzaizzat 26d8322
Merge branch 'jakz/gallery-editor' of https://github.com/gallery-so/g…
jakzaizzat c1a03c8
Fix different between row <> section
jakzaizzat c625898
comment unused func
jakzaizzat 3985f74
Rename collection to section
jakzaizzat 8d6691c
Rename component
jakzaizzat f8fb95f
Able to clear activeRow
jakzaizzat dd57fc9
Merge branch 'main' of https://github.com/gallery-so/gallery into jak…
jakzaizzat 66e1f9c
Set limit to increment/decrement column
jakzaizzat 31ac556
simplify
jakzaizzat ad8836d
render whitespace
jakzaizzat 82ed341
lint
jakzaizzat 7ea323d
Add gallery editor actions
jakzaizzat 31a6f70
Able to add nft
jakzaizzat 2858523
fix missing error
jakzaizzat e66865f
Add GalleryDraggable
jakzaizzat e0d92fb
Remove previous dnd
jakzaizzat 0c7ce5f
Able to move section and row
jakzaizzat 162b85a
virtualize edtior
jakzaizzat bc00d8c
Able to move section up and down
jakzaizzat ce04073
Make row draggableeeee
jakzaizzat 027dae4
fix container height
jakzaizzat 03c2a67
Fix undraggable
jakzaizzat 51c6652
update row height & position when column changed
jakzaizzat d53059a
Save new row position to mutation
jakzaizzat 0d71c66
Remove unnecessary code
jakzaizzat ec51204
Add haptic feedback
jakzaizzat e891c54
Merge branch 'main' of https://github.com/gallery-so/gallery into jak…
jakzaizzat a0533e0
Strict feature flag
jakzaizzat ea7bf71
Remove unused library
jakzaizzat 22d1022
Clean up
jakzaizzat edd9cea
Move web editor logic to shared
jakzaizzat d4a019d
restrict ff
jakzaizzat 8bbae3a
prettier
jakzaizzat 4cb85fb
remove unused code
jakzaizzat 4804304
sync with scroll
jakzaizzat e23bb7d
Merge branch 'main' of https://github.com/gallery-so/gallery into jak…
jakzaizzat d2121e7
Make the token draggable
jakzaizzat 5bf155d
Merge branch 'main' of https://github.com/gallery-so/gallery into jak…
jakzaizzat 321ff0f
Remove conflict file
jakzaizzat 7764b72
Able to add new token into row
jakzaizzat 89e1ffe
update debugger data
jakzaizzat 45636f0
remove drag icon in the section
jakzaizzat 8da69d7
fix active border on row
jakzaizzat fe4d68c
Able to save new token order to db
jakzaizzat 0b10690
fix border on row
jakzaizzat 910db8c
remove comment
jakzaizzat b782555
Merge branch 'main' of https://github.com/gallery-so/gallery into jak…
jakzaizzat 7e8fbda
Added comment
jakzaizzat 65f3df3
memoize
jakzaizzat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ import Animated, { | |
useAnimatedStyle, | ||
useDerivedValue, | ||
useSharedValue, | ||
withSpring, | ||
withTiming, | ||
} from 'react-native-reanimated'; | ||
import { useSafeAreaInsets } from 'react-native-safe-area-context'; | ||
|
@@ -247,12 +246,7 @@ export function SortableRow({ | |
left: 0, | ||
right: 0, | ||
zIndex: zIndex, | ||
transform: [ | ||
{ translateY: translateY.value ?? 0 }, | ||
{ | ||
scale: withSpring(isGestureActive.value ? 1.05 : 1), | ||
}, | ||
], | ||
Comment on lines
-250
to
-255
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the scale for the row here. Kind of weird when hovering the token to drag but the **row ** as triggered too |
||
transform: [{ translateY: translateY.value ?? 0 }], | ||
}; | ||
}, []); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This component responsible to render the item in grid view
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.
can we add this as a comment?