Skip to content

Conversation

@MujahidAbbas
Copy link
Owner

Summary

  • Upgrade relaticle/flowforge from v2.2 to v3.0 with decimal position system
  • Migrate position column from VARCHAR (Lexorank strings) to DECIMAL(20,10)
  • Add comprehensive Pest PHP test suite for Kanban board functionality (92 tests)
  • Create missing factories for PlanRun and PlanRunStep models

Changes

  • Flowforge v3 Upgrade: Position column now uses BCMath decimal arithmetic instead of Lexorank strings for more precise ordering
  • Migration: Converts existing Lexorank positions to decimal while preserving card order per column
  • Test Coverage:
    • DecimalPosition service (26 tests)
    • KanbanBoard component rendering (19 tests)
    • KanbanBoard actions - create/edit/delete (19 tests)
    • KanbanBoard position management - drag/drop (19 tests)
    • KanbanBoard authorization (9 tests)

Test plan

  • All 216 tests pass (586 assertions)
  • Migration tested with existing data
  • Kanban board drag-and-drop functionality verified
  • Laravel Pint formatting applied

Templates System:
- Add Template model with 23 built-in templates across 6 categories
- Add TemplateCategory and FeedbackType enums
- Create TemplateSelector Livewire component for PRD/Tech tabs
- Integrate templates into GeneratePrdJob and GenerateTechSpecJob
- Templates inject structured sections into AI prompts

AI Feedback Panel:
- Add GenerateFeedbackJob for async feedback generation
- Create FeedbackPanel Livewire component with 5 feedback types
- Add feedback prompt templates (completeness, clarity, technical, stakeholder, overall)
- Cache-based feedback storage with version-aware cache keys

Tests:
- Add TemplateTest for model and query tests
- Add TemplateSelectorTest for Livewire component
- Add FeedbackPanelTest for feedback flow
- Implement SortableJS + Alpine.js directive for drag-and-drop
- Add x-sortable Alpine directive in app.js
- Update Create and Edit template components with reorderSection method
- Fix delete button visibility with inline styles
- Add comprehensive tests for section reordering functionality
- Extract repetitive logic into private helper methods
- Add explicit return types and PHPDoc annotations
- Use early return pattern for better readability
- Remove unused traits and redundant imports
- Apply consistent patterns across Livewire components
- Upgrade relaticle/flowforge from v2.2 to v3.0
- Migrate position column from VARCHAR (Lexorank) to DECIMAL(20,10)
- Update GenerateTasksJob and DatabaseSeeder to use DecimalPosition
- Add TaskFactory states for positions and categories
- Create PlanRunFactory and PlanRunStepFactory
- Add 92 tests for Kanban board functionality:
  - DecimalPosition service tests (26 tests)
  - KanbanBoard component tests (19 tests)
  - KanbanBoard action tests (19 tests)
  - KanbanBoard position tests (19 tests)
  - KanbanBoard authorization tests (9 tests)
- Add .ai directory to gitignore
@MujahidAbbas MujahidAbbas merged commit cdac342 into main Jan 13, 2026
0 of 2 checks passed
@MujahidAbbas MujahidAbbas deleted the feature/phase-1-templates-feedback branch January 13, 2026 21:50
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.

2 participants