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

feat: add generic parameters to Modal interfaces #2644

Closed
wants to merge 2 commits into from

Conversation

matadaniel
Copy link

@matadaniel matadaniel commented May 1, 2024

Description

Improve Modal types

Changsets

Instructions: Changesets automate our changelog. If you modify files in /packages, run pnpm changeset in the root of the monorepo, follow the prompts, then commit the markdown file. Changes that add features should be minor while chores and bugfixes should be patch. Please prefix the changeset message with feat:, bugfix: or chore:.

Checklist

Please read and apply all contribution requirements.

  • This PR targets the dev branch (NEVER master)
  • Documentation reflects all relevant changes
  • Branch is prefixed with: docs/, feat/, chore/, bugfix/
  • Ensure Svelte and Typescript linting is current - run pnpm check
  • Ensure Prettier linting is current - run pnpm format
  • All test cases are passing - run pnpm test
  • Includes a changeset (if relevant; see above)

Copy link

changeset-bot bot commented May 1, 2024

⚠️ No Changeset found

Latest commit: 90aff9c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Copy link

vercel bot commented May 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
skeleton-docs ✅ Ready (Inspect) Visit Preview May 30, 2024 5:42pm

Copy link

vercel bot commented May 1, 2024

@matadaniel is attempting to deploy a commit to the Skeleton Labs Team on Vercel.

A member of the Team first needs to authorize it.

@endigo9740
Copy link
Contributor

@AdrianGonz97 @ryceg if you guys get a chance you can please review this one. Thank you!

@ryceg
Copy link
Contributor

ryceg commented May 28, 2024

Yeah this looks solid- I'll give it a spin but it's quite a minimal change, but will allow for much better DX.

@endigo9740
Copy link
Contributor

endigo9740 commented May 29, 2024

@matadaniel Just checking on the status of this one. I noted it's still in a "draft" state, so I wanted to confirm all work is complete. Make sure to bump to "ready for review" when you hit that status.

If @ryceg gives the thumbs up we'll merge right away. Thanks!

@matadaniel
Copy link
Author

I made it a draft PR since you said it would allow you to review sooner rather than later, and I wanted a review to make sure no one's current types would break. I have also not completed much of the PR template checklist.

I did come across a discussion that I am unable to find now that mentioned that the ModalSettings.value type should stay as any rather than string. I will add it to the ModalSettings' generic parameters.

@endigo9740
Copy link
Contributor

endigo9740 commented Jun 7, 2024

@matadaniel I've had a chance to do a quick review. Overall things look to be working as expected. No regressions have been found per my tests.

You are currently missing a Changeset. If you could please follow the instructions provided in the original post at the top of this thread please. Aside from that, I'd recommend either catching your branch up to dev or skipping pnpm format from our checklist - it's reporting issues that I believe have already been resolved.

I'm going to once again ping @ryceg and @AdrianGonz97 to double check that the most recent type changes are sound. If you guys could please use the GitHub PR approval system to report your response!

I'll plan to merge once:

  • The changeset is added
  • The checklist above is completed
  • Rhys and/or Adrian submit their approval

Thanks!

@endigo9740 endigo9740 requested a review from Hugos68 June 10, 2024 18:31
@endigo9740
Copy link
Contributor

@matadaniel given this PR is getting a bit long in the tooth I'm going to suggest we finalize things by end of this week. Otherwise I'll just make the assumption this isn't moving forward and close the PR.

@Hugos68 I'm going to add you as another reviewer since you have a strong handling of types.

To all - If I can get one of the three folks tagged here to help confirm, this will be merged per the conditions listed in my post above.

@endigo9740
Copy link
Contributor

Alright, we've reached end of the week with no activity so I'm going to call this abandoned and close this out. Just FYI, we're in the midst of shifting our focus from Skeleton v2 -> v3, so this was the last pending item we had hanging on. This now enables us to move forward.

Given I do think there's some valuable change here, I've referenced this PR for consideration when we implement the new overlay system in Skeleton v3 here. So some version of this may come back in the future:
#2357

@endigo9740 endigo9740 closed this Jun 14, 2024
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