Skip to content

feat: update quota data on quota impacting actions#1200

Merged
CerDennis merged 11 commits intodevelfrom
CO-3475-Update-quota-data-on-send-email
Apr 21, 2026
Merged

feat: update quota data on quota impacting actions#1200
CerDennis merged 11 commits intodevelfrom
CO-3475-Update-quota-data-on-send-email

Conversation

@gnekoz
Copy link
Copy Markdown
Contributor

@gnekoz gnekoz commented Apr 8, 2026

Refs: CO-3475

gnekoz and others added 10 commits April 8, 2026 15:08
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…tility

Add event infrastructure for quota refresh: a QuotaChangedEvent class,
a non-hook publishEvent function, and a publishQuotaChangedEvent helper
that only dispatches when the involved size exceeds 1MB.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Mount a listener component that subscribes to QuotaChangedEvent and
invokes the storages-refresh-quota integrated function when available.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dispatch quota refresh event after successfully sending a message
or saving a draft, only when the editor size exceeds 1MB.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… delete attachments

Dispatch quota refresh event from delete-permanently hooks (msg and conv),
empty trash modal, and delete-attachments action. Size check applies to
delete permanently and delete attachments; empty trash always fires.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dispatch quota refresh event when the notify section reports newly
created messages with a total size exceeding 1MB.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…and format tsconfig

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…-data-on-send-email

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread CLAUDE.md
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.

This needs to be reviewed with the migration to pnpm

@CerDennis CerDennis self-requested a review April 21, 2026 10:02
@sonarqube-zextras
Copy link
Copy Markdown

Failed Quality Gate failed

  • 3 New Issues (is greater than 0)

Project ID: carbonio-mails-ui

View in SonarQube

@CerDennis CerDennis merged commit ac189fb into devel Apr 21, 2026
2 of 3 checks passed
@CerDennis CerDennis deleted the CO-3475-Update-quota-data-on-send-email branch April 21, 2026 10:43
@ZxBot
Copy link
Copy Markdown
Contributor

ZxBot commented Apr 24, 2026

🎉 This PR is included in version 1.32.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@ZxBot ZxBot added the released label Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants