Skip to content

Conversation

kchobantonov
Copy link
Contributor

Fixing layouts, translations, minor fixes

@netlify
Copy link

netlify bot commented Mar 13, 2023

Deploy Preview for jsonforms-vuetify-renderers ready!

Name Link
🔨 Latest commit 63cbd3d
🔍 Latest deploy log https://app.netlify.com/sites/jsonforms-vuetify-renderers/deploys/647d877950b35e0007c76387
😎 Deploy Preview https://deploy-preview-93--jsonforms-vuetify-renderers.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@kchobantonov
Copy link
Contributor Author

@sdirix @lucas-koehler please review

@kchobantonov
Copy link
Contributor Author

@sdirix will you have some time next week to review this and if good to have a release ? Also did you decide if we want to include the FileRenderer and perhaps close the PR for the TemplateRenderer if indeed you do not want that added to this project like the webcomponent.

@lucas-koehler
Copy link
Contributor

Hello @kchobantonov , sorry for the late reply and thanks again for the contributions. We are going to review this PR and create a release in the next two weeks. We decided to not introduce the template renderer. I'll close that PR.

Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

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

Looks good in general! I would like to suggest to refactor this PR next week as suggested when the next prerelease of JSON Forms is published.

@@ -110,7 +114,7 @@
<v-icon class="notranslate">mdi-arrow-up</v-icon>
</v-btn>
</template>
Move Up
{{ t('array.btn.moveUp.tooltip', 'Move Up') }}
Copy link
Member

Choose a reason for hiding this comment

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

We just merged a PR on the main repository which provides these translations: eclipsesource/jsonforms#2129
We'll release on the main repository next week, then we can update this PR to consume these translations.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sdirix I have changed most of the translations but for the up/down tooltip we are missing the properties - we have only the up/down for the aria label - or should I use that for now ?

Copy link
Member

Choose a reason for hiding this comment

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

good point. let's keep it like this for now

@@ -42,18 +42,28 @@

<v-dialog v-model="dialog" persistent max-width="600" @keydown.esc="cancel">
<v-card>
<v-card-title class="text-h5"> Clear form? </v-card-title>
<v-card-title class="text-h5">
{{ t('form.clear.title', 'Clear form?') }}
Copy link
Member

Choose a reason for hiding this comment

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

This should ideally then work in a similar way like the mentioned PR above.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I couldn't find the properties for that in the jsonforms core yet or maybe I'm not looking at the right place - can you point me to the locations in the jsonforms core where this is defined the same way how we have the arrayTranslations ?

Copy link
Member

Choose a reason for hiding this comment

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

The idea would be to handle this via the binding and pass down the translated labels instead of calling the translator within the renderer. But for now I'm fine with this.

@kchobantonov
Copy link
Contributor Author

@sdirix I have updated this branch to use jsonforms 3.1.0-alpha.3 and I added the suggested changes for the translations except for the tooltips for

array.btn.moveUp.tooltip
array.btn.moveDown.tooltip

I couldn't find any any translation properties for the up/down tooltip - only for the aria label

@kchobantonov
Copy link
Contributor Author

@lucas-koehler @sdirix can you please review - I have included the changes from #92 as well as the suggestions for the translation except for few of those that I couldn't find. Also any plans for a release for this project where this PR is included ?

Thanks

@kchobantonov kchobantonov requested a review from sdirix May 22, 2023 02:01
Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

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

Looks good on first glance and couldn't see any regression. We can probably merge and release on Friday or Monday 👍

@sdirix sdirix merged commit c619740 into eclipsesource:main Jun 5, 2023
@sdirix
Copy link
Member

sdirix commented Jun 5, 2023

Released as part of 3.1.0-alpha.3

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