Skip to content

Conversation

cabella-dot
Copy link
Contributor

@cabella-dot cabella-dot commented Sep 11, 2025

What Is This Change?

Set up Redux store to the react directory of atlascode

The redux store will be used as an abstracted state management which can be accessed by any components

Refactored commonly used + commonly shared states into Redux Slices

Redux slices allow for commonly shared states to be accessible between different components without passing them as parameters.
This helps reduce state staleness, especially in shared callbacks
See: promptContextSlice.ts rovoDevStatesSlice.ts and chatStreamSlice.ts

Refactored and simplified rovoDevView.ts by abstracting complicated state changes to redux state reducers

This allows for better readability bc complicated state changes can be done by dispatching a signal to redux
This also allows for more reusable logic

  • DEMO: Todo

How Has This Been Tested?

Updated UT tests
Manually

Basic checks:

  • npm run lint
  • npm run test

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.

1 participant