# aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend architecture

> Architecture diagram of the GitHub repository aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend
- Repository: https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend

## Overview

#### Purpose and Runtime
This is an Angular frontend for “Trámites Municipales Automáticos,” deployed at the Render URL in the README. It presents a public marketing/landing experience plus authenticated-style dashboard screens for an AI municipal-procedures assistant. No backend, database, or server-side implementation is present in this repository.

Entry/bootstrap points:
- `src/main.ts`
- `src/app/app.ts`
- `src/app/app.config.ts`

#### Application Shell and Navigation
Angular application configuration and route definitions establish the top-level composition and navigation boundary:
- `src/app/app.routes.ts`
- `src/app/app.html`
- `src/app/app.config.ts`

The route structure appears to separate public pages (landing, authentication, help, terms) from dashboard functions (assistant, history, feedback, settings).

#### Layout Boundaries
Three layout components organize page-level rendering and shared chrome:
- `src/app/layout/layout-landing/layout-landing.ts`
- `src/app/layout/layout-auth/layout-auth.ts`
- `src/app/layout/layout-dashboard/layout-dashboard.ts`

Landing layout hosts promotional content; auth layout wraps login/register flows; dashboard layout provides the persistent application workspace, likely including navigation and top controls. Pages should remain feature-focused and delegate reusable framing to these layouts.

#### Public and Authentication Experience
Public entry and account-access pages are distinct feature areas:
- `src/app/pages/landing/landing.ts`
- `src/app/pages/login/login.ts`
- `src/app/pages/register/register.ts`

The landing page is assembled from hero, header/footer, branding, feature, and service sections:
- `src/app/components/section-hero/section-hero.ts`
- `src/app/components/landing/header-landing/header-landing.ts`
- `src/app/components/landing/section-services/section-services.ts`

Authentication contracts and client-side service logic are centralized rather than embedded solely in pages:
- `src/app/interfaces/auth.ts`
- `src/app/services/authservice.ts`
- `src/app/core/api.ts`

#### Dashboard Workspace
The dashboard contains the product’s primary workflow: a municipal-procedure AI assistant plus supporting history, feedback, and user settings:
- `src/app/pages/dashboard/assistant/assistant.ts`
- `src/app/pages/dashboard/history/history.ts`
- `src/app/pages/dashboard/settings/settings.ts`

Shared dashboard chrome and controls include sidebar navigation and a top bar:
- `src/app/components/dashboard/sidebar/sidebar.ts`
- `src/app/components/dashboard/topbar/topbar.ts`
- `src/app/components/dashboard/setting-switch/setting-switch.ts`

#### AI Assistant Interaction Flow
The assistant screen is composed as a UI-driven conversation/process flow: user chat input and messages feed an AI-processing state, responses/download actions, and document/file presentation.
- `src/app/components/dashboard/chat-input/chat-input.ts`
- `src/app/components/dashboard/iaprocessing/iaprocessing.ts`
- `src/app/components/dashboard/bubble-message-ia/bubble-message-ia.ts`

Related output artifacts are represented by cards:
- `src/app/components/dashboard/document-card/document-card.ts`
- `src/app/components/dashboard/file-card/file-card.ts`
- `src/app/components/dashboard/card-download-ia/card-download-ia.ts`

The repository does not expose a concrete AI API integration beyond the general API/auth boundary, so AI processing behavior may currently be presentational or depend on external endpoints configured in code.

#### Shared UI and Styling
Reusable UI primitives provide consistent controls across public, auth, and dashboard surfaces:
- `src/app/components/ui/button/button.ts`
- `src/app/components/ui/input-field/input-field.ts`
- `src/app/components/ui/icon-component/icon-component.ts`

Styling is component-scoped alongside templates, with global styling at:
- `src/styles.css`
- `src/app/app.css`

The material infrastructure is Angular/TypeScript, configured through `angular.json` and package metadata. The only declared external deployment service is Render; no other infrastructure integration is evident from the supplied tree.

