Mixed Content Page
Demonstrating content-level RBAC with conditional rendering
This page demonstrates how different content can be shown to different user roles on the same page.
Section 1: Public Information
This is public information visible to all users. Everyone can see this content regardless of authentication status.
Public API Endpoints
GET /api/public/statusGET /api/public/info
Section 2: work trialer Features
Trial Features
You’re logged in! Here are some features available to authenticated users:
- Advanced analytics dashboard
- Priority support tickets
- Extended API rate limits
Note for work trialers: Your trial includes access to these features for 7 days.
Section 3: Engineering Resources
Internal Engineering Documentation
This section is only visible to engineers.
Internal APIs:
POST /api/internal/deployGET /api/internal/metricsDELETE /api/internal/cache
Architecture Notes:
- Service mesh configuration
- Database sharding strategy
- Caching layer implementation
Section 4: Contractor Information
Contractor & Project Resources
For Contractors: Access your project assignments and deliverables here.
- Project timeline and milestones
- Code review guidelines
- Deployment procedures
For Engineers: Contractor management and oversight tools.
- Contractor access audit logs
- Project assignment dashboard
- Code review queue
Summary
This page demonstrates how the <If viewer> component enables fine-grained content control within a single page.