Ghost/ghost
Kevin Ansfield 7e98f1b9f4 Fixed editor cards being accessible when their availability checks failed
no issue

Using the slash menu it was possible to insert cards that shouldn't have been accessible based on their availability checks. This was happening because we were only hiding the visibility of the cards in the template rather than completely removing them from the slash command matching logic.

- added `{{card-menu-items}}` helper that combines the availability matching and snippet section addition to return a complete array of sections+items that match the current system state and post type
- added `@menuItems` argument set to the output of `{{card-menu-items}}` to the two card menu components so they are working against a pre-filtered list of menu items
  - lets us remove duplication of code that handled pushing snippets section into the menus
- removed availability check conditionals from `<KoenigMenuContent>` as the menu items passed in are now pre-filtered
2023-01-19 12:38:49 +00:00
..
adapter-manager Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
admin Fixed editor cards being accessible when their availability checks failed 2023-01-19 12:38:49 +00:00
api-framework Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
api-version-compatibility-service Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
audience-feedback Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
bootstrap-socket Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
constants Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
core Implemented WebmentionMetadata using the oembed service 2023-01-19 19:25:52 +07:00
custom-theme-settings-service Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
data-generator Update dependency knex to v2.4.1 2023-01-18 07:43:07 +01:00
domain-events Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
email-analytics-provider-mailgun Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
email-analytics-service Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
email-content-generator Update dependency fs-extra to v11 2022-12-13 10:59:55 +07:00
email-events Added 100% test coverage for EmailEventStorage 2023-01-10 16:36:41 +01:00
email-service Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
email-suppression-list Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
express-dynamic-redirects Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
extract-api-key Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
html-to-plaintext Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
i18n Configured i18next-parser settings 2023-01-18 18:29:54 +01:00
importer-revue Updated Koenig packages 2023-01-04 11:27:39 +01:00
job-manager Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
link-redirects Update dependency @types/express to v4.17.15 2022-12-14 07:33:05 +07:00
link-replacer Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
link-tracking Lowered threshold for link-tracking coverage 2023-01-04 11:27:39 +01:00
magic-link Update dependency @types/nodemailer to v6.4.7 2023-01-03 18:46:57 +01:00
mailgun-client Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
member-attribution Updated @tryghost dependencies (#16005) 2022-12-14 11:18:55 +07:00
member-events Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
members-api Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
members-csv Update dependency fs-extra to v11 2022-12-13 10:59:55 +07:00
members-events-service Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
members-importer Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
members-ssr Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
minifier Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
mw-api-version-mismatch Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
mw-cache-control Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
mw-error-handler Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
mw-session-from-token Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
mw-update-user-last-seen Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
mw-vhost Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
oembed-service Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
offers Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
package-json Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
payments Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
portal Updated guard for site data in Portal 2023-01-13 21:01:58 +05:30
referrers Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
security Updated @tryghost dependencies (#16005) 2022-12-14 11:18:55 +07:00
session-service Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
settings-path-manager Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
staff-service Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
stats-service Update dependency knex to v2.4.1 2023-01-18 07:43:07 +01:00
stripe Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
tiers Bumped TryGhost-owned dependencies and lockfile 2023-01-02 20:55:22 +01:00
update-check-service Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
verification-trigger Improved email verification required checks (#16060) 2023-01-04 11:22:12 +01:00
version-notifications-data-service Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +00:00
webmentions Improved internal types for the Mention entity 2023-01-19 19:25:19 +07:00