Skip to content

Conversation

@LIUBINfighter
Copy link
Owner

This pull request introduces several improvements and refactors to the CSV Lite plugin, focusing on enhanced internationalization, better user notifications, and codebase consistency. The most significant changes include the addition of a GitHub Actions CI workflow, improved i18n support for user-facing messages, standardized view type naming, and enhanced undo/redo feedback. The update also includes minor styling fixes and version bumps.

Internationalization and User Notifications:

  • Added new i18n keys and messages for parse warnings, undo/redo actions, and table constraints in both English (src/i18n/en.ts) and Chinese (src/i18n/zh-cn.ts). All user-facing notifications now use these i18n strings for consistency and localization. [1] [2] [3] [4] [5] [6] [7] [8] [9]

View Type and Naming Consistency:

  • Renamed all internal view types from csv-view/csv-source-view to csv-lite-view/csv-lite-source-view throughout the codebase to standardize naming and avoid conflicts. [1] [2] [3] [4] [5] [6] [7] [8] [9]

Continuous Integration:

  • Added a GitHub Actions workflow (.github/workflows/ci.yml) for automated CI, including dependency installation, code formatting checks, TypeScript build, and tests.

Testing and Undo/Redo Improvements:

  • Added tests for the HistoryManager to verify undo/redo notification messages using i18n. Improved undo/redo logic to show appropriate localized messages when actions are unavailable. [1] [2] [3]

Styling and Miscellaneous:

  • Fixed CSS for dropdown and button alignment in the operation bar (styles.css). Updated plugin version numbers in manifest.json and package.json. [1] [2] [3] [4]

These changes collectively enhance the user experience, code maintainability, and plugin reliability.

LIUBINfighter and others added 9 commits September 16, 2025 07:38
* fix: avoid view name collision with other plugins by renaming to csv-lite-view & csv-lite-source-view

* chore: update comments to reflect csv-lite view name
* fix: localize notices + restrict undo/redo to active view; add history manager i18n and tests

* fix: i18n for parse warnings and table utils; add tests for history manager
@LIUBINfighter LIUBINfighter self-assigned this Dec 6, 2025
@LIUBINfighter LIUBINfighter marked this pull request as ready for review December 6, 2025 21:03
@LIUBINfighter LIUBINfighter changed the title Some fixes Some fixes (Fixes #41, Fixes #35) Dec 6, 2025
@LIUBINfighter LIUBINfighter merged commit c73e596 into master Dec 6, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants