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

Upgrade to svelte 4 x x #40

Closed
wants to merge 414 commits into from
Closed

Conversation

MelleD
Copy link
Contributor

@MelleD MelleD commented Sep 26, 2024

Upgrade to svelte 4 x x

MelleD and others added 30 commits May 13, 2024 00:47
Bumps [@tsconfig/svelte](https://github.com/tsconfig/bases/tree/HEAD/bases) from 3.0.0 to 5.0.4.
- [Commits](https://github.com/tsconfig/bases/commits/HEAD/bases)

---
updated-dependencies:
- dependency-name: "@tsconfig/svelte"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 2.10.3 to 3.7.1.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](sveltejs/language-tools@svelte-check-2.10.3...svelte-check-3.7.1)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
…velte-5.0.4

Bump @tsconfig/svelte from 3.0.0 to 5.0.4
…ck-3.7.1

Bump svelte-check from 2.10.3 to 3.7.1
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [@rollup/rollup-linux-x64-gnu](https://github.com/rollup/rollup) from 4.17.2 to 4.18.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](rollup/rollup@v4.17.2...v4.18.0)

---
updated-dependencies:
- dependency-name: "@rollup/rollup-linux-x64-gnu"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [rollup](https://github.com/rollup/rollup) from 4.17.2 to 4.18.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](rollup/rollup@v4.17.2...v4.18.0)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
…lup-linux-x64-gnu-4.18.0

Bump @rollup/rollup-linux-x64-gnu from 4.17.2 to 4.18.0
…-eslint/eslint-plugin-7.10.0

Bump @typescript-eslint/eslint-plugin from 7.8.0 to 7.10.0
…-mobile-app

Add new color variables for expander card, icon and label
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
…-eslint/parser-7.10.0

Bump @typescript-eslint/parser from 7.8.0 to 7.10.0
…-mobile-app-2

Add option for Editor and yaml to add own colors
MelleD and others added 15 commits August 27, 2024 09:19
…llup-linux-x64-gnu-4.21.1

Bump @rollup/rollup-linux-x64-gnu from 4.21.0 to 4.21.1
Bumps [@rollup/rollup-linux-x64-gnu](https://github.com/rollup/rollup) from 4.21.1 to 4.21.2.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](rollup/rollup@v4.21.1...v4.21.2)

---
updated-dependencies:
- dependency-name: "@rollup/rollup-linux-x64-gnu"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
…llup-linux-x64-gnu-4.21.2

Bump @rollup/rollup-linux-x64-gnu from 4.21.1 to 4.21.2
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.5.4 to 5.6.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](microsoft/TypeScript@v5.5.4...v5.6.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
…t-5.6.2

Bump typescript from 5.5.4 to 5.6.2
Bumps [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte) from 2.43.0 to 2.44.0.
- [Release notes](https://github.com/sveltejs/eslint-plugin-svelte/releases)
- [Commits](https://github.com/sveltejs/eslint-plugin-svelte/compare/[email protected]@2.44.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-svelte
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
…ugin-svelte-2.44.0

Bump eslint-plugin-svelte from 2.43.0 to 2.44.0
Bumps the npm_and_yarn group with 1 update: [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte).


Updates `svelte` from 3.59.2 to 4.2.19
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/[email protected]/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/[email protected]/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <[email protected]>
…arn-d3f2d8bafc

Bump svelte from 3.59.2 to 4.2.19 in the npm_and_yarn group
Bumps the npm_and_yarn group with 1 update: [rollup](https://github.com/rollup/rollup).


Updates `rollup` from 4.21.1 to 4.22.4
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](rollup/rollup@v4.21.1...v4.22.4)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <[email protected]>
…arn-e1825f7a49

Bump rollup from 4.21.1 to 4.22.4 in the npm_and_yarn group
@MelleD MelleD closed this Sep 26, 2024
@MelleD MelleD deleted the upgrade-to-svelte-4-x-x branch September 26, 2024 11:47
@MelleD MelleD restored the upgrade-to-svelte-4-x-x branch September 26, 2024 11:47
@MelleD MelleD deleted the upgrade-to-svelte-4-x-x branch September 26, 2024 13:11
@Alia5
Copy link
Owner

Alia5 commented Sep 26, 2024

Hey @MelleD

Why upgrade to Svelte 4 when 5 is on the horizon and pretty darn stable?

You might want to checkout: #41

@MelleD
Copy link
Contributor Author

MelleD commented Sep 26, 2024

Hey @Alia5,

my understanding is svelte 5 is not production ready, right?

But yes give it a try, also have some perfomance issue with svelte 4 so maybe you are right go directly to 5

Maybe just some question to your PR and changes
a) Why did you switch to pnpm?
b) Do you have good experience with vite?

Thanks :)

@MelleD
Copy link
Contributor Author

MelleD commented Sep 27, 2024

Hey @Alia5,

I upgraded to Svelte 5.x.x and same performance issue. Svelte 3.x.x was much faster.
I also tried your new release and with the new release I observed the same thing: the card creation now take longer to load.

Also with Svelte 5 I have a small UI glitch when the expander is open to begin, but I think this fixable.

I'm more worried about performance, I tried to cache the cards and not recreate it every time, but that didn't help much either. Maybe you have another idea. The code itself (apart from setting the config) hasn't changed much, so it must be Svelte's fault vom 3.x.x to 4.x.x and 5.x.x

@Alia5
Copy link
Owner

Alia5 commented Sep 27, 2024

@MelleD

my understanding is svelte 5 is not production ready, right?

Officially in RC. The release shouldn't be too far off.
breaking API changes will almost certainly not occur at this point.
Bugs are mostly minor technicalities or fringe cases.

a) Why did you switch to pnpm?

It's my currently preferred node package manager. Nothing to it.

b) Do you have good experience with vite?

WDYM exactly? But yes. I like Vite and have been using it for a few years now, both hobby and professional use

I upgraded to Svelte 5.x.x and same performance issue. Svelte 3.x.x was much faster.

Have you dug any deeper?
I don't experience any issues here.

@MelleD
Copy link
Contributor Author

MelleD commented Sep 27, 2024

Professionally, I am more concerned with backend development and less with frontend. That's why I like to hear what the reasons/advantages/disadvantages are from experienced developers (for a and b). More out of curiosity and to learn.

Have you dug any deeper?
I don't experience any issues here.

It's easy to reproduce. Let me make MRE over the weekend what is reusable for testing.
Yes I looked into it, but how I said currently no clue what is the issue, because the code is not changed. For Svelte 4 and 5.

IMHO one improvement could be to cache the cards and no (re)create it everytime, but this solves not the issue with the initial load.
With the previous version the initial load was very fast and I didn't see the "Loading ..." label. Now I see this a lot and the UI needs sometime to load all expanders.

Thanks for help

@MelleD
Copy link
Contributor Author

MelleD commented Sep 27, 2024

Here a complete Dashboard to show it:

config
---
views:
  - title: Test
    path: testo
    badges: []
    cards:
      - type: custom:expander-card
        title: Expander
        expanded: true
        title-card:
          type: entities
          entities:
            - entity: sun.sun
              name: This is an entity with a very long name that breaks things
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        expanded: true
        title-card:
          type: entities
          entities:
            - entity: sun.sun
              name: This is an entity with a very long name that breaks things
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        expanded: true
        title-card:
          type: entities
          entities:
            - entity: sun.sun
              name: This is an entity with a very long name that breaks things
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        expanded: true
        title-card:
          type: entities
          entities:
            - entity: sun.sun
              name: This is an entity with a very long name that breaks things
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
      - type: custom:expander-card
        title: Expander
        expanded: true
        title-card:
          type: entities
          entities:
            - entity: sun.sun
              name: This is an entity with a very long name that breaks things
        cards:
          - type: custom:stack-in-card
            mode: vertical
            cards:
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things
              - type: entities
                entities:
                  - entity: sun.sun
                    name: This is an entity with a very long name that breaks things

@MelleD
Copy link
Contributor Author

MelleD commented Sep 27, 2024

Bildschirmfoto 2024-09-27 um 17 27 30

And I have a small glitch in the UI ( could me issue on my side have to test again)

Bildschirmfoto 2024-09-27 um 17 30 12

@MelleD
Copy link
Contributor Author

MelleD commented Sep 27, 2024

So I would like to try to cache this cards:

            {#each config.cards as card (card)}
                <Card hass={hass} config={card} type={card.type} marginTop={config['child-margin-top']}/>
            {/each}

But no idea how ;)

@Alia5
Copy link
Owner

Alia5 commented Sep 28, 2024

Look here: dc04a44

@MelleD
Copy link
Contributor Author

MelleD commented Sep 28, 2024

Look here: dc04a44

Thanks I will try that, but one question it not better or possible to cache the Card instance in the ExpanderCard directly?
so this one

<Card hass={hass} config={card} type={card.type} marginTop={config['child-margin-top']}/>
            {/each}

@MelleD
Copy link
Contributor Author

MelleD commented Sep 28, 2024

Look here: dc04a44

But cool much better :) Thanks a lot good job

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