Skip to content

Conversation

@islandbitcoin
Copy link
Contributor

@islandbitcoin islandbitcoin commented Jan 13, 2026

PR 1: feat/upgrade-request-status-query

Title: feat: add accountUpgradeRequestStatus query

Summary:

  • Add GraphQL query to check upgrade request status from ERPNext
  • Add AccountUpgradeRequest GraphQL type and payload
  • Add getAccountUpgradeRequest app layer function
  • Fix bug in ErpNext.ts (wrong variable check)

islandbitcoin and others added 3 commits January 8, 2026 10:38
Add a new authenticated GraphQL query to check the status of a business
account upgrade request from ERPNext. This allows users to see if their
upgrade request is pending, approved, or rejected.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add UpgradeRequestQueryError to error-map with user-friendly message
- Use mapAndParseErrorForGqlResponse for proper GraphQL response structure
- Add unit tests for getAccountUpgradeRequest

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fix wrong variable check in getAccountUpgradeRequest (was !data, now !request)
- Use proper UpgradeRequestQueryError instead of type cast
- Trim redundant tests (6 -> 4)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@islandbitcoin islandbitcoin self-assigned this Jan 13, 2026
@islandbitcoin islandbitcoin added the enhancement New feature or request label Jan 13, 2026
@islandbitcoin islandbitcoin requested a review from brh28 January 13, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants