Skip to content
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

Checkboxes #22

Merged
merged 2 commits into from
Oct 26, 2019
Merged

Checkboxes #22

merged 2 commits into from
Oct 26, 2019

Conversation

bradbyte
Copy link
Collaborator

This allows for toggling checkboxes in real time. In order to do this, I had to swap the markdown renderer library so we could better tap into the core renderers.

Essentially, it scrubs through the note and finds checkboxes, and inserts an empty url into the label for the line index. Then, when the Checkbox component receives the children (as valid React JSX ) to render, it grabs the href attribute as the "key" to use when updating the checkbox on toggle.

Copy link
Owner

@johncorrelli johncorrelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dude! this is sweet.... just a few small changes please.

src/components/import-notes/ImportNotes.jsx Show resolved Hide resolved
src/components/note/Note.jsx Outdated Show resolved Hide resolved
src/components/shared/renderers/ListItem.jsx Outdated Show resolved Hide resolved
@bradbyte
Copy link
Collaborator Author

@johncorrelli addressed the review feedback in the fixup commit.

@bradbyte bradbyte removed their assignment Oct 24, 2019
Copy link
Owner

@johncorrelli johncorrelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the changes! Just one last been of feedback from a QA perspective.... I think those should do the trick, but I didn't checkout your code, so I'm not 100% sure.

src/components/shared/renderers/checkbox-styles.scss Outdated Show resolved Hide resolved
src/components/shared/renderers/Checkbox.jsx Outdated Show resolved Hide resolved
Copy link
Owner

@johncorrelli johncorrelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot from 2019-10-25 08-37-28
🕙

@bradbyte
Copy link
Collaborator Author

@johncorrelli do you want me to squash this all up?

@bradbyte bradbyte removed their assignment Oct 25, 2019
@bradbyte bradbyte force-pushed the feat/checkboxes branch 2 times, most recently from b8608eb to 1b2a67a Compare October 25, 2019 16:57
- React-markdown-renderer seems to have been abandoned and lacks functionality to customize individual nodes. It seems to be a pretty straight forward swap, with exception to how the syntax highlight works.
@bradbyte
Copy link
Collaborator Author

Copy link
Owner

@johncorrelli johncorrelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your #hacktoberfest contribution @bradbumbalough - it is much appreciated!

@johncorrelli johncorrelli merged commit 1ee8701 into johncorrelli:master Oct 26, 2019
@bradbyte bradbyte deleted the feat/checkboxes branch October 26, 2019 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants