Skip to content

Commit

Permalink
changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcardoso committed Sep 28, 2024
1 parent c7a7d72 commit 73cd753
Showing 1 changed file with 109 additions and 89 deletions.
198 changes: 109 additions & 89 deletions app/components/setup/ConfigForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import SdssSpectraTab from './SdssSpectraTab'
import LegacyImagingTab from './LegacyImagingTab'
import SplusImagingTab from './SplusImagingTab'
import FileInputTab from './FileInputTab'
import { Button, Container } from 'react-bootstrap'
import { Alert, Button, Container } from 'react-bootstrap'
import { MouseEventHandler } from 'react'
import { useXTableConfig } from '@/contexts/XTableConfigContext'
import Spinner from 'react-bootstrap/Spinner'
Expand All @@ -29,99 +29,119 @@ export default function ConfigForm() {
}

return (
<Container className="mt-3 h-100">
<div style={{marginTop: '12%'}}>
<div className="border rounded rounded-3 p-4" style={{backgroundColor: '#fafafa'}}>
<h6 className="text-center mb-4 d-flex align-items-center justify-content-center">
<TbTableOptions className="me-2" size={20} />
<span>Table Settings</span>
</h6>
<Tab.Container id="list-group-tabs-example" defaultActiveKey="#select-table">
<Row>
<Col sm={3}>
<ListGroup>
<ListGroup.Item action href="#select-table">
Select a table
</ListGroup.Item>
<ListGroup.Item action href="#classification">
Classification
</ListGroup.Item>
{/* <ListGroup.Item action href="#link2">
<Container className="mt-5">
<div className="border rounded rounded-3 p-4" style={{ backgroundColor: '#fafafa' }}>
<h6 className="text-center mb-4 d-flex align-items-center justify-content-center">
<TbTableOptions className="me-2" size={20} />
<span>Table Settings</span>
</h6>
<Tab.Container id="list-group-tabs-example" defaultActiveKey="#select-table">
<Row>
<Col sm={3}>
<ListGroup>
<ListGroup.Item action href="#select-table">
Select a table
</ListGroup.Item>
<ListGroup.Item action href="#classification">
Classification
</ListGroup.Item>
{/* <ListGroup.Item action href="#link2">
S-PLUS Catalog
</ListGroup.Item> */}
<ListGroup.Item action href="#sdss">
SDSS catalog
</ListGroup.Item>
<ListGroup.Item action href="#splus">
S-PLUS images
</ListGroup.Item>
<ListGroup.Item action href="#legacy">
Legacy images
</ListGroup.Item>
<ListGroup.Item action href="#custom-images">
Custom images
</ListGroup.Item>
<ListGroup.Item action href="#spectra">
Spectra & photo-spectra
</ListGroup.Item>
</ListGroup>
</Col>
<Col sm={9}>
<Tab.Content>
<Tab.Pane eventKey="#select-table">
<FileInputTab />
</Tab.Pane>
<Tab.Pane eventKey="#classification">
<ClassTab />
</Tab.Pane>
{/* <Tab.Pane eventKey="#link2">
<ListGroup.Item action href="#sdss">
SDSS catalog
</ListGroup.Item>
<ListGroup.Item action href="#splus">
S-PLUS images
</ListGroup.Item>
<ListGroup.Item action href="#legacy">
Legacy images
</ListGroup.Item>
<ListGroup.Item action href="#custom-images">
Custom images
</ListGroup.Item>
<ListGroup.Item action href="#spectra">
Spectra & photo-spectra
</ListGroup.Item>
</ListGroup>
</Col>
<Col sm={9}>
<Tab.Content>
<Tab.Pane eventKey="#select-table">
<FileInputTab />
</Tab.Pane>
<Tab.Pane eventKey="#classification">
<ClassTab />
</Tab.Pane>
{/* <Tab.Pane eventKey="#link2">
Nada
</Tab.Pane> */}
<Tab.Pane eventKey="#sdss">
<SdssCatalogTab />
</Tab.Pane>
<Tab.Pane eventKey="#splus">
<SplusImagingTab />
</Tab.Pane>
<Tab.Pane eventKey="#legacy">
<LegacyImagingTab />
</Tab.Pane>
<Tab.Pane eventKey="#custom-images">
<CustomImagingTab />
</Tab.Pane>
<Tab.Pane eventKey="#spectra">
<SdssSpectraTab />
</Tab.Pane>
</Tab.Content>
</Col>
</Row>
<Row>
<Col sm={3} className="mx-auto">
<Button
className="mt-3 w-100 fw-bold"
variant="success"
size="lg"
onClick={handleLoadClick}
disabled={!tcState.table.file || tcState.table.processing}>
{tcState.table.processing ?
<>
<Spinner
as="span"
size="sm"
role="status"
animation="border"
variant="light" /> Loading
</> :
<>
<VscServerProcess className="me-2" size={30} /> Load Table
</>
}
</Button>
</Col>
</Row>
</Tab.Container>
<Tab.Pane eventKey="#sdss">
<SdssCatalogTab />
</Tab.Pane>
<Tab.Pane eventKey="#splus">
<SplusImagingTab />
</Tab.Pane>
<Tab.Pane eventKey="#legacy">
<LegacyImagingTab />
</Tab.Pane>
<Tab.Pane eventKey="#custom-images">
<CustomImagingTab />
</Tab.Pane>
<Tab.Pane eventKey="#spectra">
<SdssSpectraTab />
</Tab.Pane>
</Tab.Content>
</Col>
</Row>
<Row>
<Col sm={3} className="mx-auto">
<Button
className="mt-3 w-100 fw-bold"
variant="success"
size="lg"
onClick={handleLoadClick}
disabled={!tcState.table.file || tcState.table.processing}>
{tcState.table.processing ?
<>
<Spinner
as="span"
size="sm"
role="status"
animation="border"
variant="light" /> Loading
</> :
<>
<VscServerProcess className="me-2" size={30} /> Load Table
</>
}
</Button>
</Col>
</Row>
</Tab.Container>
</div>
</div>

<Alert variant="info" className="mt-5">
<Alert.Heading>🎉 New Version!</Alert.Heading>
<h6>Features of the software release v1.0:</h6>
<ul>
<li>
Add support to <b>PARQUET</b> files
</li>
<li>
Handle <b>big tables</b> (hundreds of thousands of lines)
</li>
<li>
Column relocation and row <b>sorting and filtering</b>
</li>
<li>
<b>Faster loading</b> of resources with multiple parallel connections
</li>
<li>
Display of the <b>loading status</b> of each external resource
</li>
</ul>
</Alert>
</Container>
)
}

0 comments on commit 73cd753

Please sign in to comment.