feat: perfil BD, historial sesiones, UX login y config Android

- Perfil conectado a BD: nombre real, edición con iniciales auto
- Historial de sesiones: nueva página con duración y badge activa
- Ayuda y soporte navega a MensajeriaPage
- InicioPage: nombre real desde BD, click avatar → tab perfil
- Login: foco automático, Enter = ingresar, click card = foco
- ApplicationId: net.siaxsystem.sentinelone en todos los manifests
- Linux: libsqlite3-dev requerido en CMakeLists, error amigable en app
- BD ruta Linux corregida a ~/.local/share/sentinel_one/

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Pablinux
2026-04-16 01:25:33 -05:00
co-authored by Claude Sonnet 4.6
parent 1184ab5fe2
commit 3e2294faf6
14 changed files with 595 additions and 93 deletions
+24 -8
View File
@@ -50,6 +50,14 @@ class _LoginPageState extends State<LoginPage> {
bool _cargando = false;
@override
void initState() {
super.initState();
WidgetsBinding.instance!.addPostFrameCallback((_) {
_focusNodes[0].requestFocus();
});
}
@override
void dispose() {
for (final c in _controllers) c.dispose();
@@ -65,13 +73,17 @@ class _LoginPageState extends State<LoginPage> {
}
void _onKeyEvent(int index, RawKeyEvent event) {
if (event is RawKeyDownEvent &&
event.logicalKey == LogicalKeyboardKey.backspace &&
if (event is! RawKeyDownEvent) return;
if (event.logicalKey == LogicalKeyboardKey.backspace &&
_controllers[index].text.isEmpty &&
index > 0) {
_focusNodes[index - 1].requestFocus();
_controllers[index - 1].clear();
setState(() {});
} else if (event.logicalKey == LogicalKeyboardKey.enter ||
event.logicalKey == LogicalKeyboardKey.numpadEnter) {
final filled = _controllers.where((c) => c.text.isNotEmpty).length;
if (filled >= 4 && !_cargando) _handleLogin();
}
}
@@ -140,7 +152,7 @@ class _LoginPageState extends State<LoginPage> {
elevation: 0,
automaticallyImplyLeading: false,
title: Row(children: [
const Icon(Icons.security, color: AppColors.primary, size: 20),
Image.asset('lib/recursos/logo_app.png', width: 28, height: 28),
const SizedBox(width: 10),
Text('SENTINEL ONE',
style: appHeadline(size: 16, weight: FontWeight.w900,
@@ -162,16 +174,17 @@ class _LoginPageState extends State<LoginPage> {
const SizedBox(height: 48),
// Logo
Container(
width: 72, height: 72,
width: 96, height: 96,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: AppColors.primaryContainer,
boxShadow: [BoxShadow(
color: AppColors.primary.withOpacity(0.3),
blurRadius: 24, spreadRadius: 4)],
),
child: const Icon(Icons.security,
size: 36, color: AppColors.primary),
child: ClipOval(
child: Image.asset('lib/recursos/logo_app.png',
fit: BoxFit.cover),
),
),
const SizedBox(height: 20),
Text('SENTINEL ONE',
@@ -187,7 +200,9 @@ class _LoginPageState extends State<LoginPage> {
color: AppColors.onSurfaceVariant)),
const SizedBox(height: 48),
// Código de acceso
Container(
GestureDetector(
onTap: () => _focusNodes[0].requestFocus(),
child: Container(
padding: const EdgeInsets.all(24),
decoration: BoxDecoration(
color: AppColors.surfaceHigh,
@@ -211,6 +226,7 @@ class _LoginPageState extends State<LoginPage> {
fontSize: 11,
color: AppColors.outline)),
]),
),
),
const SizedBox(height: 24),
SizedBox(