Naming Conventions: Crystal-Clear Boolean Values
Good vs Bad Naming
const restricted = work.access?.restrictedAccessStatus;
const digital = work.production?.some(p => p.type === 'BornDigital');
const imgs = canvases.every(c => c.type === 'Image');const {
isCurrentCanvasRestricted,
isWorkBornDigital,
hasOnlyRenderableImages,
hasMultipleCanvases,
hasIiifImageService,
hasDownloadableAssets,
isFullscreenAvailable,
} = useItemViewerContextV2();Boolean Naming Pattern
Comprehensive Derived Boolean Values
Canvas-Related
Image Service Related
Work Type Related
Download Related
UI State Related
Benefits of Clear Naming
Component Usage Example
Last updated