From 45218b66fdb7ff54d043f3d505114f6bd49671a8 Mon Sep 17 00:00:00 2001 From: Ronaldo93 <51114190+Ronaldo93@users.noreply.github.com> Date: Tue, 14 Oct 2025 05:37:57 +0000 Subject: [PATCH 01/18] feat(ui): add (non-working) trello provider button to the providers list --- .../issue-provider-setup-overview.component.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/features/issue-panel/issue-provider-setup-overview/issue-provider-setup-overview.component.html b/src/app/features/issue-panel/issue-provider-setup-overview/issue-provider-setup-overview.component.html index e2dae3a9f..d30a6cf28 100644 --- a/src/app/features/issue-panel/issue-provider-setup-overview/issue-provider-setup-overview.component.html +++ b/src/app/features/issue-panel/issue-provider-setup-overview/issue-provider-setup-overview.component.html @@ -33,6 +33,14 @@ Jira + - @let isLoading = isLoading$ | async; @if (isLoading) { No boards found (yet)... } @@ -191,4 +203,20 @@ export class TrelloAdditionalCfgComponent implements OnInit, OnDestroy { this.modelChange.emit(updated); } } + + reloadBoards(): void { + if (!this._cfg || !this._cfg.apiKey || !this._cfg.token) { + this._snackService.open({ + type: 'ERROR', + msg: 'Enter API key and token first.', + isSkipTranslate: true, + }); + return; + } + + this.isCredentialsComplete = true; + this.isLoading$.next(true); + this._credentialsChanged$.next({ ...this._cfg }); + this._cdr.markForCheck(); + } } diff --git a/src/app/features/issue/providers/trello/trello.const.ts b/src/app/features/issue/providers/trello/trello.const.ts index 2b0195887..a7cdba15b 100644 --- a/src/app/features/issue/providers/trello/trello.const.ts +++ b/src/app/features/issue/providers/trello/trello.const.ts @@ -38,6 +38,13 @@ export const TRELLO_CONFIG_FORM: LimitedFormlyFieldConfig[] type: 'password', required: true, }, + validators: { + token: { + expression: (c: { value: string | undefined }) => + !c.value || c.value.length >= 32, + message: 'Trello token is typically 32+ characters', + }, + }, }, // search boards { @@ -63,7 +70,7 @@ export const TRELLO_CONFIG_FORM_SECTION: ConfigFormSection }, { h: 'Selecting Your Board', - p: 'After entering your API key and token, you will be able to select the Trello board you want to work with. Only cards from the selected board will be accessible in Super Productivity.', + p: 'After entering your API key and token, click "Load Trello Boards" and you will be able to select the Trello board you want to work with. Only cards from the selected board will be accessible in Super Productivity.', }, { h: 'Features', From 7f6d736797b752e35e99b3c0892d74e631d8bdfd Mon Sep 17 00:00:00 2001 From: Ronaldo93 <51114190+Ronaldo93@users.noreply.github.com> Date: Fri, 21 Nov 2025 16:57:33 +0000 Subject: [PATCH 17/18] fix: failed test * feat: add icon in providers list --- .../issue-provider-setup-overview.component.html | 3 +-- .../issue/providers/trello/trello-api.service.ts | 9 ++++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/app/features/issue-panel/issue-provider-setup-overview/issue-provider-setup-overview.component.html b/src/app/features/issue-panel/issue-provider-setup-overview/issue-provider-setup-overview.component.html index d30a6cf28..7087603e2 100644 --- a/src/app/features/issue-panel/issue-provider-setup-overview/issue-provider-setup-overview.component.html +++ b/src/app/features/issue-panel/issue-provider-setup-overview/issue-provider-setup-overview.component.html @@ -37,8 +37,7 @@ mat-raised-button (click)="openSetupDialog('TRELLO')" > - - + Trello