Files
mc-webui/.gitignore
T
MarekWo 009d3254b8 feat: Add persistent type filter for pending contacts
- Add query parameter 'types' to GET /api/contacts/pending endpoint
- Save user's type filter selection to localStorage (pendingContactsTypeFilter)
- Restore filter on page reload (Pending Contacts page)
- Contact Management badge shows count based on saved filter
- Default filter: CLI only (type=1)

Frontend changes:
- Add localStorage functions (save/load/set checkboxes)
- Modify loadPendingContacts() to use types from checkboxes
- Modify loadContactCounts() to use filter from localStorage
- Checkbox changes trigger save to localStorage + API reload

Backend changes:
- Add 'types' query parameter to GET /api/contacts/pending
- Filter pending contacts by type before returning
- Validate types parameter (must be 1-4)

This allows users to customize which contact types they want to see
in pending contacts list, and the selection persists across sessions.
The same filter is used consistently across all pages (Pending Contacts
page and Contact Management page).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-04 11:07:31 +01:00

103 lines
1.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# mc-webui .gitignore
# ============================================
# Environment and Configuration
# ============================================
.env
*.env
!.env.example
# ============================================
# Python
# ============================================
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# ============================================
# Virtual Environment
# ============================================
venv/
ENV/
env/
.venv
# ============================================
# IDE and Editors
# ============================================
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store
# ============================================
# Testing and Coverage
# ============================================
.pytest_cache/
.coverage
htmlcov/
*.cover
.hypothesis/
# ============================================
# Docker
# ============================================
docker-compose.override.yml
# ============================================
# Runtime Data (Docker volumes)
# ============================================
data/
# ============================================
# Logs and Databases
# ============================================
*.log
*.sql
*.sqlite
*.db
# ============================================
# OS
# ============================================
Thumbs.db
.DS_Store
# ============================================
# Miscellaneous
# ============================================
.claude/
technotes/
docs/Pomoc w zwiększeniu zasięgu.pdf
PRD.md
.gitignore
CLAUDE_CODE_PROMPT.md
docs/Mesh Core Lista Zakupowa (repeater Dachowy).pdf
docs/contact-management-next-step.md
docs/response-to-xahgmah.md
docs/UI-Contact-Management-MVP-v1.md
docs/UI-Contact-Management-MVP-v2.md
docs/TEST-PLAN-Contact-Management-v2.md
docs/github-discussion-*.md
docs/github-response-spaces-in-device-name.md