Skip to content
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

Migrate reducer to TypeScript #2187

Merged
merged 12 commits into from
Aug 5, 2024
Merged

Migrate reducer to TypeScript #2187

merged 12 commits into from
Aug 5, 2024

Conversation

Tristan-WorkGH
Copy link
Contributor

No description provided.

@Tristan-WorkGH Tristan-WorkGH self-assigned this Jul 23, 2024
@achour94 achour94 self-requested a review July 24, 2024 08:11
@thangqp thangqp closed this Jul 24, 2024
@thangqp thangqp deleted the migrate-reducer-ts branch July 24, 2024 16:27
@thangqp thangqp restored the migrate-reducer-ts branch July 24, 2024 17:29
@thangqp thangqp reopened this Jul 24, 2024
@@ -41,7 +41,7 @@ import {
import { buildNode, getUniqueNodeName, unbuildNode } from '../services/study';
import RestoreNodesDialog from './dialogs/restore-node-dialog';
import ScenarioEditor from './graph/menus/dynamic-simulation/scenario-editor';
import { StudyDisplayMode } from '../redux/reducer.type';
import { StudyDisplayMode } from '../redux/reducer';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it creates a circular dependency

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it's not the only one...

@@ -28,7 +28,7 @@ import { useIntl } from 'react-intl';
import CropFreeIcon from '@mui/icons-material/CropFree';
import { nodeTypes } from './graph/util/model-constants';
import { BUILD_STATUS } from './network/constants';
import { StudyDisplayMode } from '../redux/reducer.type';
import { StudyDisplayMode } from '../redux/reducer';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it creates a circular dependency

Copy link
Contributor Author

@Tristan-WorkGH Tristan-WorkGH Jul 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 discussion in #2187 (comment)

src/components/results/common/results-global-filter.tsx Outdated Show resolved Hide resolved
src/redux/actions.ts Show resolved Hide resolved
src/redux/actions.ts Show resolved Hide resolved
src/components/spreadsheet/table-wrapper.jsx Outdated Show resolved Hide resolved
src/redux/reducer.test.ts Outdated Show resolved Hide resolved
src/components/custom-aggrid/custom-aggrid-header.jsx Outdated Show resolved Hide resolved
src/components/diagrams/diagram-pane.jsx Outdated Show resolved Hide resolved
src/components/results/common/results-global-filter.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@Meklo Meklo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get the following error launching the app : Uncaught ReferenceError: can't access lexical declaration 'NetworkModificationTreeModel' before initialization

@Tristan-WorkGH Tristan-WorkGH merged commit add6c5f into main Aug 5, 2024
3 checks passed
@Tristan-WorkGH Tristan-WorkGH deleted the migrate-reducer-ts branch August 5, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants