Skip to content

Commit

Permalink
Hide search corpus window, fix solidity issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Feb 12, 2023
1 parent 113d6ac commit edf61c5
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 47 deletions.
3 changes: 1 addition & 2 deletions apps/client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import './App.css'

import MainLayout from './components/MainLayout/MainLayout'
import EventManagerWindow from './workspaces/spells/windows/EventManager'
import AgentManagerWindow from './workspaces/agents/windows/AgentManagerWindow'
import AgentManagerWindow from './workspaces/agents/AgentManagerWindow'

import FineTuneManager from './screens/FineTuneManager/FineTuneManager'
import Completions from './screens/FineTuneManager/completions'
Expand Down Expand Up @@ -45,7 +45,6 @@ function App() {
<Route path="/events" element={<EventManagerWindow />} />
<Route path="/agents" element={<AgentManagerWindow />} />
{/* todo search corpus component */}
<Route path="/searchCorpus" element={<></>} />
<Route path="/home/*" element={<HomeScreen />} />

<Route path="/" element={<Magick />} />
Expand Down
4 changes: 2 additions & 2 deletions apps/client/src/components/Drawer/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,14 +186,14 @@ export default function MiniDrawer({ children }) {
onClick={onClick('/agents')}
text="Agents"
/>
<DrawerItem
{/* <DrawerItem
active={location.pathname === '/searchCorpus'}
Icon={ManageSearchIcon}
onClick={onClick('/searchCorpus')}
open={open}
text="Search Corpus"
/>
{/* <DrawerItem
<DrawerItem
active={location.pathname === '/settings'}
Icon={SettingsIcon}
open={open}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { magickApiRootUrl } from '../../../config'
import { magickApiRootUrl } from '../../config'
import axios from 'axios'
import { useSnackbar } from 'notistack'
import { useEffect, useState, useRef } from 'react'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import FileInput from '../../../screens/HomeScreen/components/FileInput'
import FileInput from '../../screens/HomeScreen/components/FileInput'
import React, { useEffect, useState } from 'react'
import { magickApiRootUrl } from '../../../config'
import { magickApiRootUrl } from '../../config'

import AgentWindow from './Agent'

Expand Down
34 changes: 0 additions & 34 deletions apps/client/src/workspaces/agents/index.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions apps/client/src/workspaces/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import WorkspaceProvider from './contexts/WorkspaceProvider'
import Composer from './spells'
import Agents from './agents'

// TODO create a proper workspace component that can take in everything we need it to
// for a standalone workspace environment. Factor, events, etc.
// Workspace should register events with the events provider, etc.
const workspaceMap = {
spell: Composer,
module: Composer,
agents: Agents,
}

const Workspaces = ({ tabs, pubSub, activeTab }) => {
Expand Down
6 changes: 2 additions & 4 deletions packages/engine/src/nodes/ethereum/Solidity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,9 @@ export class Solidity extends MagickComponent<void> {
context: { magick: EngineContext; data: { code: unknown } }
) {
const { magick, data } = context
const { processCode, getCurrentGameState } = magick
const { processCode } = magick
if (!processCode) return

const state = getCurrentGameState()

try {
const optimization = node.data?.optimization ? node.data?.optimization : false
let optimization_num = 100
Expand All @@ -128,7 +126,7 @@ export class Solidity extends MagickComponent<void> {
}
}

const { bytecode, abi } = await processCode(node.data.code, inputs, {data, ...{optimization, optimization_num}}, state, 'solidity')
const { bytecode, abi } = await processCode(node.data.code, inputs, {data, ...{optimization, optimization_num}}, 'solidity')

// TODO: need to be fixed, issue of loosing display() function from NodeData context
// node.display({
Expand Down

0 comments on commit edf61c5

Please sign in to comment.