feat(ui): module-detail bottom sheet on tap
Tapping a module card on the Modules page slides up a detail sheet showing the full manifest data: directory path (monospaced + selectable), every capability with version, and every declared permission with a semantic icon (net = globe, fs.read = folder, fs.write = edit, env = terminal, hub = shield). Empty permission list shows "(none — pure-computation module)" explicitly — the operator should see *why* a module needed zero perms, not be left guessing. Backed by HubAdmin.ModuleInfo. New widget FaiModuleSheet with a small drag-handle, FutureBuilder for the load state, error surfacing if the RPC fails. Bumps fai_studio 0.5.0 -> 0.6.0. Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
521a8baab8
commit
b3fdd69139
4 changed files with 272 additions and 1 deletions
|
|
@ -71,7 +71,17 @@ class _ModulesPageState extends State<ModulesPage> {
|
|||
padding: const EdgeInsets.all(FaiSpace.xl),
|
||||
itemCount: modules.length,
|
||||
separatorBuilder: (_, _) => const SizedBox(height: FaiSpace.md),
|
||||
itemBuilder: (context, i) => _ModuleCard(module: modules[i]),
|
||||
itemBuilder: (context, i) {
|
||||
final m = modules[i];
|
||||
return GestureDetector(
|
||||
onTap: () => FaiModuleSheet.show(context, m.name),
|
||||
behavior: HitTestBehavior.opaque,
|
||||
child: MouseRegion(
|
||||
cursor: SystemMouseCursors.click,
|
||||
child: _ModuleCard(module: m),
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
},
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue