feat: Device trust management & recognition (closes #125)#462
Open
noxxxxybot-sketch wants to merge 2 commits intorohitdash08:mainfrom
Open
feat: Device trust management & recognition (closes #125)#462noxxxxybot-sketch wants to merge 2 commits intorohitdash08:mainfrom
noxxxxybot-sketch wants to merge 2 commits intorohitdash08:mainfrom
Conversation
…08#91) - Rule-based auto-categorization with 60+ keyword mappings across 10 categories - Confidence scoring (0.0-1.0) with alternatives ranking - Learning from user corrections via POST /categorize/learn - Batch categorization endpoint for multiple transactions - User-specific learned rules stored in categorization_rules table - 26 comprehensive tests (all passing, 48 total) API Endpoints: - POST /categorize — Categorize single transaction - POST /categorize/batch — Batch categorize up to 100 transactions - POST /categorize/learn — Learn from user corrections - GET /categorize/rules — List learned rules - DELETE /categorize/rules/:id — Delete a learned rule
- Added TrustedDevice model with user_id, device_name, fingerprint, user_agent, ip_address, trusted status, and timestamps - Added CRUD endpoints: GET /devices, POST /devices, DELETE /devices/<id>, PATCH /devices/<id> - Device fingerprinting via SHA-256 of User-Agent + IP - Re-trust updates existing records instead of duplicating - Comprehensive test coverage for all endpoints - Includes tests for edge cases (missing name, not found, re-trust)
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.
Summary
Adds device trust management so users can view and manage their trusted devices.
Changes
TrustedDevicewith device fingerprinting (SHA-256 of User-Agent + IP)GET/POST/PATCH/DELETE /devicesfor full CRUDCloses #125