-
-
Notifications
You must be signed in to change notification settings - Fork 398
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(blocks): Drag n drop v2. use local listeners instead of global. decompose monolith block-el #232
Merged
Conversation
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
itsrainingmani
pushed a commit
to itsrainingmani/athens
that referenced
this pull request
Jul 8, 2020
…decompose monolith block-el (athensresearch#232) * line 524 of blocks. if I use a dispatch, on-drag-end doesn't get called * feat(blocks): drag and drop PoC for local event handlers. refactor block-el
tangjeff0
added a commit
that referenced
this pull request
Jul 8, 2020
…ent` and `unindent` when already a top-level child (#228) * fix(blocks): prevent unindent when already a top-level child in current context (#209) If the node being unindented is the top-level node in the current context, prevent unindent by checking if parent node id is equal to id present in :current-route object. Co-authored-by: Adrien Lacquemant <github@alaq.io> Co-authored-by: nthd3gr33 <codinginenglish@gmail.com> * fix(blocks): prevent indent when already a leaf block (#209) A leaf block is a block with block order 0. If the block order is 0, do not indent and return a no-op in the indent event handler Co-authored-by: Adrien Lacquemant <github@alaq.io> Co-authored-by: nthd3gr33 <codinginenglish@gmail.com> * fix: prevent default browser behavior for tab and shift+tab when there is no indent or unindent happening (#209) Co-authored-by: Adrien Lacquemant <github@alaq.io> Co-authored-by: nthd3gr33 <codinginenglish@gmail.com> * fix(blocks) - Refactor indent and unindent event handlers * Move the block zero check in indent event handler to the on-key-down handler since it doesn't require any re-frame or datascript subscriptions * Rename context-root to context-root-uid and remove unnecessary comment in unindent event handler * Use the stricter parent ID to context-root uid check instead of (and parent grandpa) in unindent event handler Co-authored-by: Adrien Lacquemant <github@alaq.io> Co-authored-by: nthd3gr33 <codinginenglish@gmail.com> * Add missing devtool devcard deps (#229) * feat(blocks): Drag n drop v2. use local listeners instead of global. decompose monolith block-el (#232) * line 524 of blocks. if I use a dispatch, on-drag-end doesn't get called * feat(blocks): drag and drop PoC for local event handlers. refactor block-el Co-authored-by: Adrien Lacquemant <github@alaq.io> Co-authored-by: nthd3gr33 <codinginenglish@gmail.com> Co-authored-by: Tom H <git@tomisme.com> Co-authored-by: jeff <tangj1122@gmail.com>
3 tasks
korlaism
pushed a commit
to korlaism/athens
that referenced
this pull request
Jul 19, 2021
…decompose monolith block-el (athensresearch#232) * line 524 of blocks. if I use a dispatch, on-drag-end doesn't get called * feat(blocks): drag and drop PoC for local event handlers. refactor block-el
korlaism
pushed a commit
to korlaism/athens
that referenced
this pull request
Jul 19, 2021
…ent` and `unindent` when already a top-level child (athensresearch#228) * fix(blocks): prevent unindent when already a top-level child in current context (athensresearch#209) If the node being unindented is the top-level node in the current context, prevent unindent by checking if parent node id is equal to id present in :current-route object. Co-authored-by: Adrien Lacquemant <github@alaq.io> Co-authored-by: nthd3gr33 <codinginenglish@gmail.com> * fix(blocks): prevent indent when already a leaf block (athensresearch#209) A leaf block is a block with block order 0. If the block order is 0, do not indent and return a no-op in the indent event handler Co-authored-by: Adrien Lacquemant <github@alaq.io> Co-authored-by: nthd3gr33 <codinginenglish@gmail.com> * fix: prevent default browser behavior for tab and shift+tab when there is no indent or unindent happening (athensresearch#209) Co-authored-by: Adrien Lacquemant <github@alaq.io> Co-authored-by: nthd3gr33 <codinginenglish@gmail.com> * fix(blocks) - Refactor indent and unindent event handlers * Move the block zero check in indent event handler to the on-key-down handler since it doesn't require any re-frame or datascript subscriptions * Rename context-root to context-root-uid and remove unnecessary comment in unindent event handler * Use the stricter parent ID to context-root uid check instead of (and parent grandpa) in unindent event handler Co-authored-by: Adrien Lacquemant <github@alaq.io> Co-authored-by: nthd3gr33 <codinginenglish@gmail.com> * Add missing devtool devcard deps (athensresearch#229) * feat(blocks): Drag n drop v2. use local listeners instead of global. decompose monolith block-el (athensresearch#232) * line 524 of blocks. if I use a dispatch, on-drag-end doesn't get called * feat(blocks): drag and drop PoC for local event handlers. refactor block-el Co-authored-by: Adrien Lacquemant <github@alaq.io> Co-authored-by: nthd3gr33 <codinginenglish@gmail.com> Co-authored-by: Tom H <git@tomisme.com> Co-authored-by: jeff <tangj1122@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.