You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2025/10/21 10:13:57 UTC

(answer) branch test updated (4fa1d0f4 -> 52e1b8bd)

This is an automated email from the ASF dual-hosted git repository.

shuai pushed a change to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git


    from 4fa1d0f4 fix: Fix the layout confusion caused by too long code #1404
     add fbd5a55c fix: failed to build plugins in windows
     add 81837c9f update new question message tag
     add 7a8afbb3 add new question notification trigger user
     add bec3e355 feat: Add user comment moderation
     add f93ab411 fix(i18n): sync username character
     add aa75f445 feat(ui):hide related questions card when there is no content
     add dc47e1a5 fix(ui): change background color for code block to (--an-pre)
     add a63fe5b2 feat(internal,ui): add minimum tags property
     add 3ae38a14 feat(UI): Add error for minimum_tag count and translation for Min tag form input
     add c78cadb1 add migration for min_tags
     add a6789460 fix(ui): Adjust tag input label for quantity
     add 9b65fed9 refactor(tags): remove redundant param from GetMinimumTags and apply minimum tag check in ObjectChangeTag
     add 403dec5e feat(internal,ui): add minimum tags error and label while editing
     new 433b8d5d fix: i18n parameter passing optimization
     new 52e1b8bd fix: merge dev

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 cmd/wire_gen.go                                    |   6 +-
 i18n/af_ZA.yaml                                    |   2 +-
 i18n/ar_SA.yaml                                    |   2 +-
 i18n/az_AZ.yaml                                    |   2 +-
 i18n/bal_BA.yaml                                   |   2 +-
 i18n/ban_ID.yaml                                   |   2 +-
 i18n/bn_BD.yaml                                    |   2 +-
 i18n/bs_BA.yaml                                    |   2 +-
 i18n/ca_ES.yaml                                    |   2 +-
 i18n/cs_CZ.yaml                                    |   2 +-
 i18n/cy_GB.yaml                                    |   2 +-
 i18n/da_DK.yaml                                    |   2 +-
 i18n/de_DE.yaml                                    |   2 +-
 i18n/el_GR.yaml                                    |   2 +-
 i18n/en_US.yaml                                    |   9 +-
 i18n/es_ES.yaml                                    |   2 +-
 i18n/fa_IR.yaml                                    |   2 +-
 i18n/fi_FI.yaml                                    |   2 +-
 i18n/fr_FR.yaml                                    |   2 +-
 i18n/he_IL.yaml                                    |   2 +-
 i18n/hi_IN.yaml                                    |   2 +-
 i18n/hu_HU.yaml                                    |   2 +-
 i18n/hy_AM.yaml                                    |   2 +-
 i18n/id_ID.yaml                                    |   2 +-
 i18n/it_IT.yaml                                    |   2 +-
 i18n/ja_JP.yaml                                    |   4 +-
 i18n/ko_KR.yaml                                    |   2 +-
 i18n/ml_IN.yaml                                    |   2 +-
 i18n/nl_NL.yaml                                    |   2 +-
 i18n/no_NO.yaml                                    |   2 +-
 i18n/pl_PL.yaml                                    |   2 +-
 i18n/pt_BR.yaml                                    |   2 +-
 i18n/pt_PT.yaml                                    |   2 +-
 i18n/ro_RO.yaml                                    |   2 +-
 i18n/ru_RU.yaml                                    |   2 +-
 i18n/sq_AL.yaml                                    |   2 +-
 i18n/sr_SP.yaml                                    |   2 +-
 i18n/sv_SE.yaml                                    |   2 +-
 i18n/te_IN.yaml                                    |   2 +-
 i18n/vi_VN.yaml                                    |   2 +-
 i18n/zh_CN.yaml                                    |   2 +-
 i18n/zh_TW.yaml                                    |   2 +-
 internal/base/reason/reason.go                     |   1 +
 internal/controller/comment_controller.go          |   6 +-
 internal/entity/comment_entity.go                  |   5 +
 internal/migrations/init.go                        |   1 +
 internal/migrations/migrations.go                  |   1 +
 internal/migrations/{v24.go => v28.go}             |  15 +-
 internal/repo/comment/comment_repo.go              |  11 +
 internal/schema/comment_schema.go                  |   3 +
 internal/schema/question_schema.go                 |   6 +-
 internal/schema/siteinfo_schema.go                 |   1 +
 internal/service/comment/comment_service.go        |  20 +-
 internal/service/comment_common/comment_service.go |   1 +
 internal/service/content/question_service.go       |  47 ++--
 internal/service/content/revision_service.go       |   6 +-
 .../notification/new_question_notification.go      |  12 +
 internal/service/review/review_service.go          | 270 +++++++++++++++++++++
 internal/service/tag_common/tag_common.go          |  36 ++-
 pkg/converter/user.go                              |  19 +-
 ui/src/common/color.scss                           |   2 +-
 ui/src/common/interface.ts                         |   1 +
 ui/src/components/TagSelector/index.tsx            |  22 +-
 ui/src/index.scss                                  |   2 +-
 ui/src/pages/Admin/Write/index.tsx                 |  29 ++-
 .../Detail/components/RelatedQuestions/index.tsx   |   4 +
 ui/src/stores/writeSetting.ts                      |   1 +
 67 files changed, 529 insertions(+), 90 deletions(-)
 copy internal/migrations/{v24.go => v28.go} (84%)


