Skip to content

Feature & Infrastructure Upgrade#79

Merged
latheesan-k merged 34 commits into
mainfrom
upgrade
Mar 14, 2026
Merged

Feature & Infrastructure Upgrade#79
latheesan-k merged 34 commits into
mainfrom
upgrade

Conversation

@latheesan-k

@latheesan-k latheesan-k commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

Major Features / Upgrades

1. Enhanced Polling System

  • Full workflow implementation for polls: create, edit, close, publish, and manage
  • Poll rules management with support for eligibility criteria
  • Vote confirmation and wallet-based voting flow
  • Poll sharing widgets and social integration
  • Supporter tracking and goal visualization
  • Draft/review/published status workflow matching petitions

2. Admin Dashboard Improvements

  • Dedicated admin login system (AdminAuthenticatedSessionController)
  • Redesigned petition management interface with bulk actions
  • Poll management dashboard with status filtering
  • Better navigation and layout consistency across admin sections

3. Petition System Refinements

  • Admin review workflow with status transitions (draft → review → published)
  • Image upload support for petitions and rules
  • Delete and revert-to-draft functionality
  • Enhanced preview/live view modes
  • Share widgets and social integration

Technical Upgrades

Framework & Dependencies

  • Laravel 11 upgrade: Modernized from Laravel 10 with new directory structure
  • Frontend stack: Updated Vue 3, Inertia.js, and Vite configuration
  • Package management: Migrated lockfiles with updated dependencies
  • PHP 8.2+ features: Leveraging modern PHP capabilities

Database & Models

  • New poll_rule pivot table for associating rules with polls
  • Updated QuestionChoice model with enhanced relationships
  • Rule system now supports both petitions and polls
  • Migration improvements with proper foreign keys

Code Quality

  • Service providers modernized (removed deprecated ones)
  • Middleware consolidated and simplified
  • Policy classes expanded for better authorization
  • DTOs updated with stricter typing

UI/UX Enhancements

  • Workflow Progress Indicators: Visual step indicators for petition/poll creation flows
  • Empty State Handling: Better UX when no items exist (browse pages, lists)
  • Signature Receipts: Improved "Your Signature" display with wallet verification
  • Dark Theme: Fixed theme handling issues across components
  • Responsive Design: Mobile-first improvements throughout
  • Shared Components: Reusable criteria, tally, and paginator components

Developer Experience

Build & Development Tools

  • Enhanced Makefile with comprehensive commands (init, setup, seed, test)
  • Docker Compose refinements for local development
  • Redis configuration for caching and queues
  • setup.sh script for one-command environment setup

AI/IDE Integration

  • .cursor/mcp.json and .ai/mcp/mcp.json for Model Context Protocol
  • Skill files for common development tasks (Inertia, Tailwind, MediaLibrary)
  • Laravel Boost package integration for AI-assisted development

Testing

  • New PetitionFlowTest and PollFlowTest feature tests
  • Authentication test updates for Laravel 11 compatibility

Bug Fixes

  1. Wallet connection stability improvements
  2. Blockfrost URL configuration fixes
  3. Image upload handling in forms
  4. Stats calculation corrections for home page
  5. Cache implementation for platform statistics
  6. Form validation and error display issues
  7. Route middleware and authorization edge cases

- Upgrade Laravel to 11.x and PHP to 8.5
- Upgrade Docker runtime to PHP 8.5 / Node 20 / Laravel Sail 8.5
- Upgrade PostgreSQL to 17
- Upgrade NestJS lucid backend with proper TypeScript config
- Fix Docker compose service naming and networking issues
- Fix worker container startup (SUPERVISOR_PHP_USER=sail)
- Fix Redis/MinIO/Lucid endpoint configuration in .env
- Add improved setup wizard script (scripts/setup.sh) with clean output
- Update README with current services, env vars, and troubleshooting
- Update Makefile commands to use docker compose directly
- Fix browserslist/caniuse-lite warnings in frontend build
- Add dedicated  auth guard, login/logout routes, and
   to separate admin sessions
  from voter sessions
- Implement petition review lifecycle: draft → pending → approved /
  rejected → published; petitions must now be submitted for admin
  review before they can be published
- Rebuild admin petition View page with full details, status badge,
  and approve/reject actions; wire up reject action on Edit page
- Update user-facing Manage page and StepThree workflow to reflect all
  petition states with appropriate CTAs
- Redesign SignPetitionForm to present wallet and email signing as
  labelled, visually distinct options
- Fix petition image display and author name in PetitionSingle
- Fix Blockfrost URL sed pattern in setup.sh to use env-key replacement
- Fix Blockfrost API proxy URI parsing and add error handling
- Clean up Vite  file before/after builds in Makefile and setup.sh
…ts for home page. Refine empty state of browse page.
@latheesan-k latheesan-k changed the title Upgrade Feature & Infrastructure Upgrade Mar 5, 2026
@latheesan-k latheesan-k merged commit 7411e2e into main Mar 14, 2026
@latheesan-k latheesan-k deleted the upgrade branch March 14, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant