Skip to content

Conversation

@perryd01
Copy link

@perryd01 perryd01 commented May 16, 2025

  • upgrade dependencies
    • @ui5/webcomponents: 2.16.0
    • svelte: 5.43.1
  • migrate to Svelte v5 syntax
  • refactor code for fixing DRY and improve readability

@cla-assistant
Copy link

cla-assistant bot commented May 16, 2025

CLA assistant check
All committers have signed the CLA.

@cla-assistant
Copy link

cla-assistant bot commented May 16, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@ilhan007 ilhan007 requested a review from Copilot August 21, 2025 13:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR migrates the application from Svelte v3 to v5 with updated dependency versions and syntax modernization. The migration refactors code structure by extracting the header component and updating event handling patterns while maintaining existing functionality.

  • Upgrade to Svelte v5 syntax with new reactivity patterns ($state, $props)
  • Update UI5 Web Components and build dependencies to latest versions
  • Extract header functionality into separate component for better maintainability

Reviewed Changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
package.json Update dependencies to Svelte v5 and latest UI5 Web Components
vite.config.js Remove splitVendorChunkPlugin from Vite configuration
svelte.config.js Migrate from svelte-preprocess to vitePreprocess
eslint.config.js Replace legacy ESLint configuration with flat config format
src/main.ts Update app mounting from constructor to mount function
src/stores/stores.svelte.ts Implement new reactive state management with Svelte v5 syntax
src/lib/Header.svelte Extract header component with theme and profile management
src/lib/TodoList.svelte Update props syntax and event handling for v5 compatibility
src/lib/TodoItem.svelte Convert to new props interface and event handler syntax
src/App.svelte Refactor main component using Header component and v5 patterns

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@perryd01 perryd01 force-pushed the svelte5-migrate branch 2 times, most recently from b6d0df6 to 833d33a Compare September 16, 2025 09:27
const handleThemeSettingsToggle = (event) => {
themeSettingsPopover.opener = event.detail.targetRef;
themeSettingsPopover.open = true;
const handleItemInput = (event: any) => {
Copy link
Author

Choose a reason for hiding this comment

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

could not find any types for this kind of event
https://ui5.github.io/webcomponents/components/Input/#input

<div class="edit-wrapper">
<ui5-label>Title:</ui5-label>
<ui5-textarea class="title-textarea" show-exceeded-text maxlength="24" bind:this={dialogTextArea} value={itemEditText} />
<ui5-textarea class="title-textarea" show-exceeded-text maxlength={24} value={dialogFields.text} onchange={(event: any) => (dialogFields.text = event.target.value)}></ui5-textarea>
Copy link
Author

Choose a reason for hiding this comment

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

could not find types for the onchange event
https://ui5.github.io/webcomponents/components/TextArea/#change

@perryd01 perryd01 changed the title Svelte v5 migrate refactor: Svelte v5 migrate Nov 7, 2025
@perryd01 perryd01 changed the title refactor: Svelte v5 migrate refactor: migrate to Svelte v5 Nov 7, 2025
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.

1 participant