Version 0.15
artutils 0.15.0
Documentation & Code Cleanup Release
This release focuses on documentation improvements, removal of demo mode guards, test cleanup, file reorganization, and codebase hygiene.
BREAKING CHANGES
-
Demo Mode Guards Removed
- Removed
artcore::is_demo()checks from all database modification functions - Demo mode enforcement now handled at the application layer
- Affected functions:
dbArtAppend(),dbArtUpdate(),addArtwork(),addCollection(),updateArtistStats(),updateArtistBenchmarks(),upsert_artist_preferences(),update_collection_settings()
- Removed
IMPROVEMENTS
-
Database File Reorganization
- Created
db-interface.Rwith low-level database functions (dbArtGet(),dbArtAppend(),dbArtUpdate()) - Refactored
db-modify.Rto contain only data modification functions (addArtwork(),addCollection(),updateArtistStats(),updateArtistBenchmarks()) - Moved
artHasNFT()fromdb-modify.Rtodb-artwork.R(it’s a data-access function) - Each file now contains functions from a single
@familygroup
- Created
-
Test Reorganization
- Created
test-db-interface.Rwith live database tests for read operations - Updated
test-db-modify.Rto only contain data modification tests (mocked) - Added
artHasNFTtest totest-db-artwork.R - Read-only tests use live database queries; write operations use mocks
- Created
-
Roxygen Documentation Quality
- Updated function titles to explain WHY (not just WHAT) for all exported functions
- Reference index now shows actionable descriptions like “Resolve URL slug to artist profile for page routing”
- Topic pages (
@nameblocks) use@keywords internalto prevent duplicate entries in reference
-
pkgdown Reference Organization
- Topic pages no longer appear as separate entries in the reference index
- Functions grouped cleanly by family without organizational noise
BUG FIXES
- Fixed
is_collection_visible()calling undefinedget_artist_preferences()- replaced with inline database query - Fixed R CMD check notes for unused imports (
rlang,shinyremoved from Imports) - Added
@importFrom lifecycle badgeto properly import lifecycle package
REMOVED
-
Stub Files Deleted
-
R/calcArtworkBenchmarks.R- was just a redirect comment -
R/settings-artist-prefs.R- was just a redirect comment -
R/settings-visibility.R- empty topic page with no functions
-
-
Internal Function Tests Removed
- Removed tests for
.calc_benchmarks()and.parseBenchmarkRow()fromtest-benchmarks.R - Internal functions (prefixed with
.) are not tested directly - Benchmark functionality tested via public
updateArtistBenchmarks()
- Removed tests for