@@ -6,6 +6,7 @@ import DescriptionIcon from "@mui/icons-material/Description";
66import ExpandLess from "@mui/icons-material/ExpandLess" ;
77import ExpandMore from "@mui/icons-material/ExpandMore" ;
88import HomeIcon from "@mui/icons-material/Home" ;
9+ import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined" ;
910import {
1011 Box ,
1112 Typography ,
@@ -682,7 +683,7 @@ const UpdatedDatasetDetailPage: React.FC = () => {
682683 return (
683684 < >
684685 < Box sx = { { padding : 4 } } >
685- < Button
686+ { /* <Button
686687 variant="text"
687688 onClick={() => navigate(-1)}
688689 sx={{
@@ -696,7 +697,80 @@ const UpdatedDatasetDetailPage: React.FC = () => {
696697 }}
697698 >
698699 Back
699- </ Button >
700+ </Button> */ }
701+
702+ { /* Breadcrumb Navigation (Home → Database → Dataset) */ }
703+ < Box
704+ sx = { {
705+ display : "flex" ,
706+ alignItems : "center" ,
707+ marginBottom : 2 ,
708+ } }
709+ >
710+ { /* Home Icon Button */ }
711+ < Button
712+ onClick = { ( ) => navigate ( "/" ) }
713+ sx = { {
714+ backgroundColor : "transparent" ,
715+ padding : 0 ,
716+ minWidth : "auto" ,
717+ "&:hover" : { backgroundColor : "transparent" } ,
718+ } }
719+ >
720+ < HomeIcon
721+ sx = { {
722+ color : Colors . white ,
723+ "&:hover" : {
724+ transform : "scale(1.1)" ,
725+ backgroundColor : "transparent" ,
726+ } ,
727+ } }
728+ />
729+ </ Button >
730+
731+ < Typography
732+ variant = "h5"
733+ sx = { { marginX : 1 , fontWeight : "bold" , color : Colors . white } }
734+ >
735+ »
736+ </ Typography >
737+
738+ { /* Database Name (Clickable) */ }
739+ < Button
740+ onClick = { ( ) => navigate ( `${ RoutesEnum . DATABASES } /${ dbName } ` ) }
741+ sx = { {
742+ textTransform : "none" ,
743+ fontSize : "1.2rem" ,
744+ fontWeight : "bold" ,
745+ color : Colors . white ,
746+ "&:hover" : {
747+ transform : "scale(1.05)" ,
748+ backgroundColor : "transparent" ,
749+ } ,
750+ } }
751+ >
752+ { dbName ?. toLowerCase ( ) }
753+ </ Button >
754+
755+ < Typography
756+ variant = "h5"
757+ sx = { { marginX : 1 , fontWeight : "bold" , color : Colors . white } }
758+ >
759+ »
760+ </ Typography >
761+
762+ { /* Dataset Name (_id field) */ }
763+ < Typography
764+ variant = "h5"
765+ sx = { {
766+ fontWeight : "bold" ,
767+ color : Colors . white ,
768+ fontSize : "1.2rem" ,
769+ } }
770+ >
771+ { docId }
772+ </ Typography >
773+ </ Box >
700774
701775 < Box
702776 sx = { {
@@ -733,75 +807,66 @@ const UpdatedDatasetDetailPage: React.FC = () => {
733807 </ Typography >
734808 ) }
735809
736- { /* Breadcrumb Navigation (Home → Database → Dataset) */ }
737- < Box
738- sx = { {
739- display : "flex" ,
740- alignItems : "center" ,
741- marginBottom : 2 ,
742- } }
743- >
744- { /* Home Icon Button */ }
745- < Button
746- onClick = { ( ) => navigate ( "/" ) }
747- sx = { {
748- backgroundColor : "transparent" ,
749- padding : 0 ,
750- minWidth : "auto" ,
751- "&:hover" : { backgroundColor : "transparent" } ,
752- } }
753- >
754- < HomeIcon
810+ { /* ai summary */ }
811+ { aiSummary && (
812+ < >
813+ < Box
755814 sx = { {
756- color : Colors . darkPurple ,
757- "&:hover" : {
758- transform : "scale(1.1)" ,
759- backgroundColor : "transparent" ,
760- } ,
815+ display : "flex" ,
816+ alignItems : "center" ,
817+ mb : 0.5 ,
818+ mt : 1 ,
819+ gap : 0.5 ,
761820 } }
762- />
763- </ Button >
764-
765- < Typography variant = "h5" sx = { { marginX : 1 , fontWeight : "bold" } } >
766- »
767- </ Typography >
768-
769- { /* Database Name (Clickable) */ }
770- < Button
771- onClick = { ( ) => navigate ( `${ RoutesEnum . DATABASES } /${ dbName } ` ) }
772- sx = { {
773- textTransform : "none" ,
774- fontSize : "1.2rem" ,
775- fontWeight : "bold" ,
776- color : Colors . darkPurple ,
777- "&:hover" : {
778- transform : "scale(1.05)" ,
779- backgroundColor : "transparent" ,
780- } ,
781- } }
782- >
783- { dbName ?. toLowerCase ( ) }
784- </ Button >
785-
786- < Typography variant = "h5" sx = { { marginX : 1 , fontWeight : "bold" } } >
787- »
788- </ Typography >
789-
790- { /* Dataset Name (_id field) */ }
791- < Typography
792- variant = "h5"
793- sx = { {
794- fontWeight : "bold" ,
795- color : Colors . darkPurple ,
796- fontSize : "1.2rem" ,
797- } }
798- >
799- { docId }
800- </ Typography >
801- </ Box >
821+ >
822+ < Typography
823+ color = { Colors . purple }
824+ sx = { { fontWeight : "bold" , mb : 0.5 , mt : 1 } }
825+ >
826+ AI Summary
827+ </ Typography >
828+ < Tooltip
829+ title = {
830+ < Typography variant = "body2" sx = { { color : Colors . darkGray } } >
831+ AI Summary is generated using an AI tool that identifies
832+ the related paper and extracts its key content to create a
833+ concise summary.
834+ </ Typography >
835+ }
836+ arrow
837+ placement = "right"
838+ slotProps = { {
839+ tooltip : {
840+ sx : {
841+ bgcolor : Colors . white ,
842+ border : `1px solid ${ Colors . lightGray } ` ,
843+ boxShadow : 3 ,
844+ fontSize : "0.875rem" ,
845+ } ,
846+ } ,
847+ arrow : {
848+ sx : {
849+ color : Colors . white ,
850+ "&::before" : {
851+ border : `1px solid ${ Colors . lightGray } ` , // subtle arrow border
852+ } ,
853+ } ,
854+ } ,
855+ } }
856+ >
857+ < InfoOutlinedIcon
858+ fontSize = "small"
859+ sx = { {
860+ color : Colors . purple ,
861+ cursor : "pointer" ,
862+ } }
863+ />
864+ </ Tooltip >
865+ </ Box >
802866
803- { /* ai summary */ }
804- { aiSummary && < ReadMoreText text = { aiSummary } /> }
867+ < ReadMoreText text = { aiSummary } />
868+ </ >
869+ ) }
805870
806871 < Box
807872 sx = { {
@@ -901,8 +966,6 @@ const UpdatedDatasetDetailPage: React.FC = () => {
901966 < FileTree
902967 title = { treeTitle }
903968 tree = { treeData }
904- // filesCount={filesCount}
905- // totalBytes={totalBytes}
906969 onPreview = { handlePreview } // pass the function down to FileTree
907970 getInternalByPath = { getInternalByPath }
908971 getJsonByPath = { getJsonByPath }
0 commit comments