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

Translations and polish for unlimited points #1665

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nicolecomputer
Copy link
Contributor

Summary:

  • Reserves space for "Remove point" button
  • Translations for strings

Issue: https://khanacademy.atlassian.net/browse/LEMS-1670

Test plan:

  • Run tests
  • All is well

@khan-actions-bot
Copy link
Contributor

Gerald

Required Reviewers
  • @Khan/perseus for changes to .changeset/many-apricots-repair.md, packages/perseus/src/strings.ts, packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx, packages/perseus/src/widgets/interactive-graphs/reducer/interactive-graph-reducer.ts

Don't want to be involved in this pull request? Comment #removeme and we won't notify you of further changes.

@khan-actions-bot khan-actions-bot requested a review from a team September 24, 2024 22:47
Copy link
Contributor

Size Change: +72 B (+0.01%)

Total Size: 863 kB

Filename Size Change
packages/perseus/dist/es/index.js 418 kB +26 B (+0.01%)
packages/perseus/dist/es/strings.js 3.4 kB +46 B (+1.37%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 38.3 kB
packages/keypad-context/dist/es/index.js 760 B
packages/kmath/dist/es/index.js 4.27 kB
packages/math-input/dist/es/index.js 78 kB
packages/math-input/dist/es/strings.js 1.79 kB
packages/perseus-core/dist/es/index.js 1.48 kB
packages/perseus-editor/dist/es/index.js 279 kB
packages/perseus-linter/dist/es/index.js 22.2 kB
packages/pure-markdown/dist/es/index.js 3.66 kB
packages/simple-markdown/dist/es/index.js 12.4 kB

compressed-size-action

Copy link
Member

@benchristel benchristel left a comment

Choose a reason for hiding this comment

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

There's a change to the reducer that looks like it might have been accidental. Otherwise, this looks good!

I also left a non-blocking suggestion inline about replacing the strings prop with usePerseusI18n.

@@ -74,7 +74,8 @@ export function interactiveGraphReducer(
): InteractiveGraphState {
switch (action.type) {
case REINITIALIZE:
return initializeGraphState(action.params);
return state;
// return initializeGraphState(action.params);
Copy link
Member

Choose a reason for hiding this comment

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

Pretty sure this change shouldn't be here, right?

@@ -358,13 +368,19 @@ const renderGraphControls = (props: {
state: InteractiveGraphState;
dispatch: (action: InteractiveGraphAction) => unknown;
width: number;
strings: PerseusStrings;
Copy link
Member

Choose a reason for hiding this comment

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

Instead of adding a prop for the strings, could we call usePerseusI18n here too? Or is that not possible / advisable? It seems like using the context might be a bit more convenient.

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.

3 participants