add test to verify if sheet names are used for tab labels#456
Conversation
| std::filesystem::remove_all(cachePathCpp); | ||
|
|
||
| for (const odr::HtmlPage &page: html.pages()) { | ||
| // Filter out unwanted views based on document type |
There was a problem hiding this comment.
was there for HTTP mode already, but missing for file-mode
|
Claude finished @TomTasche's task —— View job Review Tasks:
Code ReviewI've reviewed this PR that adds test coverage for sheet name functionality in ODS files. Here's my comprehensive feedback: ✅ Strengths
🔍 Code Quality & Best Practices
static bool shouldSkipView(const odr::DecodedFile& file, const std::string& viewName) {
if (!file.is_document_file()) return false;
auto docType = file.as_document_file().document_type();
return ((docType == odr::DocumentType::presentation ||
docType == odr::DocumentType::drawing) && viewName != "document") ||
(docType == odr::DocumentType::spreadsheet && viewName == "document");
}
⚡ Performance Considerations
🔒 Security Concerns
🐛 Potential Issues
📝 Suggestions for Improvement
✅ Overall AssessmentThis is a solid PR that addresses the issue of sheet names not being exposed for spreadsheets in file mode. The implementation is correct and follows existing patterns. The main improvement would be to reduce code duplication in the C++ filtering logic. |
Reproduces #452