pawarprasad123 opened a new pull request, #802:
URL: https://github.com/apache/atlas/pull/802

   
   ## What changes were proposed in this pull request?
   
   Redesign and refactor of the React dashboard sidebar (ATLAS-5324): unified 
tree portals, sidebar search, skeleton loading, module icons, typedef/metrics 
bootstrap, and styling aligned with the overview layout. Also includes Maven 
build fixes so full reactor builds succeed on macOS Apple Silicon for the 
legacy dashboardv2 module.
   
   UI / UX (React dashboard)
   Sidebar layout & behavior: SideBarBody.tsx refactored to drive sidebar 
modules from sidebarTreeConfig.ts; shared SidebarTreePortal for in-sidebar vs 
popover tree rendering (DRY createPortal usage).
   Data loading: useSidebarTypedefBootstrap.ts loads typedefs, metrics, and 
version data once per mount; skips refetch when slice state is already loaded 
(distinguishes null/undefined vs empty {}).
   Components: SidebarSearchInput, TreeSkeletonLoader, updates to 
SideBarTree.tsx and per-module trees (EntitiesTree, ClassificationTree, 
GlossaryTree, CustomFiltersTree, BusinessMetadataTree).
   Naming: RelationShipsTree → RelationshipsTree (file, tests, imports).
   Assets: Seven licensed SVGs under public/img/sidebar-icons/ for sidebar 
module icons.
   Styling: Updates to sidebar.scss, variables.scss, new/extended 
dashboard.scss, related overview/chart/table styles where sidebar integration 
touched layout.
   Supporting fixes: EntityDisplayImage, session/typedef handling, 
ClassificationDistributionCard and related dashboard overview tests, 
sessionSlice rejected-error handling.
   
   Build verification
   mvn clean install -DskipTests   Success (52/52 modules).  ~4 min 32 s (local 
Mac, sequential)
   mvn -pl dashboard clean package -DskipTests. Success ~32 s
   mvn -pl dashboardv2 clean package -DskipTests. Success. ~27 s (arm64 Node 
via profile)
   npm run typecheck (dashboard/). Success
   npm run lint (dashboard/) 0 errors Pre-existing ESLint warnings remain 
   
   
   ## How was this patch tested?
   
   Automated test results
   Dashboard (npm run test:ci in dashboard/)
   Test suites: 201 passed
   Tests: 5002 passed
   Runtime: ~160 s (local, --maxWorkers=2)
   Project line coverage (Jest)
   ~63.25% lines, ~82.41% branches (whole dashboard tree)
   
   
   ## Test plan
   - [ ] `npm run test:ci` in `dashboard/` (5002 tests)
   - [ ] `npm run typecheck` and `npm run lint` (0 lint errors)
   - [ ] `mvn clean install -DskipTests` (full reactor)
   - [ ] `mvn -pl dashboardv2 clean package -DskipTests` on Mac ARM (if 
applicable)
   - [ ] Deploy WAR; manual sidebar smoke on localhost:21000 (login + items 1–9 
above)
   - [ ] Spot-check Relationships tree and sidebar search after merge
   
   
   ## Notes for reviewers
   Large diff in SideBarTree.tsx — focus on portal/bootstrap wiring, 
selection/click behavior, and coverage gaps (~69% lines).
   Build profile Node 16 on Mac only applies to legacy dashboardv2; primary UI 
is React dashboard (Node 22 via Maven on master).
   Exclude .mvn/jvm.config from this PR unless the ticket explicitly includes 
JDK 17 Enunciate fixes.
   
   <img width="1717" height="873" alt="Screenshot 2026-11-20 at 12 24 20 PM" 
src="https://github.com/user-attachments/assets/421cbfba-13bc-4bdb-95fa-457a966ec993";
 />
   <img width="1728" height="873" alt="Screenshot 2026-11-20 at 12 24 32 PM" 
src="https://github.com/user-attachments/assets/4c6e20d4-3541-479a-88c5-7b4002fd873a";
 />
   <img width="1728" height="878" alt="Screenshot 2026-11-20 at 12 24 51 PM" 
src="https://github.com/user-attachments/assets/dfb91b06-1330-4b79-9a25-fe5e9eda00fc";
 />
   <img width="1728" height="869" alt="Screenshot 2026-11-20 at 12 25 04 PM" 
src="https://github.com/user-attachments/assets/eb387aeb-d1f9-4e80-a7d5-9495d1341cd8";
 />
   <img width="635" height="910" alt="Screenshot 2026-11-20 at 12 37 43 PM" 
src="https://github.com/user-attachments/assets/67793e44-a16c-4b1b-a70b-f634084a383b";
 />
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to