Skip to content

Conversation

@mukunku
Copy link
Collaborator

@mukunku mukunku commented Dec 2, 2025

Summary

This PR upgrades the TextInput and TextArea Svelte components from the Svelte 4 to the Svelte 5 syntax.

This PR branches off of #2077 so that PR must be merged before this one.

Breaking changes

  • TextInput: The message, description, and fill slots have been replaced with snippets.
  • TextArea: The message and description slots have been replaced with snippets.

Remarks

I used the Svelte for VS Code extension's upgrade command to perform a first pass upgrade from svelte 4 to 5:
{A1DA41D8-486C-4566-B3C5-7817279B2F57}

It did a decent job of making the changes. I had to do some additional cleanup and adjust the storybooks.

How to Test

Confirm the Svelte components still work as they did before:

Note: The interactive test component is currently broken so please ignore that: SPARK-131

@mukunku mukunku added the do-not-merge Pull requests that are in progress and should not be merged yet label Dec 2, 2025
@changeset-bot
Copy link

changeset-bot bot commented Dec 2, 2025

🦋 Changeset detected

Latest commit: a18411e

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

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

@mukunku mukunku changed the base branch from sal/SPARK-81 to beta December 2, 2025 18:11
@netlify
Copy link

netlify bot commented Dec 2, 2025

Deploy Preview for stacks-svelte ready!

Name Link
🔨 Latest commit a18411e
🔍 Latest deploy log https://app.netlify.com/projects/stacks-svelte/deploys/6930657a0071da0008e3d7f4
😎 Deploy Preview https://deploy-preview-2085--stacks-svelte.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Dec 2, 2025

Deploy Preview for stacks ready!

Name Link
🔨 Latest commit a18411e
🔍 Latest deploy log https://app.netlify.com/projects/stacks/deploys/6930657a46d15700086cb32d
😎 Deploy Preview https://deploy-preview-2085--stacks.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mukunku mukunku changed the base branch from beta to sal/SPARK-81 December 2, 2025 18:44
export let i18nRequiredText: string | undefined = undefined;
$: classes = getClasses(className, size);
interface Props extends Omit<HTMLTextareaAttributes, 'size'> {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We need to add the Omit to address lint errors from event handler attributes not being predefined: https://github.com/StackExchange/Stacks/actions/runs/19868938555/job/56939177109?pr=2085

@mukunku mukunku marked this pull request as ready for review December 2, 2025 18:52
Base automatically changed from sal/SPARK-81 to beta December 3, 2025 13:08
@mukunku mukunku removed the do-not-merge Pull requests that are in progress and should not be merged yet label Dec 3, 2025
Copy link
Contributor

@giamir giamir left a comment

Choose a reason for hiding this comment

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

I don't see anything out of the ordinary here. Thanks @mukunku for performing the migration. 🎉

The only issue I see is with the positioning of the native calendar and time symbols:
Screenshot 2025-12-03 at 15 53 36

Not sure if this is caused by this PR or the previous one (probably the previous one)

Copy link
Collaborator

@ttaylor-stack ttaylor-stack left a comment

Choose a reason for hiding this comment

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

LGTM, some small syntax consistency comments but not that important

@mukunku
Copy link
Collaborator Author

mukunku commented Dec 3, 2025

I don't see anything out of the ordinary here. Thanks @mukunku for performing the migration. 🎉

The only issue I see is with the positioning of the native calendar and time symbols: Screenshot 2025-12-03 at 15 53 36

Not sure if this is caused by this PR or the previous one (probably the previous one)

Thanks for catching that bug, @giamir . I noticed the weirdness but it didn't click in my mind as a bug. I opened a separate PR for it now: #2088

@mukunku mukunku merged commit 4310a45 into beta Dec 3, 2025
18 checks passed
@mukunku mukunku deleted the sal/SPARK-28 branch December 3, 2025 16:51
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.

5 participants