From 0fc91c7eeac9df19fa8d29dd99f12493372b501d Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Mon, 14 Oct 2024 10:06:38 +0200 Subject: Dashboard: oplog entry data download, more detail, styling tweaks. (#194) * MSVC's std::fs::path doesn't like appending '/' separated path components * Redirect '/dashboard' to '/dashboard/' * Missed a few copyright headers * Moved unescaped logo somewhere more suitable * More robust catching and displaying of errors * No need for the guard now or for waiting * Formal access to a component's style * Style tables explicitly without instead of via a CSS variable * Highlight a row under the cursor to guide user's eye * Not using css_var() so it was removed * Add more detail to a project's list of oplogs * Disabled test page's CbObject testing * Consider all fields ending in "importedpackageids" as dependencies * Don't wrap sector headers * Package ids were derived with endianess back to front * Moved oplog marker column further left * Adopt a vararg-style to Table.add_row() for cell contents * List and hotlink oplog entries' package data * Modest control over how a table's columns are arranged * Added tables to test column spacing * Keep stat filter input box correctly up to date * A clang-format run * Updated html.zip * validate found oplog directories when doing discover pass --------- Co-authored-by: Dan Engelbrecht --- src/zenserver/projectstore/projectstore.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/zenserver/projectstore/projectstore.cpp') diff --git a/src/zenserver/projectstore/projectstore.cpp b/src/zenserver/projectstore/projectstore.cpp index a5bd1859b..0e6b2d3c9 100644 --- a/src/zenserver/projectstore/projectstore.cpp +++ b/src/zenserver/projectstore/projectstore.cpp @@ -3065,7 +3065,10 @@ ProjectStore::Project::ScanForOplogs() const Oplogs.reserve(DirContent.Directories.size()); for (const std::filesystem::path& DirPath : DirContent.Directories) { - Oplogs.push_back(DirPath.filename().string()); + if (Oplog::ExistsAt(DirPath)) + { + Oplogs.push_back(DirPath.filename().string()); + } } } -- cgit v1.2.3