Skip to content

Conversation

gantoine
Copy link
Member

Description
Explain the changes or enhancements you are proposing with this pull request.

Checklist
Please check all that apply.

  • I've tested the changes locally
  • I've updated relevant comments
  • I've assigned reviewers for this PR
  • I've added unit tests that cover the changes

Screenshots

Screenshot 2025-06-09 at 10 11 25 PM

@gantoine gantoine requested review from zurdi15 and Copilot June 10, 2025 02:12
Copy link

trunk-io bot commented Jun 10, 2025

Running Code Quality on PRs by uploading data to Trunk will soon be removed. You can still run checks on your PRs using trunk-action - see the migration guide for more information.

Copy link
Contributor

@Copilot 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 fallback empty state to the home view when the user’s library has no content.

  • Import and render a new EmptyHome component in Home.vue under a combined “library empty” condition.
  • Introduce three new translation keys (home-headline, home-title, home-text) in each locale’s emptyStates.json.
  • Create EmptyHome.vue to display a localized empty-state UI.

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
frontend/src/views/Home.vue Import EmptyHome and add <empty-home> with a compound v-if that checks all library arrays are empty.
frontend/src/locales/zh_CN/emptyStates.json Add home-headline, home-title, home-text keys.
frontend/src/locales/ru_RU/emptyStates.json Add home-headline, home-title, home-text keys.
frontend/src/locales/ro_RO/emptyStates.json Add home-headline, home-title, home-text keys.
frontend/src/locales/pt_BR/emptyStates.json Add home-headline, home-title, home-text keys.
frontend/src/locales/ko_KR/emptyStates.json Add home-headline, home-title, home-text keys.
frontend/src/locales/ja_JP/emptyStates.json Add home-headline, home-title, home-text keys.
frontend/src/locales/it_IT/emptyStates.json Add home-headline, home-title, home-text keys.
frontend/src/locales/fr_FR/emptyStates.json Add home-headline, home-title, home-text keys.
frontend/src/locales/es_ES/emptyStates.json Add home-headline, home-title, home-text keys.
frontend/src/locales/en_US/emptyStates.json Add home-headline, home-title, home-text keys.
frontend/src/locales/en_GB/emptyStates.json Add home-headline, home-title, home-text keys.
frontend/src/locales/de_DE/emptyStates.json Add home-headline, home-title, home-text keys.
frontend/src/components/Home/EmptyHome.vue New component rendering the localized empty-state UI.
Comments suppressed due to low confidence (1)

frontend/src/components/Home/EmptyHome.vue:1

  • Add unit tests for EmptyHome.vue to verify that it correctly renders the localized headline, title, and text based on the translation keys.
<script setup lang="ts">

@gantoine gantoine merged commit 55b6df5 into master Jun 10, 2025
9 checks passed
@gantoine gantoine deleted the home-fallback-empty branch June 10, 2025 23:26
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