Public Pages & Discovery
Relevant source files
The following files were used as context for generating this wiki page:
The Public Pages & Discovery system manages the externally accessible areas of the Monarch Property Management platform. It focuses on user acquisition, information dissemination, and lead generation through property listings, service descriptions, and Request for Quotation (RFQ) previews. The system is designed with a "Public-First" architecture that masks sensitive data until authorized, ensuring security while maintaining search engine visibility.
Key objectives include providing comprehensive SEO coverage, managing technical discovery of projects for potential vendors, and offering a seamless transition from anonymous browsing to authenticated user states.
Sources: src/pages/public/PublicRFQView.tsx, src/components/SEO/EnhancedSEO.tsx, supabase/functions/generate-sitemap/index.ts
Architecture of Public Discovery
The discovery layer utilizes a multi-tiered approach to data access. While high-level metadata is available for search engines and anonymous users, detailed project specifications are restricted.
Data Masking and Access Control
Public discovery components, such as PublicRFQView, use specific database RPC calls like get_public_rfq to fetch restricted versions of internal records. This ensures that sensitive fields like full project addresses, technical blueprints, and budget guidance are not exposed to the public internet.
The diagram above illustrates how the system intercepts requests to provide a "masked" view of project data.
Sources: src/pages/public/PublicRFQView.tsx:43-51, src/pages/public/PublicRFQView.tsx:112-140
Search Engine Optimization (SEO) Infrastructure
The platform employs a robust SEO strategy using JSON-LD structured data and dynamic meta tags to ensure maximum visibility in search results.
Enhanced SEO Components
The EnhancedSEO component provides a unified interface for managing Open Graph tags, Twitter cards, and canonical URLs. It supports specialized schemas for different page types, including:
- OrganizationSchema: General business information.
- LocalBusinessSchema: Physical location and contact details.
- WebSiteSchema: Search-related metadata.
| Schema Type | Usage | Purpose |
|---|---|---|
Organization | General Pages | Brand identity and social links |
LocalBusiness | Home/Contact | Location, hours, and price range |
RealEstateAgent | Service Pages | Industry-specific expertise and services |
Product | Property Details | Pricing and availability |
Sources: src/components/SEO/EnhancedSEO.tsx:29-51, src/components/EnhancedSEOLayout.tsx:44-93
Automated Sitemap Generation
An Edge Function (generate-sitemap) automatically indexes the site structure, including static pages, available properties, and open projects.
The sitemap generator includes a rate-limiting mechanism (MAX_REQUESTS_PER_WINDOW = 10) to prevent abuse while ensuring crawlers have access to the latest content.
Sources: supabase/functions/generate-sitemap/index.ts:7-14, supabase/functions/generate-sitemap/index.ts:54-75
Public Pages Catalog
The system includes several core informational pages that serve as the foundation for user discovery.
Information Architecture
The Sitemap component defines the primary navigation categories for the application, organizing them into logical clusters for different user personas.
| Category | Key Pages | Description |
|---|---|---|
| Main Pages | Home, About, Properties, Services | Core business and marketing content |
| Vendor Discovery | Join as Vendor, RFQ Discovery | Lead generation for service providers |
| Legal | Terms, Privacy | Regulatory and compliance documentation |
Sources: src/pages/Sitemap.tsx:8-30, src/pages/Sitemap.tsx:115-132
The "About Us" Experience
The About page provides social proof through team member profiles, core values, and historical milestones. It utilizes PageHeroWithImage for visual engagement and maintains a conversion-focused footer with a Call to Action (CTA) for property owners and tenants.
Sources: src/pages/About.tsx:10-48, src/pages/About.tsx:188-212
RFQ Discovery & Access Requests
The discovery system for projects is a bridge between public browsing and private vendor participation.
Public RFQ Preview
The PublicRFQView displays a "masked" summary of project requirements. Key attributes visible to anonymous users include:
- Title and Status: High-level identification.
- Category and Duration: Service classification.
- Address Summary: City-level location only.
- Deadline: Submission timeframe.
Access Flow
Users are presented with a "blurred" list of restricted features (Documents, Budget, Framework) to encourage registration. Access requests are handled via the RequestRFQAccessDialog, which initiates a workflow requiring administrator approval before the full VendorRFQDetail is revealed.
Sources: src/pages/public/PublicRFQView.tsx:85-110, src/pages/public/PublicRFQView.tsx:130-145
Conclusion
The Public Pages & Discovery system serves as the entry point for all users, balancing the need for search engine visibility with sensitive data protection. Through automated sitemaps, structured data schemas, and a gated access request workflow, the platform effectively converts anonymous visitors into verified stakeholders while maintaining a professional and secure digital presence.
Sources: src/pages/App.tsx:115-150, src/components/SEO/EnhancedSEO.tsx