(answer) 02/02: fix: merge dev

Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git

commit 52e1b8bd86134698fe57032844c4339877beff52
Merge: 4fa1d0f4 433b8d5d
Author: shuai <li...@sifou.com>
AuthorDate: Tue Oct 21 18:13:37 2025 +0800

    fix: merge dev

 cmd/wire_gen.go                                    |   6 +-
 i18n/af_ZA.yaml                                    |   2 +-
 i18n/ar_SA.yaml                                    |   2 +-
 i18n/az_AZ.yaml                                    |   2 +-
 i18n/bal_BA.yaml                                   |   2 +-
 i18n/ban_ID.yaml                                   |   2 +-
 i18n/bn_BD.yaml                                    |   2 +-
 i18n/bs_BA.yaml                                    |   2 +-
 i18n/ca_ES.yaml                                    |   2 +-
 i18n/cs_CZ.yaml                                    |   2 +-
 i18n/cy_GB.yaml                                    |   2 +-
 i18n/da_DK.yaml                                    |   2 +-
 i18n/de_DE.yaml                                    |   2 +-
 i18n/el_GR.yaml                                    |   2 +-
 i18n/en_US.yaml                                    |   9 +-
 i18n/es_ES.yaml                                    |   2 +-
 i18n/fa_IR.yaml                                    |   2 +-
 i18n/fi_FI.yaml                                    |   2 +-
 i18n/fr_FR.yaml                                    |   2 +-
 i18n/he_IL.yaml                                    |   2 +-
 i18n/hi_IN.yaml                                    |   2 +-
 i18n/hu_HU.yaml                                    |   2 +-
 i18n/hy_AM.yaml                                    |   2 +-
 i18n/id_ID.yaml                                    |   2 +-
 i18n/it_IT.yaml                                    |   2 +-
 i18n/ja_JP.yaml                                    |   4 +-
 i18n/ko_KR.yaml                                    |   2 +-
 i18n/ml_IN.yaml                                    |   2 +-
 i18n/nl_NL.yaml                                    |   2 +-
 i18n/no_NO.yaml                                    |   2 +-
 i18n/pl_PL.yaml                                    |   2 +-
 i18n/pt_BR.yaml                                    |   2 +-
 i18n/pt_PT.yaml                                    |   2 +-
 i18n/ro_RO.yaml                                    |   2 +-
 i18n/ru_RU.yaml                                    |   2 +-
 i18n/sq_AL.yaml                                    |   2 +-
 i18n/sr_SP.yaml                                    |   2 +-
 i18n/sv_SE.yaml                                    |   2 +-
 i18n/te_IN.yaml                                    |   2 +-
 i18n/vi_VN.yaml                                    |   2 +-
 i18n/zh_CN.yaml                                    |   2 +-
 i18n/zh_TW.yaml                                    |   2 +-
 internal/base/reason/reason.go                     |   1 +
 internal/controller/comment_controller.go          |   6 +-
 internal/entity/comment_entity.go                  |   5 +
 internal/migrations/init.go                        |   1 +
 internal/migrations/migrations.go                  |   1 +
 internal/migrations/v28.go                         |  67 +++++
 internal/repo/comment/comment_repo.go              |  11 +
 internal/schema/comment_schema.go                  |   3 +
 internal/schema/question_schema.go                 |   6 +-
 internal/schema/siteinfo_schema.go                 |   1 +
 internal/service/comment/comment_service.go        |  20 +-
 internal/service/comment_common/comment_service.go |   1 +
 internal/service/content/question_service.go       |  47 ++--
 internal/service/content/revision_service.go       |   6 +-
 .../notification/new_question_notification.go      |  12 +
 internal/service/review/review_service.go          | 270 +++++++++++++++++++++
 internal/service/tag_common/tag_common.go          |  36 ++-
 pkg/converter/user.go                              |  19 +-
 ui/src/common/color.scss                           |   2 +-
 ui/src/common/interface.ts                         |   1 +
 ui/src/components/TagSelector/index.tsx            |  22 +-
 ui/src/index.scss                                  |   2 +-
 ui/src/pages/Admin/Write/index.tsx                 |  29 ++-
 .../Detail/components/RelatedQuestions/index.tsx   |   4 +
 ui/src/stores/writeSetting.ts                      |   1 +
 67 files changed, 591 insertions(+), 80 deletions(-)

