Skip to content

Commit

Permalink
Merge pull request #18 from Finsemble/ChartIQ/fix-tab-naming-and-order
Browse files Browse the repository at this point in the history
fix: remove context message, standardize names, and  reorder tabs
  • Loading branch information
kenny-ciq authored Oct 7, 2022
2 parents 94746af + e3f81fb commit 34bb4bd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 24 deletions.
12 changes: 7 additions & 5 deletions toolbox/fdc3-workbench/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,18 +202,20 @@ export const App = observer(() => {
indicator: classes.indicator,
}}
>

<Tab label="Contexts" />
<Tab label="Intents" />
<Tab label="System Channels" />
<Tab label="Context" />
<Tab label="Intent" />
<Tab label="App Channels" />
</Tabs>
<TabPanel value={tabIndex} index={0}>
<Channels />
<ContextCreate />
</TabPanel>
<TabPanel value={tabIndex} index={1}>
<ContextCreate />
<Intents />
</TabPanel>
<TabPanel value={tabIndex} index={2}>
<Intents />
<Channels />
</TabPanel>
</Paper>
</Grid>
Expand Down
15 changes: 1 addition & 14 deletions toolbox/fdc3-workbench/src/components/ContextCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,19 +163,6 @@ export const ContextCreate = observer(() => {
// id: "empty",
// template: null,
// });
systemLogStore.addLog({
name: "createContext",
type: "success",
value: context?.id,
variant: "text",
});
} else {
systemLogStore.addLog({
name: "createContext",
type: "error",
value: context?.id,
variant: "text",
});
}
};

Expand Down Expand Up @@ -216,7 +203,7 @@ export const ContextCreate = observer(() => {
});
} else {
systemLogStore.addLog({
name: "createContext",
name: "saveTemplate",
type: "success",
value: undefined,
variant: "text",
Expand Down
4 changes: 0 additions & 4 deletions toolbox/fdc3-workbench/src/fixtures/logMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ export const getLogMessage = (name: logMessagesName, type: logMessagesType, valu
info: `Received context via '[${value}]' listener.`,
error: `Failed to receive context from '[${value}]' listener.`,
},
createContext: {
success: `Set my current context to type '[${value}]'.`,
error: `Failed to set my current context to type '[${value}]'.`,
},
saveTemplate: {
success: `Saved context template for '[${value}]'.`,
error: `Failed to save context template.`,
Expand Down
1 change: 0 additions & 1 deletion toolbox/fdc3-workbench/src/store/SystemLogStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export type logMessagesName =
| "removeIntentListener"
| "receivedContextListener"
| "receivedIntentListener"
| "createContext"
| "saveTemplate"
| "copyToClipboard";

Expand Down

0 comments on commit 34bb4bd

Please sign in to comment.