Skip to content

Clarify Project Limit Reached

Created by: atomaka

Issue #9874 (closed) points at that realizing your project limit has been reached can be difficult. Ideally, the user needs to be notified in some way. This pull request adds an alert to the user's dashboard when they have reached their project limit.

project-limit

This functions the same way as the alerts for when a user does not have an SSH key or a password and can be hidden temporarily or permanently. This is accomplished using Javascript to create a cookie when the user clicks Remind later and a boolean field on the User model (hide_project_limit) when the user clicks Don't show again. Based on the truthiness of these two values and the status of User.can_create_project? the message will be displayed or not.

If accepted, a follow up pull request will need to be issued to address the repetitive code. This will be the third time that similar code is used and it should be abstracted. I thought adding that to this pull request would be too much, but could visit it now if you'd like.

Merge request reports

Loading