Skip to content

Commit

Permalink
standardizer api debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sanghoonio committed Sep 3, 2024
1 parent 476b0c8 commit b985284
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 8 additions & 6 deletions web/src/components/modals/add-view-options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ export const ViewOptionsModal = (props: Props) => {
<a href="https://pep.databio.org/pephub/">API documentation</a>
.
</p>

<div className="border-bottom" style={{ margin: '0 -1.25em' }}></div>
<Tabs
variant="pills"
justify defaultActiveKey="blank"
id="uncontrolled-tab"
className='border border-2 border-light-subtle rounded rounded-3 text-sm bg-body-secondary'
className='border border-2 border-light-subtle rounded rounded-3 text-sm bg-body-secondary mt-3'
>
<Tab
eventKey="blank"
Expand Down Expand Up @@ -188,6 +188,7 @@ export const ViewOptionsModal = (props: Props) => {
name="name"
render={({ message }) => (message ? <p className="text-danger pt-1 mb-0">{message}</p> : null)}
/>
<div className="border-bottom mt-3" style={{ margin: '0 -1.25em' }}></div>
<div>
<button
disabled={
Expand All @@ -197,7 +198,7 @@ export const ViewOptionsModal = (props: Props) => {
viewMutations.addViewMutation.isPending
}
type="button"
className="btn btn-success px-2 mt-4 mb-1 float-end"
className="btn btn-success px-2 mt-3 mb-1 float-end"
onClick={() => {
onSubmit();
resetForm();
Expand All @@ -207,7 +208,7 @@ export const ViewOptionsModal = (props: Props) => {
{viewMutations.addViewMutation.isPending ? 'Creating...' : 'Create'}
</button>
<button
className="btn btn-outline-dark me-1 mt-4 mb-1 float-end"
className="btn btn-outline-dark me-1 mt-3 mb-1 float-end"
onClick={() => {
onHide();
}}
Expand Down Expand Up @@ -280,16 +281,17 @@ export const ViewOptionsModal = (props: Props) => {
}
}
/>
<div className="border-bottom mt-3" style={{ margin: '0 -1.25em' }}></div>
<div>
<button
disabled={deleteState || viewMutations.removeViewMutation.isPending || selectedViewDelete === null}
onClick={handleDeleteView}
className="btn btn-danger px-2 mt-4 mb-1 float-end"
className="btn btn-danger px-2 mt-3 mb-1 float-end"
>
<i className="bi bi-trash"></i> {viewMutations.removeViewMutation.isPending ? 'Removing...' : 'Remove'}
</button>
<button
className="btn btn-outline-dark me-1 mt-4 mb-1 float-end"
className="btn btn-outline-dark me-1 mt-3 mb-1 float-end"
onClick={() => {
onHide();
}}
Expand Down
3 changes: 1 addition & 2 deletions web/src/components/modals/standardize-metadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ export const StandardizeMetadataModal = (props: Props) => {
>
<i className="bi bi-x-lg"></i>
</button>
<div className="border-bottom mt-3" style={{ margin: '0 -1.25em' }}></div>
<p className='text-sm my-3'>
<p className='text-sm mt-1 mb-3'>
Use the metadata standardizer powered by BEDmess to bring consistency across metadata columns in all of
your projects. After choosing a standardizer schema below, compare predicted suggestions (confidence indicated in parenthesis) and choose whether
to keep or discard them. Column contents are not modified by the standardizer.
Expand Down

0 comments on commit b985284

Please sign in to comment.