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 includes several changes to improve the functionality and maintainability of the codebase, particularly focusing on enhancing document parsing, UI handling, and error management. The most important changes include the addition of an HTML reader, refactoring of the retry logic, and updates to the tab management system.
Enhancements to Document Parsing:
webui/src/main/kotlin/com/simiacryptus/skyenet/apps/parse/DocumentParserApp.kt
: Added support for HTML files by introducingHTMLReader
to handle.html
and.htm
file extensions.webui/src/main/kotlin/com/simiacryptus/skyenet/apps/parse/HTMLReader.kt
: ImplementedHTMLReader
class to parse HTML documents, split text into pages, and provide text content with optional line numbers.Improvements to UI Handling:
webui/src/main/kotlin/com/simiacryptus/skyenet/Retryable.kt
: Refactored theRetryable
class by moving theretry
method and ensuring therenderTabButtons
method is called after retrying. [1] [2]webui/src/main/kotlin/com/simiacryptus/skyenet/TabbedDisplay.kt
: Enhanced theTabbedDisplay
class to use a unique tab ID and refactored therender
method for better readability.Updates to Tab Management:
webui/src/main/resources/application/tabs.js
: Refactored the tab management system to improve nested tab handling, add depth control, and ensure proper restoration of tabs from localStorage. [1] [2] [3] [4] [5]Error Handling and Retry Logic:
webui/src/main/kotlin/com/simiacryptus/skyenet/apps/plan/CommandAutoFixTask.kt
: Added auto-retry logic for command auto-fix tasks and refactored the error handling mechanism to retry failed tasks up to a specified limit. [1] [2]Documentation:
webui/src/main/resources/application/README.md
: Added comprehensive documentation for the Web UI JavaScript architecture, detailing core modules, key features, and example usage.