feat(mail): update mail count message and refresh student data after sending emails #8

Merged
BothimTV merged 1 commit from fix-mailcont into main 2026-02-02 19:36:15 +00:00
BothimTV commented 2026-02-02 19:33:57 +00:00 (Migrated from github.com)

Summary by CodeRabbit

  • New Features

    • Added a notification informing users that the sent-mail count was updated and may take a moment to reflect.
  • Improvements

    • Data now refreshes from the server after sending emails for more reliable counts.
    • Enhanced error handling around send operations to improve stability and feedback.
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a notification informing users that the sent-mail count was updated and may take a moment to reflect. * **Improvements** * Data now refreshes from the server after sending emails for more reliable counts. * Enhanced error handling around send operations to improve stability and feedback. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
coderabbitai[bot] commented 2026-02-02 19:34:04 +00:00 (Migrated from github.com)
📝 Walkthrough

Walkthrough

Replaced per-item local mailcount updates with a server-side data refresh via loadStudents() after sending mails; added a user-facing alert message about delayed visibility of updated mail counts; expanded Axios error handling on send operations.

Changes

Cohort / File(s) Summary
Mail Management Component
frontend/src/pages/verwaltung/mail.vue
Added UI alert: "Die Anzahl der gesendeten Mails wurde aktualisiert, evtl. dauert es einen Moment, bis die Änderungen sichtbar sind." Replaced local per-item mailcount increment logic with a call to loadStudents() to reload data from the server after successful sends. Extended Axios error handling paths.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 I nudged the list, then gave a peep,
"Counts will change — the server keeps."
No local ticks, just one fresh call,
The numbers bloom, then stand tall.
Tiny hop, and all's in sync.


Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

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

<!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough Replaced per-item local mailcount updates with a server-side data refresh via `loadStudents()` after sending mails; added a user-facing alert message about delayed visibility of updated mail counts; expanded Axios error handling on send operations. ## Changes |Cohort / File(s)|Summary| |---|---| |**Mail Management Component** <br> `frontend/src/pages/verwaltung/mail.vue`|Added UI alert: "Die Anzahl der gesendeten Mails wurde aktualisiert, evtl. dauert es einen Moment, bis die Änderungen sichtbar sind." Replaced local per-item mailcount increment logic with a call to `loadStudents()` to reload data from the server after successful sends. Extended Axios error handling paths.| ## Estimated code review effort 🎯 2 (Simple) | ⏱️ ~8 minutes ## Poem > 🐰 I nudged the list, then gave a peep, > "Counts will change — the server keeps." > No local ticks, just one fresh call, > The numbers bloom, then stand tall. > Tiny hop, and all's in sync. </details> <!-- walkthrough_end --> <!-- tips_start --> --- > [!NOTE] > <details> > <summary>🎁 Summarized by CodeRabbit Free</summary> > > Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting <https://app.coderabbit.ai/login>. > > </details> <sub>Comment `@coderabbitai help` to get the list of available commands and usage tips.</sub> <!-- tips_end --> <!-- internal state start --> <!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyRUDuki2VmgoBPSACMxTWpTTjx8XADo08SBAB8AKB2gIOgGYV8GGhloB6RBQYWADmlKILAN0o80AG1zYMRC8yqnkou2CQcWgBE0VoAxLGQAIIAksRksjT0AkKikPgGjLCYTjpQibQy9GiQAKrJkGyIiI4kKBiI8DKQuLCtFCQC3shelJyQkQAi8K2JGABeaLCekDIUkE5kMmaQALJByDzYFF1oANY+XkjTFLgANJAkLrjBK2hhNw/IJPDkWDss7HuCmQtGmkAAI+ZKL5SFgOgxYLhxMJ+D9aEpIlooAAlEh2TxoBh0SCefAMLyQOyUMCKEjMBpBJi+XCQbB2WjUAboAw0NbVAQMIlNAzYZaITaQHiKWDoRheZYEEn4NC0ADKPhkpkQAAoAJTdfDcEhGAYyjm4apGFjdXr8ShuChKLG7H74NaIXAUbAMHxUZYI4qtH421rSVoOHpcNA8yj8b1CxAisWbRD3HqtRAiD10yAYfB8fqklUg6jVH7ZlV5Aps80/IhK8nLWnMZA/Bj9NimeUiADcDwoxjWRXMnjrRsC5fuUp6DwAHmZKpBh7RR35IAY3UlZ/B8F8B27EE64gkdPEkt4Mjv2gaQysSAwCVRcFfkPk53Y3Zk8ms7NhxKOGAeUxFGmRBSkgAA5Q0Az8LlFRIWcPxuOh7D/ACgOfXAxA6IgMGoI4uS2e9MiPM89gweADAGFkADF4E8GY8M8EQ5koHQABkfi5GDSFoLgAGoAGYLDAAAOHQAFEPXgQIvzDI0XGmPhjQ3G4uB2Oh4EEKIYixMBtC0PQoAlN83gINJyCfYkmFYdguF4OMcjESRGHwVY5AUZRVHUfTDPAKAbOYRQAH1OkQYL+kUkgeDoYKTRIYKPWEFlNF0fyVgARjQABOEgAFYADZRNEgAWAAGCo0AyqiSoAJlqsrqrQMqAHYSoYWq8pIFqGGy7KWsEhgBp87QjMYBgSpatASsEkrioyiqDDKjqMtqhbRNq2h6rQaMDFqgxxDKtbaC62qRrSiBXNYEKwoix4lNi+LgolTQgA= --> <!-- internal state end -->
Commenting is not possible because the repository is archived.
No description provided.