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

Admin-only release for ActivityPub #21060

Merged
merged 25 commits into from
Sep 21, 2024

Conversation

allouis
Copy link
Contributor

@allouis allouis commented Sep 21, 2024

No description provided.

djordjevlais and others added 25 commits September 21, 2024 10:22
ref https://linear.app/tryghost/issue/AP-394

I've also passed the disabled prop, but not sure if it's necessary
ref https://linear.app/tryghost/issue/AP-395

I've also set the disabled prop here too, not sure if necessary
ref https://linear.app/tryghost/issue/AP-397

I think we're gonna want to pass this data into the component long
term, but this will do for now, I'm going to look at cleaning up these
components in my next B week
ref https://linear.app/tryghost/issue/AP-396

I think it's nicer API to pass in a focused property, rather than an
element ref, but I don't have much experience here, so it might be the
wrong approach!
ref https://linear.app/tryghost/issue/AP-398

This adds an internal focus state so that we can render the reply box different
based on whether or not the textarea is focused!
ref https://linear.app/tryghost/issue/AP-396

We need to use a number instead of boolean here so that the state is always
refreshed, otherwise we can run into issues where we set `focused` to true but
there's no rerender because it was previously set to true, but unfocused
ref b9d02f8

Because we disabled the button on blue of the textarea, it was being disabled
before the click would be handled! Using the mousedown event means that our
event gets handled before the blur.
ref https://linear.app/tryghost/issue/AP-395

This is a stopgap solution, because currently we don't have any of our own
reply data in the frontend, so this will show the new reply, but it won't be
present on page reload. Should be enough for a demo video, but I think we need
to either fetch our outbox, or make a new replies endpoint and fetch from there
Otherwise we get green ticks on a PR and then the build fails on main
We didn't catch these because ci type checks weren't running, but they are now!
@allouis allouis force-pushed the v5.94.1-admin-with-activitypub-updates branch from 5a35ea8 to 06a4400 Compare September 21, 2024 04:27
@allouis allouis merged commit 4e5ff9a into v5.94.1-admin Sep 21, 2024
39 checks passed
@allouis allouis deleted the v5.94.1-admin-with-activitypub-updates branch September 21, 2024 04:38
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