Repository navigation
Multi Issue PR (See comments) #226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ac20206
4ac3185
a83f758
832e29d
88054ec
74dc665
49f2826
adcad35
2174fb8
dcc37e7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ import GitHubView from "./components/activities/explorer/GitHubView"; | |
| import LoginStatus from "./components/activities/explorer/LoginStatus"; | ||
| import { FileIcon, RemoteControlIcon, BugReport, ProfileGreen, ProfileOrange, ProfileRed, ProfileWhite } from "./icons" | ||
| import { RiGithubFill } from "react-icons/ri"; | ||
| import { GiThorHammer} from "react-icons/gi"; | ||
| import { TiPipette } from "react-icons/ti"; | ||
| import { ObjectTypes } from "./objectTypes"; | ||
| import { FaGraduationCap } from "react-icons/fa"; | ||
| import { BsGraphUpArrow } from "react-icons/bs"; | ||
|
|
@@ -22,7 +22,7 @@ export const Activities = { | |
| }, | ||
| ResourceSelection: { | ||
| id: "synbio.activity.resource-selection", | ||
| title: "Resource Selection", | ||
| title: "Resources", | ||
| component: ExplorerActivityView, | ||
| icon: HiOutlinePuzzlePiece, | ||
| objectTypesToList: [ | ||
|
|
@@ -57,13 +57,12 @@ export const Activities = { | |
| id: "synbio.activity.build", | ||
| title: "Build", | ||
| component: ExplorerActivityView, | ||
| icon: GiThorHammer, | ||
| icon: TiPipette, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #210 ✅ |
||
| objectTypesToList: [ | ||
| ObjectTypes.Plasmids.id, | ||
| ObjectTypes.Strains.id, | ||
| ObjectTypes.Assembly.id, | ||
| ObjectTypes.Build.id, | ||
| ObjectTypes.SampleDesigns.id, | ||
| ObjectTypes.Strains.id | ||
| ] | ||
| }, | ||
| Test: { | ||
|
|
@@ -72,6 +71,7 @@ export const Activities = { | |
| component: ExplorerActivityView, | ||
| icon: BiSolidFlask, | ||
| objectTypesToList: [ | ||
| ObjectTypes.SampleDesigns.id, | ||
| ObjectTypes.Experiments.id, | ||
| ObjectTypes.Metadata.id, | ||
| ObjectTypes.Results.id //note: not all of these have templates | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,7 @@ export default function ExplorerListItem({ fileId, icon }) { | |
|
|
||
| // command list | ||
| const contextMenuCommands = [ | ||
| commands.FileDownload, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #215 ✅ |
||
| commands.FileDelete | ||
| ] | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,10 +29,8 @@ export default function ListRegistries({registry, defaultRegistry, onConfirmDele | |
| // right click handler, opens up delete option | ||
| const handleRightClick = (event) => { | ||
| event.preventDefault() | ||
| if (registry !== defaultRegistry){ | ||
| setRegistryToDelete(registry) | ||
| setContextMenuOpen(true) | ||
| } | ||
| setRegistryToDelete(registry) | ||
| setContextMenuOpen(true) | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #207 ✅ |
||
|
|
||
| // command list | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,7 +39,7 @@ const FJInstanceSelector = ({onClose, setRepoSelection }) => { | |
| if (!showNotificationFlag) { | ||
| showNotification({ | ||
| title: 'Logout Successful', | ||
| message: 'You have successfully logged out of the registry', | ||
| message: 'You have successfully logged out of the repository', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| color: 'green', | ||
| }); | ||
| } | ||
|
|
@@ -125,13 +125,13 @@ const FJInstanceSelector = ({onClose, setRepoSelection }) => { | |
| ) : ( | ||
| <> | ||
| <Select | ||
| label={`Select a Flapjack registry`} | ||
| label={`Select a Flapjack repository`} | ||
| placeholder="Pick one" | ||
| data={instanceData} | ||
| onChange={(value) => {setNullSelected(false); setSelected(value)}} | ||
| value={selected} | ||
| /> | ||
| {nullSelected && <div style={{ color: 'red', marginTop: '1px', fontSize: '12px' }}>No selected registry. Please select an registry</div>} | ||
| {nullSelected && <div style={{ color: 'red', marginTop: '1px', fontSize: '12px' }}>No selected repository. Please select an repository</div>} | ||
| <div style={{ marginTop: '20px', display: 'flex' }}> | ||
| <Button mr="md" onClick={() => {setAddingInstance(null)}}>Add</Button> | ||
| {selected && ( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#209 ✅