Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(frontend): Show toast on low credit balance, rename Credits page to Billing #9428

Conversation

kcze
Copy link
Contributor

@kcze kcze commented Feb 5, 2025

Changes 🏗️

  • If a node fails to execute and error contains Insufficient balance show toast with link to Billing page
  • Rename Credits page to Billing
Screenshot 2025-02-05 at 2 27 36 PM

Checklist 📋

For code changes:

  • I have clearly listed my changes in the PR description
  • I have made a test plan
  • I have tested my changes according to the test plan:
    • ...
Example test plan
  • Create from scratch and execute an agent with at least 3 blocks
  • Import an agent from file upload, and confirm it executes correctly
  • Upload agent to marketplace
  • Import an agent from marketplace and confirm it executes correctly
  • Edit an agent from monitor, and confirm it executes correctly

For configuration changes:

  • .env.example is updated or already compatible with my changes
  • docker-compose.yml is updated or already compatible with my changes
  • I have included a list of my configuration changes in the PR description (under Changes)
Examples of configuration changes
  • Changing ports
  • Adding new services that need to communicate with each other
  • Secrets or environment variable changes
  • New or infrastructure changes such as databases

@kcze kcze requested a review from a team as a code owner February 5, 2025 15:31
@kcze kcze requested review from Swiftyos and aarushik93 and removed request for a team February 5, 2025 15:31
@github-actions github-actions bot added platform/frontend AutoGPT Platform - Front end platform/backend AutoGPT Platform - Back end labels Feb 5, 2025
Copy link

netlify bot commented Feb 5, 2025

Deploy Preview for auto-gpt-docs-dev canceled.

Name Link
🔨 Latest commit e86dae4
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs-dev/deploys/67a4d3ebb708830008e3c5ac

@github-actions github-actions bot added the size/m label Feb 5, 2025
Copy link

deepsource-io bot commented Feb 5, 2025

Here's the code health analysis summary for commits 5d8fe1e..e86dae4. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript✅ Success
❗ 58 occurences introduced
🎯 56 occurences resolved
View Check ↗
DeepSource Python LogoPython✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copy link

netlify bot commented Feb 5, 2025

Deploy Preview for auto-gpt-docs canceled.

Name Link
🔨 Latest commit e86dae4
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/67a4d3eaf2abaf000845570c

@kcze kcze requested review from majdyz and removed request for Swiftyos February 5, 2025 15:34
majdyz
majdyz previously approved these changes Feb 5, 2025
Copy link
Contributor

@majdyz majdyz left a comment

Choose a reason for hiding this comment

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

LGTM but can we match the insufficient balance? I think it would be better middle ground.

majdyz
majdyz previously approved these changes Feb 5, 2025
autogpt_platform/frontend/src/hooks/useAgentGraph.tsx Outdated Show resolved Hide resolved
autogpt_platform/frontend/src/hooks/useAgentGraph.tsx Outdated Show resolved Hide resolved
autogpt_platform/frontend/src/hooks/useAgentGraph.tsx Outdated Show resolved Hide resolved
@aarushik93 aarushik93 enabled auto-merge February 6, 2025 15:23
@aarushik93 aarushik93 added this pull request to the merge queue Feb 6, 2025
Merged via the queue into dev with commit 797916c Feb 6, 2025
25 checks passed
@aarushik93 aarushik93 deleted the kpczerwinski/secrt-1019-mvpphase-2-add-top-up-notification-pop-up-on-insufficientlow branch February 6, 2025 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/backend AutoGPT Platform - Back end platform/frontend AutoGPT Platform - Front end size/m
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants