mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-24 12:42:38 +00:00
Rule pages point to AI-assisted rule authoring
The community box on the gather and analyze rule pages gets a line that an assistant connected via MCP can draft, validate and test a rule, linking the AI-assisted rule authoring docs page. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -10,7 +10,7 @@ interface CommunityContributionBoxProps {
|
||||
adminOnly?: boolean;
|
||||
}
|
||||
|
||||
/** The community call-to-action on the rule pages: contribute a rule here, report bugs on GitHub. */
|
||||
/** The community call-to-action on the rule pages: contribute a rule here, report bugs on GitHub, let AI author rules via MCP. */
|
||||
export function CommunityContributionBox({ onContribute, adminOnly }: CommunityContributionBoxProps) {
|
||||
return (
|
||||
<div className="bg-blue-50 border border-blue-200 rounded-lg p-4 flex flex-col sm:flex-row sm:items-center gap-3">
|
||||
@@ -27,6 +27,10 @@ export function CommunityContributionBox({ onContribute, adminOnly }: CommunityC
|
||||
{adminOnly && (
|
||||
<span className="block mt-1 text-blue-700">Only tenant admins can contribute rules and follow the tenant's submissions — ask an admin of your tenant to submit it.</span>
|
||||
)}
|
||||
<span className="block mt-1">
|
||||
<span className="font-medium">Let AI write your rules:</span>{" "}
|
||||
an assistant connected via MCP drafts, validates and tests a rule before anything goes live (<DocsLink path={DOCS_PATHS.aiRuleAuthoring} label="AI-assisted rule authoring" />).
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
{onContribute && (
|
||||
|
||||
@@ -33,6 +33,7 @@ export const DOCS_PATHS = {
|
||||
analyzeRules: "/rules/analyze-rules",
|
||||
gatherRules: "/rules/gather-rules",
|
||||
contributeRule: "/rules/contribute-a-rule",
|
||||
aiRuleAuthoring: "/rules/ai-assisted-rule-authoring",
|
||||
imeLogPatterns: "/rules/ime-log-patterns",
|
||||
// Portal pages (page-header "Docs" link)
|
||||
sessionDetails: "/portal-guide/session-details-and-diagnosis",
|
||||
|
||||
Reference in New Issue
Block a user