Add auto-labeling feature with automatic generation on viewport entry#188
Draft
Add auto-labeling feature with automatic generation on viewport entry#188
Conversation
- Create label generation package with local NLP and AI support - Add labels column to articles table with migration - Add label settings to config (enabled, provider, API keys, show_in_list, max_count) - Update Article model to include Labels field - Add database methods for label operations - Create label handlers for generate and update operations - Register label API endpoints - Update settings handlers to include label configuration Co-authored-by: WCY-dt <55525165+WCY-dt@users.noreply.github.com>
- Add label-related i18n translations (EN/CN) - Create LabelSettings component for configuration - Update GeneralTab to include LabelSettings - Add label fields to SettingsData type - Add labels field to Article type - Create useArticleLabels composable for label operations - Create ArticleLabels component to display label badges - Update ArticleItem to show labels when enabled - Add label visibility toggle based on settings Co-authored-by: WCY-dt <55525165+WCY-dt@users.noreply.github.com>
- Update ArticleTitle to display labels and generation button - Add label generation functionality with loading states - Add success/failed i18n translations - Fix Tailwind CSS opacity class issue in ArticleLabels - Successfully build frontend with no errors Co-authored-by: WCY-dt <55525165+WCY-dt@users.noreply.github.com>
- Fix UTF-8 handling in normalizeLabel using rune slicing - Improve error handling in getArticleContent to properly propagate errors - Allow HTTP for localhost in HTTPS validation for development - Add documentation for JSON label matching limitations - Fix Vue prop mutation by removing direct prop modification - All builds pass successfully Co-authored-by: WCY-dt <55525165+WCY-dt@users.noreply.github.com>
- Add ClearAllLabels database method and /api/label/clear endpoint - Rewrite useArticleLabels composable with IntersectionObserver pattern - Update ArticleList to integrate label auto-generation on viewport entry - Add label-settings-changed event handling in useSettingsAutoSave - Remove manual generate button from ArticleTitle, labels auto-generate now - Labels clear and regenerate when settings change (like translation) - Labels display automatically in both list and detail views Co-authored-by: WCY-dt <55525165+WCY-dt@users.noreply.github.com>
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.
No description provided.