Add RSS feed monitoring for tender opportunities#95
Merged
Conversation
Nouvel onglet "Veille RSS" dans la page Appels d'offres permettant de déclarer des sources RSS, filtrer les annonces par mots-clés inclus/exclus, et convertir une annonce détectée en fiche appel d'offre. Un sondage périodique backend (server/tenderRssPoller.ts) interroge les flux toutes les 30 minutes et stocke les nouvelles annonces dans tender_rss_matches. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013DT2bkCp3f7xKaNfsxC4Kb
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a comprehensive RSS feed monitoring system ("Veille RSS") to track tender opportunities from external RSS sources. Users can configure RSS feeds with keyword-based filtering, and the system automatically polls feeds at regular intervals to detect matching opportunities that can be converted into tender records.
Key Changes
New Component:
TenderRssWatch.tsx— Full-featured UI for managing RSS sources and viewing detected matchesBackend Polling Service:
server/tenderRssPoller.ts— Autonomous RSS feed polling(source_id, guid)TENDER_RSS_POLL_INTERVAL_MINUTESenv var (default 30 min)Database Schema:
supabase/migrate_add_tender_rss_watch.sqltender_rss_sourcestable — User-configured RSS feeds with keyword filterstender_rss_matchestable — Detected feed items with status lifecycleAPI Endpoints (in
server.ts):GET /api/tender-rss-sources— List configured sourcesPOST /api/tender-rss-sources— Create new sourcePUT /api/tender-rss-sources/:id— Update sourceDELETE /api/tender-rss-sources/:id— Delete sourcePOST /api/tender-rss-sources/poll-now— Trigger immediate pollGET /api/tender-rss-matches— List detected itemsPUT /api/tender-rss-matches/:id— Update match statusPOST /api/tender-rss-matches/:id/convert— Convert item to tenderUI Integration:
src/pages/Tenders.tsxTypes: Added
TenderRssSourceandTenderRssMatchinterfaces tosrc/types.tsTranslations: French and English strings for all UI elements in
src/locales/Dependencies: Added
rss-parserpackage for RSS feed parsingImplementation Details
setInterval()after server startuphttps://claude.ai/code/session_013DT2bkCp3f7xKaNfsxC4Kb