AFFiNE icon indicating copy to clipboard operation
AFFiNE copied to clipboard

feat(workspace): add blob and storage limit

Open JimmFly opened this issue 1 year ago • 3 comments

Add isOverCapacity status to detect if blob usage exceeds limits. Add onCapacityChange and onBlobSet to monitor if the storage or blob exceeds the capacity limit. Global modals LocalQuotaModal and CloudQuotaModal have been added, with the upload size of the blob being limited within the modal components. The notification component has been adjusted, now you can pass in action click events and actionLabel .

JimmFly avatar Jan 08 '24 03:01 JimmFly

Your org has enabled the Graphite merge queue for merging into canary

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

You can enable merging using labels in your Graphite merge queue settings.

graphite-app[bot] avatar Jan 08 '24 03:01 graphite-app[bot]

Current dependencies on/for this PR:

  • canary
    • PR #5535 Graphite 👈

This stack of pull requests is managed by Graphite.

JimmFly avatar Jan 08 '24 03:01 JimmFly

Codecov Report

Attention: 20 lines in your changes are missing coverage. Please review.

Comparison is base (c566952) 64.22% compared to head (25897dc) 64.27%.

Files Patch % Lines
packages/common/workspace/src/engine/blob.ts 0.00% 16 Missing :warning:
packages/common/workspace/src/engine/error.ts 0.00% 2 Missing :warning:
packages/common/workspace/src/engine/index.ts 0.00% 2 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           canary    #5535      +/-   ##
==========================================
+ Coverage   64.22%   64.27%   +0.04%     
==========================================
  Files         295      296       +1     
  Lines       18198    18223      +25     
  Branches     1468     1473       +5     
==========================================
+ Hits        11688    11713      +25     
  Misses       6340     6340              
  Partials      170      170              
Flag Coverage Δ
server-test 70.60% <100.00%> (+0.13%) :arrow_up:
unittest 42.14% <4.76%> (-0.18%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Jan 08 '24 04:01 codecov[bot]

Merge activity

graphite-app[bot] avatar Jan 24 '24 07:01 graphite-app[bot]