Skip to content

feat(web): Maple's alerts go through its bot - #373

Merged
Makisuo merged 1 commit into
mainfrom
feat/maple-one-integration-links
Oct 31, 2026
Merged

Makisuo merged 1 commit into
mainfrom
feat/maple-one-integration-links

Conversation

@Makisuo

@Makisuo Makisuo commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #371. Maple is merging its two Hazel integrations into one bot (MapleTechLabs/maple#2022): the bot that answers @Maple in threads now also posts alerts, and the separate alert webhook integration is gone.

The Maple integration page's Alerts panel now says alerts go through the same bot. Set up alerts in Maple (US and EU) links to Maple's alert routing (/alerts?tab=routing), where a Hazel channel is picked as a destination, instead of ?integration=hazel. Maple redirects that old link to the bot's page anyway, so nothing breaks before this deploys.

Verification

  • Scene test asserts the US and EU alert links. 38 tests pass in settings/integrations/detail.
  • tsc clean in apps/web-foldkit, oxlint clean.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Bug Fixes
    • Updated Maple setup links so connecting the bot opens the correct integration, while alert setup opens Maple’s alert-routing page.
    • Clarified that Maple’s agent and alerts use the same bot, and that alert channels are selected in Maple’s alert-routing settings.

Maple now posts alerts through the same bot that answers in threads, and
retired its separate alert webhook integration. The Maple integration page's
alerts panel says so and links to Maple's alert routing, where a Hazel
channel is picked once the bot is installed, instead of the retired
?integration=hazel entry.
@maple-review-bot

maple-review-bot Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Maple review

🟢 Confidence 10/10 · safe to merge. Contained view/copy change; all four call sites of the reshaped helpers are updated and the scene test asserts both new alert links.
no findings · tests covered · risk low

Splits the Maple alerts links off mapleIntegrationUrl into a new mapleAlertsUrl (/alerts?tab=routing) in both regions, updates the alerts-panel copy to say alerts go through the bot, and updates the scene test. Safe to merge.

  • mapleIntegrationUrl no longer takes an entry and always opens chat-hazel
  • euLink takes a full href, so alert and agent EU links share it
  • Alerts panel copy and both alert CTAs point at Maple's alert routing

e24b1f7 · What was checked, coverage and telemetry details are on the Maple / review check. Reply "won't fix" to dismiss a finding, or mention @maple-review-bot to ask about one.

@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 77fac257-6adc-4b92-b969-e37b7c395816
Commits

Reviewing files that changed from the base of the PR and between 2b9777c and e24b1f7.

Files selected for processing: 2
  • apps/web-foldkit/src/page/settings/integrations/detail/scene.test.ts
  • apps/web-foldkit/src/page/settings/integrations/detail/view-maple.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.

Walkthrough

The Maple integration page now links to the chat-hazel bot integration and uses separate URLs for alerts routing. Its descriptions and tests reflect these destinations.

Changes: Maple integration links

Layer / File(s) Summary
Define Maple URLs
apps/web-foldkit/src/page/settings/integrations/detail/view-maple.ts
mapleIntegrationUrl now always builds the chat-hazel integration URL. mapleAlertsUrl builds a separate alerts-routing URL, and euLink accepts a complete destination URL.
Wire Maple page links
apps/web-foldkit/src/page/settings/integrations/detail/view-maple.ts, apps/web-foldkit/src/page/settings/integrations/detail/scene.test.ts
Management and connection links use the integration URL. Alert setup links use the alerts-routing URL. The page descriptions and tests reflect the bot and routing changes.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Merge Risk: Minimal · up to e24b1

The Maple integration and alert links are consistent with the stated routing flow, with no confirmed merge-blocking risk.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: Maple alerts now use its bot.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 2 files.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 69.99% 22076 / 31541
🔵 Statements 69.42% 25009 / 36022
🔵 Functions 59.51% 8657 / 14545
🔵 Branches 57.95% 10627 / 18338
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
apps/web-foldkit/src/page/settings/integrations/detail/view-maple.ts 100% 100% 100% 100%
Generated in workflow #1938 for commit e24b1f7 by the Vitest Coverage Report Action

@Makisuo
Makisuo merged commit 605133d into main Oct 31, 2026
6 checks passed
@Makisuo
Makisuo deleted the feat/maple-one-integration-links branch October 31, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant