Skip to content

Conversation

@aerosol
Copy link
Member

@aerosol aerosol commented Nov 18, 2025

PR against #5874

This makes tile component play well in LV context where more dynamic approach is necessary. @RobertJoonas I've tried various things (including making a "live tile" - which seemed like an overkill) and this is the smallest friction I could come up with.

Copy link
Contributor

@RobertJoonas RobertJoonas left a comment

Choose a reason for hiding this comment

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

Nice work Adam! I think this approach makes a ton of sense. The tile component shouldn't limit us in terms of technology. It should just be a UI thing.

Wondering if it might make sense to get rid of the deadview / form feature toggle for good? The Liveview one offers much better and responsive UX I imagine. Not pushing that into this PR though.

slot(:inner_block)

def toggle(assigns) do
def toggle(%{conn: %Plug.Conn{}} = assigns) do
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!💡

@aerosol aerosol merged commit 7f68d17 into sanne-empty-states Nov 18, 2025
4 of 15 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Nov 24, 2025
* Updated empty states across settings

* Fix funnels and props functionality not hiding when toggled off

- Add show_content? attribute to generic tile component
- Ensure content is hidden when toggled off
- Avoid rendering border and empty space when toggled off
- Fix formatting

* Update personal sites empty state

* Make `tile` component lv-embeddable (#5891)

* Use new tile component for funnels, goals, imports and custom properties

- Update the settings live views to use the new tile component
- Ensure tile component is updated when feature visibility is toggled
- Extract `no_search_results` and `empty_state` components for better readability
- Extract `highlighted` component
- Update tests

* Add empty states for team sites and simplify empty state logic

- Hide top bar on `/sites` when empty state is shown
- Extract empty state logic to a separate function
- Show the same empty state for both personal and team sites, with different copy
- extract search logic to a separate function
- add tests for various empty states cases

* Clean up:
  - remove HTTP feature visibility routes now that
    we're doing it 100% via LV
  - add tests for feature toggling
  - move "site_role" to where it's used (upgrade CTA),
    since there were already some feature-related function calls
    there
  - fix random test failures left

* Fixup

---------

Co-authored-by: Adam Rutkowski <[email protected]>
@aerosol aerosol deleted the sanne-empty-states-patch branch November 24, 2025 12:08
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