feat: add HelpText model, service, and controller for dynamic help text management
Test Suite / backend-pr-quick (push) Has been skipped
Test Suite / quick-import-pr-quick (push) Has been skipped
Test Suite / backend-full (push) Successful in 2m27s
Test Suite / flutter-quality (push) Successful in 1m47s

This commit is contained in:
Nils-Johan Gynther
2026-05-13 16:20:04 +02:00
parent 0da4bbf4cf
commit 3d9b124766
11 changed files with 349 additions and 3 deletions
@@ -0,0 +1,27 @@
class HelpTextContent {
final String key;
final String scope;
final String title;
final String content;
final DateTime? updatedAt;
const HelpTextContent({
required this.key,
required this.scope,
required this.title,
required this.content,
this.updatedAt,
});
factory HelpTextContent.fromJson(Map<String, dynamic> json) {
return HelpTextContent(
key: (json['key'] as String? ?? '').trim(),
scope: (json['scope'] as String? ?? 'default').trim(),
title: (json['title'] as String? ?? '').trim(),
content: (json['content'] as String? ?? '').trim(),
updatedAt: json['updatedAt'] is String
? DateTime.tryParse(json['updatedAt'] as String)
: null,
);
}
}