Skip to content

Rediseño visual de InvenTrack - #15

Merged
EstebanPeluffo merged 10 commits into
mainfrom
rediseno-inventrack
Nov 22, 2026
Merged

EstebanPeluffo merged 10 commits into
mainfrom
rediseno-inventrack

Conversation

@jxviercarta-a11y

Copy link
Copy Markdown
Collaborator

Nuevo diseño de inicio, productos e inventario. Pruebas automáticas aprobadas.

This file contains visual styles and UI components for InvenTrack, including color definitions and various widgets such as SurfacePanel, SectionHeading, SoftIcon, StatTile, StatusTag, and EmptyPanel.
Added a custom theme for InvenTrack and refactored the main app structure for better readability and organization.
Refactor inventory page to improve layout and functionality. Updated product search and registration features, enhanced UI elements, and improved state management.
Refactored StockCard widget to improve readability and maintainability. Introduced helper methods for color, text, and icon based on stock quantity.
Refactor MovimientoCard widget to use InvenTrackStyle for colors and update layout for better readability.
Updated test for product and inventory flow with simulated API. Enhanced mock responses for various API endpoints.
Updated comments in the widget test to improve clarity and consistency.
Refactor test widget for product and inventory flow with simulated API responses. Improved comments for clarity and streamlined code structure.
@sonarqubecloud

Copy link
Copy Markdown

@EstebanPeluffo
EstebanPeluffo merged commit 9d43060 into main Nov 22, 2026
8 checks passed
import 'package:inventrack/screens/productos_page.dart';
import 'package:inventrack/screens/inventario_page.dart';
import 'package:inventrack/screens/productos_page.dart';
import 'package:inventrack/ui/inventrack_style.dart';

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Buena decisión centralizar los estilos en ui/inventrack_style.dart. ¿Los colores y tipografías salen del Theme o están fijos? Si están fijos, el modo claro/oscuro del PR #16 tendría que duplicarlos en cada pantalla

_selectedIndex = index;
});
},
onDestinationSelected: _selectPage,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Buen refactor: sacar el setState en línea a _selectPage deja build más limpio y permite reutilizar el cambio de pestaña desde el dashboard (onNavigate). Faltaría una prueba de widget que verifique que tocar cada destino cambia el índice

class HomePage extends StatefulWidget {
const HomePage({super.key, this.salir});

final VoidCallback? salir;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

El callback salir es opcional (nullable). ¿Qué pasa en la UI cuando viene null: se oculta el botón de salir o queda inactivo? Sería bueno cubrir los dos casos con una prueba de widget en frontend/test/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants