12 Commits
Author SHA1 Message Date
imi 8b5269bea4 more fixes, autocomplete/wildcard optimization 2026-07-25 05:01:03 +02:00
imi 9e67b317d2 Improve wildcard autocomplete performance and resolved prompt preview 2026-07-18 05:08:32 +02:00
imi 3db87dc406 Improve autocomplete, wildcard handling, and prompt previews
- Add autocomplete caching, tag prefix indexing, and stronger usage ranking
- Add bundled merged Danbooru/e621 tag data
- Estimate max wildcard and dynamic-prompt token counts
- Store original/resolved prompt metadata and restore resolved previews
- Insert short wildcard leaf names when unambiguous
- Harden prompt preview toggles and textarea rebinding
- Expand tests for autocomplete, metadata, tokenization, and wildcards
2026-07-18 00:32:40 +02:00
imi 639c67ba1a feat: add wildcard expansion and improve autocomplete UX
- add A1111-style __wildcard__ expansion for prompt and negative nodes
- support nested wildcards and dynamic prompt syntax inside wildcard files
- add wildcard autocomplete with folder/file suggestions and content drill-down
- improve wildcard popup rendering, limits, and keep-open behavior
- normalize spacing after optional wildcard/dynamic expansions
- make autocomplete frequency ranking relevance-aware with recency weighting
- fix wildcard usage stars so selection history affects ordering
- update README, TODO, and CHANGELOG to document the new behavior
2026-04-22 00:53:38 +02:00
imi 552946ff73 v1.0.0 2026-02-02 23:15:23 +01:00
imi 5b819dad2e refactor: maintenance, quality, and performance improvements
- Backend Optimizations:
  - Optimized workflow graph traversal using deque for O(1) operations.
  - Implemented robust normalization for autocomplete extra_files API.
  - Added bounded instance-level caching to prevent memory growth.
  - Fixed AttributeError in hooks by restoring transformers_dict.
  - Added EXPERIMENTAL.md for tracking legacy code notes.
- Frontend Refinements:
  - Fixed memory leaks via onRemoved cleanup for DOM and observers.
  - Added race-condition protection for autocomplete blur events.
  - Improved UI feedback for API errors in the autocomplete popup.
  - Refined autocomplete aesthetics (removed redundant last-item border).
  - Ensured defensive DOM cleanup in coordinate calculations.
- Documentation & Quality:
  - Overhauled README with auto-detection and hidden inputs docs.
  - Fixed MD040 linting errors across all project READMEs.
  - Updated CHANGELOG.md and TODO.md for the 2026-02-02 release.
2026-02-02 16:57:30 +01:00
imi ac71ae0e6b feat(ui): overhaul autocomplete positioning and marker alignment
- Refactor `getCaretCoordinates`with scaled coordinate mapping to support ComfyUI canvas zoom/pan.
- Overhaul autocomplete selection logic to default to no selection (-1), allowing Enter for newlines.
- Decouple hover visuals from active selection to prevent accidental mouse-based confirms.
- Implement horizontally-expanding popup layout to prevent text cutoff on long tags/aliases.
- Improve selection aesthetics with modern blue accent bars and high-contrast highlights.
- Fix token boundary marker drift using zero-width containers and robust CSS property mirroring.
- Unify backend tag database defaults in `autocomplete.py` to ensure user settings take effect.
2026-01-30 20:43:14 +01:00
imi 836b60baa2 2 2026-01-22 21:17:58 +01:00
imi 0f48e40115 tag frequency support for autocomplete 2026-01-22 16:52:19 +01:00
imi 0c8e02d1de autocomplete initial stuff 2026-01-22 16:08:31 +01:00
imi 4f20e4ef9b counting longest token from syntax 2026-01-22 14:18:34 +01:00
imi 0602748b8f refact, didnt test yet but should be good 2026-01-21 23:53:37 +01:00