Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Opportunity Pipeline View #211

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Oct 16, 2024

This pull request was created by Sweep to resolve the following request by @curtisdelicata:

Original Request

Declaration of App\Filament\App\Resources\OpportunityResource\Pages\ListOpportunities::table(): Illuminate\Contracts\View\View must be compatible with Filament\Resources\Pages\ListRecords::table(Filament\Tables\Table $table): Filament\Tables\Table

Update ListOpportunities::table() method signature for compatibility

Description:

The table() method in the ListOpportunities class is incompatible with its parent class ListRecords. We need to update the method signature to match the parent class and adjust the implementation accordingly.

Tasks:

  • Update app/Filament/App/Resources/OpportunityResource/Pages/ListOpportunities.php:

    • Modify the table() method signature to match the parent class
    • Adjust the method implementation to return a Filament\Tables\Table object
    • Remove the duplicate use statement for Illuminate\Contracts\View\View
  • Update the OpportunityResource class:

    • Modify the getPipelineView() method to return a `F...

Continue chatting at https://sweep-chat-demo.vercel.app/c/d66113ac-8b4f-476b-9d1d-b00eca7038e5.

Purpose

This pull request introduces a new pipeline view for the Opportunity resource in the Liberu CRM application. The pipeline view provides a visual representation of the opportunities and their progression through the different stages of the sales process.

Description

The changes in this pull request include:

  1. Opportunity Resource: Implemented the getPipelineTable method in the OpportunityResource class to define the table configuration for the pipeline view.
  2. ListOpportunities Page: Updated the table method in the ListOpportunities page to use the getPipelineTable method from the OpportunityResource.
  3. OpportunityPipeline Livewire Component: Created a new Livewire component, OpportunityPipeline, to handle the rendering and functionality of the pipeline view. This component loads the pipeline stages and deals, and provides a method to update the deal stage.
  4. Opportunity Pipeline View: Implemented the opportunity-pipeline.blade.php view to display the pipeline view, including the stages and the deals within each stage. The deals can be dragged and dropped to update their stage.

Summary

The key changes in this pull request are:

  • app/Filament/App/Resources/OpportunityResource.php: Implemented the getPipelineTable method to define the table configuration for the pipeline view.
  • app/Filament/App/Resources/OpportunityResource/Pages/ListOpportunities.php: Updated the table method to use the getPipelineTable method from the OpportunityResource.
  • app/Http/Livewire/OpportunityPipeline.php: Created a new Livewire component to handle the pipeline view functionality.
  • resources/views/livewire/opportunity-pipeline.blade.php: Implemented the view for the pipeline view, including the stages and the deals.

@curtisdelicata curtisdelicata merged commit 383e916 into main Oct 16, 2024
1 of 4 checks passed
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