devhatt / octopost

Octopost is an open source service from Devhat that was created to guide new developers for free
https://devhatt.github.io/octopost/
MIT License
65 stars 45 forks source link

Connect modules #405 #500

Closed Alecell closed 1 month ago

Alecell commented 2 months ago

Closes #405

Feature Criado o canal de comunicação global dos componentes com os serviços da aplicação. Também foi criado um meio mockado de usar as API's por enquanto.
Changelog - Update tabber component - Update social accordion - Update add social media modal - Create zustand store to deal with the orchestrator layer - Create services to handle the API calls
Visual evidences :framed_picture: https://github.com/devhatt/octopost/assets/13935760/8dfb3709-5e40-40d3-8d88-7bef5eb1d937
Checklist - [x] Issue linked - [x] Build working correctly - [ ] Tests created - N/A
github-actions[bot] commented 2 months ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 49.67% 153 / 308
🔵 Statements 50% 171 / 342
🔵 Functions 48.66% 73 / 150
🔵 Branches 52.34% 78 / 149
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/App.tsx 100% 100% 0% 100%
src/index.tsx 0% 100% 100% 0% 8-9
src/components/Accordion/Accordion.tsx 100% 100% 100% 100%
src/components/AccordionTab/AccordionTab.tsx 33.33% 50% 50% 50% 18, 18
src/components/AccountCard/AccountCard.tsx 100% 72.72% 100% 100%
src/components/Button/Button.tsx 66.66% 30% 66.66% 66.66% 11-17
src/components/ComponentPreview/PreviewContainer.tsx 100% 100% 100% 100%
src/components/FeedbackError/FeedbackError.tsx 100% 100% 100% 100%
src/components/Icon/Icon.tsx 100% 100% 100% 100%
src/components/Icon/data.ts 100% 100% 100% 100%
src/components/InputMedia/InputMedia.mock.tsx 0% 100% 0% 0% 18
src/components/InputMedia/InputMedia.tsx 88.88% 35.71% 83.33% 93.75% 29, 65-68
src/components/InputSearch/InputSearch.tsx 97.36% 78.94% 88.88% 100% 90-92
src/components/MediaInputs/MediaInput.tsx 22.22% 0% 16.66% 25% 14, 18-19, 19, 21-23, 22, 25, 29-30, 30, 32-35, 33-34, 36
src/components/MediaInputs/MediaGroup/MediaGroup.tsx 0% 100% 0% 0% 18, 23
src/components/Modal/Modal.tsx 85.71% 80% 66.66% 85.71% 44
src/components/Preview/Preview.tsx 100% 100% 100% 100%
src/components/SentrySetup/SentrySetup.tsx 0% 100% 0% 0% 16-32, 34
src/components/SubmitButton/SubmitButton.tsx 100% 100% 0% 100%
src/components/Tabber/Tabber.tsx 0% 0% 0% 0% 18, 20-21, 24-25, 28-37, 29-31, 33-36, 39-41, 40, 49-61, 50-51, 53-55, 54, 57-60, 91
src/components/Tabber/utils.ts 0% 0% 0% 0% 7-9, 9, 11-12, 12, 14-35, 18-35, 19-21, 21, 23, 25-32, 34
src/components/Tabber/PostModes/PostModes.tsx 0% 100% 0% 0% 16-17, 19-25, 22-25, 31
src/components/Tabber/Tabs/Tabs.tsx 0% 0% 0% 0% 14, 16-17, 17, 19-20, 20, 26, 36
src/enums/HttpMethods.ts 0% 0% 0% 0% 1
src/enums/httpStatusCodes.ts 0% 0% 0% 0% 7
src/hooks/useKeyPress/useKeyPress.ts 100% 100% 100% 100%
src/pages/home/home.tsx 0% 0% 0% 0% 19-21, 25-27, 26, 26, 41
src/pages/home/components/Header/Header.tsx 100% 100% 0% 100%
src/pages/home/components/Sidebar/Sidebar.tsx 0% 100% 0% 0% 22-24, 26-28, 27, 27, 30-33, 31-32, 35-38, 36-37, 86
src/pages/home/components/Sidebar/components/AddAccount/AddAccount.tsx 0% 100% 0% 0% 8, 10-12, 11, 16
src/pages/home/components/Sidebar/components/SocialAccordion/SocialAccordion.tsx 0% 0% 0% 0% 13, 15, 17, 17, 17
src/services/api/index.ts 100% 100% 100% 100%
src/services/api/accounts/accounts.ts 16.66% 100% 0% 16.66% 7-13, 8-9, 11-12
src/services/api/social-media/social-media.ts 9.09% 100% 0% 9.09% 9-17, 10-13, 15-16, 21-27, 22-23, 25-26
src/stores/useSocialMediaStore.ts 12% 100% 9.09% 10.52% 19-21, 23-29, 24-28, 32-37, 35-36, 39, 39-40, 40, 48-55, 49-54, 50-54, 58, 58-59, 59-60
src/stores/__mocks__/zunstandMock.ts 33.33% 100% 0% 33.33% 7-14, 8-12, 11, 13
src/utils/multimap/multimap.ts 94.11% 84.61% 87.5% 94.11% 48
Generated in workflow #1169