Commit Graph

11 Commits

Author SHA1 Message Date
Igor Loskutov
11ed585cea self-review-fix 2025-09-02 13:04:43 -04:00
Igor Loskutov
009590c080 feat: search frontend (#551)
* feat: better highlight

* feat(search): add long_summary to search vector for improved search results

- Update search vector to include long_summary with weight B (between title A and webvtt C)
- Modify SearchController to fetch long_summary and prioritize its snippets
- Generate snippets from long_summary first (max 2), then from webvtt for remaining slots
- Add comprehensive tests for long_summary search functionality
- Create migration to update search_vector_en column in PostgreSQL

This improves search quality by including summarized content which often contains
key topics and themes that may not be explicitly mentioned in the transcript.

* fix: address code review feedback for search enhancements

- Fix test file inconsistencies by removing references to non-existent model fields
  - Comment out tests for unimplemented features (room_ids, status filters, date ranges)
  - Update tests to only use currently available fields (room_id singular, no room_name/processing_status)
  - Mark future functionality tests with @pytest.mark.skip

- Make snippet counts configurable
  - Add LONG_SUMMARY_MAX_SNIPPETS constant (default: 2)
  - Replace hardcoded value with configurable constant

- Improve error handling consistency in WebVTT parsing
  - Use different log levels for different error types (debug for malformed, warning for decode, error for unexpected)
  - Add catch-all exception handler for unexpected errors
  - Include stack trace for critical errors

All existing tests pass with these changes.

* fix: correct datetime test to include required duration field

* feat: better highlight

* feat: search room names

* feat: acknowledge deleted room

* feat: search filters fix and rank removal

* chore: minor refactoring

* feat: better matches frontend

* chore: self-review (vibe)

* chore: self-review WIP

* chore: self-review WIP

* chore: self-review WIP

* chore: self-review WIP

* chore: self-review WIP

* chore: self-review WIP

* chore: self-review WIP

* remove swc (vibe)

* search url query sync (vibe)

* search url query sync (vibe)

* better casts and cap while

* PR review + simplify frontend hook

* pr: remove search db timeouts

* cleanup tests

* tests cleanup

* frontend cleanup

* index declarations

* refactor frontend (self-review)

* fix search pagination

* clear "x" for search input

* pagination max pages fix

* chore: cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* lockfile

* pr review
2025-08-20 20:56:45 -04:00
Andreas Bonini
69443603fb Merge pull request #329 from Monadical-SAS/better-speaker-name-colors
Speaker Names Have Better Contrast (but less variety)
2023-12-15 16:57:29 +07:00
Koper
999a3e05a4 Temp commit to merge main into this branch 2023-12-04 20:54:54 +07:00
Koper
5dad782042 Better contrast 2023-11-30 21:29:08 +07:00
Koper
16a8579272 Removed console.log 2023-11-02 17:39:21 +01:00
Koper
5f00673ebd Implemented speaker color functions 2023-11-02 17:39:21 +01:00
Sara
4a69bffc9c Implement multi tenancy 2023-11-02 12:24:52 +01:00
ef2f579fc1 www: add feature to enforce login on transcripts record/past/browse 2023-11-02 12:24:52 +01:00
168e4d6fa4 www: add features for privacy and browsing 2023-11-02 12:24:52 +01:00
Koper
4e80e1cdb3 Undiverge main branch from projector branch 2023-10-12 14:12:34 +01:00