Render typed bilingual news and preserve historical journal scope (by Codex)

This commit is contained in:
Codex authored and Codex committed 2026-10-27 05:46:07 +01:00
1 parent 1eb5e99847
commit 950d79d529
16 files changed
+6858 -81

No files matched your search

+5 -3
View File
@@ -3,9 +3,10 @@
#include "modern/ui/catalog.hpp"
namespace bmh::modern_ui {
// Presentation-only journal. Templates remain persisted, then resolve against
// the current snapshot's first manager/club. No catalogue or engine mutation.
// Presentation-only journal with historical text/owner snapshots. Unknown v1
// ownership is retained separately, never inferred from the current manager.
Json demo_news(const Catalog &, const Json &full_state);
Json demo_news_scope(const Json &, const Catalog * = nullptr);
bool valid_demo_news(const Json &full_state);
bool migrate_demo_news(Json &full_state, const Catalog &);
// read{id}, read-all{folder}, move{id,folder}, undo{patch:[{id,before,after}]}.
@@ -18,6 +19,7 @@ int demo_news_unread(const Json &full_state);
// date. Query and folder belong to the view and never enter a checkpoint.
Json demo_news_view(const Catalog &, const Json &full_state,
const std::string &folder = "inbox",
const std::string &query = {});
const std::string &query = {},
const std::string &language = "de");
std::string news_display_date(const std::string &);
} // namespace bmh::modern_ui