Add 1GB storage cap with staff bypass (#2729)

Re-applies the storage limit from #2713 (reverted in #2715) with an
exception for staff identities so our own account isn't blocked.
This commit is contained in:
Jorge Manrubia
2026-03-19 12:38:39 +01:00
committed by GitHub
parent 11df9c3589
commit cf10dbd91e
22 changed files with 374 additions and 2 deletions
+8
View File
@@ -543,4 +543,12 @@
}
}
}
.card-perma__account-limit-message {
background-color: var(--color-canvas);
border: 2px solid var(--color-container);
border-radius: 4px;
margin-block-start: calc(var(--padding-block) / -2);
padding: 1ch 2ch;
}
}
+8
View File
@@ -220,4 +220,12 @@
display: none;
}
}
.comment-by-system--account-limit {
--stripe-color: oklch(var(--lch-blue-lightest));
.comment__content {
padding: 3ch;
}
}
}
+5 -1
View File
@@ -1,7 +1,11 @@
<%= messages_tag(card) do %>
<% if card.published? %>
<%= render partial: "cards/comments/comment", collection: card.comments.preloaded.chronologically, cached: true %>
<%= render "cards/comments/new", card: card %>
<% if Fizzy.saas? %>
<%= render "cards/comments/saas/new", card: card %>
<% else %>
<%= render "cards/comments/new", card: card %>
<% end %>
<%= render "cards/comments/watchers", card: card %>
<% end %>
@@ -13,5 +13,7 @@
<span>Create and add another</span>
<% end %>
</div>
<%= render "cards/container/footer/saas/storage_limit_notice" if Fizzy.saas? %>
</div>
+5 -1
View File
@@ -26,5 +26,9 @@
</div>
<% end %>
<%= render "cards/container/footer/create", card: card %>
<% if Fizzy.saas? %>
<%= render "cards/container/footer/saas/create", card: card %>
<% else %>
<%= render "cards/container/footer/create", card: card %>
<% end %>
</section>