Comfy-Org / Comfy-Org/ComfyUI_frontend
CreditTopUpOption.vue — orphaned component with test but no consumer
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 699
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 490
Description
## Problem
`src/components/dialog/content/credit/CreditTopUpOption.vue` (45 lines) is not imported by any `.vue` component or `.ts` file in the codebase. It only appears in its companion test file `CreditTopUpOption.test.ts`.
### Evidence
```bash
# No .vue or non-test .ts file references it
grep -rn 'CreditTopUpOption' src/ --include='*.vue' # 0 results
grep -rn 'CreditTopUpOption' src/ --include='*.ts' | grep -v '.test.ts' # 0 results
```
### Likely cause
A credit top-up dialog was partially built or removed, leaving the component and its test orphaned.
### Suggested fix
- If the credit top-up feature is planned: wire the component into the credit dialog
- If abandoned: remove `CreditTopUpOption.vue` and `CreditTopUpOption.test.ts`
### Files involved
- `src/components/dialog/content/credit/CreditTopUpOption.vue`
- `src/components/dialog/content/credit/CreditTopUpOption.test.ts`
Parent: #11022
┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-11103-CreditTopUpOption-vue-orphaned-component-with-test-but-no-consumer-33e6d73d365081c4b99fff6d80807486) by [Unito](https://www.unito.io)
Contributor guide
Assessment
This issue has not been assessed yet.