Skip to content

Minor Updates Across the Board - #13

Merged
polymorcodeus merged 6 commits into
mainfrom
minor-updates
Aug 20, 2026
Merged

Minor Updates Across the Board#13
polymorcodeus merged 6 commits into
mainfrom
minor-updates

Conversation

@polymorcodeus

@polymorcodeus polymorcodeus commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Change:

  • internal/web/web.go - added ErrTitleUnavailable sentinel. WebsiteTitle now returns it for HTTP 403 and empty/missing <title>.

  • internal/web/web_test.go - added table-driven tests covering 200/403/404/500 and empty title cases.

  • cmd/book/mark.go:67-73 - addMark fails non-interactive adds with "provide --title", or leaves the title blank for manual entry in interactive mode.

  • internal/web/web.go - Windows OpenURL now uses cmd /c start <url> instead of returning a hard error.

  • internal/catalog/toml.go - CreateTOML now f.Sync()s the temp file before rename, then opens/syncs/closes the parent directory after rename to make the directory entry durable.

  • internal/catalog/toml_test.go - added TestCollectionMapOrdering, which encodes a Shelf with collections inserted as zebra, alpha, mike and asserts the output TOML lists them alphabetically (alpha < mike < zebra). Guards against future library regression.

  • internal/book/types_test.go - added table-driven tests for DedupUnique, StructIsEmpty, VerifyUniqueURL, AllTags, DeleteMark, GenerateID, and MergeTags.

@polymorcodeus
polymorcodeus marked this pull request as draft August 20, 2026 20:38
@polymorcodeus
polymorcodeus marked this pull request as ready for review August 20, 2026 21:29
@polymorcodeus
polymorcodeus merged commit 226951a into main Aug 20, 2026
4 checks passed
@polymorcodeus
polymorcodeus deleted the minor-updates branch August 20, 2026 23:15
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.

1 participant