Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@fmartingr
Copy link
Member

No description provided.

fmartingr and others added 30 commits September 24, 2025 15:18
- Implement CRUD handlers: create, list, get, update, delete bookmarks
- Add domain methods: CreateBookmark, UpdateBookmark, DeleteBookmarks
- Comprehensive test suite with 47 handler tests and 24 domain tests
- Edge case coverage: validation, pagination, concurrent access
- Proper error handling and authentication requirements
- Tag management with duplicate handling and clearing support

Co-authored-by: Ona <[email protected]>
- Tag creation API returns 204 No Content if tag already exists
- Frontend searches for existing tags before creating
- Bookmark creation defaults title to URL when not provided
- Add unit tests for new behavior
@codecov
Copy link

codecov bot commented Oct 8, 2025

Codecov Report

❌ Patch coverage is 62.06416% with 272 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.47%. Comparing base (585ea34) to head (b29e93d).

Files with missing lines Patch % Lines
internal/http/handlers/api/v1/bookmarks.go 74.66% 61 Missing and 14 partials ⚠️
internal/domains/bookmarks.go 59.34% 30 Missing and 7 partials ⚠️
internal/database/database_tags.go 0.00% 33 Missing and 1 partial ⚠️
internal/domains/tags.go 0.00% 19 Missing ⚠️
internal/http/handlers/api/v1/tags.go 69.23% 14 Missing and 2 partials ⚠️
internal/http/middleware/cors.go 74.07% 10 Missing and 4 partials ⚠️
internal/testutil/response.go 0.00% 11 Missing ⚠️
internal/webserver/handler-api.go 0.00% 10 Missing ⚠️
internal/database/pg.go 25.00% 8 Missing and 1 partial ⚠️
internal/cmd/pocket.go 50.00% 7 Missing ⚠️
... and 10 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1157      +/-   ##
==========================================
+ Coverage   50.19%   51.47%   +1.27%     
==========================================
  Files          75       75              
  Lines        7532     8101     +569     
==========================================
+ Hits         3781     4170     +389     
- Misses       3414     3567     +153     
- Partials      337      364      +27     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

- Restructure BookmarkCard layout to properly align actions to bottom edge
- Move actions outside padded content area for true bottom alignment
- Add auto-rows-fr to grid container for consistent card heights
- Improve icon consistency and hover states
- Replace Button components with native buttons for better control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants