Skip to content

feat(profile-page-settings): Enhance profile page with settings component#86

Merged
ngocjohn merged 3 commits intodevfrom
inject-config-button-to-profile
Mar 2, 2026
Merged

feat(profile-page-settings): Enhance profile page with settings component#86
ngocjohn merged 3 commits intodevfrom
inject-config-button-to-profile

Conversation

@ngocjohn
Copy link
Copy Markdown
Owner

@ngocjohn ngocjohn commented Mar 2, 2026

Introduce a new settings component for the profile page and refactor methods for better clarity and variable scope.

image

Copilot AI review requested due to automatic review settings March 2, 2026 00:43
@ngocjohn ngocjohn self-assigned this Mar 2, 2026
Copy link
Copy Markdown

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

Adds a new β€œSidebar Organizer” settings section to the Home Assistant profile page and wires up runtime injection of that component, along with a few related refactors and UI tweaks.

Changes:

  • Introduces so-profile-section Lit component with actions (open settings dialog, clear cache, delete saved config).
  • Injects the new section into the profile/general panel via DialogHandler + SidebarOrganizer path detection.
  • Adds helper clearBrowserCache() and small refactors/cleanup (removed some debug logs, renamed reorder helper, dialog CSS tweaks).

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
src/utilities/show-dialog-sidebar-organizer.ts Removes debug logging when showing the dialog.
src/utilities/model/store.ts Adds a side-effect import for the new profile section component.
src/utilities/model/dialog-handler.ts Adds profile section injection logic and related imports/types.
src/utilities/dom-utils.ts Adds clearBrowserCache() helper.
src/sidebar-organizer.ts Detects profile route and triggers injection; exposes dialog manager; renames reorder helper; reload timeout tweak.
src/constants/index.ts Adds profile route constants + regexp for matching profile paths.
src/constants/dom.ts Adds profile/general element selectors used for injection.
src/components/so-profile-section.ts New profile settings card component with actions.
src/components/sidebar-dialog.ts Dialog CSS adjustments (sticky disabled; preview height tweak).

πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/sidebar-organizer.ts
Comment thread src/utilities/model/dialog-handler.ts
Comment thread src/utilities/model/store.ts Outdated
Comment thread src/sidebar-organizer.ts Outdated
Comment thread src/sidebar-organizer.ts Outdated
Comment thread src/utilities/model/dialog-handler.ts Outdated
Comment thread src/utilities/model/dialog-handler.ts
Comment thread src/components/so-profile-section.ts Outdated
Comment thread src/components/so-profile-section.ts Outdated
@ngocjohn ngocjohn merged commit 5eadb43 into dev Mar 2, 2026
2 checks passed
@ngocjohn ngocjohn deleted the inject-config-button-to-profile branch March 2, 2026 00:58
github-actions Bot pushed a commit that referenced this pull request Mar 2, 2026
## [3.1.0-beta.3](v3.1.0-beta.2...v3.1.0-beta.3) (2026-03-02)

### Features

* **profile-page-settings:** Enhance profile page with settings component ([#86](#86)) ([5eadb43](5eadb43))
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 2, 2026

πŸŽ‰ This PR is included in version 3.1.0-beta.3 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

github-actions Bot pushed a commit that referenced this pull request Mar 5, 2026
## [3.1.0](v3.0.2...v3.1.0) (2026-03-05)

### Features

* **pinned-groups:** Add pinned groups functionality to sidebar ([#83](#83)) ([a4c53bf](a4c53bf)), closes [#82](#82)
* **profile-page-settings:** Enhance profile page with settings component ([#86](#86)) ([5eadb43](5eadb43))
* **profile-section:** add download configuration action to export settings as YAML ([6778809](6778809))

### Bug Fixes

* **dialog:** migrates the sidebar configuration dialog to use ha-dialog ([#85](#85)) ([3244782](3244782))

### Documentation

* update readme with profile page config section ([13a18f4](13a18f4))
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 5, 2026

πŸŽ‰ This PR is included in version 3.1.0 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

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.

2 participants