documentcloud-frontend
documentcloud-frontend copied to clipboard
Refactor common UI components
Ahead of #775, I am trying to clean up and consolidate any common UI components used in src/lib but still living in src/common.
- Moves
src/common/Dropdown2.sveltetosrc/lib/components/common/Dropdown.svelte - Moves
Menu,MenuItem, andMenuInsertfromsrc/commontosrc/lib/components/common - Removes
MenuTitleand replaces withSidebarItemwhere used - Refactors dropdowns to use Floating UI for positioning.
Deploy Preview for documentcloud-frontend ready!
| Name | Link |
|---|---|
| Latest commit | 694358255d0087b0f0fb0936ba7463a3d0341993 |
| Latest deploy log | https://app.netlify.com/sites/documentcloud-frontend/deploys/670842880cd3ba000804d179 |
| Deploy Preview | https://deploy-preview-776.muckcloud.com |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
Lighthouse |
1 paths audited Performance: 44 Accessibility: 79 Best Practices: 92 SEO: 85 PWA: - View the detailed breakdown and full score reports |
To edit notification comments on pull requests, go to your Netlify site configuration.
Coverage Report
| Status | Category | Percentage | Covered / Total |
|---|---|---|---|
| 🔵 | Lines | 22.37% | 7022 / 31386 |
| 🔵 | Statements | 22.37% | 7022 / 31386 |
| 🔵 | Functions | 39.94% | 145 / 363 |
| 🔵 | Branches | 57.82% | 373 / 645 |
File Coverage
| File | Stmts | % Branch | % Funcs | % Lines | Uncovered Lines |
|---|---|---|---|---|---|
| Changed Files | |||||
| src/lib/components/accounts/UserMenu.svelte | 100% | 75% | 0% | 100% | |
| src/lib/components/common/Dropdown.svelte | 100% | 40% | 100% | 100% | |
| src/lib/components/forms/BulkActions.svelte | 0% | 0% | 0% | 0% | 1-126 |
| src/lib/components/layouts/DocumentBrowser.svelte | 0% | 0% | 0% | 0% | 1-2232 |
| src/lib/components/layouts/Navigation.svelte | 0% | 0% | 0% | 0% | 1-1853 |
| src/lib/components/navigation/HelpMenu.svelte | 0% | 0% | 0% | 0% | 1-96 |
| src/lib/components/navigation/LanguageMenu.svelte | 0% | 0% | 0% | 0% | 1-73 |
| src/lib/components/navigation/OrgMenu.svelte | 0% | 0% | 0% | 0% | 1-296 |
| src/lib/components/viewer/PDFPage.svelte | 0% | 0% | 0% | 0% | 1-540 |
| src/lib/components/viewer/toolbars/PaginationToolbar.svelte | 0% | 0% | 0% | 0% | 1-1831 |
| src/lib/components/viewer/toolbars/ReadingToolbar.svelte | 0% | 0% | 0% | 0% | 1-152 |
