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

Remove "sort-comp" exceptions #1583

Merged
merged 37 commits into from
Sep 4, 2024
Merged

Remove "sort-comp" exceptions #1583

merged 37 commits into from
Sep 4, 2024

Conversation

handeyeco
Copy link
Contributor

@handeyeco handeyeco commented Sep 3, 2024

Summary:

The only thing this PR does is it removes sort-comp ESLint exceptions and fixes the sort order. See: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/sort-comp.md

I didn't do:

  • interactive-graph.tsx since I didn't want to cause merge conflicts for that team
  • Components that will get deleted in my other PR

@handeyeco handeyeco self-assigned this Sep 3, 2024
@khan-actions-bot khan-actions-bot requested a review from a team September 3, 2024 20:41
@khan-actions-bot
Copy link
Contributor

khan-actions-bot commented Sep 3, 2024

Gerald

Required Reviewers
  • @Khan/perseus for changes to .changeset/swift-suits-rest.md, packages/perseus/src/widget-container.tsx, packages/perseus-editor/src/stateful-editor-page.tsx, packages/perseus/src/components/input-with-examples.tsx, packages/perseus/src/components/number-input.tsx, packages/perseus/src/components/range-input.tsx, packages/perseus/src/components/sortable.tsx, packages/perseus/src/components/text-input.tsx, packages/perseus/src/components/text-list-editor.tsx, packages/perseus/src/multi-items/multi-renderer.tsx, packages/perseus/src/widgets/categorizer.tsx, packages/perseus/src/widgets/explanation.tsx, packages/perseus/src/widgets/grapher.tsx, packages/perseus/src/widgets/iframe.tsx, packages/perseus/src/widgets/image.tsx, packages/perseus/src/widgets/input-number.tsx, packages/perseus/src/widgets/interaction.tsx, packages/perseus/src/widgets/matcher.tsx, packages/perseus/src/widgets/matrix.tsx, packages/perseus/src/widgets/measurer.tsx, packages/perseus/src/widgets/orderer.tsx, packages/perseus/src/widgets/passage-ref.tsx, packages/perseus/src/widgets/passage.tsx, packages/perseus/src/widgets/table.tsx, packages/perseus-editor/src/components/hover-behavior.ts, packages/perseus-editor/src/components/json-editor.tsx, packages/perseus-editor/src/widgets/expression-editor.tsx, packages/perseus-editor/src/widgets/graded-group-editor.tsx, packages/perseus-editor/src/widgets/grapher-editor.tsx, packages/perseus-editor/src/widgets/group-editor.tsx, packages/perseus-editor/src/widgets/iframe-editor.tsx, packages/perseus-editor/src/widgets/image-editor.tsx, packages/perseus-editor/src/widgets/input-number-editor.tsx, packages/perseus-editor/src/widgets/interactive-graph-editor.tsx, packages/perseus-editor/src/widgets/matcher-editor.tsx, packages/perseus-editor/src/widgets/matrix-editor.tsx, packages/perseus-editor/src/widgets/measurer-editor.tsx, packages/perseus-editor/src/widgets/numeric-input-editor.tsx, packages/perseus-editor/src/widgets/orderer-editor.tsx, packages/perseus-editor/src/widgets/phet-simulation-editor.tsx, packages/perseus-editor/src/widgets/table-editor.tsx, packages/perseus/src/components/highlighting/word-indexer.tsx, packages/perseus/src/widgets/passage/passage-markdown.tsx, packages/perseus-editor/src/widgets/radio/editor.tsx, packages/perseus/src/components/highlighting/ui/highlight-set-renderer.tsx

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

@handeyeco handeyeco changed the title hover-behavior, json-editor, expression-editor Remove "sort-comp" exceptions Sep 3, 2024
Copy link
Contributor

github-actions bot commented Sep 3, 2024

npm Snapshot: Published

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

Example:

yarn add @khanacademy/perseus@PR1583

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

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

Copy link
Contributor

github-actions bot commented Sep 3, 2024

Size Change: +454 B (+0.05%)

Total Size: 861 kB

