Skip to content

Commit dd069d8

Browse files
refactor: update content and improve accessibility in various files
- Revised the description in index.html for clarity and focus on local-first system behavior. - Changed 'HEALTH' to 'STABILITY' in dashboard_screen.dart for better terminology alignment. - Enhanced the connection_banner.dart widget with Semantics for improved accessibility. - Updated development_setup.md to include a reference to the documentation index for better context.
1 parent 2bd05e4 commit dd069d8

4 files changed

Lines changed: 52 additions & 43 deletions

File tree

dashboard/lib/screens/dashboard_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ class _SentraNavRail extends StatelessWidget {
197197
),
198198
),
199199
Text(
200-
'HEALTH',
200+
'STABILITY',
201201
style: TextStyle(
202202
color: stabilityColor.withValues(alpha: 0.7),
203203
fontSize: 8,

dashboard/lib/widgets/connection_banner.dart

Lines changed: 49 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -7,52 +7,61 @@ class ConnectionBanner extends StatelessWidget {
77

88
@override
99
Widget build(BuildContext context) {
10-
return Container(
11-
width: double.infinity,
12-
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
13-
decoration: BoxDecoration(
14-
color: AppTheme.warning.withValues(alpha: 0.1),
15-
border: Border(
16-
bottom: BorderSide(color: AppTheme.warning.withValues(alpha: 0.3)),
10+
return Semantics(
11+
container: true,
12+
liveRegion: true,
13+
label: 'Connecting to SentraCore engine',
14+
child: Container(
15+
width: double.infinity,
16+
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
17+
decoration: BoxDecoration(
18+
color: AppTheme.warning.withValues(alpha: 0.1),
19+
border: Border(
20+
bottom: BorderSide(color: AppTheme.warning.withValues(alpha: 0.3)),
21+
),
1722
),
18-
),
19-
child: Column(
20-
crossAxisAlignment: CrossAxisAlignment.start,
21-
children: [
22-
Row(
23-
children: [
24-
SizedBox(
25-
width: 14,
26-
height: 14,
27-
child: CircularProgressIndicator(
28-
strokeWidth: 2,
29-
valueColor: AlwaysStoppedAnimation<Color>(AppTheme.warning),
23+
child: Column(
24+
crossAxisAlignment: CrossAxisAlignment.start,
25+
children: [
26+
Row(
27+
children: [
28+
SizedBox(
29+
width: 14,
30+
height: 14,
31+
child: Semantics(
32+
label: 'Connecting',
33+
child: CircularProgressIndicator(
34+
strokeWidth: 2,
35+
valueColor:
36+
AlwaysStoppedAnimation<Color>(AppTheme.warning),
37+
),
38+
),
3039
),
31-
),
32-
const SizedBox(width: 10),
33-
Expanded(
34-
child: Text(
35-
'Connecting to SentraCore engine…',
36-
style: TextStyle(
37-
color: AppTheme.warning,
38-
fontSize: 12,
39-
fontWeight: FontWeight.w500,
40+
const SizedBox(width: 10),
41+
Expanded(
42+
child: Text(
43+
'Connecting to SentraCore engine…',
44+
style: TextStyle(
45+
color: AppTheme.warning,
46+
fontSize: 12,
47+
fontWeight: FontWeight.w500,
48+
),
4049
),
4150
),
42-
),
43-
],
44-
),
45-
Padding(
46-
padding: const EdgeInsets.only(left: 24, top: 6),
47-
child: Text(
48-
'Waiting for the local engine. This may take a few seconds.',
49-
style: TextStyle(
50-
color: AppTheme.textMutedFor(context),
51-
fontSize: 11,
51+
],
52+
),
53+
Padding(
54+
padding: const EdgeInsets.only(left: 24, top: 6),
55+
child: Text(
56+
'Waiting for the local engine. This may take a few seconds.',
57+
style: TextStyle(
58+
color: AppTheme.textMutedFor(context),
59+
fontSize: 11,
60+
),
5261
),
5362
),
54-
),
55-
],
63+
],
64+
),
5665
),
5766
);
5867
}

docs/setup/development_setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Development Setup
22

3-
This guide explains how to configure a local SentraCore development environment across Windows, Linux, and macOS.
3+
This guide explains how to configure a local SentraCore development environment across Windows, Linux, and macOS. Use it together with the [documentation index](../README.md) for architecture and packaging context.
44

55
---
66

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1" />
66
<meta
77
name="description"
8-
content="SentraCore system intelligence, real-time monitoring, and a fast engine with a cross-platform desktop dashboard."
8+
content="SentraCore: local-first system behavior intelligence—telemetry, stability signals, and a Flutter desktop dashboard with a loopback API."
99
/>
1010
<title>SentraCore — System intelligence for your machine</title>
1111
<link rel="icon" href="assets/img/favicon.ico" sizes="any" />

0 commit comments

Comments
 (0)