-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
fix(blocks): prevent indent
when already a leaf block, prevent indent
and unindent
when already a top-level child
#209
Comments
Can this issue be assigned to @nthd3gr33 @itsrainingmani and myself @alaq? We are working on a solution together. Thank you! |
Can you comment @itsrainingmani so I can also assign this to you? |
Hi Jeff |
Found additional unexpected behavior when making the video demo: Pressing
Tested on Dynalist and Roam to double-check that the expected behavior is the same on those platforms. Should I create a new issue or add this to this issue (my recommendation)? |
Add it to this issue @nthd3gr33. I think you can edit title (and initial description) as well |
indent
when already a leaf block, prevent unindent
when already a top-level childindent
when already a leaf block, prevent indent
and unindent
when already a top-level child
…nt 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>
…#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>
…e is no indent or unindent happening (athensresearch#209) Co-authored-by: Adrien Lacquemant <github@alaq.io> Co-authored-by: nthd3gr33 <codinginenglish@gmail.com>
…nt 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>
…#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>
…e is no indent or unindent happening (athensresearch#209) Co-authored-by: Adrien Lacquemant <github@alaq.io> Co-authored-by: nthd3gr33 <codinginenglish@gmail.com>
…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>
closed by #228 |
…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>
No description provided.
The text was updated successfully, but these errors were encountered: