no issue
This PR adds WordPress to the migration options, related tests, and
adjusts the close button to more closely match that of the Settings
screen under it.
refs
[ONC-776](https://linear.app/ghost/issue/ONC-776/invalid-routesyaml-nql-filter-can-prevent-ghost-from-booting)
If the `routes.yaml` has a definition containing a malformed filter,
i.e:
```yaml
collections:
/foo/:
permalink: /foo/
template: foo
filter: tags:-foo,-bar
```
(`tags:-foo,-bar` invalid because there should be a property directly
after the ',`)
then it is possible for the URL service to fail to start due to an
unhandled error being thrown when the filter is parsed during URL
generation.
This commit handles the error and returns `false` when the filter cannot
be parsed, allowing the URL service to still start
refs
[ONC-776](https://linear.app/ghost/issue/ONC-776/invalid-routesyaml-nql-filter-can-prevent-ghost-from-booting)
If the `routes.yaml` has a definition containing a malformed filter,
i.e:
```yaml
collections:
/foo/:
permalink: /foo/
template: foo
filter: tags:-foo,-bar
```
(`tags:-foo,-bar` invalid because there should be a property directly
after the ',`)
then it is possible for the URL service to fail to start due to an
unhandled error being thrown when the filter is parsed during URL
generation.
This commit handles the error and returns `false` when the filter cannot
be parsed, allowing the URL service to still start
refs https://linear.app/ghost/issue/AP-704
We also update the mutations to make sure that the query cache is correctly updated.
Co-authored-by: Fabien O'Carroll <fabien@allou.is>
ref
https://linear.app/ghost/issue/ENG-1989/disable-jobqueuemanager-logging-in-zuul
- The `JobQueueManager` generates a lot of logs that are useful for debugging, but they were all at log level `info`.
- This commit demotes these logs to the `debug` log level, which should
reduce the noise while making them easy to
re-enable if needed.
ref
https://linear.app/ghost/issue/ENG-1989/disable-jobqueuemanager-logging-in-zuul
- The `JobQueueManager` generates a lot of logs that are useful for debugging, but they were all at log level `info`.
- This commit demotes these logs to the `debug` log level, which should
reduce the noise while making them easy to
re-enable if needed.
ref https://linear.app/ghost/issue/AP-700/explore-ui-development-in-ap
This PR is about integrating ActivityPub with the new design system, so that we can start using Shade in a real world application. In this early version the TailwindCSS config is taken from Shade but the custom styles of Shade and the AdminX Design System are merged. This is needed so that we can keep using the old components without breaking functionality.
ref https://github.com/TryGhost/Ghost/pull/22127
The update to the Portal release process has now been tested on main, it
would be good to get Search & Comments updated to the same process so
that it's easier to reason about releasing all of them.
Refs https://linear.app/ghost/issue/AP-735
- When a user boosts/reposts something it should show up in their profile section in ghost in both feed and profile modal.
This will be used for search and comments too, but I want to start with just
one app to get things going. Key things the script does:
- Enforces that we're not on main & have clean working dir
- Creates a well structured commit message w/ basic changelog
- Updates the package.json and default config
The script explicitly does not push anything to GitHub or to NPM, giving us
more control about the contents of the commit
This uses the same approach that we have for admin-x-activitypub. When a
version bump for the @tryghost/portal package is commited to the `main` branch,
we will build the package and then publish it to npm, as well as purging the
jsdelivr cache of the last version.
no refs
Clean up includes:
- Removing unused queries (`inbox`, `following`, `followers`)
- Renaming of query hooks to be consistent with other hooks
- Fixed `useProfile*ForUser` fns as these where using the incorrect
handle to setup the API client
- Refactored query keys to make mutations easier to reason about
- Fixed `follow` / `unfollow` mutations not working as expected
no issue
- The invite tests were signing out as the owner user and then signing
in as a user with different privileges. At the end of the test, it was
left in this state, so the next file run by that playwright worker was
still logged in as a user with lower than owner privileges so e.g. the
settings couldn't be accessed.
- This change signs out from the newly created user and signs back in as
the owner user after each of the invites tests.
no issue
- This commit includes a number of changes to the package.json scripts
for running Ghost in docker locally for development.
- In keeping with the pattern of `yarn docker:*` commands running actual
`docker compose` commands, I renamed `yarn docker:setup` to `yarn
setup:docker` since this is a script that runs locally, rather than in
docker
- Modified the `yarn docker <command>` script to remove `yarn`, so you
can now use this to run any arbitrary command in a disposable container
- Added `yarn docker:build` as a shortcut to build the container
- Added `yarn docker:shell` as a shortcut for launching a bash shell in
a disposable container
- Added `yarn docker:restart` command to stop and restart all background
services in detached mode
- Removed `yarn compose` script for the devcontainer setup, to avoid
confusion
no issue
- I had plans to use this environment variable for the docker compose
setup, but haven't implemented anything with it yet — removing it for
now since it's not doing anything at the moment.
ref https://linear.app/ghost/issue/AP-706/add-repost-count-so-that-the-ui-can-display-the-count
- When you repost (or derepost) a post, the stats counter will now nicely animate into a larger (or smaller) number, with only the relevant digits animating and the others staying in place. We’re using a reusable hook for this.
- Updated stat counter numbers to also change the color when the post is liked or reposted by the currently logged in user
- Fixed like and post state not persisting when opening a post/note in the drawer without refreshing
- Bumped the package
---------
Co-authored-by: Michael Barrett <mike@ghost.org>