feat: enhance profile screen with tab navigation and admin panels

- Added tab navigation for profile, database, users, suggestions, and AI sections.
- Implemented database management with inventory, pantry, and products tabs.
- Created Admin AI panel to display AI model information.
- Introduced Admin Pending Products panel for managing product approvals.
- Developed Admin Users panel for user management, including role changes and password resets.
- Added data models for AI models and pending products.
This commit is contained in:
Nils-Johan Gynther
2026-04-25 08:22:14 +02:00
parent 53afcc98a9
commit 8ea2b97c27
10 changed files with 1289 additions and 488 deletions
@@ -0,0 +1,29 @@
class AiModelInfo {
final String id;
final String name;
final String description;
final String model;
final String path;
final String trigger;
final String access;
const AiModelInfo({
required this.id,
required this.name,
required this.description,
required this.model,
required this.path,
required this.trigger,
required this.access,
});
factory AiModelInfo.fromJson(Map<String, dynamic> json) => AiModelInfo(
id: (json['id'] ?? '').toString(),
name: (json['name'] ?? '').toString(),
description: (json['description'] ?? '').toString(),
model: (json['model'] ?? '').toString(),
path: (json['path'] ?? '').toString(),
trigger: (json['trigger'] ?? '').toString(),
access: (json['access'] ?? '').toString(),
);
}