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

Move grid and axis code to a backgrounds folder #1408

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

benchristel
Copy link
Member

This code was mostly hanging out in interactive-graphs/, but the axis tick
labels file was in interactive-graphs/graphs/components for some reason. I've
consolidated all this code in a backgrounds/ folder so it's easy to find.

Issue: none

Test plan:

yarn test

@khan-actions-bot
Copy link
Contributor

khan-actions-bot commented Jul 12, 2024

Gerald

Required Reviewers
  • @Khan/perseus for changes to .changeset/many-jeans-divide.md, packages/perseus/src/widgets/interactive-graphs/mafs-graph.tsx, packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-arrows.tsx, packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-labels.tsx, packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-tick-labels.test.ts, packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-tick-labels.tsx, packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-ticks.test.ts, packages/perseus/src/widgets/interactive-graphs/backgrounds/axis-ticks.tsx, packages/perseus/src/widgets/interactive-graphs/backgrounds/grid.test.ts, packages/perseus/src/widgets/interactive-graphs/backgrounds/grid.tsx, packages/perseus/src/widgets/interactive-graphs/backgrounds/legacy-grid.tsx

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

Copy link
Contributor

github-actions bot commented Jul 12, 2024

npm Snapshot: Published

Good news!! We've packaged up the latest commit from this PR (16df5ee) and published it to npm. You
can install it using the tag PR1408.

Example:

yarn add @khanacademy/perseus@PR1408

If you are working in Khan Academy's webapp, you can run:

./dev/tools/bump_perseus_version.sh -t PR1408

Copy link
Contributor

github-actions bot commented Jul 12, 2024

Size Change: -112 B (-0.01%)

Total Size: 854 kB

Filename Size Change
packages/kas/dist/es/index.js 38.2 kB +1 B (0%)
packages/kmath/dist/es/index.js 4.27 kB +1 B (+0.02%)
packages/perseus-core/dist/es/index.js 1.48 kB +573 B (+63.25%) 🆘
packages/perseus-editor/dist/es/index.js 273 kB +843 B (+0.31%)
packages/perseus-error/dist/es/index.js 0 B -866 B (removed) 🏆
packages/perseus-linter/dist/es/index.js 21.6 kB -150 B (-0.69%)
packages/perseus/dist/es/index.js 414 kB -512 B (-0.12%)
packages/pure-markdown/dist/es/index.js 3.67 kB -2 B (-0.05%)
ℹ️ View Unchanged
Filename Size
packages/math-input/dist/es/index.js 80.8 kB
packages/math-input/dist/es/strings.js 1.73 kB
packages/perseus/dist/es/strings.js 3.21 kB
packages/simple-markdown/dist/es/index.js 12.4 kB

compressed-size-action

Copy link

codecov bot commented Jul 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.05%. Comparing base (147ab04) to head (16df5ee).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1408      +/-   ##
==========================================
+ Coverage   69.71%   71.05%   +1.34%     
==========================================
  Files         505      508       +3     
  Lines      105131   105401     +270     
  Branches     7590    10761    +3171     
==========================================
+ Hits        73293    74894    +1601     
+ Misses      31662    30507    -1155     
+ Partials      176        0     -176     

Impacted file tree graph

Files Coverage Δ
...ets/interactive-graphs/backgrounds/axis-arrows.tsx 100.00% <100.00%> (ø)
...ets/interactive-graphs/backgrounds/axis-labels.tsx 100.00% <100.00%> (ø)
...nteractive-graphs/backgrounds/axis-tick-labels.tsx 98.67% <100.00%> (ø)
...gets/interactive-graphs/backgrounds/axis-ticks.tsx 90.06% <100.00%> (ø)
...rc/widgets/interactive-graphs/backgrounds/grid.tsx 100.00% <100.00%> (ø)
...ets/interactive-graphs/backgrounds/legacy-grid.tsx 100.00% <100.00%> (ø)
...seus/src/widgets/interactive-graphs/mafs-graph.tsx 99.41% <100.00%> (ø)

... and 174 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 147ab04...16df5ee. Read the comment docs.

Copy link
Contributor

@SonicScrewdriver SonicScrewdriver left a comment

Choose a reason for hiding this comment

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

Thank you very much, I've been meaning to reorganize these!

@benchristel benchristel merged commit c416627 into main Jul 16, 2024
11 checks passed
@benchristel benchristel deleted the benc/consolidate-axis-code branch July 16, 2024 21:27
benchristel pushed a commit that referenced this pull request Jul 22, 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-editor@8.2.0

### Minor Changes

-   [#1416](#1416) [`daa3082d3`](daa3082) Thanks [@nicolecomputer](https://github.com/nicolecomputer)! - Organizes the graph editor

### Patch Changes

-   Updated dependencies \[[`c41662717`](c416627), [`3ff40dd23`](3ff40dd), [`a8eb6908b`](a8eb690), [`a9dbbc4b1`](a9dbbc4)]:
    -   @khanacademy/perseus@25.1.1

## @khanacademy/perseus@25.1.1

### Patch Changes

-   [#1408](#1408) [`c41662717`](c416627) Thanks [@benchristel](https://github.com/benchristel)! - Internal: Move code for interactive graph grids and axes to a `backgrounds` folder


-   [#1409](#1409) [`3ff40dd23`](3ff40dd) Thanks [@nishasy](https://github.com/nishasy)! - [Interactive Graph: Test Utils] Update the interactive graph question builder with all options + update testdata to use builder


-   [#1410](#1410) [`a8eb6908b`](a8eb690) Thanks [@benchristel](https://github.com/benchristel)! - Internal: refactor interactive graph reducer actions to make it clearer which actions go with which graph type


-   [#1420](#1420) [`a9dbbc4b1`](a9dbbc4) Thanks [@benchristel](https://github.com/benchristel)! - Internal: refactor interactive graph reducer actions for clarity

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), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Jest Coverage (ubuntu-latest, 20.x), 🚫 Upload Coverage, ✅ gerald, ⏭️  Publish npm snapshot, 🚫 Cypress (ubuntu-latest, 20.x), 🚫 Check builds for changes in size (ubuntu-latest, 20.x), 🚫 Jest Coverage (ubuntu-latest, 20.x), 🚫 Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), 🚫 Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ gerald

Pull Request URL: #1419
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