diff --cc ui/src/common/interface.ts
index 114b0e4c,bade01ea..0b340e84
--- a/ui/src/common/interface.ts
+++ b/ui/src/common/interface.ts
@@@ -439,6 -439,7 +439,7 @@@ export interface AdminSettingsLegal 
  
  export interface AdminSettingsWrite {
    restrict_answer?: boolean;
 -  min_tags?: number,
++  min_tags?: number;
    recommend_tags?: Tag[];
    required_tag?: boolean;
    reserved_tags?: Tag[];


(answer) 01/02: fix: i18n parameter passing optimization

Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git

commit 433b8d5d1b808fe0b2d6530ceaf2b6ba29126773
Author: shuai <li...@sifou.com>
AuthorDate: Tue Oct 21 10:09:37 2025 +0800

    fix: i18n parameter passing optimization
---
 ui/src/components/TagSelector/index.tsx | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/ui/src/components/TagSelector/index.tsx b/ui/src/components/TagSelector/index.tsx
index 94e95325..c9eb3c97 100644
--- a/ui/src/components/TagSelector/index.tsx
+++ b/ui/src/components/TagSelector/index.tsx
@@ -297,15 +297,16 @@ const TagSelector: FC<IProps> = ({
 
   const handleTagHint = () => {
     if (!writeInfo || writeInfo.min_tags === undefined || !writeInfo.min_tags) {
-      return t(`hint_zero_tags`);
+      return t('hint_zero_tags');
     }
 
     if (writeInfo.min_tags === 1) {
-      return t(`hint`);
+      return t('hint');
     }
 
-    let str: string = t(`hint_more_than_one_tag`);
-    str = str.replace(`{{ min_tags_number }}`, writeInfo.min_tags.toString());
+    const str = t('hint_more_than_one_tag', {
+      min_content_length: writeInfo.min_tags,
+    });
     return str;
   };