Skip to content

Comments

Add validation for Credit System feature selection#314

Open
ayasahmad7655 wants to merge 1 commit intouseautumn:devfrom
ayasahmad7655:ui_Enhancement
Open

Add validation for Credit System feature selection#314
ayasahmad7655 wants to merge 1 commit intouseautumn:devfrom
ayasahmad7655:ui_Enhancement

Conversation

@ayasahmad7655
Copy link

@ayasahmad7655 ayasahmad7655 commented Nov 12, 2025

Before:
If there were zero features, the credit system could still be added, and clicking on it caused incorrect behavior (the modal would not open properly).

Now:
If there are zero features, an toast message is shown when clicking 'Credit System': 'Add at least one feature to continue with credit allocation.'

2025-11-12.23-54-09.mp4

Related Issues

Type of Change

  • [ .] Bug fix
  • New feature
  • Breaking change
  • Refactor
  • Other (please describe):

Checklist

  • [ .] I have read the CONTRIBUTING.md
  • [ .] My code follows the code style of this project
  • [. ] I have added tests where applicable
  • [. ] I have tested my changes locally
  • [ .] I have linked relevant issues
  • [. ] I have added screenshots for UI changes (if applicable)

Screenshots (if applicable)

Additional Context

Before:
If there were zero features, the credit system could still be added, and clicking on it caused incorrect behavior (the modal would not open properly).

Now:
If there are zero features, an error message is shown when clicking 'Credit System':
'Add at least one feature to continue with credit allocation.'
@vercel
Copy link

vercel bot commented Nov 12, 2025

Someone is attempting to deploy a commit to the Autumn Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant