-
Notifications
You must be signed in to change notification settings - Fork 14
feat(ui): add changelog dialog and move debug detail copy #142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add a new changelog dialog that fetches and displays releases from GitHub. Move the "Copy debug detail" functionality from the settings dialog to the new changelog dialog. Update localization files with new keys for changelog and errors. Minor formatting fix in PathfindingDisplay.
Update the mod.hjson description and README.md to reflect the current feature set, shifting focus from basic content sharing to advanced automation, communication tools, visualizers, and quality-of-life improvements. The description now accurately represents the mod's expanded capabilities.
|
Caution Review failedThe pull request is closed. WalkthroughThis PR introduces a new Changelog dialog UI component that fetches and displays paginated GitHub releases with installation capabilities. It adds localization support for English and Vietnamese, updates project documentation and mod metadata with restructured feature descriptions, replaces the debug-detail button in FeatureSettingDialog with a changelog button, and removes associated UI-tree utilities. Changes
Sequence DiagramsequenceDiagram
actor User
participant ChangelogDialog
participant GitHubAPI as GitHub API
participant Parser as JSON Parser
participant Renderer as Markdown Renderer
participant UI as UI List
participant Clipboard
User->>ChangelogDialog: Open Dialog
ChangelogDialog->>ChangelogDialog: fetchReleases()
ChangelogDialog->>GitHubAPI: GET /repos/.../releases
alt Success
GitHubAPI-->>ChangelogDialog: JSON Response
ChangelogDialog->>Parser: Parse Release Data
Parser-->>ChangelogDialog: Parsed Releases
ChangelogDialog->>ChangelogDialog: rebuildList()
loop For Each Release
ChangelogDialog->>Renderer: Render Markdown Body
Renderer-->>ChangelogDialog: Rendered HTML
ChangelogDialog->>UI: Add Release Item
end
UI-->>User: Display Releases
else Error
GitHubAPI-->>ChangelogDialog: Error/Invalid Response
ChangelogDialog->>UI: Display Error Message
UI-->>User: Show Error
end
User->>ChangelogDialog: Copy Debug Detail
ChangelogDialog->>ChangelogDialog: Build UI Tree Data
ChangelogDialog->>Clipboard: Place JSON Payload
Clipboard-->>User: Clipboard Updated
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly Related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (7)
✏️ Tip: You can disable this entire section by setting Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Documentation
Localization
✏️ Tip: You can customize this high-level summary in your review settings.