After a successful login, users land on the TF-App dashboard — the primary workspace for real estate teams. It is designed to surface sales activity, agent commission summaries, and property data in one place, giving field agents and managers a unified view of ongoing operations without switching between separate tools.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Niurka77/tf-app/llms.txt
Use this file to discover all available pages before exploring further.
Dashboard Views
TF-App is structured around three HTML views, each serving a distinct role in the user journey:login.html
The entry point of the app. Presented on every cold launch, it collects the user’s DNI and password before granting access to the rest of the application.
cargando.html
A transitional loading screen displayed while the app initialises data after login. Prevents a blank flash between authentication and the fully-populated dashboard.
dashboard.html
The main operational view. Hosts sales summaries, commission data, and property information once the user has been authenticated and data has been fetched.
src/views/ and are served by Vite during development. At build time, Vite bundles the project into dist/, which is the directory Capacitor reads when packaging the Android APK (configured as "webDir": "dist" in capacitor.config.json).
The
dashboard.html and cargando.html views are located in src/views/. During local development with npm run dev, Vite serves all files from the src/ directory. Make sure any navigation links or window.location.href assignments reference paths that Vite can resolve from your project root.Navigating to the Dashboard
On successful login,main.js can redirect the user to dashboard.html using a standard browser navigation call. The redirect line is already present as a comment in the submit handler and simply needs to be uncommented once a real authentication flow is in place:
localStorage after login (recommended — see Authentication), you can read it on the dashboard page to verify the session is still valid before rendering sensitive data:
Loading Screen
cargando.html acts as a visual buffer between the login redirect and the fully-loaded dashboard. Showing a loading screen prevents users from seeing an empty or partially-rendered dashboard while asynchronous data requests are in flight.
A typical pattern is to redirect to cargando.html immediately after login, kick off your data fetch calls there, and then redirect to dashboard.html once the promises resolve:
capacitor.config.json also contributes a 2-second launch animation ("launchShowDuration": 2000) before the WebView is shown, providing a smooth start on Android before cargando.html even loads.
Extending the Dashboard
The dashboard view is an open canvas ready for real estate data components. Here is a practical approach to wiring up live data sections: 1. Define your data containers indashboard.html:
dashboard.html’s script block: