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

[Interactive Graph Editor] Moving around/renaming components #1379

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

nishasy
Copy link
Contributor

@nishasy nishasy commented Jun 26, 2024

Summary:

When working on the "Start coordinates" UI (requirement for Hint Mode),
I will need to use the LockedFiguresSettingsAccordion and CoordinatePairInput.

To make these more intuitive to use, I renamed LockedFiguresSettingsAccordion
to PerseusEditorAccordion (since it's not only used for locked figures anymore),
and I also moved CoordinatePairInput out of the locked-figures directory.

I also moved Heading into its own component, since I'd like to reuse it outside
the interactive-graph-settings.tsx file.

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

Test plan:

yarn jest
yarn typecheck

@nishasy nishasy self-assigned this Jun 26, 2024
@nishasy nishasy requested review from mark-fitzgerald and a team June 26, 2024 21:20
Copy link
Contributor

Size Change: +35 B (0%)

Total Size: 847 kB

Filename Size Change
packages/perseus-editor/dist/es/index.js 272 kB +35 B (+0.01%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 38.2 kB
packages/kmath/dist/es/index.js 4.26 kB
packages/math-input/dist/es/index.js 80.1 kB
packages/math-input/dist/es/strings.js 1.73 kB
packages/perseus-core/dist/es/index.js 906 B
packages/perseus-error/dist/es/index.js 866 B
packages/perseus-linter/dist/es/index.js 21.8 kB
packages/perseus/dist/es/index.js 408 kB
packages/perseus/dist/es/strings.js 3.21 kB
packages/pure-markdown/dist/es/index.js 3.67 kB
packages/simple-markdown/dist/es/index.js 12.4 kB

compressed-size-action

@nishasy nishasy marked this pull request as ready for review June 26, 2024 21:37
@khan-actions-bot
Copy link
Contributor

Gerald

Required Reviewers
  • @Khan/perseus for changes to .changeset/mean-needles-float.md, packages/perseus/src/index.ts, packages/perseus/src/styles/perseus-renderer.less, packages/perseus-editor/src/components/coordinate-pair-input.tsx, packages/perseus-editor/src/components/heading.tsx, packages/perseus-editor/src/components/interactive-graph-settings.tsx, packages/perseus-editor/src/components/perseus-editor-accordion.tsx, packages/perseus-editor/src/components/graph-locked-figures/defining-point-settings.tsx, packages/perseus-editor/src/components/graph-locked-figures/locked-ellipse-settings.tsx, packages/perseus-editor/src/components/graph-locked-figures/locked-line-settings.tsx, packages/perseus-editor/src/components/graph-locked-figures/locked-point-settings.tsx, packages/perseus-editor/src/components/graph-locked-figures/locked-polygon-settings.tsx, packages/perseus-editor/src/components/graph-locked-figures/locked-vector-settings.tsx

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

@nishasy nishasy merged commit 685fa90 into main Jun 26, 2024
14 of 20 checks passed
@nishasy nishasy deleted the component-reorganizing branch June 26, 2024 21:44
benchristel pushed a commit that referenced this pull request Jul 1, 2024
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.


# Releases
## @khanacademy/perseus@24.1.0

### Minor Changes

-   [#1376](#1376) [`3ee100add`](3ee100a) Thanks [@benchristel](https://github.com/benchristel)! - Implement the protractor for Mafs interactive graphs


-   [#1381](#1381) [`26dceb8d7`](26dceb8) Thanks [@benchristel](https://github.com/benchristel)! - Make the `mafs.point` flag control whether point graphs with fixed numbers of points should use Mafs. Previously, turning on the `mafs.point` flag would enable Mafs for point graphs with unlimited points as well.

### Patch Changes

-   [#1358](#1358) [`93eeda1e2`](93eeda1) Thanks [@benchristel](https://github.com/benchristel)! - Add TODO comment


-   [#1379](#1379) [`685fa9048`](685fa90) Thanks [@nishasy](https://github.com/nishasy)! - [Interactive Graph Editor] Moving around/renaming components so they make more sense for the upcoming hint mode work


-   [#1370](#1370) [`48e879ace`](48e879a) Thanks [@benchristel](https://github.com/benchristel)! - Internal: copy Mafs' implementation of useMovable into our own useDraggable hook.

## @khanacademy/perseus-editor@7.0.1

### Patch Changes

-   [#1375](#1375) [`a8b3aa9c0`](a8b3aa9) Thanks [@nishasy](https://github.com/nishasy)! - [Interactive Graph Editor] Fix the broken storybook preview for segments, points, and polygons


-   [#1379](#1379) [`685fa9048`](685fa90) Thanks [@nishasy](https://github.com/nishasy)! - [Interactive Graph Editor] Moving around/renaming components so they make more sense for the upcoming hint mode work

-   Updated dependencies \[[`3ee100add`](3ee100a), [`93eeda1e2`](93eeda1), [`685fa9048`](685fa90), [`48e879ace`](48e879a), [`26dceb8d7`](26dceb8)]:
    -   @khanacademy/perseus@24.1.0

Author: khan-actions-bot

Reviewers: benchristel

Required Reviewers:

Approved By: benchristel

Checks: ✅ codecov/project, ✅ codecov/patch, ✅ Upload Coverage (ubuntu-latest, 20.x), ⏭️  Publish npm snapshot, ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ Jest Coverage (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ gerald

Pull Request URL: #1377
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants