File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ const AppLoggedIn = forwardRef((_props, ref) => {
310310 </ HStack >
311311 < HStack justifyContent = { 'space-between' } mt = { 1 } >
312312 < MXMode />
313- < HStack gap = { 1 } justifyContent = { 'center' } alignItems = { 'center' } >
313+ < HStack gap = { 1 } justifyContent = { 'center' } alignItems = { 'center' } aria-label = 'mx-agent-selector' >
314314 { /* <Text fontSize="xs" color={"minusxGreen.600"}><Link width={"100%"} textAlign={"center"} display={"flex"} justifyContent={"center"} alignItems={"center"} href="https://docs.minusx.ai/en/articles/11814763-agents-overview" isExternal><Icon as={BsFillInfoSquareFill} boxSize={3} /></Link></Text> */ }
315315 < Menu >
316316 < MenuButton
@@ -355,7 +355,7 @@ const AppLoggedIn = forwardRef((_props, ref) => {
355355 { /* {configs.IS_DEV ? <DevToolsToggle size={"micro"}/> : null } */ }
356356 { ! isSheets && < Box aria-label = "settings-toggle" > < DevToolsToggle size = { "micro" } /> </ Box > }
357357 { ! isSheets && ! isEmbedded && < Text fontSize = "xs" color = "minusxGreen.800" fontWeight = { "bold" } > { platformShortcut } to toggle</ Text > }
358- { isEmbedded && < Text fontSize = "xs" color = "minusxGreen.800" fontWeight = { "bold" } > { "Powered by MinusX" } </ Text > }
358+ { /* { isEmbedded && <Text fontSize="xs" color="minusxGreen.800" fontWeight={"bold"}>{"Powered by MinusX"}</Text> } */ }
359359 { /* { tool==='metabase' && <Text fontSize="xs" color="minusxGreen.800" fontWeight={"bold"}>[-{metabaseMode} Mode-]</Text> } */ }
360360 { /* <SupportButton email={email} /> */ }
361361 </ HStack >
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import { useSelector } from 'react-redux';
1313import { RootState } from '../../state/store' ;
1414import { UserDebugTools } from './UserDebugTools' ;
1515import { History } from './History' ;
16+ import { getParsedIframeInfo } from '../../helpers/origin'
1617
1718const Monitors : MonitorDef [ ] = [
1819 {
@@ -62,10 +63,18 @@ const Monitors: MonitorDef[] = [
6263export const DevToolsBox : React . FC = ( ) => {
6364 const enableStyleCustomization = useSelector ( ( state : RootState ) => state . settings . enableStyleCustomization )
6465 const enableUserDebugTools = useSelector ( ( state : RootState ) => state . settings . enableUserDebugTools )
66+ const isEmbedded = getParsedIframeInfo ( ) . isEmbedded as unknown === 'true'
6567
6668 const monitors = Monitors . filter ( Monitor => {
6769 // Check existing dev/production logic
6870 const isAllowedByEnv = configs . IS_DEV || Monitor . tags ?. includes ( 'production' )
71+
72+ if ( isEmbedded ) {
73+ if ( Monitor . title === 'History' || Monitor . title === 'Memory' ) {
74+ return true
75+ }
76+ return false
77+ }
6978
7079 // Special filtering for CSS Customization tab
7180 if ( Monitor . title === 'CSS Customization' ) {
You can’t perform that action at this time.
0 commit comments