Files
ArchiveBox/archivebox/api
Claude 202e5b2e59 Add interactive tags editor widget for Django admin
Implement a sleek inline tag editor with autocomplete and AJAX support:

- Create TagEditorWidget and InlineTagEditorWidget in core/widgets.py
  - Pills display with X remove button, sorted alphabetically
  - Text input with HTML5 datalist autocomplete
  - Enter/Space/Comma to add tags, auto-creates if doesn't exist
  - Backspace removes last tag when input is empty

- Add API endpoints in api/v1_core.py
  - GET /tags/autocomplete/ - search tags by name
  - POST /tags/create/ - get_or_create tag
  - POST /tags/add-to-snapshot/ - add tag to snapshot via AJAX
  - POST /tags/remove-from-snapshot/ - remove tag from snapshot

- Update admin_snapshots.py
  - Replace FilteredSelectMultiple with TagEditorWidget in bulk actions
  - Create SnapshotAdminForm with tags_editor field
  - Update title_str() to render inline tag editor in list view
  - Remove TagInline, use widget instead

- Add CSS styles in templates/admin/base.html
  - Blue gradient pill styling matching admin theme
  - Focus ring and hover states
  - Compact inline variant for list view
2025-12-30 02:18:08 +00:00
..
wip
2025-12-28 17:51:54 -08:00
2025-12-29 04:02:11 -08:00
wip
2025-12-28 17:51:54 -08:00
2024-10-04 19:16:46 -07:00
2024-04-25 05:55:47 -07:00
2025-12-29 04:02:11 -08:00
wip
2025-12-28 17:51:54 -08:00
wip
2025-12-28 17:51:54 -08:00
wip
2025-12-28 17:51:54 -08:00
wip
2025-12-28 17:51:54 -08:00