Skip to content

AI Chat: use level properties and sources from props #66877

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

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

sanchitmalhotra126
Copy link
Contributor

Similar to #66820. Level properties are exposed to sub-components using react context.

All lab2 labs should now be getting level properties and sources from props instead of redux.

Testing story

Tested locally on AI Chat levels. No functional changes.

Follow-up work

Now that all labs have been converted over, we'll need to tackle the remaining usages in shared components and redux files.

@sanchitmalhotra126 sanchitmalhotra126 requested review from bencodeorg and a team July 2, 2025 20:19
@@ -271,93 +268,95 @@ const AichatView: React.FunctionComponent<LabProps> = () => {
}, [dispatch]);

return (
<div id="aichat-lab" className={moduleStyles.aichatLab}>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The only change here is wrapping the view in a context provider (use Hide Whitespace for a more accurate view).

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