Skip to content

Bei Eingang neuer Dropbox-Mails Dropboxes updaten#585

Merged
dspangenberg merged 2 commits into
mainfrom
develop
Jul 13, 2026
Merged

Bei Eingang neuer Dropbox-Mails Dropboxes updaten#585
dspangenberg merged 2 commits into
mainfrom
develop

Conversation

@dspangenberg

@dspangenberg dspangenberg commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • Neue Funktionen

    • Beim Import von E-Mails über Dropbox wird eine Benachrichtigung angezeigt.
    • Die Dropbox-Übersicht aktualisiert sich automatisch, sobald eine entsprechende Benachrichtigung eingeht.
  • Fehlerbehebungen

    • Beim Archivieren von E-Mails wird keine unnötige allgemeine Benachrichtigung mehr ausgelöst.

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@dspangenberg, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 55 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 91d5cd3b-8d07-4f77-b218-1122bd7bfc6a

📥 Commits

Reviewing files that changed from the base of the PR and between b1ce0cf and 2f31335.

📒 Files selected for processing (1)
  • app/Services/DropboxService.php

Walkthrough

Der Benachrichtigungs-Dispatch wird aus dem Archivierungsablauf entfernt und in den Dropbox-Mailimport verlagert. Das App-Layout reagiert auf allgemeine Benachrichtigungen mit einem gezielten Reload der Dropbox-Daten.

Changes

Benachrichtigungsfluss

Layer / File(s) Summary
Backend-Benachrichtigungsquelle
app/Http/Controllers/App/EmailController.php, app/Services/DropboxService.php
Beim Archivieren wird keine allgemeine Benachrichtigung mehr dispatcht. Nach einem Dropbox-Mailimport wird sie für den zugehörigen Benutzer ausgelöst.
Frontend-Aktualisierung
resources/js/Layouts/AppLayout.tsx
Der Echo-Handler lädt bei .general.notification ausschließlich die dropboxes-Daten per Inertia neu.

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

Sequence Diagram(s)

sequenceDiagram
  participant DropboxService
  participant GeneralNotificationEvent
  participant AppLayout
  DropboxService->>GeneralNotificationEvent: Benachrichtigung nach Mailimport dispatchen
  GeneralNotificationEvent->>AppLayout: .general.notification übertragen
  AppLayout->>AppLayout: dropboxes per Inertia neu laden
Loading

Possibly related PRs

  • dspangenberg/opsc#580: Implementiert denselben Backend-Dispatch- und Frontend-Echo-Fluss mit GeneralNotificationEvent.

Poem

Hoppel, hoppel, Mail ist da,
Dropbox meldet: wunderbar!
Ein Event springt flink hervor,
Echo lädt die Daten vor.
Mümmelnd grüßt der Hasenmann!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed Der Titel beschreibt treffend, dass bei neuen Dropbox-Mails die Dropboxes aktualisiert werden.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch develop

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

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@app/Services/DropboxService.php`:
- Around line 75-78: Verschiebe die Benachrichtigungslogik aus der
Attachment-Schleife in den Mailimport-Ablauf, sodass sie nach erfolgreichem
Import genau einmal pro $dropboxMail ausgeführt wird. Nutze weiterhin die
Benutzerprüfung, loadMissing('user') und GeneralNotificationEvent::dispatch, und
stelle sicher, dass auch Mails ohne gültigen PDF-Anhang benachrichtigt werden.
- Around line 75-78: Verschiebe das Dispatch von GeneralNotificationEvent im
Transaktionspfad so, dass es erst nach einem erfolgreichen Commit erfolgt, etwa
über DB::afterCommit() oder ShouldDispatchAfterCommit. Behalte die bestehende
Bedingung, das Laden von user und die Benachrichtigungsdaten unverändert; bei
einem Rollback darf kein Event ausgelöst werden.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e3aee499-cab9-4a9b-88fd-8cdcf7b3ec4e

📥 Commits

Reviewing files that changed from the base of the PR and between d58c183 and b1ce0cf.

📒 Files selected for processing (3)
  • app/Http/Controllers/App/EmailController.php
  • app/Services/DropboxService.php
  • resources/js/Layouts/AppLayout.tsx
💤 Files with no reviewable changes (1)
  • app/Http/Controllers/App/EmailController.php

Comment thread app/Services/DropboxService.php Outdated
@dspangenberg dspangenberg merged commit 9966336 into main Jul 13, 2026
3 checks passed
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