-
-
Notifications
You must be signed in to change notification settings - Fork 51
feat(Quote Replies): Add action buttons to replies in post notes (visible) #2112
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
Open
marcustyphoon
wants to merge
43
commits into
AprilSylph:master
Choose a base branch
from
marcustyphoon:quote-replies-post-notes-button
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 35 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
a7cecbc
implement meatball button
marcustyphoon ae0d550
meatballs: fix onclick prop capitalization
marcustyphoon 1511fa6
implement functionality
marcustyphoon 56e824a
remove debug label
marcustyphoon 551bf9e
misc cleanup
marcustyphoon 6085540
temporarily revert quote replies.js changes
marcustyphoon 8df8fde
Merge branch 'master' into quote-replies-post-notes
marcustyphoon 198f41c
reimplement quote replies.js changes
marcustyphoon 1bdaa7c
Merge remote-tracking branch 'upstream/master' into quote-replies-pos…
marcustyphoon 393b6cd
Merge remote-tracking branch 'upstream/master' into quote-replies-pos…
marcustyphoon 9c5a899
partial refactor to api call
marcustyphoon 887a4d9
Revert "partial refactor to api call"
marcustyphoon 2c16d8c
refactor: name parent note props explictly
marcustyphoon 618d045
refactor: DRY
marcustyphoon f7990fe
refactor: Renames
marcustyphoon 2dd72fe
refactor: combine content and tags
marcustyphoon 511599f
Merge branch 'master' into quote-replies-post-notes
marcustyphoon d075256
update for new footer
marcustyphoon 1d511a6
Merge remote-tracking branch 'upstream/master' into quote-replies-pos…
marcustyphoon 48327ea
update
marcustyphoon 505fbb4
Merge branch 'master' into quote-replies-post-notes
marcustyphoon 6b624dc
use getClosestRenderedElement
marcustyphoon eaa6a0c
Merge branch 'master' into quote-replies-post-notes
marcustyphoon 5d48cad
fix commas
marcustyphoon 9ec059e
Revert "fix commas"
marcustyphoon 488c8be
Reapply "fix commas"
marcustyphoon 59ac40a
Merge remote-tracking branch 'upstream/master' into quote-replies-pos…
marcustyphoon be24799
organize imports
marcustyphoon dbf2d5d
remove weakMemoize
marcustyphoon 55c324c
implement buttons instead of meatball items
marcustyphoon c5b8169
refactor: rename vars
marcustyphoon 645cd41
refactor: rename more things
marcustyphoon 1215c4e
refactor: rename more things
marcustyphoon 0f0b903
remove duplicate css
marcustyphoon 20ea8c7
simplify react prop fetching (traverse dom instead of react)
marcustyphoon f243255
Merge remote-tracking branch 'upstream/master' into quote-replies-pos…
marcustyphoon 85abac2
tweak button classes
marcustyphoon 7d4c693
tweak comment
marcustyphoon 4affd40
simplify react prop fetching more; use timelineObject instead
marcustyphoon 1c34fa7
comment note reply types
marcustyphoon 7159005
rearrange functions
marcustyphoon 3fde53d
Revert "refactor(Quote Replies): Rename/organize internal functions (…
marcustyphoon 989e3cc
Merge branch 'master' into quote-replies-post-notes-button
marcustyphoon 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| export default function unburyNoteProps () { | ||
| const noteElement = this; | ||
| const reactKey = Object.keys(noteElement).find(key => key.startsWith('__reactFiber')); | ||
| let fiber = noteElement[reactKey]; | ||
|
|
||
| while (fiber !== null) { | ||
| const props = fiber.memoizedProps || {}; | ||
| // requiring rootReplyId ensures that we return the same props signature on parent and child replies | ||
| if (props.rootReplyId && props.note?.replyId) { | ||
| return props; | ||
| } | ||
| fiber = fiber.return; | ||
| } | ||
| } |
This file contains hidden or 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
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.
Interesting note from testing: this line excludes quote replying yourself, which probably makes sense in general... but a) maybe it doesn't (something something group blogs), and b) that's inconsistent with the behavior on activity items, which totally does let you quote reply yourself!
(comment copied from previous PR)