Files
john-okeefe 935b867219 feat: add highlights and notes annotation system
This major update implements a complete user annotation system:

## 🎯 New Features
- User notes with position tracking for media items
- Text highlighting with customizable colors
- Highlight-note associations for detailed annotations
- Full CRUD API for both notes and highlights
- Backward compatibility with existing ebook endpoints

## 📊 Database Changes
- Add media_notes table (id, media_item_id, user_id, content, position, timestamps)
- Add media_highlights table (id, media_item_id, user_id, selection_text, start/end_position, color, optional note_id)
- Add foreign key relationships with CASCADE deletes
- Add proper indexes for performance
- Add database schema views for ebook backward compatibility

## 🔧 API Implementation
- Complete REST API endpoints for notes and highlights
- JWT authentication with proper middleware bypass
- Request validation with meaningful error responses
- UUID validation and type safety
- Support for hex color codes in highlights

## 🧪 Testing & Documentation
- Comprehensive test suite covering authentication scenarios
- Bruno API collection for manual testing
- Detailed testing guide with troubleshooting
- Updated documentation in README and TESTING.md

## 📁 Backward Compatibility
- Existing ebook endpoints continue working
- Database views maintain API contracts
- No breaking changes for existing integrations

The annotation system is now fully functional and ready for production use.
2026-01-28 17:12:40 -05:00

30 lines
3.1 KiB
XML
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.
<?xml version='1.0' encoding='utf-8'?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="uuid_id" version="2.0">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
<dc:identifier opf:scheme="calibre" id="calibre_id">1276</dc:identifier>
<dc:identifier opf:scheme="uuid" id="uuid_id">44cc0f28-f502-466f-a0eb-e393e505735b</dc:identifier>
<dc:title>Josephus and Jesus: New Evidence for the One Called Christ</dc:title>
<dc:creator opf:file-as="Schmidt, T. C." opf:role="aut">T. C. Schmidt</dc:creator>
<dc:contributor opf:file-as="calibre" opf:role="bkp">calibre (8.16.2) [https://calibre-ebook.com]</dc:contributor>
<dc:date>2025-05-07T12:38:49+00:00</dc:date>
<dc:description>DOI: 10.1093/9780191957697.001.0001
Title: Josephus and Jesus
Published: 2025-06-03
Abstract: This book brings to light an extraordinary connection between Jesus of Nazareth and the Jewish historian Josephus. Writing in 93/4 ce , Josephus composed an account of Jesus known as the Testimonium Flavianum . Despite this being the oldest description of Jesus written by a non-Christian, scholars have long doubted its authenticity due to the alleged pro-Christian claims it contains. The present book, however, authenticates Josephus authorship and then reveals a startling discovery. First, the opening chapters demonstrate that ancient Christians read the Testimonium Flavianum quite differently from modern scholars, considering it to be basically mundane or even vaguely negative, and hence far from the pro-Christian rendering that most scholars have interpreted it to be. This suggests that the Testimonium Flavianum was indeed written by a non-Christian. The book then employs stylometric analysis to demonstrate that the Testimonium Flavianum closely matches Josephus style. The Testimonium Flavianum appears, therefore, to be genuinely authored by Josephus. The final chapters explore Josephus sources of information about Jesus, revealing a remarkable discovery: Josephus was directly familiar with those who attended the trials of Jesus apostles and even those who attended the trial of Jesus himself. The book concludes by describing what Josephus tells us about the Jesus of history, particularly regarding how the stories of Jesus miracles and his resurrection developed.</dc:description>
<dc:identifier opf:scheme="DOI">10.1093/9780191957697.001.0001</dc:identifier>
<dc:language>en</dc:language>
<dc:subject>historical Jesus</dc:subject>
<dc:subject>Josephus</dc:subject>
<dc:subject>Testimonium Flavianum</dc:subject>
<dc:subject>eyewitness</dc:subject>
<dc:subject>historicity</dc:subject>
<dc:subject>gospel</dc:subject>
<dc:subject>trial of Jesus</dc:subject>
<meta name="calibre:timestamp" content="2026-01-26T18:33:43.012102+00:00"/>
<meta name="calibre:title_sort" content="Josephus and Jesus: New Evidence for the One Called Christ"/>
</metadata>
<guide>
<reference type="cover" title="Cover" href="cover.jpg"/>
</guide>
</package>