Skip to content

Disable new schedule button when plan limit is reached

Payton Burdette requested to merge 377977-schedule-limit-ux into master

What does this MR do and why?

When plan limit is reached, disable New schedule button and show info alert with information for better UX.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshot 2024-02-05 at 12.25.46 PM.png

How to set up and validate locally

  1. Mock the planLimit in app/assets/javascripts/ci/pipeline_schedules/components/pipeline_schedules.vue schedules query to something lower than your current pipeline schedule count.
  2. Test that New schedule button is disabled
  3. Test that button works when limit is not reached

Related to #377977 (closed)

Edited by Payton Burdette

Merge request reports