This document outlines the strategic approach to developing Adamastor, a Portuguese parliament transparency platform. We use a page-based exploratory testing approach combined with CCPM (Claude Code PM) epic-based development.
Completed:
- ✅ Issue #42: Removed confusing party voting section (PR #201)
- ✅ Issue #14: E2E tests for comparison filtering (PR #202)
PRDs Created (Ready for Epic Parsing):
- Testing & Quality Epic - 3 issues
- UX/UI Improvements - 5 issues
- Feature Enhancements - 4 issues
- Data & Performance - 5 issues
- Platform Completeness - 4 issues
- Innovative Features - 2 issues
What breaks core value?
- Privacy Policy (#87) - Legal compliance blocker for EU users
- Data Constraints (#85) - Prevents data integrity issues
- CI Optimization (#33) - Developer productivity bottleneck
- Data Source URLs (#43) - Platform credibility foundation
What compounds over time?
- CI slowness (#33) - Impacts every PR
- Data quality issues (#85, #43) - Trust erosion
- Missing tests (#15, #65) - Technical debt accumulation
North Star Metric: User trust and engagement with democratic transparency
Critical User Journeys:
- Discover Deputy Performance (Landing → Ranking → Deputy Profile)
- Compare Options (Battle Royale, District/Party Comparisons)
- Track Initiatives (Initiatives page → Legislative proposals)
- Understand Impact (Waste Calculator)
Jobs-to-be-Done:
- "Help me understand my deputy's performance"
- "Help me compare political options objectively"
- "Help me hold representatives accountable"
Blockers & Compliance
- Privacy Policy (#87) - MANDATORY for EU compliance
- Any critical bugs found during exploratory testing
- Data constraints (#85) - Quick win, prevents data corruption
Low effort, high impact
- Sentry source maps (#9) - Better debugging
- Ranking formula panel (#38) - Transparency improvement
- Cross-links between pages (#28) - Navigation improvement
- CI optimization (#33) - Developer velocity
Core value drivers
- Party comparison in Battle Royale (#51) - Extends popular feature
- Data source URLs (#43) - Platform credibility
- Mobile responsiveness testing (#15) - Accessibility
- Deputy activity visualization (#40) - Engagement driver
Experimental & long-term
- AI legal simplifier (#113) - Differentiation
- Stylized avatars (#107) - Visual identity
- Vercel Edge caching (#122) - Performance at scale
Before implementing features, validate current state and identify issues through systematic page testing.
1. Landing Page (/)
- Hero section & value proposition
- Feature cards (6 cards)
- Navigation to all sections
- Mobile responsiveness
2. Ranking Page (/classificacao)
- Deputy list with grades
- Sorting functionality
- Search/filter capabilities
- Performance with 230+ deputies
- Formula explanation access
3. Deputy Profile Pages (/deputados/[shortName])
- Basic info display
- Performance metrics
- Attendance visualization
- Voting records
- Navigation to related content
4. Parliament Page (/parlamento)
- Overview statistics
- Current composition
- Party breakdown
- Links to deputy list
5. Battle Royale (/batalha-real)
- Deputy-vs-deputy comparison
- District comparison (
/distritos/comparar) - ✅ Tested (Issue #14) - Party comparison - Not implemented yet (#51)
- Results display
- Reset functionality
6. Districts Pages
- Districts list (
/distritos) - District detail pages
- Deputy-by-district view
- Comparison link
7. Parties Pages
- Parties list (
/partidos) - Party detail pages - Not implemented yet (#46)
- Deputy-by-party view
- Party statistics
8. Initiatives Page (/iniciativas)
- Legislative proposals list
- Filtering/sorting
- Proposal details
- Deputy authorship links
9. Waste Calculator (/calculadora-desperdicio)
- Input functionality
- Calculations accuracy
- Results display
- Educational messaging
10. Info Pages
- About page
- Privacy policy - Not implemented yet (#87)
- Contact information
- Footer links
For each page, document:
## Page: [Page Name]
### What Works Well
- [Feature/functionality that works correctly]
### Issues Found
- **[Severity: High/Medium/Low]**: [Description]
- Steps to reproduce
- Expected behavior
- Actual behavior
- Related issue: #XXX (if exists)
### Enhancement Opportunities
- [Potential improvement]
- Related PRD: [link to relevant PRD]
### Mobile/Tablet Notes
- [Responsive behavior observations]-
Parse PRDs into Epics
/pm:prd-parse testing-quality-epic /pm:prd-parse ux-ui-improvements /pm:prd-parse feature-enhancements /pm:prd-parse data-performance /pm:prd-parse platform-completeness /pm:prd-parse innovative-features
-
Decompose Epics into Tasks
/pm:epic-decompose
-
Sync to GitHub Issues
/pm:epic-sync
Creates hierarchical issue structure:
- 1 Epic issue (parent)
- Multiple Task issues (children)
- Proper labels and relationships
-
Start Implementation
/pm:issue-start <issue-number>
Automatically:
- Creates branch following naming convention
- Updates issue status
- Sets up work context
- Exploratory Testing - Complete all 10 pages, document findings
- Privacy Policy (#87) - Create mandatory compliance page
- Critical Bug Fixes - Address any P0 issues from testing
- Data Constraints (#85) - Quick database integrity fix
- Sentry Source Maps (#9) - Improve debugging
- Ranking Formula Panel (#38) - Add transparency
- Cross-links (#28) - Improve navigation
- Mobile Testing (#15) - E2E responsive tests
- Party Comparison (#51) - Extend Battle Royale
- Data Source URLs (#43) - Add provenance
- Deputy Activity Viz (#40) - Enhance profiles
- CI Optimization (#33) - Speed up pipeline
- Party Detail Pages (#46) - Complete party section
- Advanced Filters (#10) - Ranking page enhancements
- International Search (#112) - Diaspora support
- Feature Flags Testing (#65) - Quality assurance
- AI Legal Simplifier (#113) - POC & validation
- Stylized Avatars (#107) - Design exploration
- Edge Caching (#122) - Performance optimization
- ✅ #14 - Comparison filtering tests (DONE)
- #15 - Mobile responsiveness testing
- #65 - Feature flags testing
- ✅ #42 - Remove party voting section (DONE)
- #38 - Collapsible ranking formula
- #40 - Deputy activity visualization
- #27 - Improve deputy absence stats
- #28 - Cross-links between pages
- #51 - Battle Royale party comparison
- #46 - Party detail page
- #10 - Advanced ranking filters
- #106 - Deputy contact information
- #43 - Trackable data source URLs
- #33 - Optimize CI migrations
- #85 - Database ranking constraint
- #6 - Legislature auto-detection
- #122 - Vercel Edge API caching
- #112 - International voting circle search
- #87 - Privacy policy page
- #9 - Sentry source maps
- #8 - SEO domain update
- #113 - AI legal language simplifier
- #107 - Stylized deputy avatars
Platform Health:
- Test coverage > 80%
- CI pipeline < 2 minutes
- Zero P0 bugs in production
- Privacy compliance achieved
User Engagement:
- Avg session duration increase
- Cross-page navigation increase
- Battle Royale usage increase
- Mobile traffic growth
Developer Velocity:
- PRs merged per week
- Time from issue → deployment
- Bug fix turnaround time
- Always test before implementing - Exploratory testing validates assumptions
- Page-based organization - Aligns with user mental model
- CCPM for complex work - Use epic workflow for multi-task features
- Standard workflow for bugs - Quick fixes go straight to PR
- Continuous validation - E2E tests prevent regression
Last Updated: 2026-01-27