-
Notifications
You must be signed in to change notification settings - Fork 121
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
Side Drawer #221
Side Drawer #221
Conversation
added hamburger menu for both mobile and desktop view and added |
I recommend rebasing on dev to avoid additional merge conflict headaches. |
Will do that |
42a8a0a
to
d480554
Compare
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.
I'm very happy with what I see! The functionality is nearly perfect, and you accounted for the many, spread out changes needed to sync with state, local, and remote.
The suggestions are a combination of code quality recommendations, small bugs, and the use of mutations in existingThoughtChange
.
Please run the linter manually (npm run lint
) as the automated check is not failing properly.
The only other bug not listed here is the neglect of existingThoughtMove
. When a thought is moved (either through drag-and-drop or the keyboard command Ctrl + Shift + Up/Down), it breaks recently edited functionality. The links should be updated as with edit.
|
|
d480554
to
5fef9e9
Compare
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.
Thanks!
A small change needs to be made to ensure this works when editing thoughts in the Context View (Ctrl + Shift + S). When in the context view, the path needs to be linearized into a simple context. pathToContext
assumes the given path has already been simplified and doesn't handle this unfortunately.
e.g. Given the following structure:
- A
- x (cursor)
- 1
- x (cursor)
- B
- x
- 2
- x
If the cursor is at A • ~x
(where ~
indicates the Context View is activated), then the user can navigate to A • ~x • B
and B's child A • ~x • B • 2
:
- A
- ~x
- B
- 2 (cursor)
- B
- ~x
In this case, the cursor is A • ~x • B • 2
, but the recently edited thought should be B • 2
.
This should be as simple as using thoughtsNew
instead of cursorNew
in existingThoughtChange
etc.
Let me know if that doesn't make sense! Thanks!
22ccd1e
to
33e7bd1
Compare
|
|
33e7bd1
to
74d776c
Compare
src/components/Sidebar.js
Outdated
const toggleEllipsis = () => { | ||
setEllipsize(!ellipsize) | ||
} |
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 make this internal to the Breadcrumbs component? I think it makes more sense there than in the Sidebar, which shouldn't be concerned with ellipses.
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.
Yes it makes total sense.
…tall script for adding bit registry
…entlyEdited, updated all the descentdant context in the array when a thought is changed
… updated. made small changes to sidedrawer
…ed recently edit limit constant and added lodash.clonedeep
…gThoughtMove remains
…tating functions and fixed eslint errors
…ly edited thoughts tab
…dcrumbs component instead of Sidebar.)
27e76af
to
892b9a2
Compare
Fixes #180