[CLEANUP] Remove Debug Logs, Outdated TODOs, and Unused Props (#754) #822
+12
−14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request addresses Issue #754 by performing a set of non-functional cleanup tasks aimed at improving code readability, maintainability, and consistency across the codebase.
No behavioral or feature changes were introduced.
Summary of Changes
Cleaned up leftover debugging statements to reduce noise in production code:
Workspace.jsx – replaced console.log(error) with console.error(error)
db.js – removed console.log(e)
ControlPanel.jsx – removed console.log(error)
CodeEditor/index.jsx – removed console.log(e)
Modal.jsx – removed console.log(error)
This ensures proper error logging while maintaining cleaner output.
Deleted TODOs that were either irrelevant or already obsolete:
TypeInfo.jsx – removed legacy TODO related to index cleanup
dbml.js – removed outdated TODO while keeping the required timestamptz mapping logic intact
Since data.id is always available, some props and references were unnecessary:
TypeInfo.jsx
Removed unused index prop
Updated internal references to use data.id consistently
Updated itemKey to use data.id
TypesTab.jsx
Removed passing of the index prop to
Verification
Diagrams load and render correctly
Types tab functions as expected
DBML export behavior remains unchanged
Error logging is now more consistent and intentional
Conclusion
This cleanup improves overall clarity and maintainability without altering existing functionality.
The application continues to operate as expected after these changes.