Skip to content

Feat 44 template dashboard#110

Open
mohammadsherif0 wants to merge 160 commits intodevfrom
feat-44-template_dashboard
Open

Feat 44 template dashboard#110
mohammadsherif0 wants to merge 160 commits intodevfrom
feat-44-template_dashboard

Conversation

@mohammadsherif0
Copy link
Collaborator

No description provided.

@mohammadsherif0 mohammadsherif0 self-assigned this Mar 8, 2026
Copy link
Collaborator

@dennis-zyska dennis-zyska left a comment

Choose a reason for hiding this comment

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

I reviewed the first half of the code, but I have an appointment now, so I will submit the review and come back to it later.

* @param {Object} options.transaction
* @returns {Promise<Array<string>>}
*/
async getLanguages(data, options) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

if we retrieve all templates in the frontend, aren't there also other languages retrieved or only the language that is currently selected? because otherwise we already have the languages in the frontend right?

Copy link
Collaborator Author

@mohammadsherif0 mohammadsherif0 Mar 17, 2026

Choose a reason for hiding this comment

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

When we load templates in the frontend, we only retrieve the template rows, not their template_content rows. The per-language contents lives in the template_content table and are fetched separately, so we do not already have all languages in the frontend.

Copy link
Collaborator

Choose a reason for hiding this comment

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

What I was a bit confused, you basically created another Editor here, but then integraded it in the original Editor? I think there are two ways, either you make the selection one higher level in the component Template.vue where you used the Editor or even better you integrate it well in the existing editor to reduce duplicate code. I'm find with the first solution for now to get it merged, but please have a look in the Editor.vue component and check what changes are really necessary or which can be moved to Template.vue

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