Technical Debt
Summary
| Category | Count |
|---|---|
| TODO comments | 20 |
| Placeholder routes | 6 |
| Commented-out code blocks | 1 major |
| Backup/stale files | 4 |
| Console statements | ~147 |
| Mock data files | 1 |
| Lint errors | 1,234 |
| Type-check errors | 22 |
TODO Comments (20)
Pipeline & Designer
| File | TODO |
|---|---|
stores/usePipelineStore.ts:542 | Implement actual API call |
components/pipelines/PipelinesList.tsx:144 | Implement delete with confirmation |
components/pipelines/PipelinesList.tsx:148 | Implement status toggle (play/pause) |
components/shared/designer/DesignerCanvas.tsx:995 | Delete from backend — temporarily disabled |
components/shared/designer/DesignerCanvas.tsx:1158 | Implement copy logic |
components/shared/designer/DesignerCanvas.tsx:1740 | Get from pipeline metadata |
services/pipeline/pipeline-transform.service.ts:362 | Implement when needed for pipeline loading |
services/pipeline/pipeline-validation.service.ts:409 | Add validation for required config fields |
services/pipeline/pipeline-validation.service.ts:477 | Implement full DAG validation |
Operator Config & SQL Parsers
| File | TODO |
|---|---|
services/operator-config/operator-config.service.ts:313 | Get from pipeline context |
components/shared/operator-config/stages/logic/sql-parsers/index.ts:60 | Implement decision parser |
components/shared/operator-config/stages/logic/sql-parsers/index.ts:71 | Implement aggregator parser |
components/shared/operator-config/stages/logic/sql-parsers/index.ts:82 | Implement join parser |
components/shared/operator-config/stages/logic/sql-parsers/index.ts:93 | Implement union parser |
Schema, Forms & Workflow
| File | TODO |
|---|---|
services/schema/schema-parser.service.ts:222 | Implement Protobuf parsing |
components/shared/form-renderer/FormField.tsx:346 | Implement remaining field types |
components/approval-workflow/workflow-list/WorkflowListPage.tsx:105 | Implement duplication |
components/approval-workflow/designer/WorkflowDesigner.tsx:73 | Create workflow first if new |
Layout
| File | TODO |
|---|---|
components/shared/layout/Layout.tsx:59 | Implement notifications panel |
components/shared/layout/Layout.tsx:63 | Implement messages panel |
Placeholder Routes (6)
| Route | Placeholder Text |
|---|---|
/guides | "Documentation and guides coming soon." |
/access-management/sso-sessions | "SSO sessions management page." |
/access-management/token-management | "Token management page." |
/projects | "Projects management page." |
/settings | "Application settings page." |
/support | "Support and help center." |
Commented-Out Code
Operator Management Routes (router/index.tsx, lines 37–41, 214–231):
// Hidden for now — will be improved in a future iteration
// import { OperatorTemplatesPage, OperatorConfigsPage } from "../pages/operator-management";
3 page files exist at pages/operator-management/ but are unreachable.
Lint & Type Health
ESLint: 1,234 problems
| Rule | Count (est.) | Severity |
|---|---|---|
@typescript-eslint/no-explicit-any | ~900+ | Error |
@typescript-eslint/no-unused-vars | ~50+ | Error |
react-refresh/only-export-components | ~53 | Warning |
no-undef (__dirname, process) | ~8 | Error |
| Other TS rules | ~100+ | Error |
The vast majority are no-explicit-any. The codebase is functional but not strictly typed in many service/utility areas.
TypeScript: 22 errors
All 22 errors are in packages/ui/src/components/base/select/:
combobox.tsx,select-item.tsx,select.tsx,textarea.tsx- Root cause: Self-referencing imports (
@dtx/ui/components/...) that don't resolve withtsconfig.jsonpaths - Impact: Blocks
pnpm build(workaround: deploy scripts usepnpm vite builddirectly, skippingtsc)
Console Statements (~147)
| Type | Count | Notable Files |
|---|---|---|
console.log() | ~80 | usePipelineStore.ts, VisualBuilder.tsx, WorkflowDesigner.tsx |
console.error() | ~50 | Error handlers across services |
console.warn() | ~17 | Deprecation and edge case warnings |
Backup/Stale Files (4)
| File | Type |
|---|---|
docs/tokenization/FRONTEND_TOKENIZATION_FULL.md.bak | Documentation backup |
docs/tokenization/BACKEND_TOKENIZATION_FULL.md.bak | Documentation backup |
components/shared/operator-config/stages/ConfigStage.tsx.backup | Component backup |
components/shared/operator-config/stages/logic/SQL.tsx.backup | Component backup |
Potentially Unused Dependencies
| Package | Concern |
|---|---|
d3 (7.9.0) | In deps and manual chunks, but minimal direct usage. Recharts is primary charting library. |
motion (12.23.24) | In both portal and UI package deps, but no Framer Motion imports found in portal code. |
@faker-js/faker (10.1.0) | Runtime dependency — should potentially be devDependency. |