Skip to content

Commit 634bad7

Browse files
authored
show settings, handle new elements (#272)
1 parent 2c661dd commit 634bad7

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

web/src/components/common/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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>

web/src/components/devtools/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { useSelector } from 'react-redux';
1313
import { RootState } from '../../state/store';
1414
import { UserDebugTools } from './UserDebugTools';
1515
import { History } from './History';
16+
import { getParsedIframeInfo } from '../../helpers/origin'
1617

1718
const Monitors: MonitorDef[] = [
1819
{
@@ -62,10 +63,18 @@ const Monitors: MonitorDef[] = [
6263
export 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') {

0 commit comments

Comments
 (0)