Main entry points: [`src/app/layout/layout-dashboard/layout-dashboard.ts`](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/layout/layout-dashboard/layout-dashboard.ts) (Dashboard layout), [`src/app/app.routes.ts`](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/app.routes.ts) (Route definitions), [`src/app/components/dashboard/iaprocessing/iaprocessing.ts`](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/components/dashboard/iaprocessing/iaprocessing.ts) (AI processing state), [`src/app/app.ts`](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/app.ts) (Root application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_bootstrap["Angular bootstrap"]
  node_main["Application entry<br/>Angular bootstrap<br/>[main.ts]"]
  node_app["Root application<br/>Angular shell<br/>[app.ts]"]
  node_config["App configuration<br/>Angular providers<br/>[app.config.ts]"]
  node_routes["Route definitions<br/>Angular routes<br/>[app.routes.ts]"]
  node_api{{"API boundary<br/>Client API<br/>[api.ts]"}}
end

subgraph group_public["Public & account"]
  node_landing_layout["Landing layout<br/>Page layout<br/>[layout-landing.ts]"]
  node_landing["Landing page<br/>Public feature<br/>[landing.ts]"]
  node_auth_layout["Auth layout<br/>Page layout<br/>[layout-auth.ts]"]
  node_login_register["Login & registration<br/>Account pages<br/>[login.ts]"]
  node_auth_service["Authentication service<br/>Client service<br/>[authservice.ts]"]
end

subgraph group_dashboard["Dashboard workspace"]
  node_dashboard_layout["Dashboard layout<br/>Workspace layout"]
  node_dashboard_chrome["Sidebar & top bar<br/>Shared dashboard UI<br/>[sidebar.ts]"]
  node_history["History<br/>Dashboard feature<br/>[history.ts]"]
  node_settings["Settings<br/>Dashboard feature<br/>[settings.ts]"]
end

subgraph group_assistant["Assistant flow"]
  node_assistant_page["AI assistant<br/>Dashboard feature<br/>[assistant.ts]"]
  node_chat_input["Chat input<br/>Assistant control<br/>[chat-input.ts]"]
  node_ai_processing["AI processing state<br/>Assistant UI state<br/>[iaprocessing.ts]"]
  node_assistant_output["Messages & downloads<br/>Assistant output UI"]
end

node_main -->|"bootstraps"| node_app
node_app -->|"uses"| node_config
node_config -->|"configures"| node_routes
node_routes -->|"public route"| node_landing_layout
node_landing_layout -->|"frames"| node_landing
node_routes -->|"account route"| node_auth_layout
node_auth_layout -->|"frames"| node_login_register
node_login_register -->|"authenticates via"| node_auth_service
node_auth_service -->|"calls"| node_api
node_routes -->|"dashboard routes"| node_dashboard_layout
node_dashboard_layout -->|"includes"| node_dashboard_chrome
node_dashboard_layout -->|"hosts"| node_assistant_page
node_dashboard_layout -->|"hosts"| node_history
node_dashboard_layout -->|"hosts"| node_settings
node_assistant_page -->|"accepts request"| node_chat_input
node_chat_input -->|"starts"| node_ai_processing
node_ai_processing -->|"renders response"| node_assistant_output
node_ai_processing -.->|"external processing"| node_api

click node_main "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/main.ts"
click node_app "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/app.ts"
click node_config "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/app.config.ts"
click node_routes "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/app.routes.ts"
click node_landing_layout "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/layout/layout-landing/layout-landing.ts"
click node_landing "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/pages/landing/landing.ts"
click node_auth_layout "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/layout/layout-auth/layout-auth.ts"
click node_login_register "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/pages/login/login.ts"
click node_auth_service "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/services/authservice.ts"
click node_api "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/core/api.ts"
click node_dashboard_layout "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/layout/layout-dashboard/layout-dashboard.ts"
click node_dashboard_chrome "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/components/dashboard/sidebar/sidebar.ts"
click node_assistant_page "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/pages/dashboard/assistant/assistant.ts"
click node_chat_input "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/components/dashboard/chat-input/chat-input.ts"
click node_ai_processing "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/components/dashboard/iaprocessing/iaprocessing.ts"
click node_assistant_output "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/components/dashboard/bubble-message-ia/bubble-message-ia.ts"
click node_history "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/pages/dashboard/history/history.ts"
click node_settings "https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/pages/dashboard/settings/settings.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_app,node_config,node_routes,node_api toneBlue
class node_landing_layout,node_landing,node_auth_layout,node_login_register,node_auth_service toneAmber
class node_dashboard_layout,node_dashboard_chrome,node_history,node_settings toneMint
class node_assistant_page,node_chat_input,node_ai_processing,node_assistant_output toneRose
```

## Components

### Angular bootstrap

- [Application entry](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/main.ts): Angular bootstrap · `src/main.ts`
- [Root application](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/app.ts): Angular shell · `src/app/app.ts`
- [App configuration](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/app.config.ts): Angular providers · `src/app/app.config.ts`
- [Route definitions](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/app.routes.ts): Angular routes · Separates public, account, and dashboard navigation. · `src/app/app.routes.ts`
- [API boundary](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/core/api.ts): Client API · External service integration boundary; no backend is in this repository. · `src/app/core/api.ts`

### Public & account

- [Landing layout](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/layout/layout-landing/layout-landing.ts): Page layout · `src/app/layout/layout-landing/layout-landing.ts`
- [Landing page](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/pages/landing/landing.ts): Public feature · `src/app/pages/landing/landing.ts`
- [Auth layout](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/layout/layout-auth/layout-auth.ts): Page layout · `src/app/layout/layout-auth/layout-auth.ts`
- [Login & registration](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/pages/login/login.ts): Account pages · `src/app/pages/login/login.ts`
- [Authentication service](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/services/authservice.ts): Client service · Uses shared API access and authentication contracts. · `src/app/services/authservice.ts`

### Dashboard workspace

- [Dashboard layout](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/layout/layout-dashboard/layout-dashboard.ts): Workspace layout · Persistent navigation and top controls frame dashboard pages. · `src/app/layout/layout-dashboard/layout-dashboard.ts`
- [Sidebar & top bar](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/components/dashboard/sidebar/sidebar.ts): Shared dashboard UI · `src/app/components/dashboard/sidebar/sidebar.ts`
- [History](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/pages/dashboard/history/history.ts): Dashboard feature · `src/app/pages/dashboard/history/history.ts`
- [Settings](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/pages/dashboard/settings/settings.ts): Dashboard feature · `src/app/pages/dashboard/settings/settings.ts`

### Assistant flow

- [AI assistant](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/pages/dashboard/assistant/assistant.ts): Dashboard feature · Primary municipal-procedure workflow. · `src/app/pages/dashboard/assistant/assistant.ts`
- [Chat input](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/components/dashboard/chat-input/chat-input.ts): Assistant control · `src/app/components/dashboard/chat-input/chat-input.ts`
- [AI processing state](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/components/dashboard/iaprocessing/iaprocessing.ts): Assistant UI state · May be presentational or call externally configured endpoints. · `src/app/components/dashboard/iaprocessing/iaprocessing.ts`
- [Messages & downloads](https://github.com/aylin-28/grupo03_tramitesmunicipalesautomaticos_frontend/blob/main/src/app/components/dashboard/bubble-message-ia/bubble-message-ia.ts): Assistant output UI · Shows AI responses plus document, file, and download artifacts. · `src/app/components/dashboard/bubble-message-ia/bubble-message-ia.ts`

## Connections

- Application entry → Root application: bootstraps
- Root application → App configuration: uses
- App configuration → Route definitions: configures
- Route definitions → Landing layout: public route
- Landing layout → Landing page: frames
- Route definitions → Auth layout: account route
- Auth layout → Login & registration: frames
- Login & registration → Authentication service: authenticates via
- Authentication service → API boundary: calls
- Route definitions → Dashboard layout: dashboard routes
- Dashboard layout → Sidebar & top bar: includes
- Dashboard layout → AI assistant: hosts
- Dashboard layout → History: hosts
- Dashboard layout → Settings: hosts
- AI assistant → Chat input: accepts request
- Chat input → AI processing state: starts
- AI processing state → Messages & downloads: renders response
- AI processing state → API boundary: external processing
