.txt export, review the parsed items, and copy a curated digest for a government area panel.
Prerequisites
Before you begin, confirm the following are available:| Requirement | Version / detail |
|---|---|
| Node.js | 18 or later |
| Angular CLI | 16 (npm install -g @angular/cli@16) |
| Google Sheets master catalog | Editor access to the keyword catalog sheet |
| WordPress backend credentials | URL and authentication for pruebas01.dev.cordoba.gob.ar |
Setup and configuration
Clone the repository and install dependencies
npm install will pull all Angular 16 dependencies. Expect the install to take 1–2 minutes on first run.Configure the Google Sheets keyword catalog ID
Open The sheet ID is the long alphanumeric string in the Google Sheets URL:
src/app/services/shared.service.ts and locate the sheetPalabrasClave field near the top of the service class. Replace the default value with your municipality’s master catalog sheet ID.src/app/services/shared.service.ts
Configure the WordPress backend URL
In The three methods that must point to this base are:
src/app/services/shared.service.ts, three methods interact with the WordPress REST API: leerNoticias, guardarNoticias, and ActualizarNoticias. Each method builds its request URL from the WordPress API base path.Locate all references to the WordPress API base and update them to your environment’s host:src/app/services/shared.service.ts
| Method | Operation |
|---|---|
leerNoticias | GET — fetches previously saved news items from WordPress |
guardarNoticias | POST — persists new parsed items to WordPress |
ActualizarNoticias | PUT/PATCH — updates existing items (e.g., after IA summarization) |
Start the development server
http://localhost:4200. Wait for the Compiled successfully message before opening the browser.The ingestion route is at
/controlmedios. Navigate there directly — the root path (/) does not redirect automatically.Upload your first WhatsApp .txt export
- Open your browser at
http://localhost:4200/controlmedios. - You will land on the ImportarComponent — the ingestion and parse screen.
- Click Subir archivo (or the equivalent upload button in your locale build) and select the
.txtfile exported from WhatsApp.
NewsItem object:NewsItem interface
Review parsed items
After the upload completes, the ImportarComponent displays the parsed item list. For each item you should verify:
- sendDate and sendTime match the original message timestamp.
- media and program were correctly extracted from the sender or message prefix.
- topic[] contains at least one category matched against the Google Sheets keyword catalog. Items with an empty
topic[]were not matched by any keyword — you can assign topics manually before proceeding. - link is populated if the message contained a URL.
guardarNoticias.Items flagged with
destacada: true will appear at the top of their category panel and are included in the featured section of the digest.Navigate to a category panel
Each government area has its own category panel reachable at:Replace The PanelComponent loads all
:cat with the URL-encoded category name that corresponds to a keyword group in your Google Sheets catalog. For example, if your catalog defines a group called salud, navigate to:NewsItem records whose topic[] array includes the requested category and renders them in dispatch order (featured items first, then chronological).Ingestion & parse
Upload and parse WhatsApp
.txt exports at /controlmedios.Category panel
Review and dispatch per-area digests at
/controlmedios/panel/:cat.Analytics
Coverage statistics and trend charts at
/controlmedios/estadisticas.Copy the digest to clipboard
Inside the category panel, each
NewsItem has a Copy toggle (backed by the copy: boolean field on the interface). Toggle on every item you want to include in the outgoing digest.Once your selection is complete:- Click Copiar digest (the clipboard action button at the top or bottom of the panel).
- The app assembles all items where
copy === trueinto a formatted digest string and writes it to the system clipboard. - Paste the digest directly into your email client, messaging platform, or CMS to dispatch it to officials.
What’s next
Now that you have completed your first press log cycle, explore the rest of the system:Keyword configuration
Learn how to add and maintain keyword groups in the Google Sheets master catalog.
Media catalog
Configure media outlet and program abbreviations for accurate name resolution.
Analytics dashboard
Interpret coverage metrics and export reports from the analytics dashboard.