Closed omar-bear closed 1 year ago
SonarCloud Quality Gate failed.
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
30.0% Duplication
Catch issues before they fail your Quality Gate with our IDE extension SonarLint
Feature: Display Personalized Blocks Listing in the Second Tab of the Left Sidebar
Description:
Integrate the listing of Personalized Blocks in the existing second tab in the left sidebar when the "Blocks" button in the page header is selected.
Implementation Details:
Frontend:
Initialize Main Vue.js Component
PersonalizedBlocksPlugin
personalizedBlocksPlugin.js
this.vm.
to refer to the ViewModel.Initialize List Component
PersonalizedBlocksListComponent
personalizedBlocksListComponent.js
API Calls to Fetch Personalized Blocks
personalizedBlocksListComponent.js
fetchPersonalizedBlocks
that will make an API call to thegetPersonalizedBlocks
endpoint. Utilizethis.vm.metadata.groupId
for thegroupId
.Manage Loading State
personalizedBlocksListComponent.js
isLoading
to manage the loading state. Display a loading spinner while fetching data.Vue Data Property for Personalized Blocks
personalizedBlocksListComponent.js
personalizedBlocks
to store the fetched blocks.Displaying Personalized Blocks Using Existing HTML Structure
toolbox.tmpl.html
personalizedBlocks
data property from the Vue component.Handle Errors
personalizedBlocksListComponent.js
this.vm.notifier.error(message)
.Integrate the Vue.js Component into HTML
toolbox.tmpl.html
<personalized-blocks-list-component />
to integrate the Vue.js component within the HTML file.Acceptance Criteria:
blocksActiveTab
is set toCUSTOM_BLOCKS
.Time Estimate:
2-3 days
RESULT
https://github.com/Badsender-com/LePatron.email/assets/80390318/a22a8e47-ca23-4155-98ab-771b36dd6b8a