Skip to content

fix: set min value from 0 to 1 (adjustment period)#5926

Merged
yuda110 merged 3 commits intomasterfrom
hotfix-ad-period-min
Jun 4, 2025
Merged

fix: set min value from 0 to 1 (adjustment period)#5926
yuda110 merged 3 commits intomasterfrom
hotfix-ad-period-min

Conversation

@yuda110
Copy link
Copy Markdown
Member

@yuda110 yuda110 commented Jun 4, 2025

Skip Review (optional)

  • Minor changes that don't affect the functionality (e.g. style, chore, ci, test, docs)
  • Previously reviewed in feature branch, further review is not mandatory
  • Self-merge allowed for solo developers or urgent changes

Description (optional)

Things to Talk About (optional)

Signed-off-by: yuda <yuda@megazone.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Jun 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cost-report ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 4, 2025 7:21am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
console ⬜️ Ignored (Inspect) Visit Preview Jun 4, 2025 7:21am
web-storybook ⬜️ Ignored (Inspect) Visit Preview Jun 4, 2025 7:21am

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 4, 2025

✅ There are no commits in this PR that require review.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 4, 2025

🎉 @piggggggggy has been randomly selected as the reviewer! Please review. 🙏

@github-actions github-actions bot requested a review from piggggggggy June 4, 2025 06:18
@yuda110 yuda110 requested review from Copilot and removed request for piggggggggy June 4, 2025 06:19
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the minimum allowed value for the manual adjustment period from 0 to 1 in both validation logic and the UI input.

  • Changed validation to reject values less than 1 and updated the corresponding i18n message key.
  • Updated the <p-text-input> min attribute to 1 to match the new rule.
Comments suppressed due to low confidence (2)

apps/web/src/services/cost-explorer/components/AdvancedSettingsCostReportConfiguration.vue:91

  • Add or update unit tests to verify that values of 0 and negative numbers now trigger the 'greater than or equal to 1' validation error.
if (val < 1) return i18n.t('COST_EXPLORER.ADVANCED_SETTINGS.GREATER_THAN_OR_EQUAL_TO_1');

apps/web/src/services/cost-explorer/components/AdvancedSettingsCostReportConfiguration.vue:91

  • Ensure the new i18n key 'COST_EXPLORER.ADVANCED_SETTINGS.GREATER_THAN_OR_EQUAL_TO_1' is defined in all locale files to avoid missing translation errors at runtime.
if (val < 1) return i18n.t('COST_EXPLORER.ADVANCED_SETTINGS.GREATER_THAN_OR_EQUAL_TO_1');

yuda110 added 2 commits June 4, 2025 16:14
Signed-off-by: yuda <yuda@megazone.com>
Signed-off-by: yuda <yuda@megazone.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 4, 2025

✅ There are no commits in this PR that require review.

@yuda110 yuda110 merged commit d30a01d into master Jun 4, 2025
13 checks passed
@yuda110 yuda110 deleted the hotfix-ad-period-min branch June 4, 2025 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants