Skip to content

Remote Reply: Use Interactivity API #1721

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

Merged
merged 231 commits into from
May 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
231 commits
Select commit Hold shift + click to select a range
f0eb94a
Follow Me: Make it interactive!
obenland May 10, 2025
8508ac4
Remove i18n dependency from view
obenland May 10, 2025
2c46a44
Account for button size setting
obenland May 10, 2025
02ef722
Move most block attributes to context
obenland May 10, 2025
79367f3
More updates
obenland May 10, 2025
47134bc
Minor style adjustments
obenland May 10, 2025
42b2ab6
Remove old follow-me.js
obenland May 10, 2025
36cb8b8
update
obenland May 11, 2025
facbe31
Various style fixes
obenland May 11, 2025
e932d1e
Reuse state
obenland May 11, 2025
0b54a7c
Better default profile
obenland May 11, 2025
c24710c
Make things less complicated
obenland May 11, 2025
4a0dcbd
Keep focus in the modal
obenland May 11, 2025
b8f2c24
Save dev
obenland May 11, 2025
6e0a3db
Some more sassiness
obenland May 11, 2025
a3b11ad
Bump version and add preview
obenland May 11, 2025
9357304
Add changelog
matticbot May 11, 2025
e286654
Update styles to better reflect existing design
obenland May 11, 2025
016167b
Follow Me: Use button block (#1692)
obenland May 12, 2025
9c40f60
Add needed packages
obenland May 15, 2025
253ac4f
update module
obenland May 15, 2025
2ce8bdc
Merge branch 'trunk' into try/follow-me-interactivity
obenland May 15, 2025
83c7b95
Update build
obenland May 15, 2025
b98e0a9
Bail if there is no actor
obenland May 15, 2025
9a2dca8
Account for inherit user
obenland May 15, 2025
f2580e4
Align styles better with trunk
obenland May 15, 2025
4ebcd1a
Small style update
obenland May 15, 2025
994af6e
More style updates
obenland May 15, 2025
2923839
Keep modal color separate
obenland May 15, 2025
b276af0
Make dependency on apiFetch explicit
obenland May 15, 2025
f293b20
More standardized buttons and fonts
obenland May 15, 2025
6a33da1
Minor style and focus improvements
obenland May 15, 2025
c5d65cd
First pass
obenland May 16, 2025
b8ec4ee
update
obenland May 16, 2025
b3f3903
Add fallback and simplify
obenland May 16, 2025
6792e0d
Format
obenland May 17, 2025
2cd9722
Save latest state
obenland May 17, 2025
00506b7
Remove animation
obenland May 17, 2025
25040f6
Remove unused avatars
obenland May 17, 2025
384ae6a
Add needed packages
obenland May 15, 2025
c7903b0
update module
obenland May 15, 2025
7a0c998
First pass
obenland May 16, 2025
1cc0680
update
obenland May 16, 2025
d3a9649
Add fallback and simplify
obenland May 16, 2025
9e044a7
Format
obenland May 17, 2025
8546b09
Save latest state
obenland May 17, 2025
29feaaf
Remove animation
obenland May 17, 2025
8001a71
Remove unused avatars
obenland May 17, 2025
acf11a3
New build
obenland May 17, 2025
467be8b
Merge branch 'update/reactions-interactivity' of https://github.com/A…
obenland May 17, 2025
fdf9f1f
update block.json
obenland May 17, 2025
12ca4a9
Update
obenland May 17, 2025
b03396c
Full overlay
obenland May 17, 2025
ed81af9
Server-side rendering
obenland May 18, 2025
25e686a
Hide title when there are no reactions
obenland May 18, 2025
314e304
Fix rendering
obenland May 18, 2025
7fd4384
Improve popup
obenland May 18, 2025
64c4bf1
Align popover correctly
obenland May 18, 2025
8fb9eab
Update block supports and account for alignment
obenland May 18, 2025
383e3bd
Edit updates
obenland May 18, 2025
b8c2b91
Default theme devs like box-shadows
obenland May 18, 2025
f86bc55
Consolidate directions callback
obenland May 19, 2025
15c0875
Add dark mode styles.
obenland May 19, 2025
c6b54f2
Rebuild build files
obenland May 19, 2025
6d85d64
Tabs > Spaces
obenland May 19, 2025
0f202b4
Merge branch 'trunk' into try/follow-me-interactivity
obenland May 19, 2025
9a9490c
Tabs > Spaces
obenland May 19, 2025
dfee0d2
Improve migration
obenland May 19, 2025
899f24e
Update add_directions method
obenland May 19, 2025
8a2d645
Update deprecation.js
obenland May 19, 2025
e64e458
Cache computed styles
obenland May 19, 2025
3517b64
Rebuild
obenland May 20, 2025
f605d81
Genuinely my best good faith effort to make colors work across themes.
obenland May 20, 2025
8a703a3
Merge branch 'trunk' into try/follow-me-interactivity
obenland May 20, 2025
efb0a99
Make webfinger input readonly so it can be highlighted
obenland May 20, 2025
0061fc3
Accept webfingers without leading `@`
obenland May 20, 2025
f84b8be
Add placeholder styles
obenland May 20, 2025
374c0e2
Add min-width to button
obenland May 20, 2025
7ff16aa
Remove any errors when closing modal
obenland May 20, 2025
6495e81
Fix a few more theme styles
obenland May 20, 2025
7b977cc
Fix close button in 2021
obenland May 20, 2025
8b2e47b
Give close button the theme treatment
obenland May 20, 2025
631ec1b
Delete plugin.js.map
obenland May 20, 2025
569c38f
Remote Reply: Use Interactivity API
obenland May 20, 2025
94b890e
Fix build files
obenland May 20, 2025
4c66f52
Merge branch 'trunk' into update/reactions-interactivity
obenland May 20, 2025
64a11db
Remove map files
obenland May 20, 2025
0e5086f
Fix phpcs
obenland May 20, 2025
fa04e22
Merge branch 'trunk' into try/reply-block-interactivity
obenland May 21, 2025
731dc09
Merge branch 'trunk' into update/reactions-interactivity
obenland May 21, 2025
0571542
Merge branch 'trunk' into update/reactions-interactivity
obenland May 21, 2025
75e5cab
Rebuild after trunk merge
obenland May 21, 2025
5b9a31f
Remove unused variables
obenland May 21, 2025
ff3456f
Fix more docs
obenland May 21, 2025
fefa5cc
Toggle Modal and update styles
obenland May 21, 2025
f27adf4
Improve calculateVisibleAvatars
obenland May 21, 2025
00269b4
Standardize context with Follow Me
obenland May 21, 2025
5f1d699
Broader theme support
obenland May 21, 2025
461f717
Fix tests
obenland May 21, 2025
7af2f7b
Inline block registration
obenland May 21, 2025
d4ae38b
Add changelog
matticbot May 21, 2025
2398c27
Fix dummy generation
obenland May 21, 2025
0e751ca
Merge branch 'update/reactions-interactivity' of https://github.com/A…
obenland May 21, 2025
3884b58
Show real reactions in Edit if available
obenland May 21, 2025
2b19245
Update reactions popover
obenland May 21, 2025
ebc48c0
Hide entire block when there are no reactions
obenland May 21, 2025
8c7c5cc
Comments updates
obenland May 21, 2025
c14438e
Fix tests
obenland May 21, 2025
f395833
Remove unnecessary styles
obenland May 22, 2025
2bd0907
Align modal styles between blocks
obenland May 22, 2025
1a66be1
First pass
obenland May 22, 2025
ac9d273
Remove self-closing
obenland May 22, 2025
4d68cb0
Improve modal API
obenland May 22, 2025
3e020b4
Use getElement where appropriate
obenland May 23, 2025
7d469c0
Heureka!
obenland May 23, 2025
3cead3c
Merge stores and document
obenland May 23, 2025
d452e62
Naming
obenland May 23, 2025
13120f5
Merge branch 'update/modal-abstraction' into try/reply-block-interact…
obenland May 25, 2025
1758335
Use Modal component
obenland May 25, 2025
513dfcd
Improve cross-theme styling
obenland May 26, 2025
964ac24
Style fixes
obenland May 26, 2025
f26b7df
Follow Me: Make it interactive!
obenland May 10, 2025
e1fe1a9
Account for button size setting
obenland May 10, 2025
5734203
Move most block attributes to context
obenland May 10, 2025
40e50fb
More updates
obenland May 10, 2025
e305f38
Minor style adjustments
obenland May 10, 2025
67b4c12
Remove old follow-me.js
obenland May 10, 2025
6c96f9c
update
obenland May 11, 2025
61c8850
Various style fixes
obenland May 11, 2025
a1b741e
Reuse state
obenland May 11, 2025
13de452
Better default profile
obenland May 11, 2025
56adbb3
Make things less complicated
obenland May 11, 2025
2859f57
Keep focus in the modal
obenland May 11, 2025
086f7c3
Some more sassiness
obenland May 11, 2025
bc8c275
Bump version and add preview
obenland May 11, 2025
a139239
Update styles to better reflect existing design
obenland May 11, 2025
8ed8d54
Follow Me: Use button block (#1692)
obenland May 12, 2025
b6f75a0
Update build
obenland May 15, 2025
5ba0c48
Bail if there is no actor
obenland May 15, 2025
7d12aaf
Account for inherit user
obenland May 15, 2025
ca32c50
Align styles better with trunk
obenland May 15, 2025
688b7c6
Small style update
obenland May 15, 2025
0346b73
More style updates
obenland May 15, 2025
4584b14
Keep modal color separate
obenland May 15, 2025
a68cb4e
Make dependency on apiFetch explicit
obenland May 15, 2025
918ebd3
More standardized buttons and fonts
obenland May 15, 2025
d46d1b7
Minor style and focus improvements
obenland May 15, 2025
52aeb33
Consolidate directions callback
obenland May 19, 2025
20e6307
Add dark mode styles.
obenland May 19, 2025
0d634ba
Rebuild build files
obenland May 19, 2025
d5a439c
Tabs > Spaces
obenland May 19, 2025
d6332f9
Improve migration
obenland May 19, 2025
d622b6a
Genuinely my best good faith effort to make colors work across themes.
obenland May 20, 2025
d91bb46
Make webfinger input readonly so it can be highlighted
obenland May 20, 2025
a36cdab
Accept webfingers without leading `@`
obenland May 20, 2025
d2e9793
Add placeholder styles
obenland May 20, 2025
cdbbbde
Add min-width to button
obenland May 20, 2025
73658d1
Remove any errors when closing modal
obenland May 20, 2025
09421d7
Fix a few more theme styles
obenland May 20, 2025
e757c0c
Fix close button in 2021
obenland May 20, 2025
a80c4ed
Give close button the theme treatment
obenland May 20, 2025
558a369
Delete plugin.js.map
obenland May 20, 2025
d0d54d8
Remote Reply: Use Interactivity API
obenland May 20, 2025
9fa5a9b
Fix build files
obenland May 20, 2025
4c0899c
Add needed packages
obenland May 15, 2025
4e8e08d
update module
obenland May 15, 2025
c5628f1
First pass
obenland May 16, 2025
b739ab0
update
obenland May 16, 2025
7db3f06
Add fallback and simplify
obenland May 16, 2025
085d48e
Save latest state
obenland May 17, 2025
ca14979
Remove animation
obenland May 17, 2025
9bf425e
New build
obenland May 17, 2025
889c394
Add needed packages
obenland May 15, 2025
e765436
update module
obenland May 15, 2025
21fcf20
First pass
obenland May 16, 2025
c293043
Save latest state
obenland May 17, 2025
3a6722f
Remove unused avatars
obenland May 17, 2025
e24ba03
update block.json
obenland May 17, 2025
5fa4b58
Update
obenland May 17, 2025
8f6fa43
Full overlay
obenland May 17, 2025
f053753
Server-side rendering
obenland May 18, 2025
cd483e0
Hide title when there are no reactions
obenland May 18, 2025
325d995
Fix rendering
obenland May 18, 2025
1b90fb6
Improve popup
obenland May 18, 2025
a439f5a
Align popover correctly
obenland May 18, 2025
896f621
Update block supports and account for alignment
obenland May 18, 2025
8622504
Edit updates
obenland May 18, 2025
e472450
Default theme devs like box-shadows
obenland May 18, 2025
adb81fc
Update add_directions method
obenland May 19, 2025
edd4981
Rebuild
obenland May 20, 2025
a58c524
Remove map files
obenland May 20, 2025
83a1dd5
Fix phpcs
obenland May 20, 2025
1756c69
Rebuild after trunk merge
obenland May 21, 2025
4a1c04c
Remove unused variables
obenland May 21, 2025
41c2b40
Fix more docs
obenland May 21, 2025
c10b3b8
Toggle Modal and update styles
obenland May 21, 2025
ba40ed7
Improve calculateVisibleAvatars
obenland May 21, 2025
6319e1c
Standardize context with Follow Me
obenland May 21, 2025
799b33b
Broader theme support
obenland May 21, 2025
8cd768c
Fix tests
obenland May 21, 2025
10d796c
Fix dummy generation
obenland May 21, 2025
d90ae2f
Show real reactions in Edit if available
obenland May 21, 2025
8550f52
Update reactions popover
obenland May 21, 2025
d8ff20d
Hide entire block when there are no reactions
obenland May 21, 2025
bdc1e1c
Comments updates
obenland May 21, 2025
6feb76f
Fix tests
obenland May 21, 2025
29bd1bf
Remove unnecessary styles
obenland May 22, 2025
3c71685
Align modal styles between blocks
obenland May 22, 2025
07511c7
First pass
obenland May 22, 2025
ebdf6ec
Remove self-closing
obenland May 22, 2025
39f39ca
Improve modal API
obenland May 22, 2025
d5e7950
Use getElement where appropriate
obenland May 23, 2025
c29a5fd
Heureka!
obenland May 23, 2025
ffe6941
Merge stores and document
obenland May 23, 2025
b613bdc
Naming
obenland May 23, 2025
b6d48a2
Use Modal component
obenland May 25, 2025
afc62fe
Improve cross-theme styling
obenland May 26, 2025
a57024b
Style fixes
obenland May 26, 2025
ab594ff
Merge branch 'try/reply-block-interactivity' of https://github.com/Au…
obenland May 26, 2025
f9035e7
Fresh build after rebase
obenland May 26, 2025
bca7f52
Improve initial state for remote profile link
obenland May 26, 2025
06a4a74
small destructuring update
obenland May 26, 2025
031d233
Add changelog
matticbot May 26, 2025
a690c00
Formatting updates
obenland May 26, 2025
b9dbcaf
Merge branch 'try/reply-block-interactivity' of https://github.com/Au…
obenland May 26, 2025
f40c093
Fix some docs
obenland May 26, 2025
936f00f
Merge branch 'trunk' into try/reply-block-interactivity
obenland May 27, 2025
4be152e
Update block registration to use metadata
obenland May 27, 2025
7f6d83a
Fix style references
obenland May 27, 2025
440f0f9
Backslashit
obenland May 28, 2025
b9e57e8
Make changelog message less bulky
obenland May 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/changelog/1721-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: major
Type: changed

"Reply on the Fediverse" now uses the Interactivity API for display on the frontend.
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ vendor
# Temporary ignores while breaking out each component.
assets
src/followers
src/remote-reply
src/reply
src/reply-intent
2 changes: 1 addition & 1 deletion build/editor-plugin/plugin.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-components', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-primitives', 'wp-url'), 'version' => '4cdf9a85d9cbbc6918ed');
<?php return array('dependencies' => array('react', 'wp-components', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-primitives', 'wp-url'), 'version' => 'c4ec9c3a1f0d32bd9118');
2 changes: 1 addition & 1 deletion build/editor-plugin/plugin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/follow-me/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
"editorScript": "file:./index.js",
"viewScriptModule": "file:./view.js",
"viewScript": "wp-api-fetch",
"style": "file:./style-view.css",
"style": "file:./style-index.css",
"render": "file:./render.php"
}
2 changes: 1 addition & 1 deletion build/follow-me/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '02db6907860d67947aae');
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '802b53e969a4b590e98f');
Loading
Loading