diff --git a/powershell/assets/ConsoleTips.txt b/powershell/assets/ConsoleTips.txt index 0c3910203c..0e1ec8ad75 100644 --- a/powershell/assets/ConsoleTips.txt +++ b/powershell/assets/ConsoleTips.txt @@ -1,14 +1,29 @@ -Run only the Conditional Access tests with Invoke-Maester -Tag CA. +Run only the Conditional Access tests with Invoke-Maester -Product entra -Feature conditional-access. +Run the high-impact checks first: Invoke-Maester -Severity Critical, High. +Run one benchmark with -Suite: Invoke-Maester -Suite cis, or -Suite cisa, asd. +Press Tab after -Product, -Feature, -Suite or -TestId to list the values. Each list narrows to the others. +New-MtTest completes -Product, -Feature, -Area and -Mitre with Tab, from the keys Maester allows. +Leave a product out with -ExcludeProduct, for example Invoke-Maester -ExcludeProduct exchange. Run one test with Invoke-Maester -TestId MT.1001. Wildcards work too: -TestId 'CISA.MS.AAD.*'. See what would run, and why other tests would not, with Invoke-Maester -DryRun. Connect more services with Connect-Maester -Service All, or name them: -Service Graph, Teams. Set severities, turn tests off and pass parameters to tests in maester-config.json. Add -IncludeAffectedObjects to list the users, groups and apps each finding refers to. +Waiting on the assessment? Maester Run is hiding in here. Hint: it's what you wish AD was. Add -IncludePreview and -IncludeLongRunning to run the tests that are left out by default. Choose the panels of this dashboard with Output.DashboardPanels in maester-config.json. -Get-MtTest lists every test with its product, severity and tags, without connecting to a tenant. -Write your own test with New-MtTest -Id CONTOSO.1001 -Title '...'. +Get-MtTest lists every test with its product, severity and benchmark, without connecting to a tenant. +Browse every check, with what it tests and how to fix it, in the test catalog: maester.dev/docs/tests. +Pick a test's attributes with the rubric beside each one, and get the code: maester.dev/test-builder. +Write your own test with New-MtTest -Id CONTOSO.1001 -Title '...', or start it in maester.dev/test-builder. +Check a custom test with Get-MtTest -Path ./custom, and run it alone with Invoke-MtTest -Path. +Have a Pester-format custom test from Maester 2.x? Convert-MtTest turns it into a native test. +Let an AI agent write your custom test: point it at maester.dev/llms.txt so it knows how Maester tests work. +Every page of maester.dev is Markdown at its URL plus .md, ready to paste into an AI chat. +The maester-test-expert skill on GitHub teaches Copilot and Claude Code to write and review Maester tests. +Add tests for other products with Maester Packs: Install-MtPack, then Invoke-Maester -Pack . Send the results by mail or to Teams with -MailRecipient or -TeamChannelWebhookUri. Use -OutputMode Plain for output without colour or symbols, and -OutputMode Stream for lines only. Run Maester on a schedule in GitHub Actions or Azure DevOps: see maester.dev/docs/monitoring. Create the app for unattended runs, with its permissions granted, in one line: New-MtMaesterApp. +Many tenants? Merge-MtMaesterResult and Get-MtHtmlReport build one report with a tenant picker. diff --git a/website/src/components/TestBuilder/index.jsx b/website/src/components/TestBuilder/index.jsx index b78970f404..9c0bb8cd22 100644 --- a/website/src/components/TestBuilder/index.jsx +++ b/website/src/components/TestBuilder/index.jsx @@ -74,9 +74,11 @@ function useDock(open) { return place; } -// The guides in the sidebar open in the help panel on this page, so the form stays in view while you read them. -// Links to other guides inside a guide open there too; anything else opens in a new tab. -const GUIDE_LINKS = "#starlight__sidebar ul.top-level a[href]"; +// Links to the guides open in the help panel on this page, so the form stays in view while you read them: the +// sidebar's guides, links in the page and the builder, and links in a field's help. Links to other guides inside +// a guide open there too; anything else opens in a new tab. +const SIDEBAR_LINKS = "#starlight__sidebar ul.top-level a[href]"; +const PAGE_LINKS = "main a[href]:not([target]), [data-help-sheet] a[href]:not([target])"; const isGuide = (url) => url.origin === window.location.origin && url.pathname.startsWith("/docs/"); const plainClick = (e) => e.button === 0 && !e.metaKey && !e.ctrlKey && !e.shiftKey && !e.altKey && !e.defaultPrevented; @@ -132,11 +134,12 @@ function useGuides(setOpenId) { [setOpenId] ); - // Sidebar clicks, while the sidebar is shown beside the page (Starlight's 50rem breakpoint). + // Sidebar links only while the sidebar is shown beside the page (Starlight's 50rem breakpoint); below that it is + // a menu over the page, and a guide opens as a page of its own. useEffect(() => { const onClick = (e) => { - if (!plainClick(e) || !window.matchMedia("(min-width: 50rem)").matches) return; - const a = e.target.closest && e.target.closest(GUIDE_LINKS); + if (!plainClick(e) || !e.target.closest) return; + const a = (window.matchMedia("(min-width: 50rem)").matches && e.target.closest(SIDEBAR_LINKS)) || e.target.closest(PAGE_LINKS); if (!a) return; const url = new URL(a.href, window.location.href); if (!isGuide(url)) return; @@ -1043,11 +1046,10 @@ export default function TestBuilder() { diff --git a/website/src/components/TestBuilder/styles.module.css b/website/src/components/TestBuilder/styles.module.css index 94c324707f..028ebd3fbe 100644 --- a/website/src/components/TestBuilder/styles.module.css +++ b/website/src/components/TestBuilder/styles.module.css @@ -285,7 +285,6 @@ textarea.input { gap: 0.75rem; } -.statusGood, .statusBad { border-radius: 8px; padding: 0.6rem 0.9rem; @@ -442,3 +441,5 @@ textarea.input { .iconButton { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ifm-color-emphasis-700); cursor: pointer; transition: background-color 0.15s, color 0.15s; } .iconButton:hover { background: var(--ifm-color-emphasis-200); color: var(--ifm-font-color-base); } .iconButton svg { width: 0.85rem; height: 0.85rem; } +/* The status region stays in the page for screen readers; empty, it takes no room in the output column. */ +.status:empty { margin-top: -0.75rem; } diff --git a/website/src/components/TestBuilder/ui.jsx b/website/src/components/TestBuilder/ui.jsx index af9e2cd30a..fce164f0dd 100644 --- a/website/src/components/TestBuilder/ui.jsx +++ b/website/src/components/TestBuilder/ui.jsx @@ -252,7 +252,7 @@ const Close = () => ( // A click elsewhere on the page closes the panel, except on what opens or switches it (a help button or a sidebar // guide), which would otherwise close it and open it again, and inside a dropdown, which renders outside the panel. -const KEEP_OPEN = "[data-help-trigger], #starlight__sidebar ul.top-level a, [data-radix-popper-content-wrapper]"; +const KEEP_OPEN = '[data-help-trigger], #starlight__sidebar ul.top-level a, main a[href^="/docs/"], [data-radix-popper-content-wrapper]'; const keepOpenFor = (e) => { const target = e.detail && e.detail.originalEvent ? e.detail.originalEvent.target : e.target; if (target && target.closest && target.closest(KEEP_OPEN)) e.preventDefault(); @@ -264,7 +264,7 @@ export function Sheet({ open, onOpenChange, title, badge, actions, style, childr return ( - e.preventDefault()} onOpenAutoFocus={(e) => e.preventDefault()}> + e.preventDefault()} onOpenAutoFocus={(e) => e.preventDefault()}>
{title} {badge && {badge}}