Filename Size Change
packages/perseus-editor/dist/es/index.js 277 kB +581 B (+0.21%)
packages/perseus/dist/es/index.js 418 kB -127 B (-0.03%)
ℹ️ 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-linter/dist/es/index.js 22.2 kB
packages/perseus/dist/es/strings.js 3.36 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

codecov bot commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.70%. Comparing base (21a908e) to head (3ee52cc).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1583      +/-   ##
==========================================
+ Coverage   70.34%   70.70%   +0.35%     
==========================================
  Files         521      544      +23     
  Lines      107316   111297    +3981     
  Branches     5513    11872    +6359     
==========================================
+ Hits        75489    78689    +3200     
- Misses      31711    32608     +897     
+ Partials      116        0     -116     

Impacted file tree graph

see 1065 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 a3e8fce...3ee52cc. Read the comment docs.

Copy link
Collaborator

@jeremywiebe jeremywiebe left a comment

Choose a reason for hiding this comment

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

+++ Thanks for getting rid of one more ESLint suppression!

@handeyeco handeyeco merged commit 615567b into main Sep 4, 2024
13 of 14 checks passed
@handeyeco handeyeco deleted the sort-comp branch September 4, 2024 15:09
aemandine added a commit that referenced this pull request Sep 4, 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/[email protected]

### Major Changes

- [#1577](#1577)
[`c875acd01`](c875acd)
Thanks [@handeyeco](https://github.com/handeyeco)! - Remove example
widgets and their editors

### Minor Changes

- [#1570](#1570)
[`c4432ffad`](c4432ff)
Thanks [@nicolecomputer](https://github.com/nicolecomputer)! - Remove
unlimited points via keyboard


- [#1582](#1582)
[`377b7ce68`](377b7ce)
Thanks [@aemandine](https://github.com/aemandine)! - Add save warnings
to PhET widget editor and un-hide widget from content editor widget
dropdown

### Patch Changes

- [#1578](#1578)
[`78bb8573e`](78bb857)
Thanks [@aemandine](https://github.com/aemandine)! - Remove
simpleValidate from PhET widget


- [#1585](#1585)
[`a6ec402c0`](a6ec402)
Thanks [@handeyeco](https://github.com/handeyeco)! - Reorganize files in
the widgets folder


- [#1589](#1589)
[`d56952564`](d569525)
Thanks [@aemandine](https://github.com/aemandine)! - Make PhET widget
smaller


- [#1587](#1587)
[`8015cdefb`](8015cde)
Thanks [@aemandine](https://github.com/aemandine)! - Tidying up PhET
widget


- [#1583](#1583)
[`615567bd2`](615567b)
Thanks [@handeyeco](https://github.com/handeyeco)! - Remove sort-comp
exceptions and reorder components

## @khanacademy/[email protected]

### Major Changes

- [#1577](#1577)
[`c875acd01`](c875acd)
Thanks [@handeyeco](https://github.com/handeyeco)! - Remove example
widgets and their editors

### Minor Changes

- [#1582](#1582)
[`377b7ce68`](377b7ce)
Thanks [@aemandine](https://github.com/aemandine)! - Add save warnings
to PhET widget editor and un-hide widget from content editor widget
dropdown

### Patch Changes

- [#1585](#1585)
[`a6ec402c0`](a6ec402)
Thanks [@handeyeco](https://github.com/handeyeco)! - Reorganize files in
the widgets folder


- [#1587](#1587)
[`8015cdefb`](8015cde)
Thanks [@aemandine](https://github.com/aemandine)! - Tidying up PhET
widget


- [#1583](#1583)
[`615567bd2`](615567b)
Thanks [@handeyeco](https://github.com/handeyeco)! - Remove sort-comp
exceptions and reorder components

- Updated dependencies
\[[`78bb8573e`](78bb857),
[`a6ec402c0`](a6ec402),
[`d56952564`](d569525),
[`c875acd01`](c875acd),
[`8015cdefb`](8015cde),
[`c4432ffad`](c4432ff),
[`615567bd2`](615567b),
[`377b7ce68`](377b7ce)]:
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Patch Changes

- [#1585](#1585)
[`a6ec402c0`](a6ec402)
Thanks [@handeyeco](https://github.com/handeyeco)! - Reorganize files in
the widgets folder
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