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

feat: update default content #6740

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

luka-nextcloud
Copy link
Contributor

@luka-nextcloud luka-nextcloud commented Feb 11, 2025

  • Target version: main

Summary

Add new default content for deck.

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits

Signed-off-by: Luka Trovic <[email protected]>
Copy link
Contributor

🐢 Performance warning.
It looks like the query count of the integration tests increased with this PR.
Database query count is now 80536 was 71221 (+13.07%)
Please check your code again. If you added a new test this can be expected and the base value in tests/integration/base-query-count.txt can be increased.

@grnd-alt
Copy link
Member

could you add some screenshots, to check it out?

foreach ($cardsData as $cardData) {
$stackIndex = $cardData['stackIndex'];
$defaultCards[] = $this->cardService->create(
$this->l10n->t($cardData['title']),
Copy link
Member

Choose a reason for hiding this comment

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

This won't work. The translations are extracted and then put for translation based on regex matches for the t() method calls, so the strings in the json file would not be found by that.

We should rather have the card title strings defined in PHP directly using the t method calls.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can just have a method that returns a nested array for the board data. That way we can also extend it easily to allow admins providing custom json files with their own demo content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

3 participants