Skip to content
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
- Extracted `loadGraphData.ts` and `util.ts` (both TypeScript) out of `js/components/graph/Graph.js`, and moved `js/util/util.ts` to `js/components/graph/requirementParser.ts`
- Changed SVG parsing to leave the `fill` column empty when inserting hybrid nodes into the database
- Refactored `js/components/grid/course_panel.js.jsx` into separate typescript react components
- Fixed type-only Typescript imports and added `verbatimModuleSyntax: true` to `tsconfig.json`

## [0.8.1] - 2026-08-10

Expand Down
2 changes: 1 addition & 1 deletion js/components/common/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import { faDownload } from "@fortawesome/free-solid-svg-icons"
import { Tooltip } from "react-tooltip"
import GraphDropdown from "../graph/GraphDropdown"
import { Graph } from "../graph/types"
import type { Graph } from "../graph/types"

interface NavBarProps {
selected_page: string
Expand Down
2 changes: 1 addition & 1 deletion js/components/common/export.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useImperativeHandle, useState } from "react"
import ReactModal from "react-modal"
import { SelectedLecture } from "../grid/types"
import type { SelectedLecture } from "../grid/types"

if (document.getElementById("nav-export")) {
ReactModal.setAppElement("#nav-export")
Expand Down
2 changes: 1 addition & 1 deletion js/components/generate/AutocompleteDropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useState } from "react"
import Autocomplete, { AutocompleteProps } from "@mui/material/Autocomplete"
import Autocomplete, { type AutocompleteProps } from "@mui/material/Autocomplete"
import Chip from "@mui/material/Chip"
import { useField } from "formik"

Expand Down
2 changes: 1 addition & 1 deletion js/components/graph/Bool.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GraphNodeJSON } from "./types"
import type { GraphNodeJSON } from "./types"

interface BoolProps {
className?: string
Expand Down
2 changes: 1 addition & 1 deletion js/components/graph/GraphDropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Graph } from "./types"
import type { Graph } from "./types"

interface GraphDropdownProps {
showGraphDropdown?: boolean
Expand Down
2 changes: 1 addition & 1 deletion js/components/graph/Node.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import { GraphNodeJSON } from "./types"
import type { GraphNodeJSON } from "./types"

interface NodeProps {
className: string
Expand Down
4 changes: 2 additions & 2 deletions js/components/graph/graphState.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { parseAnd, PrereqTree } from "./requirementParser"
import { parseAnd, type PrereqTree } from "./requirementParser"
import { findRelationship, numCredits } from "./util"
import { LoadedGraphData } from "./loadGraphData"
import type { LoadedGraphData } from "./loadGraphData"

/** The parts of Graph's state that describe the graph's nodes, bools, and their statuses. */
export type GraphState = Pick<
Expand Down
2 changes: 1 addition & 1 deletion js/components/graph/loadGraphData.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { populateHybridRelatives } from "./util"
import { GraphNodeJSON } from "./types"
import { type GraphNodeJSON } from "./types"

interface GraphLabelEntry {
rId: string
Expand Down
2 changes: 1 addition & 1 deletion js/components/graph/util.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { parseAnd } from "./requirementParser"
import { GraphNodeJSON } from "./types"
import type { GraphNodeJSON } from "./types"

/**
* Helper function to populate `parentsObj` and `childrenObj` with the connections of a hybrid node.
Expand Down
4 changes: 2 additions & 2 deletions js/components/grid/grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { useEffect, useState, useRef } from "react"

import { CoursePanel } from "./course_panel"
import { Row } from "./calendar.js.jsx"
import { ExportModal, ExportModalHandle } from "../common/export"
import { ExportModal, type ExportModalHandle } from "../common/export"
import Disclaimer from "../common/Disclaimer"
import { SelectedLecture } from "./types"
import type { SelectedLecture } from "./types"

import {
AllCommunityModule,
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"esModuleInterop": true,
"resolveJsonModule": true,
"isolatedModules": true,
"verbatimModuleSyntax": true,
"skipLibCheck": true,
"noEmit": true
},
Expand Down
Loading