How alcadox/lexora works
1. Overall shape
- Lexora is a Windows Forms desktop application in C#/.NET, organized as a single UI-driven client plus a test project.
- The solution is split into a presentation layer (Pantallas), a shared core/helper layer (Core), and placeholders for data/business logic (Datos, Logica).
2. Application entry and shell
- Program.cs is the startup point and likely opens the main window.
- MainForm.cs at the root of the app and Pantallas/Menu/MainForm.cs suggest the app’s primary shell is the menu/dashboard form, with a dedicated UI subtree for the logged-in experience.
3. Authentication and onboarding flow
- The Pantallas/InicioSesion folder contains the full access flow:
- InicioSesion for login,
- RegistrarCuenta for account creation,
- FormVerificacion for verification/confirmation.
- This indicates a pre-main-app gate where user identity is established before entering the main menu.
4. Main user interface areas
- Pantallas/Menu contains the post-login application surface.
- Pantallas/Menu/Filtros suggests a dedicated screen or panel for browsing/filtering content, with ClaseFiltros.cs acting as the model/controller companion for that UI.
- Pantallas/Usuario/PerfilUsuario is the user profile area, likely reachable from the main menu.
5. Core subsystem responsibilities
- Core contains reusable services and cross-cutting logic rather than screen-specific code.
- Key utilities include:
- GestorDBAuth for authentication/database access,
- GestorLogs for logging,
- CorreoUtil for email actions,
- ArchivosUtil for file operations,
- SeguridadUtil and SeguridadAvanzadaUtil for security-related operations,
- MotorFiltros for filter logic,
- GestorDragAndDrop, GestorMenuContextual, GestorMenuDiscos for UI interaction management,
- UIBuilder for building or wiring UI elements.
6. Data and business logic boundaries
- Datos and Logica currently contain only .gitkeep, which means the architecture anticipates separate layers but they are not yet populated.
- That suggests the current codebase is mostly UI + helper-centric, with future separation planned for persistence and domain logic.
7. External/service boundary
- Servicios/IAnalizadorIA.cs defines an AI analysis contract, implying a plug-in or external service boundary for intelligent analysis features.
- Because it is only an interface in the tree, the repository is prepared to integrate an implementation later without coupling the UI directly to a concrete AI provider.
8. Cross-cutting concerns
- Security, logging, email, and file handling are treated as shared infrastructure concerns under Core.
- This is important architecturally because these features are not isolated to a single screen; they likely support login, registration, verification, and user activity.
9. Testing boundary
- Lexora.Tests is a separate test project with tests for IniciarSesion and MainForm.
- That indicates at least the login flow and main shell are considered core user journeys and are intended to be validated independently from the app code.
10. Configuration and resources
- The app uses App.config, packages.config, and an application manifest, so runtime behavior is configured through standard .NET desktop app mechanisms.
- Resources live under Properties and Resources, and the .resx files next to forms confirm the app follows the usual WinForms pattern of designer-managed UI resources.
11. Likely runtime flow
- The expected sequence is: application starts → login/registration/verification screens → authenticated main menu → feature screens such as filters and user profile.
- Navigation and interaction behavior is probably coordinated by the Gestor* helpers in Core, rather than being fully embedded inside the forms.
12. How to diagram it
- Draw the app as a desktop WinForms client with:
- a presentation layer containing login, menu, filters, and profile screens,
- a core services layer for security, logging, email, files, filtering, and UI behavior,
- a planned persistence/domain layer (Datos, Logica) currently mostly empty,
- a test project validating key UI flows.
Main entry points: MainForm.cs Menu · InicioSesion.cs Login · FormVerificacion.cs Verify · GestorDBAuth.cs Auth DB
Components 23
Application
WinForms desktop client and UI shell
Presentation
Screens and forms for login and main workflows
- Login · Primary sign-in screen
Lexora/Pantallas/InicioSesion/InicioSesion.cs - Register · Account creation screen
Lexora/Pantallas/InicioSesion/RegistrarCuenta.cs - Verify · Verification and confirmation screen
Lexora/Pantallas/InicioSesion/FormVerificacion.cs - Menu · Post-login main application surface
Lexora/Pantallas/Menu/MainForm.cs - Filters UI · Dedicated filters screen or panel
Lexora/Pantallas/Menu/Filtros/MainFiltros.cs - Filter model · Supporting class for filter behavior
Lexora/Pantallas/Menu/Filtros/ClaseFiltros.cs - Profile · User profile area
Lexora/Pantallas/Usuario/PerfilUsuario.cs
Core
Shared services and cross-cutting helpers
- Auth DB · Authentication and database access helper
Lexora/Core/GestorDBAuth.cs - Security · Shared security and protection utilities
Lexora/Core/SeguridadUtil.cs - Advanced sec · Extended security helpers
Lexora/Core/SeguridadAvanzadaUtil.cs - Logs · Application logging helper
Lexora/Core/GestorLogs.cs - Email · Email delivery helper
Lexora/Core/CorreoUtil.cs - Files · File handling helper
Lexora/Core/ArchivosUtil.cs - Filter engine · Reusable filtering logic
Lexora/Core/MotorFiltros.cs - UI helpers · Drag-and-drop, context menu, disk menu, and UI building helpers
Lexora/Core/UIBuilder.cs
Planned layers
Reserved persistence and domain folders currently empty
Services
External or pluggable service contracts
- AI analyzer · Interface for plug-in or external AI analysis
Lexora/Servicios/IAnalizadorIA.cs
Tests
Separate test project covering key flows
- Tests · Unit and integration tests for core UI flows
Lexora.Tests/Lexora.Tests.csproj - Login test · Tests for the sign-in flow
Lexora.Tests/IniciarSesionTest.cs - Main form test · Tests for the main shell
Lexora.Tests/MainFormTest.cs
Connections 24
- Program → Login: starts with · Startup opens the authentication flow
- Program → Root form: alternative shell · Root form is another top-level entry screen
- Login → Register: navigates to · Login can open account creation
- Login → Verify: navigates to · Login and registration flow into verification
- Verify → Menu: enters · Verified users proceed into the main app
- Register → Verify: confirms · Registration completes through verification
- Menu → Filters UI: opens · Main menu exposes the filters feature
- Menu → Profile: opens · Main menu exposes the user profile area
- Filters UI → Filter model: uses · Filter screen delegates logic to its companion class
- Login → Auth DB: authenticates via · Sign-in likely validates credentials through the auth helper
- Register → Auth DB: creates via · Account creation likely persists through auth/database helper
- Verify → Email: sends · Verification flow depends on email support
- Login → Security: protects with · Authentication relies on security utilities
- Menu → Filter engine: filters with · Menu features depend on shared filtering logic
- Menu → UI helpers: coordinates with · Menu and interaction helpers manage UI behavior
- Auth DB → Logs: logs through · Shared infrastructure is expected to record auth activity
- Auth DB → Files: reads/writes · Auth workflows may use file helpers for supporting data
- Security → Advanced sec: extends · Advanced security helpers build on the base security layer
- Tests → Login test: contains · Test project covers the sign-in journey
- Tests → Main form test: contains · Test project covers the main shell
- Login test → Login: validates · Login tests exercise the authentication screen
- Main form test → Menu: validates · Main form tests exercise the app shell
- Datos → Logica: paired layers · Reserved persistence and domain layers are both present but empty
- Menu → AI analyzer: may invoke · The app is prepared for AI analysis integration