Repository navigation
Conversation
The panel called _render_no_repo_ui() without defining it, so opening a project that was not a Git repository raised AttributeError instead of showing the documented Create Git Repository view. init_git_repo() was never reachable from the UI either. repo_path now resolves the project root the Editor has open through project_context.get_project_root(), instead of falling back to the Editor process working directory. Also fixes: the panel title resolved an undeclared translation key and rendered the raw key; the manual refresh button used a different clock than the automatic refresh; the collapsing headers lost their open state when the file counts changed. The plugin is editor-only, so runtime/ no longer ships the placeholder Null component. The panel UI is now localized in English and Simplified Chinese, and tests/test_translation_contracts.py keeps the catalog and the panel in sync.
README.md and README.zh-CN.md gained a feature list, an engine and Git requirement table, installation steps for both the release archive and a local build, a troubleshooting section, and the local development commands. The in-editor usage pages now match the panel: the correct menu path (Extensions/Git Integration), the real button labels, a restored heading structure, the one-second refresh throttle, and a troubleshooting section. Added ROADMAP.md, CONTRIBUTING.md and RELEASING.md. The Planned section moved out of the changelog into the roadmap, and the 0.1.2 entry no longer disagrees between the two languages.
The manifest version moves to 0.1.4, so the release tag must be v0.1.4. The package summary now describes the feature set instead of calling the plugin 'a simple git integration', and a localized Chinese variant is declared in intros. The Editor resolves it with localized_intro(), which normalizes both zh and zh-CN to the same locale. The changelog gains a 0.1.4 section for the work since 0.1.3, and the 0.1.3 section now notes that the Create Git Repository view it announced was only wired up in 0.1.4. RELEASING.md examples follow the new version.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Brings
devtomainfor the v0.1.3 release. It fixes the crash that made the panel unusable outside a Git repository, points the panel at the folder actually open in the Editor, and replaces the placeholder documentation with a documentation set that matches the code.Fixes
on_render_contentcalled_render_no_repo_ui(), but the method was never defined, so the documented "Create Git Repository" view raisedAttributeErrorinstead of rendering. The view is now implemented, andgit initruns from it.repo_pathwasos.getcwd()— the Editor process working directory — even though the code comment claimed it preferred the Editor's project root. It now resolvesproject_context.get_project_root(), falling back to the working directory only when no project is loaded, and re-resolves on every read so switching projects does not leave a stale path behind.title_key="wokrlie.git_panel", which is not declared intranslations.json. The Editor resolves panel titles witht(title_key), which returns the key unchanged when it is missing, so the menu showed the literal stringwokrlie.git_panel. The key is nowwokrlie.git_integration.panel_title.git status. The refresh button stored atime.monotonic()timestamp while the throttle compared againsttime.time(), so the next frame always looked stale. Both now usetime.time().###marker.runtime/contained aNullcomponent that announced "This plugin does not include any runtime components." The plugin is editor-only, so the component and its export are gone.Changes
package/editor/translations.json— 13 keys with identical key sets in both locales. Every visible string was previously hardcoded English, while the Chinese usage page implied a Chinese UI.Extensions/Git Integration.files_status_list, left over from the 0.1.3 status refactor, is removed.Documentation
README.md/README.zh-CN.mdrewritten: feature list, engine and Git requirement tables, installation from a release archive and from source, a troubleshooting section, and the local development commands. The Chinese README no longer carries the "plugin template" title, and the English grammar error in the opening line is gone.package/plugin_pages/usage.md/usage.zh-CN.mdrewritten to match the panel: the real menu path, the real button labels, a restored heading structure, the one-second refresh throttle, and a troubleshooting section.CHANGELOG.md/CHANGELOG.zh-CN.md: the "Planned" section moved to the roadmap, the 0.1.2 entry no longer disagrees between the two languages, and the 0.1.3 entries describe what the code actually does.ROADMAP.md,CONTRIBUTING.md,RELEASING.md.LICENSE: copyright holder updated from the template placeholder.Verification
Git Panel/Git 面板), and no longer contains the placeholder runtime component.tests/test_translation_contracts.pyparses the panel withast, collects everyt()key it requests, and asserts each one is declared in both locales — including the panel title key. The missing-title-key bug above cannot merge again.Notes for reviewers
gitsynchronously during rendering, throttled to once per second. Moving that off the render thread is on the roadmap, and it is what makes the remaining per-file features cheap to add.samples/placeholders andplugin_pages/media/package_layout.svgare still template placeholders and are not part of this change.mainis the release branch: tag the merge commit asv0.1.4and push the tag. The release job then publisheswokrlie.git_integration.inxpkgandinfernux-plugin-release.json. The tag must match the manifest version exactly, and published releases are immutable — seeRELEASING.md.