Repository navigation
feat: refresh the dashboard tips; keep test builder links in the side panel #2719
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Provide a path for the single-test command.
|
||
| 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 <code>. | ||
| 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. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| if (!a) return; | ||
| const url = new URL(a.href, window.location.href); | ||
| if (!isGuide(url)) return; | ||
|
|
@@ -1043,11 +1046,10 @@ export default function TestBuilder() { | |
| </div> | ||
|
|
||
| <aside className={styles.output} aria-label="Generated test" data-help-dock> | ||
| <div className={errors.length ? styles.statusBad : styles.statusGood} role="status"> | ||
| {errors.length === 0 ? ( | ||
| <strong>Meets the rules that can be checked here.</strong> | ||
| ) : ( | ||
| <> | ||
| {/* Only problems are shown here; a test that meets the rules needs no banner. */} | ||
| <div className={styles.status} role="status" aria-live="polite"> | ||
| {errors.length > 0 && ( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Announce when the last error is fixed. When the last error is fixed, this removes all content from the live region. Removals are not announced by default, so screen-reader users do not hear that validation passed. (w3.org) Add a visually hidden success announcement without restoring the visible banner.
|
||
| <div className={styles.statusBad}> | ||
| <strong> | ||
| {errors.length} {errors.length === 1 ? "thing" : "things"} to fix | ||
| </strong> | ||
|
|
@@ -1059,7 +1061,7 @@ export default function TestBuilder() { | |
| ))} | ||
| {errors.length > 6 && <li>and {errors.length - 6} more</li>} | ||
| </ul> | ||
| </> | ||
| </div> | ||
| )} | ||
| </div> | ||
|
|
||
|
|
@@ -1128,7 +1130,7 @@ export default function TestBuilder() { | |
| )} | ||
| </ol> | ||
| <p> | ||
| Read more in <Link to="/docs/next/writing-tests">Writing native tests</Link> and the full <Link to="/docs/next/writing-tests/attribute-rubric">attribute rubric</Link>. | ||
| Read more in <Link to="/docs/writing-tests">Writing native tests</Link> and the full <Link to="/docs/writing-tests/attribute-rubric">attribute rubric</Link>. | ||
| </p> | ||
| </div> | ||
| </aside> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Limit the inventory claim to built-in tests.
Get-MtTestwithout-Pathlists the built-in catalog, not custom tests. Change “every test” to “built-in tests” so users do not assume their custom tests are included. (raw.githubusercontent.com)