From 8c5eb3099090ce22d7680af6c62c407d52ae9cc5 Mon Sep 17 00:00:00 2001 From: dgurjar Date: Fri, 31 May 2024 11:56:28 +0530 Subject: [PATCH] [RTL] Add auto direction prop on text-area component --- .github/workflows/ai-pr-reviewer.yml | 30 +++++++++++++ .../models/aemform/package-info.java | 2 +- .../textinput/text-area-dir/.content.xml | 23 ++++++++++ .../samples/textinput/basic/.content.xml | 2 +- .../textinput/text-area-dir/.content.xml | 42 +++++++++++++++++++ .../textinput/v1/textinput/textinput.html | 3 +- 6 files changed, 99 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/ai-pr-reviewer.yml create mode 100755 it/content/src/main/content/jcr_root/content/dam/formsanddocuments/core-components-it/samples/textinput/text-area-dir/.content.xml create mode 100755 it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/textinput/text-area-dir/.content.xml diff --git a/.github/workflows/ai-pr-reviewer.yml b/.github/workflows/ai-pr-reviewer.yml new file mode 100644 index 0000000000..bbd077072b --- /dev/null +++ b/.github/workflows/ai-pr-reviewer.yml @@ -0,0 +1,30 @@ +name: Code Review + +permissions: + contents: read + pull-requests: write + +on: + pull_request: + pull_request_review_comment: + types: [created] + +concurrency: + group: + ${{ github.repository }}-${{ github.event.number || github.head_ref || + github.sha }}-${{ github.workflow }}-${{ github.event_name == + 'pull_request_review_comment' && 'pr_comment' || 'pr' }} + cancel-in-progress: ${{ github.event_name != 'pull_request_review_comment' }} + +jobs: + review: + runs-on: ubuntu-latest + steps: + - uses: coderabbitai/ai-pr-reviewer@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + with: + debug: false + review_simple_changes: false + review_comment_lgtm: false \ No newline at end of file diff --git a/bundles/core/src/main/java/com/adobe/cq/forms/core/components/models/aemform/package-info.java b/bundles/core/src/main/java/com/adobe/cq/forms/core/components/models/aemform/package-info.java index 5ff14cbbdc..508e781720 100644 --- a/bundles/core/src/main/java/com/adobe/cq/forms/core/components/models/aemform/package-info.java +++ b/bundles/core/src/main/java/com/adobe/cq/forms/core/components/models/aemform/package-info.java @@ -10,7 +10,7 @@ * ******************************************************************************/ -@Version("1.4.0") +@Version("1.5.0") package com.adobe.cq.forms.core.components.models.aemform; import org.osgi.annotation.versioning.Version; \ No newline at end of file diff --git a/it/content/src/main/content/jcr_root/content/dam/formsanddocuments/core-components-it/samples/textinput/text-area-dir/.content.xml b/it/content/src/main/content/jcr_root/content/dam/formsanddocuments/core-components-it/samples/textinput/text-area-dir/.content.xml new file mode 100755 index 0000000000..b67a96a38d --- /dev/null +++ b/it/content/src/main/content/jcr_root/content/dam/formsanddocuments/core-components-it/samples/textinput/text-area-dir/.content.xml @@ -0,0 +1,23 @@ + + + + + + diff --git a/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/textinput/basic/.content.xml b/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/textinput/basic/.content.xml index 547de8cef3..9ecc7536b4 100644 --- a/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/textinput/basic/.content.xml +++ b/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/textinput/basic/.content.xml @@ -215,4 +215,4 @@ - + \ No newline at end of file diff --git a/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/textinput/text-area-dir/.content.xml b/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/textinput/text-area-dir/.content.xml new file mode 100755 index 0000000000..e62fbbd5b2 --- /dev/null +++ b/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/textinput/text-area-dir/.content.xml @@ -0,0 +1,42 @@ + + + + + + + + diff --git a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/textinput/v1/textinput/textinput.html b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/textinput/v1/textinput/textinput.html index 23e41392be..ebf4835dad 100644 --- a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/textinput/v1/textinput/textinput.html +++ b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/textinput/v1/textinput/textinput.html @@ -48,7 +48,8 @@ placeholder="${text.placeHolder}" autocomplete="${text.autoComplete}" minlength="${text.minLength}" - maxlength="${text.maxLength}"> + maxlength="${text.maxLength}" + dir="auto">