Skip to content

Select from multiple instances#554

Open
harrisonhjones wants to merge 1 commit intohome-assistant:mainfrom
harrisonhjones:feat-multiple-instances
Open

Select from multiple instances#554
harrisonhjones wants to merge 1 commit intohome-assistant:mainfrom
harrisonhjones:feat-multiple-instances

Conversation

@harrisonhjones
Copy link
Copy Markdown
Contributor

@harrisonhjones harrisonhjones commented May 25, 2025

This is a work in progress. I have not:

  1. Updated the redirect.ts file to it actually works
  2. Fixed the CSS so links look light blue as expected
  3. Moved CSS from inline style= to a central location
  4. Revisited component names
  5. Done any real cleanup what so ever

I'm putting this out in its current state (see https://deploy-preview-554--my-home-assistant.netlify.app/) so I can get early feedback on:

  1. Do we like the "first time, I have no instances" experience?
  2. Do we like the delete experience?
  3. Do we like the edit experience?
  4. Anything else

I'm not super familiar with lit and material-web so I may have easily made large mistakes along the way.

Comment thread src-11ty/index.html
layout: base_card_with_hero
javascript_source: my-index.js
description: Link to specific pages in your Home Assistant instance.
description: Link to a specific pages in your Home Assistant instances.
Copy link
Copy Markdown

@UplandJacob UplandJacob May 26, 2025

Choose a reason for hiding this comment

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

Small typo: “a specific pages”

@frenck frenck changed the title WIP - Select from multiple instances Select from multiple instances May 26, 2025
@Misiu
Copy link
Copy Markdown

Misiu commented Nov 3, 2025

The Delete button should follow the HA style - it should be red as it is destructive.

style="width: 100%"
@save=${this._handleSave}
@delete=${this._handleDelete}
/>` /*
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Commented code

Comment thread src-11ty/index.html
description: Link to a specific pages in your Home Assistant instances.
---

<style>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I dont think these styles where supposed to be removed?

></md-filled-text-field>
<md-filled-button @click=${this._handleSave}
>${this.value ? "Update" : "Save"}</md-filled-button
<div style="width: 100%; display: flex; flex-direction: column; align-items: start; line-break: anywhere; gap: 4px">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please don't inline the styles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants