Skip to content

Componisation of circuit table #308

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

Merged
merged 12 commits into from
May 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
"react-markdown": "^9.0.3",
"react-pdf": "^7.7.0",
"react-plotly.js": "^2.6.0",
"react-resizable": "^3.0.5",
"react-select": "^5.7.3",
"react-syntax-highlighter": "^15.6.1",
"sharp": "^0.33.5",
Expand All @@ -125,6 +126,7 @@
"@types/react": "^18.2.5",
"@types/react-dom": "^18.2.3",
"@types/react-plotly.js": "^2.6.0",
"@types/react-resizable": "^3.0.8",
"@types/react-syntax-highlighter": "^15.5.13",
"@types/three": "^0.152.1",
"@typescript-eslint/eslint-plugin": "^7.7.0",
Expand Down
2 changes: 1 addition & 1 deletion public/circuits/ALL_CIRCUITS.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function CircuitDetailPage() {
const [error, setError] = useState<string | null>(null);

const params = useParams();
const circuitKey = params?.key as string | undefined;
const circuitKey = params.key as string | undefined;

useEffect(() => {
const fetchCircuit = async () => {
Expand All @@ -25,7 +25,7 @@ export default function CircuitDetailPage() {

try {
setLoading(true);
const response = await fetch('/api/circuit/data', {
const response = await fetch('/api/circuits/data', {
cache: 'no-store',
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
import ExploreCircuitTable from '@/components/explore-section/Circuit/ListView/ExploreCircuitTable';

export type ColumnType = {
name: string;
description: string;
brainRegion: string;
createdBy: string;
creationDate: string;
hasSubcircuits: boolean;
};
import CircuitsListingPageComponent from '@/components/explore-section/Circuit/global/CircuitsListingPageComponent';

export default function ExploreModelCircuitListingPage() {
return <ExploreCircuitTable />;
<CircuitsListingPageComponent />;
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
import ExploreCircuitTable from '@/components/explore-section/Circuit/ListView/ExploreCircuitTable';

export type ColumnType = {
name: string;
description: string;
brainRegion: string;
createdBy: string;
creationDate: string;
hasSubcircuits: boolean;
};
import CircuitsListingPageComponent from '@/components/explore-section/Circuit/global/CircuitsListingPageComponent';

export default function ExploreModelCircuitListingPage() {
return <ExploreCircuitTable />;
<CircuitsListingPageComponent />;
}
Loading