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

Updated TabbarItemType to KeypadPageType. #676

Merged
merged 3 commits into from
Aug 29, 2023
Merged

Conversation

SonicScrewdriver
Copy link
Contributor

@SonicScrewdriver SonicScrewdriver commented Aug 17, 2023

Summary:

This is a very simple PR that updates the name of the TabbarItemType to the more accurate/descriptive KeypadPageType.

Reason: After adding the Fractions page, not all of these elements are "TabbarItems" as we don't want the Fractions page to appear in the Tabbar. I decided on a name change as it seemed like the best course of action to ensure code readability. Otherwise the logic for showing the Fraction page would be much messier due to how we're currently switching between page views. This is also inline with our usage of the type on a few of variables/states called "selectedPage".

Issue: LC-1160

Test plan:

manual testing

@SonicScrewdriver SonicScrewdriver self-assigned this Aug 17, 2023
@changeset-bot
Copy link

changeset-bot bot commented Aug 17, 2023

🦋 Changeset detected

Latest commit: 3854db3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@khanacademy/math-input Patch
@khanacademy/perseus Patch
@khanacademy/perseus-editor Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@khan-actions-bot khan-actions-bot requested a review from a team August 17, 2023 21:21
@khan-actions-bot
Copy link
Contributor

khan-actions-bot commented Aug 17, 2023

Gerald

Required Reviewers
  • @Khan/perseus for changes to .changeset/dull-paws-build.md, packages/math-input/src/types.ts, packages/math-input/src/components/keypad/keypad.tsx, packages/math-input/src/components/keypad/shared-keys.tsx, packages/math-input/src/components/keypad-legacy/two-page-keypad.tsx, packages/math-input/src/components/tabbar/icons.tsx, packages/math-input/src/components/tabbar/index.ts, packages/math-input/src/components/tabbar/item.tsx, packages/math-input/src/components/tabbar/tabbar.stories.tsx, packages/math-input/src/components/tabbar/tabbar.tsx

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

@github-actions
Copy link
Contributor

github-actions bot commented Aug 17, 2023

Size Change: 0 B

Total Size: 847 kB

ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 38 kB
packages/kmath/dist/es/index.js 4.12 kB
packages/math-input/dist/es/index.js 103 kB
packages/perseus-core/dist/es/index.js 55 B
packages/perseus-editor/dist/es/index.js 268 kB
packages/perseus-error/dist/es/index.js 705 B
packages/perseus-linter/dist/es/index.js 21.2 kB
packages/perseus/dist/es/index.js 396 kB
packages/pure-markdown/dist/es/index.js 3.64 kB
packages/simple-markdown/dist/es/index.js 12.6 kB

compressed-size-action

@github-actions
Copy link
Contributor

github-actions bot commented Aug 17, 2023

npm Snapshot: Published

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

Example:

yarn add @khanacademy/perseus@PR676

@coveralls
Copy link
Collaborator

coveralls commented Aug 17, 2023

Coverage Status

coverage: 69.359% (-0.007%) from 69.366% when pulling 3854db3 on update-tab-types into 3078825 on main.

Copy link
Contributor

@handeyeco handeyeco 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!

| "Numbers"
| "Fractions"
| "Extras"
| "Dismiss";
Copy link
Contributor

Choose a reason for hiding this comment

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

Ugh, now "Dismiss" feels wrong; though it's not really a "Tab" either. No action needed, just pointing it out.

@SonicScrewdriver SonicScrewdriver merged commit 3f7be05 into main Aug 29, 2023
12 checks passed
@SonicScrewdriver SonicScrewdriver deleted the update-tab-types branch August 29, 2023 15:13
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.

4 participants