diff --git a/docs/de/develop/api-reference.md b/docs/de/develop/api-reference.md
index 6aa96436d5..23796b7e17 100644
--- a/docs/de/develop/api-reference.md
+++ b/docs/de/develop/api-reference.md
@@ -1219,7 +1219,7 @@ curl -sS --compressed "https://your-host.example.com/api/v1/projects/
# → 200 { "task": { "id": "", "title": "...", "status": "in_progress", "externalId": "case-991", "labels": [], "dueDate": 1790719200000, "repeat": null, ... } }
```
-Eine gelesene Aufgabe enthält auch ihre Termine; über diese API lassen sie sich nur lesen. `startDate` und `dueDate` sind Unixzeit in Millisekunden, jeweils die Mitternacht, mit der der Kalendertag in der Zeitzone der Person beginnt, die ihn gesetzt hat, und erscheinen nur, wenn sie gesetzt sind. `repeat` ist immer vorhanden: `null`, wenn sich die Aufgabe nicht wiederholt, sonst ein `TaskRepeat` wie `{ "frequency": "weekly", "interval": 2, "weekdays": [2, 4], "timezone": "Europe/Zurich", "createOn": "dueDate" }`. `frequency` ist `daily`, `weekly`, `monthly` oder `yearly`, und `interval` reicht von 1 bis 99; `weekly` nennt `weekdays` von 0 (Sonntag) bis 6 (Samstag), `monthly` einen `monthDay` und `yearly` einen `month` und einen `monthDay`. `createOn` erscheint nur, und zwar als `"dueDate"`, wenn die nächste Aufgabe auch zu Beginn des Fälligkeitstags entsteht; fehlt es, entsteht sie, wenn diese Aufgabe erledigt oder abgebrochen wird. Wird eine wiederkehrende Aufgabe abgeschlossen, in der App oder durch eine hier freigegebene Prüfung, oder beginnt unter `createOn: "dueDate"` ihr Fälligkeitstag, entsteht ihre nächste Aufgabe in `todo`, und `repeatNextTaskId` nennt sie von da an. Wird diese nächste Aufgabe gelöscht, fällt `repeatNextTaskId` weg, doch diese Aufgabe erstellt trotzdem keine weitere (Vertrag 3.3.0).
+Eine gelesene Aufgabe enthält auch ihre Termine; über diese API lassen sie sich nur lesen. `startDate` und `dueDate` sind Unixzeit in Millisekunden und erscheinen nur, wenn sie gesetzt sind. Wählst du diese Termine in der App, speichert sie die Mitternacht zu Beginn des gewählten Kalendertags in der Zeitzone deines Browsers. `repeat` ist immer vorhanden: `null`, wenn sich die Aufgabe nicht wiederholt, sonst ein `TaskRepeat` wie `{ "frequency": "weekly", "interval": 2, "weekdays": [2, 4], "timezone": "Europe/Zurich", "createOn": "dueDate" }`. `frequency` ist `daily`, `weekly`, `monthly` oder `yearly`, und `interval` reicht von 1 bis 99; `weekly` nennt `weekdays` von 0 (Sonntag) bis 6 (Samstag), `monthly` einen `monthDay` und `yearly` einen `month` und einen `monthDay`. `createOn` erscheint nur, und zwar als `"dueDate"`, wenn die nächste Aufgabe auch zu Beginn des Fälligkeitstags entsteht; fehlt es, entsteht sie, wenn diese Aufgabe erledigt oder abgebrochen wird. Wird eine wiederkehrende Aufgabe abgeschlossen, in der App oder durch eine hier freigegebene Prüfung, oder beginnt unter `createOn: "dueDate"` ihr Fälligkeitstag, entsteht ihre nächste Aufgabe in `todo`, und `repeatNextTaskId` nennt sie von da an. Wird diese nächste Aufgabe gelöscht, fällt `repeatNextTaskId` weg, doch diese Aufgabe erstellt trotzdem keine weitere (Vertrag 3.3.0).
### Kommentare und Arbeitsergebnisse lesen
diff --git a/docs/de/platform/admin/connectors.md b/docs/de/platform/admin/connectors.md
index 121c01c948..5eb598c9e6 100644
--- a/docs/de/platform/admin/connectors.md
+++ b/docs/de/platform/admin/connectors.md
@@ -8,10 +8,12 @@ Hinterlege Connector-Zugangsdaten, damit Tale Dienste wie Postfächer, Dateiabla
## Ein Konto verbinden
1. Wähle **Zugangsdaten hinzufügen** und den Connector. Bereits konfigurierte Connectors stehen zuerst und können weitere Zugangsdaten erhalten.
-2. Prüfe das Feld **Name**. Es enthält bereits den Namen des Connectors. Heißen andere Zugangsdaten dieses Connectors schon so, hängt Tale eine Zahl an: `GitHub`, dann `GitHub 2`. Ein Name wie `Support-Postfach` oder `EU-Shop` ist beim Erstellen von Automatisierungen leichter zu erkennen. OAuth-Verbindungen verwenden dieses Feld nicht.
-3. Fülle die angebotene Authentifizierungsmethode aus. Bei OAuth wählst du **Verbinden** und erteilst den Zugriff beim Anbieter.
+2. Prüfe das Feld **Name**. Es enthält bereits den Namen des Connectors. Heißen andere Zugangsdaten dieses Connectors schon so, hängt Tale eine Zahl an: `GitHub`, dann `GitHub 2`. Ein Name wie `Support-Postfach` oder `EU-Shop` ist beim Erstellen von Automatisierungen leichter zu erkennen. Eine OAuth-Verbindung hat kein Namensfeld. Tale benennt sie nach derselben Regel, sobald du den Zugriff erteilt hast (ein zweiter Slack-Workspace erhält den Namen des Workspace), und mit **Zugangsdaten bearbeiten** kannst du sie umbenennen.
+3. Fülle die angebotene Authentifizierungsmethode aus. Bei OAuth wählst du **Verbinden** und erteilst den Zugriff beim Anbieter. Jedes **Verbinden** legt neue Zugangsdaten für das freigegebene Konto an und ersetzt nie bestehende. Melde dich beim Anbieter deshalb mit dem Konto an, das du hinzufügen willst.
4. Schließe das Formular ab und prüfe den neuen Eintrag mit Connector, Konto oder Instanz und Status.
+Slack verbindet pro Workspace genau einen Satz Zugangsdaten. Gibst du einen bereits verbundenen Workspace erneut frei, erneuert Tale dessen Zugangsdaten, statt weitere anzulegen.
+
Der Connector bestimmt die Felder. Verwende die tatsächlichen Zugangsdaten des Dienstkontos, keinen Tale-API-Schlüssel.
| Methode | Benötigte Angaben |
@@ -55,7 +57,9 @@ Bei OneDrive/SharePoint kann **Entra-ID-App aus SSO übernehmen** eine bestehend
## Eine Verbindung reparieren
-**Neu verbinden nötig** bedeutet, dass die gespeicherte OAuth-Berechtigung nicht mehr erneuert werden kann. Wähle **Neu verbinden** und gib das Konto erneut frei. Name und Verweise bleiben erhalten. Bewusst deaktivierte Zugangsdaten brauchen stattdessen **Aktivieren**.
+**Neu verbinden nötig** bedeutet, dass die gespeicherte OAuth-Berechtigung nicht mehr erneuert werden kann. Wähle im Menü dieser Zeile **Neu verbinden** und gib dasselbe Konto erneut frei. Tale erneuert genau diese Zugangsdaten: Name, Standard und Verweise bleiben erhalten, alle anderen Zugangsdaten bleiben unverändert. Bewusst deaktivierte Zugangsdaten aktiviert **Neu verbinden** nicht wieder; dafür gibt es **Aktivieren**.
+
+Werden die Zugangsdaten entfernt, bevor die Freigabe abgeschlossen ist, oder erlaubt dir deine Rolle das Verwalten von Zugangsdaten nicht mehr, speichert Tale nichts und nennt den Grund. Gib bei Slack den Workspace frei, den die Zugangsdaten bereits verbinden. Einen anderen Workspace lehnt Tale ab; verbinde ihn stattdessen über **Zugangsdaten hinzufügen**.
Kann die Verbindung nicht starten, prüfe die OAuth-App. Lehnt der Anbieter die Rückkehr zu Tale ab, vergleiche die registrierte Weiterleitungsadresse mit der exakt in Tale gezeigten Adresse. Scheitert nach der Verbindung eine Aktion, prüfe die Kontorechte und den benötigten Berechtigungsumfang.
diff --git a/docs/de/platform/connectors/overview.md b/docs/de/platform/connectors/overview.md
index add4ddc16f..4c38cac39c 100644
--- a/docs/de/platform/connectors/overview.md
+++ b/docs/de/platform/connectors/overview.md
@@ -41,7 +41,7 @@ Wähle **Zugangsdaten hinzufügen**, suche den Dienst und öffne seine Karte. Be
-Das Feld **Name** enthält zunächst den Namen des Connectors. Fügst du für denselben Dienst mehrere Konten hinzu, ersetze ihn durch einen zweckbezogenen Namen, etwa `Support-Postfach` oder `Release-Bot`. Verwende Zugangsdaten des externen Diensts, keinen Tale-API-Schlüssel. Schließe bei OAuth die Zustimmung beim Provider ab und prüfe das zurückgemeldete Konto. Kann der Vorgang nicht starten, muss gegebenenfalls ein Administrator zuerst die OAuth-App einrichten.
+Das Feld **Name** enthält zunächst den Namen des Connectors. Fügst du für denselben Dienst mehrere Konten hinzu, ersetze ihn durch einen zweckbezogenen Namen, etwa `Support-Postfach` oder `Release-Bot`. Verwende Zugangsdaten des externen Diensts, keinen Tale-API-Schlüssel. Melde dich bei OAuth mit dem Konto beim Provider an, das du hinzufügen willst, und schließe die Zustimmung ab. Jede Verbindung legt neue Zugangsdaten an, benannt nach dem Connector und durchnummeriert (`Gmail`, dann `Gmail 2`); Slack führt pro Workspace genau einen Satz. Benenne neue Zugangsdaten um, damit die Konten unterscheidbar bleiben. Kann der Vorgang nicht starten, muss gegebenenfalls ein Administrator zuerst die OAuth-App einrichten.
Confluence und Shopify brauchen pro Eintrag eine **Instanz-URL**. Verwende den Ursprung der Atlassian-Site oder die `myshopify.com`-Adresse des Shops, keine beliebige Unterseite oder Kundendomain. [Connector-Zugangsdaten](/de/platform/admin/connectors) erklärt Felder, erneute Autorisierung und Schlüsselaustausch.
diff --git a/docs/de/platform/projects/tasks.md b/docs/de/platform/projects/tasks.md
index 389bd965da..baf2f0048b 100644
--- a/docs/de/platform/projects/tasks.md
+++ b/docs/de/platform/projects/tasks.md
@@ -77,10 +77,16 @@ Klicke in den Details der Aufgabe oder im Dialog **Aufgabe erstellen** auf **Wie
- **Jeden Werktag**, von Montag bis Freitag
- **Wöchentlich am …**, **Monatlich am …** oder **Jährlich am …**: Sie richten sich nach dem Tag des Fälligkeitsdatums. Hat die Aufgabe keines, zählt ihr Startdatum, wenn es noch bevorsteht, sonst der heutige Tag.
+
+

+
+
**Nächste Fälligkeiten** zeigt, wann die nächsten drei Aufgaben fällig werden. Hat die Aufgabe noch kein Fälligkeitsdatum, bekommt sie eines, sobald du eine Wiederholung wählst: den ersten passenden Tag ab heute oder ab ihrem Startdatum, wenn dieses später liegt. Eine monatliche Wiederholung am 31. fällt in kürzeren Monaten auf den letzten Tag des Monats. Entfernst du das Fälligkeitsdatum einer Aufgabe, die sich schon wiederholt, bleibt die Wiederholung bestehen: Die nächste Aufgabe entsteht dann, wenn du diese abschließt, fällig am ersten passenden Tag danach, und **Wiederholen** weist beim Öffnen darauf hin. Jede Änderung an der Wiederholung gibt der Aufgabe wieder ein Fälligkeitsdatum.
+Liegen die Termine außerhalb des unterstützten Datumsbereichs, weist die Vorschau darauf hin. Wähle ein früheres Start- oder Fälligkeitsdatum, bevor du die Wiederholung festlegst.
+
### Eine eigene Wiederholung festlegen
Für jeden anderen Rhythmus wählst du in derselben Liste **Benutzerdefiniert**. Wähle **Tag**, **Woche**, **Monat** oder **Jahr**, lege fest, wie oft die Aufgabe wiederkommt, und wähle die Wochentage, den Tag im Monat oder das Datum, etwa alle 2 Wochen am Dienstag und Donnerstag. **Nächste Fälligkeiten** passt sich jeder Änderung an. Mit **Speichern** übernimmst du die Wiederholung. **Abbrechen**, **Escape** oder ein Klick außerhalb der Liste verwerfen deine Änderungen; der Pfeil zurück führt zur Liste und behält sie bei.
@@ -89,7 +95,7 @@ Für jeden anderen Rhythmus wählst du in derselben Liste **Benutzerdefiniert**.
Normalerweise entsteht die nächste Aufgabe, sobald du diese auf **Erledigt** oder **Abgebrochen** setzt. Soll die Arbeit pünktlich wiederkommen, auch wenn die letzte Runde noch nicht fertig ist, öffne **Wiederholen** bei einer wiederkehrenden Aufgabe, wähle unter den Terminen **Nächste Aufgabe am Fälligkeitstag erstellen** und klicke auf **Speichern**. Die nächste Aufgabe entsteht dann zu Beginn des Fälligkeitstags, um Mitternacht in der Zeitzone der Person, die die Wiederholung eingerichtet hat, auch wenn diese Aufgabe noch offen ist. Ist die Aufgabe schon fällig, erscheint die nächste innerhalb weniger Minuten, und schließt du die Aufgabe vor ihrem Fälligkeitstag ab, entsteht die nächste sofort. In der Aktivität der Aufgabe steht **System** als Urheber. **Wiederholen** zeigt dann ein Kalendersymbol, und der Tooltip des Wiederholungssymbols auf dem **Board** und in der **Liste** endet mit **nächste Aufgabe am Fälligkeitstag**.
-Offene Aufgaben halten eine solche Serie nicht mehr auf, deshalb können sie sich stapeln, wenn niemand sie abschließt. Eine Serie hat nie mehr als 10 offene Aufgaben: Die nächste wartet, bis jemand eine davon abschließt.
+Offene Aufgaben halten eine solche Serie nicht mehr auf, deshalb können sie sich stapeln, wenn niemand sie abschließt. Eine Serie hat nie mehr als 10 offene Aufgaben: Die nächste wartet, bis jemand eine davon abschließt. Änderst du die Wiederholung oder wählst erst **Nie** und dann wieder eine Wiederholung, zählen die noch offenen Aufgaben der Serie weiterhin mit.
### Was die nächste Aufgabe mitbringt
@@ -103,7 +109,7 @@ Unter **Wiederholen** verweist die vorherige Aufgabe auf die nächste, etwa mit
Schließt du eine wiederkehrende Aufgabe ab, nennt die Meldung **Nächste Aufgabe erstellt** das Fälligkeitsdatum der nächsten und bietet **Wiederholung beenden** an. Dieselbe Schaltfläche bleibt bei der Aufgabe, die die nächste erstellt hat, unter **Wiederholen** neben **Nächste Aufgabe**, solange sich die nächste Aufgabe noch wiederholt. Hat noch niemand die nächste Aufgabe angefasst (sie steht unverändert in **Zu erledigen**, ohne Kommentare und ohne Agentenlauf), wird sie samt ihren Teilaufgaben entfernt. Andernfalls bleibt sie bestehen und wiederholt sich nicht mehr. In beiden Fällen endet die Serie: Bei der Aufgabe, von der aus du sie beendet hast, zeigt **Wiederholen** dann **Nie**, und der Tooltip lautet **Die Serie wurde beendet.** Hast du die Schaltfläche unter **Wiederholen** verwendet, springt der Fokus danach auf **Wiederholen**. Du kannst auch bei der neuesten Aufgabe der Serie **Wiederholen** auf **Nie** stellen.
-Löschst du die neueste Aufgabe einer Serie, endet die Serie. Die Aufgabe davor erstellt keine weitere, auch wenn du sie wieder öffnest und erneut abschließt: Sie zeigt kein Wiederholungssymbol, und ihr Feld **Wiederholen** bleibt gesperrt, mit dem Tooltip **Die nächste Aufgabe wurde gelöscht, deshalb ist die Serie zu Ende.** Löschst du eine frühere Aufgabe, geht die Serie bei der neuesten weiter.
+Löschst du die neueste Aufgabe einer Serie, endet die Serie. Die Aufgabe davor erstellt keine weitere, auch wenn du sie wieder öffnest und erneut abschließt: Sie zeigt kein Wiederholungssymbol, und ihr Feld **Wiederholen** bleibt gesperrt, mit dem Tooltip **Die nächste Aufgabe wurde gelöscht. Diese Aufgabe kann sich nicht noch einmal wiederholen.** Löschst du eine frühere Aufgabe, geht die Serie bei der neuesten weiter.
### Wenn sich die Wiederholung nicht ändern lässt
diff --git a/docs/en/develop/api-reference.md b/docs/en/develop/api-reference.md
index a92f9aeb19..8f29abad50 100644
--- a/docs/en/develop/api-reference.md
+++ b/docs/en/develop/api-reference.md
@@ -1158,7 +1158,7 @@ curl -sS --compressed "https://your-host.example.com/api/v1/projects/
# → 200 { "task": { "id": "", "title": "...", "status": "in_progress", "externalId": "case-991", "labels": [], "dueDate": 1790719200000, "repeat": null, ... } }
```
-A task read also carries its schedule, which is read-only on this API. `startDate` and `dueDate` are epoch milliseconds, each the midnight that starts the calendar day in the time zone of whoever set it, and appear only when set. `repeat` is always present: `null` when the task doesn't repeat, otherwise a `TaskRepeat` such as `{ "frequency": "weekly", "interval": 2, "weekdays": [2, 4], "timezone": "Europe/Zurich", "createOn": "dueDate" }`. `frequency` is `daily`, `weekly`, `monthly` or `yearly`, and `interval` runs from 1 to 99; `weekly` lists `weekdays` from 0 (Sunday) to 6 (Saturday), `monthly` takes a `monthDay`, and `yearly` a `month` and a `monthDay`. `createOn` appears, as `"dueDate"`, only when the next task is also created at the start of the due date; without it, the next task comes when this one is done or cancelled. When a repeating task closes, in the app or through an approved review here, or its due date begins under `createOn: "dueDate"`, its next task is created in `todo`, and `repeatNextTaskId` names it from then on. Deleting that next task removes `repeatNextTaskId`, but this task still never creates another one (contract 3.3.0).
+A task read also carries its schedule, which is read-only on this API. `startDate` and `dueDate` are epoch milliseconds and appear only when set. When you choose these dates in the app, it writes the midnight that starts the chosen calendar day in your browser’s time zone. `repeat` is always present: `null` when the task doesn't repeat, otherwise a `TaskRepeat` such as `{ "frequency": "weekly", "interval": 2, "weekdays": [2, 4], "timezone": "Europe/Zurich", "createOn": "dueDate" }`. `frequency` is `daily`, `weekly`, `monthly` or `yearly`, and `interval` runs from 1 to 99; `weekly` lists `weekdays` from 0 (Sunday) to 6 (Saturday), `monthly` takes a `monthDay`, and `yearly` a `month` and a `monthDay`. `createOn` appears, as `"dueDate"`, only when the next task is also created at the start of the due date; without it, the next task comes when this one is done or cancelled. When a repeating task closes, in the app or through an approved review here, or its due date begins under `createOn: "dueDate"`, its next task is created in `todo`, and `repeatNextTaskId` names it from then on. Deleting that next task removes `repeatNextTaskId`, but this task still never creates another one (contract 3.3.0).
### Read comments and download deliverables
diff --git a/docs/en/platform/admin/connectors.md b/docs/en/platform/admin/connectors.md
index 88128dea7f..5624a1c729 100644
--- a/docs/en/platform/admin/connectors.md
+++ b/docs/en/platform/admin/connectors.md
@@ -8,10 +8,12 @@ Add connector credentials so Tale can use services such as a mailbox, file store
## Add an account
1. Select **Add credential**, then the connector. Already configured connectors appear first and can hold additional credentials.
-2. Check the **Name**. It starts as the connector's name, with a number added when another credential for that connector already uses it: `GitHub`, then `GitHub 2`. A name such as `Support inbox` or `EU store` is easier for an automation author to recognize. OAuth connections do not use this field.
-3. Complete the authentication method offered by that connector. For OAuth, select **Connect** and complete the vendor's consent flow.
+2. Check the **Name**. It starts as the connector's name, with a number added when another credential for that connector already uses it: `GitHub`, then `GitHub 2`. A name such as `Support inbox` or `EU store` is easier for an automation author to recognize. An OAuth connection has no name field: Tale names it the same way when consent completes (a second Slack workspace takes the workspace's name), and **Edit credential** renames it.
+3. Complete the authentication method offered by that connector. For OAuth, select **Connect** and complete the vendor's consent flow. Each **Connect** adds a new credential for the account you authorize and never replaces an existing one, so sign in to the vendor as the account you want to add.
4. Complete the form and check the resulting row, including its connector, account or instance, and status.
+Slack connects one credential per workspace. Authorizing a workspace that is already connected renews that workspace's credential instead of adding a second one.
+
The connector determines which fields appear. Use the account's actual credentials, not a Tale API key.
| Method | Required information |
@@ -55,7 +57,9 @@ For OneDrive/SharePoint, **Use Entra ID SSO app** can copy an existing SSO regis
## Reconnect or diagnose a failure
-**Reconnect needed** means stored OAuth authorization can no longer refresh. Choose **Reconnect** and authorize the account again. This keeps the credential's name and references. A deliberately disabled credential instead needs **Enable**.
+**Reconnect needed** means stored OAuth authorization can no longer refresh. Choose **Reconnect** in that row's menu and authorize the same account again. Tale renews exactly that credential: its name, default choice and references stay, and no other credential changes. Reconnect does not re-enable a deliberately disabled credential; **Enable** returns it to service.
+
+If the credential is removed before consent completes, or your role no longer allows you to manage credentials, Tale saves nothing and shows the reason. For Slack, authorize the workspace the credential already connects. Tale refuses a different workspace; connect that one with **Add credential**.
If the connection cannot start, check whether the OAuth app is configured. If the vendor rejects the return to Tale, compare the registered redirect URI with the exact URI shown by Tale. If an action fails after connecting, check the account's permissions and the required scope for that action.
diff --git a/docs/en/platform/connectors/overview.md b/docs/en/platform/connectors/overview.md
index d6eabb6018..18ece05f68 100644
--- a/docs/en/platform/connectors/overview.md
+++ b/docs/en/platform/connectors/overview.md
@@ -41,7 +41,7 @@ Select **Add credential**, search for the service and choose its card. Connector
-The **Name** field starts with the connector’s name. When you add several accounts for the same service, change it to one that identifies the purpose, such as `Support inbox` or `Release bot`. Use the external service’s credentials, not a Tale API key. For OAuth, complete the provider consent flow and check the returned account. If consent cannot start, an administrator may need to configure its OAuth app first.
+The **Name** field starts with the connector’s name. When you add several accounts for the same service, change it to one that identifies the purpose, such as `Support inbox` or `Release bot`. Use the external service’s credentials, not a Tale API key. For OAuth, sign in to the provider as the account you want to add and complete its consent. Each connection adds a new credential named after the connector and numbered (`Gmail`, then `Gmail 2`); Slack keeps one per workspace. Rename a new credential so the accounts stay distinguishable. If consent cannot start, an administrator may need to configure its OAuth app first.
Confluence and Shopify require an **Instance URL** per credential. Use the Atlassian site origin or the store’s `myshopify.com` origin, rather than an unrelated page or customer-facing domain. [Connector credentials](/platform/admin/connectors) covers setup fields, reconnection and rotation.
diff --git a/docs/en/platform/projects/tasks.md b/docs/en/platform/projects/tasks.md
index 72bde83a0e..f69e5c472e 100644
--- a/docs/en/platform/projects/tasks.md
+++ b/docs/en/platform/projects/tasks.md
@@ -77,10 +77,16 @@ Click **Repeat** below **Due date**, in the task's details or in **Create task**
- **Every weekday**, Monday to Friday
- **Weekly on …**, **Monthly on day …**, or **Yearly on …**, which take their day from the due date; a task without one uses its start date if that is still ahead, or else today
+
+

+
+
**Next due dates** shows when the next three tasks will be due. A task without a due date gets one when you choose a repeat: the first matching day from today, or from its start date when that is later. A monthly repeat on the 31st falls on the last day of shorter months. If you clear the due date of a task that already repeats, the repeat stays: the next task then comes when this one closes, due on the first matching day after that, and **Repeat** says so when you open it. Any change to the repeat gives the task a due date again.
+If the dates exceed the supported calendar range, the preview explains this. Choose an earlier start or due date before setting the repeat.
+
### Set a custom repeat
For any other schedule, choose **Custom** in the same list. Pick **Day**, **Week**, **Month**, or **Year**, set how often the task comes back, and choose the weekdays, the day of the month, or the date, such as every 2 weeks on Tuesday and Thursday. **Next due dates** follows each change. Click **Save** to keep the repeat. **Cancel**, **Escape**, or a click outside the list discards your changes; the back arrow returns to the list and keeps them.
@@ -89,7 +95,7 @@ For any other schedule, choose **Custom** in the same list. Pick **Day**, **Week
Normally, the next task appears when you move this one to **Done** or **Cancelled**. When the work has to come back on time even if the last round isn't finished, open **Repeat** on a repeating task, select **Create the next task on the due date** below the dates, and click **Save**. The next task then appears at the start of the due date, midnight in the time zone of whoever set up the repeat, even while this task is still open. If the task is already due, the next one appears within a few minutes, and closing the task before its due date creates the next one at once. **System** appears as its creator in the task's activity. **Repeat** shows a calendar icon, and the tooltip of the repeat icon on **Board** and **List** ends in **next task on the due date**.
-Open tasks no longer hold such a series back, so they can pile up when nobody closes them. A series never has more than 10 open tasks: the next one waits until someone closes one of them.
+Open tasks no longer hold such a series back, so they can pile up when nobody closes them. A series never has more than 10 open tasks: the next one waits until someone closes one of them. Changing the repeat, or choosing **Never** and then a repeat again, still counts the tasks that remain open in the series.
### What the next task brings back
@@ -103,7 +109,7 @@ Under **Repeat**, the earlier task links to the next one, such as **Next task: W
When you close a repeating task, the message **Next task created** tells you when the next one is due and offers **Stop repeating**. The same button stays under **Repeat** on the task that created the next one, beside **Next task**, while the next task still repeats. If nobody has touched the next task yet (it is still in **To do**, unchanged, with no comments or agent runs), it is removed together with its subtasks. Otherwise it stays and no longer repeats. Either way, the series ends: on the task you stopped it from, **Repeat** reads **Never**, and its tooltip says **This series has stopped.** If you used the button under **Repeat**, the focus then moves to **Repeat**. You can also set **Repeat** to **Never** on the latest task of the series.
-Deleting the latest task of a series ends the series. The task before it doesn't create another one, even if you reopen it and close it again: it shows no repeat icon, and its **Repeat** stays locked, with the tooltip **Its next task was deleted, so this series has ended.** Deleting an earlier task leaves the series going on from the latest one.
+Deleting the latest task of a series ends the series. The task before it doesn't create another one, even if you reopen it and close it again: it shows no repeat icon, and its **Repeat** stays locked, with the tooltip **Its next task was deleted. This task cannot repeat again.** Deleting an earlier task leaves the series going on from the latest one.
### When the repeat can't be changed
diff --git a/docs/fr/develop/api-reference.md b/docs/fr/develop/api-reference.md
index 2d869d8be6..77417022c5 100644
--- a/docs/fr/develop/api-reference.md
+++ b/docs/fr/develop/api-reference.md
@@ -1468,7 +1468,7 @@ curl -sS --compressed "https://your-host.example.com/api/v1/projects/
# → 200 { "task": { "id": "", "title": "...", "status": "in_progress", "externalId": "case-991", "labels": [], "dueDate": 1790719200000, "repeat": null, ... } }
```
-La lecture d’une tâche renvoie aussi son calendrier, en lecture seule sur cette API. `startDate` et `dueDate` sont des horodatages Unix en millisecondes : chacun marque minuit au début du jour choisi, dans le fuseau horaire de la personne qui l’a réglé. Ils ne figurent dans la réponse que lorsqu’ils sont renseignés. `repeat` est toujours présent : `null` si la tâche ne se répète pas, sinon un `TaskRepeat` comme `{ "frequency": "weekly", "interval": 2, "weekdays": [2, 4], "timezone": "Europe/Zurich", "createOn": "dueDate" }`. `frequency` vaut `daily`, `weekly`, `monthly` ou `yearly`, et `interval` va de 1 à 99 ; `weekly` liste des `weekdays` de 0 (dimanche) à 6 (samedi), `monthly` prend un `monthDay` et `yearly` un `month` et un `monthDay`. `createOn` n’apparaît, sous la forme `"dueDate"`, que si la tâche suivante est aussi créée au début du jour d’échéance ; sans lui, la tâche suivante arrive quand celle-ci est terminée ou annulée. Quand une tâche récurrente est clôturée, dans l’application ou par une relecture approuvée ici, ou quand son jour d’échéance commence avec `createOn: "dueDate"`, sa tâche suivante est créée en `todo`, et `repeatNextTaskId` la désigne dès lors. Si cette tâche suivante est supprimée, `repeatNextTaskId` disparaît, mais la tâche n’en crée pas d’autre pour autant (contrat 3.3.0).
+La lecture d’une tâche renvoie aussi son calendrier, en lecture seule sur cette API. `startDate` et `dueDate` sont des horodatages Unix en millisecondes. Ils ne figurent dans la réponse que lorsqu’ils sont renseignés. Quand tu choisis ces dates dans l’application, elle enregistre minuit au début du jour choisi, dans le fuseau horaire de ton navigateur. `repeat` est toujours présent : `null` si la tâche ne se répète pas, sinon un `TaskRepeat` comme `{ "frequency": "weekly", "interval": 2, "weekdays": [2, 4], "timezone": "Europe/Zurich", "createOn": "dueDate" }`. `frequency` vaut `daily`, `weekly`, `monthly` ou `yearly`, et `interval` va de 1 à 99 ; `weekly` liste des `weekdays` de 0 (dimanche) à 6 (samedi), `monthly` prend un `monthDay` et `yearly` un `month` et un `monthDay`. `createOn` n’apparaît, sous la forme `"dueDate"`, que si la tâche suivante est aussi créée au début du jour d’échéance ; sans lui, la tâche suivante arrive quand celle-ci est terminée ou annulée. Quand une tâche récurrente est clôturée, dans l’application ou par une relecture approuvée ici, ou quand son jour d’échéance commence avec `createOn: "dueDate"`, sa tâche suivante est créée en `todo`, et `repeatNextTaskId` la désigne dès lors. Si cette tâche suivante est supprimée, `repeatNextTaskId` disparaît, mais la tâche n’en crée pas d’autre pour autant (contrat 3.3.0).
### Lire les commentaires et télécharger les livrables
diff --git a/docs/fr/platform/admin/connectors.md b/docs/fr/platform/admin/connectors.md
index 5ea1d3e99c..965517b9c4 100644
--- a/docs/fr/platform/admin/connectors.md
+++ b/docs/fr/platform/admin/connectors.md
@@ -8,10 +8,12 @@ Ajoute des identifiants de connecteur pour que Tale utilise une messagerie, un e
## Connecter un compte
1. Sélectionne **Ajouter des identifiants**, puis le connecteur. Les connecteurs déjà configurés apparaissent en premier et peuvent recevoir d’autres identifiants.
-2. Vérifie le champ **Nom**. Il est prérempli avec le nom du connecteur, suivi d’un numéro si d’autres identifiants de ce connecteur portent déjà ce nom : `GitHub`, puis `GitHub 2`. Un nom comme `Boîte support` ou `Boutique UE` est plus facile à reconnaître pour la personne qui prépare l’automatisation. Les connexions OAuth n’utilisent pas ce champ.
-3. Complète la méthode d’authentification proposée. Pour OAuth, sélectionne **Connecter** et autorise l’accès chez le fournisseur.
+2. Vérifie le champ **Nom**. Il est prérempli avec le nom du connecteur, suivi d’un numéro si d’autres identifiants de ce connecteur portent déjà ce nom : `GitHub`, puis `GitHub 2`. Un nom comme `Boîte support` ou `Boutique UE` est plus facile à reconnaître pour la personne qui prépare l’automatisation. Une connexion OAuth n’a pas de champ de nom : Tale la nomme de la même façon une fois l’accès autorisé (un deuxième espace Slack prend le nom de l’espace), et **Modifier les identifiants** permet de la renommer.
+3. Complète la méthode d’authentification proposée. Pour OAuth, sélectionne **Connecter** et autorise l’accès chez le fournisseur. Chaque **Connecter** ajoute de nouveaux identifiants pour le compte autorisé, sans jamais remplacer ceux qui existent. Connecte-toi donc chez le fournisseur avec le compte que tu veux ajouter.
4. Termine le formulaire, puis vérifie la ligne créée : connecteur, compte ou instance, et statut.
+Slack associe un seul jeu d’identifiants à chaque espace Slack. Si tu autorises à nouveau un espace déjà connecté, Tale renouvelle ses identifiants au lieu d’en ajouter d’autres.
+
Le connecteur détermine les champs. Utilise les identifiants du compte externe, pas une clé API Tale.
| Méthode | Informations nécessaires |
@@ -55,7 +57,9 @@ Pour OneDrive/SharePoint, **Utiliser l'app SSO Entra ID** peut copier une inscri
## Rétablir une connexion
-**Reconnexion requise** signifie que l’autorisation OAuth enregistrée ne peut plus être renouvelée. Sélectionne **Reconnecter** et autorise à nouveau le compte. Le nom et les références restent les mêmes. Des identifiants volontairement désactivés demandent plutôt **Activer**.
+**Reconnexion requise** signifie que l’autorisation OAuth enregistrée ne peut plus être renouvelée. Sélectionne **Reconnecter** dans le menu de cette ligne et autorise à nouveau le même compte. Tale renouvelle exactement ces identifiants : leur nom, le choix par défaut et les références restent les mêmes, et aucun autre identifiant ne change. **Reconnecter** ne réactive pas des identifiants volontairement désactivés ; **Activer** les remet en service.
+
+Si les identifiants sont supprimés avant la fin de l’autorisation, ou si ton rôle ne te permet plus de gérer les identifiants, Tale n’enregistre rien et en indique la raison. Pour Slack, autorise l’espace que ces identifiants connectent déjà. Tale refuse un autre espace ; connecte-le plutôt avec **Ajouter des identifiants**.
Si la connexion ne démarre pas, vérifie l’application OAuth. Si le fournisseur refuse le retour vers Tale, compare son URI de redirection enregistrée à celle que Tale affiche. Si une action échoue après la connexion, vérifie les droits du compte et les permissions requises pour cette action.
diff --git a/docs/fr/platform/connectors/overview.md b/docs/fr/platform/connectors/overview.md
index 8adbada706..bf8a73441a 100644
--- a/docs/fr/platform/connectors/overview.md
+++ b/docs/fr/platform/connectors/overview.md
@@ -41,7 +41,7 @@ Choisis **Ajouter des identifiants**, recherche le service et ouvre sa carte. Le
-Le champ **Nom** est prérempli avec le nom du connecteur. Si tu ajoutes plusieurs comptes pour le même service, remplace-le par un nom qui indique l’usage, par exemple `Boîte support` ou `Bot de publication`. Utilise ceux du service externe, pas une clé API Tale. Pour OAuth, termine le consentement chez le fournisseur et vérifie le compte retourné. Si le parcours ne démarre pas, un administrateur doit peut-être configurer l’app OAuth d’abord.
+Le champ **Nom** est prérempli avec le nom du connecteur. Si tu ajoutes plusieurs comptes pour le même service, remplace-le par un nom qui indique l’usage, par exemple `Boîte support` ou `Bot de publication`. Utilise ceux du service externe, pas une clé API Tale. Pour OAuth, connecte-toi chez le fournisseur avec le compte à ajouter et termine le consentement. Chaque connexion ajoute de nouveaux identifiants, nommés d’après le connecteur puis numérotés (`Gmail`, puis `Gmail 2`) ; Slack en garde un seul jeu par espace. Renomme les nouveaux identifiants pour distinguer les comptes. Si le parcours ne démarre pas, un administrateur doit peut-être configurer l’app OAuth d’abord.
Confluence et Shopify demandent une **URL de l'instance** pour chaque compte. Utilise l’origine du site Atlassian ou l’adresse `myshopify.com` de la boutique, pas une page quelconque ni le domaine destiné aux clients. [Identifiants des connectors](/fr/platform/admin/connectors) explique les champs, la reconnexion et le renouvellement des secrets.
diff --git a/docs/fr/platform/projects/tasks.md b/docs/fr/platform/projects/tasks.md
index 322036f4d6..7a551600ea 100644
--- a/docs/fr/platform/projects/tasks.md
+++ b/docs/fr/platform/projects/tasks.md
@@ -77,10 +77,16 @@ Clique sur **Répéter**, sous **Échéance**, dans les détails de la tâche ou
- **Tous les jours ouvrés**, du lundi au vendredi
- **Chaque semaine le …**, **Chaque mois le …** ou **Chaque année le …**, qui reprennent le jour de l’échéance ; sans échéance, celui de la date de début si elle est encore à venir, sinon celui d’aujourd’hui
+
+

+
+
**Prochaines échéances** indique quand les trois prochaines tâches arriveront à échéance. Une tâche sans échéance en reçoit une dès que tu choisis une répétition : le premier jour prévu à partir d’aujourd’hui, ou à partir de sa date de début si celle-ci est plus tardive. Une répétition mensuelle le 31 tombe le dernier jour des mois plus courts. Si tu retires l’échéance d’une tâche déjà récurrente, la répétition reste : la tâche suivante arrive alors quand tu clôtures celle-ci, avec pour échéance le premier jour prévu après la clôture, et **Répéter** le signale à l’ouverture. Toute modification de la répétition redonne une échéance à la tâche.
+Si les dates dépassent la plage de dates prise en charge, l’aperçu le signale. Choisis une date de début ou une échéance antérieure avant de définir la répétition.
+
### Définir une répétition personnalisée
Pour tout autre rythme, choisis **Personnalisé** dans la même liste. Choisis **Jour**, **Semaine**, **Mois** ou **Année**, indique à quelle fréquence la tâche revient, puis sélectionne les jours de la semaine, le jour du mois ou la date, par exemple toutes les 2 semaines le mardi et le jeudi. **Prochaines échéances** suit chaque modification. Clique sur **Enregistrer** pour garder la répétition. **Annuler**, **Échap** ou un clic en dehors de la liste abandonnent tes modifications ; la flèche de retour ramène à la liste en les conservant.
@@ -89,7 +95,7 @@ Pour tout autre rythme, choisis **Personnalisé** dans la même liste. Choisis *
Par défaut, la tâche suivante apparaît quand tu passes celle-ci à **Terminé** ou **Annulé**. Si le travail doit revenir à temps même quand la tâche précédente n’est pas terminée, ouvre **Répéter** sur une tâche récurrente, coche **Créer la tâche suivante à l'échéance** sous les dates et clique sur **Enregistrer**. La tâche suivante apparaît alors au début du jour d’échéance, à minuit dans le fuseau horaire de la personne qui a réglé la répétition, même si cette tâche est encore ouverte. Si la tâche est déjà à échéance, la suivante apparaît en quelques minutes, et si tu clôtures la tâche avant son jour d’échéance, la suivante est créée tout de suite. L’activité attribue cette création à **Système**. **Répéter** affiche alors une icône de calendrier, et l’infobulle de l’icône de répétition dans **Tableau** et **Liste** se termine par **tâche suivante à l'échéance**.
-Les tâches ouvertes ne retiennent plus une telle série : elles peuvent donc s’accumuler si personne ne les clôture. Une série ne compte jamais plus de 10 tâches ouvertes : la suivante attend que quelqu’un en clôture une.
+Les tâches ouvertes ne retiennent plus une telle série : elles peuvent donc s’accumuler si personne ne les clôture. Une série ne compte jamais plus de 10 tâches ouvertes : la suivante attend que quelqu’un en clôture une. Si tu modifies la répétition, ou choisis **Jamais** puis à nouveau une répétition, les tâches encore ouvertes dans la série restent comptées.
### Ce que reprend la tâche suivante
@@ -103,7 +109,7 @@ Sous **Répéter**, la tâche précédente renvoie à la suivante, par exemple *
Quand tu clôtures une tâche récurrente, le message **Tâche suivante créée** indique l’échéance de la suivante et propose **Arrêter la répétition**. Le même bouton reste sous **Répéter** sur la tâche qui a créé la suivante, à côté de **Tâche suivante**, tant que la tâche suivante se répète. Si personne n’a encore touché à la tâche suivante (elle est toujours dans **À faire**, inchangée, sans commentaire ni exécution d’agent), elle est supprimée avec ses sous-tâches. Sinon, elle reste en place mais ne se répète plus. Dans les deux cas, la série s’arrête : sur la tâche depuis laquelle tu l’as arrêtée, **Répéter** affiche **Jamais**, et son infobulle indique **La série a été arrêtée.** Si tu as utilisé le bouton sous **Répéter**, le focus passe ensuite sur **Répéter**. Tu peux aussi ouvrir la tâche la plus récente de la série et régler son champ **Répéter** sur **Jamais**.
-Si tu supprimes la tâche la plus récente d’une série, la série s’arrête. La tâche précédente n’en crée pas d’autre, même si tu la rouvres puis la clôtures à nouveau : elle n’affiche pas d’icône de répétition, et son champ **Répéter** reste verrouillé, avec l’infobulle **La tâche suivante a été supprimée, la série est donc terminée.** Si tu supprimes une tâche plus ancienne, la série continue à partir de la plus récente.
+Si tu supprimes la tâche la plus récente d’une série, la série s’arrête. La tâche précédente n’en crée pas d’autre, même si tu la rouvres puis la clôtures à nouveau : elle n’affiche pas d’icône de répétition, et son champ **Répéter** reste verrouillé, avec l’infobulle **La tâche suivante a été supprimée. Cette tâche ne peut plus se répéter.** Si tu supprimes une tâche plus ancienne, la série continue à partir de la plus récente.
### Quand la répétition ne peut pas être modifiée
diff --git a/packages/ui/src/components/forms/number-stepper.test.tsx b/packages/ui/src/components/forms/number-stepper.test.tsx
index 86b86ed6c5..edd9f329e5 100644
--- a/packages/ui/src/components/forms/number-stepper.test.tsx
+++ b/packages/ui/src/components/forms/number-stepper.test.tsx
@@ -146,6 +146,19 @@ describe('NumberStepper', () => {
expect(decrease).toBeDisabled();
});
+ it('steps from the displayed draft when it is outside the range', async () => {
+ const { user } = render();
+ const field = screen.getByRole('spinbutton', { name: 'Day' });
+ await user.clear(field);
+ await user.type(field, '100');
+ await user.click(screen.getByRole('button', { name: 'Decrease' }));
+ expect(field).toHaveValue('99');
+ await user.clear(field);
+ await user.type(field, '0');
+ await user.click(screen.getByRole('button', { name: 'Increase' }));
+ expect(field).toHaveValue('1');
+ });
+
it('names its buttons after the caller when asked', () => {
render(
(null);
+ // Pointer and keyboard steps start from the same number the field shows,
+ // including an out-of-range draft that has not settled on blur yet.
+ const current = typed !== null && typed !== '' ? Number(typed) : value;
const commit = (next: number) => {
setTyped(null);
@@ -110,7 +113,6 @@ export function NumberStepper({
};
const handleKeyDown = (event: KeyboardEvent) => {
- const current = typed !== null && typed !== '' ? Number(typed) : value;
switch (event.key) {
case 'ArrowUp':
event.preventDefault();
@@ -164,9 +166,9 @@ export function NumberStepper({
tabIndex={-1}
aria-label={decrementLabel ?? t('numberStepper.decrease')}
aria-controls={id}
- disabled={disabled || value <= min}
+ disabled={disabled || current <= min}
onPointerDown={keepFocus}
- onClick={() => commit(value - step)}
+ onClick={() => commit(current - step)}
className={BUTTON_CLASSES}
>
@@ -195,9 +197,9 @@ export function NumberStepper({
tabIndex={-1}
aria-label={incrementLabel ?? t('numberStepper.increase')}
aria-controls={id}
- disabled={disabled || value >= max}
+ disabled={disabled || current >= max}
onPointerDown={keepFocus}
- onClick={() => commit(value + step)}
+ onClick={() => commit(current + step)}
className={BUTTON_CLASSES}
>
diff --git a/packages/ui/src/components/forms/recurrence-picker.tsx b/packages/ui/src/components/forms/recurrence-picker.tsx
index b9ec82b51c..edb84dffc0 100644
--- a/packages/ui/src/components/forms/recurrence-picker.tsx
+++ b/packages/ui/src/components/forms/recurrence-picker.tsx
@@ -16,6 +16,7 @@ import {
useCallback,
useEffect,
useId,
+ useLayoutEffect,
useRef,
useState,
} from 'react';
@@ -266,7 +267,11 @@ export function RecurrencePicker(
// event (Enter in a number field commits the number, then saves).
const sessionRef = useRef(session);
const propsRef = useRef(props);
- propsRef.current = props;
+ // Event handlers must see committed props, never props from a concurrent
+ // render that React later discards.
+ useLayoutEffect(() => {
+ propsRef.current = props;
+ });
// False from the moment a session ends, so one event can never save twice.
const openRef = useRef(false);
// The saved values the open session last took in, to tell a clean draft
diff --git a/services/platform/app/features/settings/connectors/components/connectors-settings.test.tsx b/services/platform/app/features/settings/connectors/components/connectors-settings.test.tsx
index 80e166ee55..1ca6722fc1 100644
--- a/services/platform/app/features/settings/connectors/components/connectors-settings.test.tsx
+++ b/services/platform/app/features/settings/connectors/components/connectors-settings.test.tsx
@@ -433,7 +433,11 @@ describe('ConnectorsSettings', () => {
dialog.queryByRole('textbox', { name: /^Name/ }),
).not.toBeInTheDocument();
await user.click(dialog.getByRole('button', { name: 'Connect' }));
- expect(goToAuthorization).toHaveBeenCalledWith('org-1', 'slack');
+ // An explicit Add: the callback stores a NEW credential, never the
+ // default in its place (#3711).
+ expect(goToAuthorization).toHaveBeenCalledWith('org-1', 'slack', {
+ kind: 'add',
+ });
expect(createCredential).not.toHaveBeenCalled();
});
@@ -650,6 +654,40 @@ describe('ConnectorsSettings', () => {
).not.toBeInTheDocument();
});
+ it('reconnects exactly the row whose menu was used, not the default', async () => {
+ fixtures.connectors = [slackConnector];
+ fixtures.credentials = [
+ credential({
+ id: 'cred-default',
+ name: 'Workspace grant',
+ connectorSlug: 'slack',
+ authMethod: 'oauth2',
+ isDefault: true,
+ }),
+ credential({
+ id: 'cred-sales',
+ name: 'Sales workspace',
+ connectorSlug: 'slack',
+ authMethod: 'oauth2',
+ status: 'needs-reauth',
+ }),
+ ];
+ const { user } = render();
+ await user.click(
+ screen.getByRole('button', { name: 'Actions for Sales workspace' }),
+ );
+ await user.click(
+ within(await screen.findByRole('menu')).getByRole('menuitem', {
+ name: 'Reconnect',
+ }),
+ );
+ expect(goToAuthorization).toHaveBeenCalledTimes(1);
+ expect(goToAuthorization).toHaveBeenCalledWith('org-1', 'slack', {
+ kind: 'reconnect',
+ credentialId: 'cred-sales',
+ });
+ });
+
it('deletes only after an explicit confirm', async () => {
const { user } = render();
await user.click(
diff --git a/services/platform/app/features/settings/connectors/connector-oauth.test.ts b/services/platform/app/features/settings/connectors/connector-oauth.test.ts
new file mode 100644
index 0000000000..ad3ae0adc7
--- /dev/null
+++ b/services/platform/app/features/settings/connectors/connector-oauth.test.ts
@@ -0,0 +1,42 @@
+import { afterEach, beforeEach, describe, expect, it } from 'vitest';
+
+import { authorizationUrl } from './connector-oauth';
+
+/**
+ * The start URL says what a consent is FOR (#3711): an Add names no
+ * credential, so the callback stores a new one; a Reconnect names the
+ * credential it renews, and the server writes to exactly that one.
+ */
+describe('authorizationUrl', () => {
+ beforeEach(() => {
+ window.__ENV__ = { SITE_URL: 'https://tale.example', BASE_PATH: '/tale' };
+ });
+ afterEach(() => {
+ delete window.__ENV__;
+ });
+
+ it('starts an Add without naming any credential', () => {
+ const url = new URL(authorizationUrl('org-1', 'gmail', { kind: 'add' }));
+ expect(`${url.origin}${url.pathname}`).toBe(
+ 'https://tale.example/tale/api/connectors/oauth2/start',
+ );
+ expect(Object.fromEntries(url.searchParams)).toEqual({
+ connector: 'gmail',
+ organizationId: 'org-1',
+ });
+ });
+
+ it('starts a Reconnect naming the credential it renews', () => {
+ const url = new URL(
+ authorizationUrl('org-1', 'gmail', {
+ kind: 'reconnect',
+ credentialId: 'cred-sales',
+ }),
+ );
+ expect(Object.fromEntries(url.searchParams)).toEqual({
+ connector: 'gmail',
+ organizationId: 'org-1',
+ credentialId: 'cred-sales',
+ });
+ });
+});
diff --git a/services/platform/app/features/settings/connectors/connector-oauth.ts b/services/platform/app/features/settings/connectors/connector-oauth.ts
index b9cedefba4..fbf60ff830 100644
--- a/services/platform/app/features/settings/connectors/connector-oauth.ts
+++ b/services/platform/app/features/settings/connectors/connector-oauth.ts
@@ -1,4 +1,8 @@
import { getEnv } from '@/lib/env';
+import {
+ RECONNECT_CREDENTIAL_PARAM,
+ type ConsentIntent,
+} from '@/lib/shared/connector-consent';
/**
* The consent hand-off for connectors that authenticate through OAuth.
@@ -7,24 +11,30 @@ import { getEnv } from '@/lib/env';
* route re-checks that the signed-in member may add credentials, mints the
* state token and PKCE pair, and redirects to the vendor; the callback
* exchanges the code and stores the credential. So there is nothing to submit
- * from here and nothing to name — the page just hands the browser over, which
- * is also why re-consenting an existing credential uses the very same URL as a
- * first connection.
+ * from here and nothing to name — the page just hands the browser over, and
+ * says what the consent is FOR. An Add stores a new credential; a Reconnect
+ * names the credential it renews, which the server checks, keeps on the
+ * pending authorization, and writes to exactly — never to the connector's
+ * default instead.
*
* A full-page navigation rather than a popup: the state lives server-side,
* there is no opener to talk to, and nothing for a blocked popup to swallow.
*/
-/** The deployment's OAuth start URL for one connector. */
-function authorizationUrl(
+/** The deployment's OAuth start URL for one connector and intent. */
+export function authorizationUrl(
organizationId: string,
connectorSlug: string,
+ intent: ConsentIntent,
): string {
const siteUrl = getEnv('SITE_URL');
const basePath = getEnv('BASE_PATH');
const url = new URL(`${siteUrl}${basePath}/api/connectors/oauth2/start`);
url.searchParams.set('connector', connectorSlug);
url.searchParams.set('organizationId', organizationId);
+ if (intent.kind === 'reconnect') {
+ url.searchParams.set(RECONNECT_CREDENTIAL_PARAM, intent.credentialId);
+ }
return url.toString();
}
@@ -32,6 +42,9 @@ function authorizationUrl(
export function goToAuthorization(
organizationId: string,
connectorSlug: string,
+ intent: ConsentIntent,
): void {
- globalThis.location.assign(authorizationUrl(organizationId, connectorSlug));
+ globalThis.location.assign(
+ authorizationUrl(organizationId, connectorSlug, intent),
+ );
}
diff --git a/services/platform/app/features/settings/connectors/credential-adapter.tsx b/services/platform/app/features/settings/connectors/credential-adapter.tsx
index de6c04333c..c25770e31b 100644
--- a/services/platform/app/features/settings/connectors/credential-adapter.tsx
+++ b/services/platform/app/features/settings/connectors/credential-adapter.tsx
@@ -262,7 +262,9 @@ function ConnectorConsent({
@@ -326,10 +328,13 @@ export const connectorCredentialAdapter: CredentialAdapter<
key: 'reconnect',
label: t('connectors.credential.reconnect'),
icon: RefreshCw,
- // Re-consent is the same hand-off as a first connection; the callback
- // refreshes the grant this credential already holds.
+ // Re-consent names THIS credential: the callback renews exactly it —
+ // name, default and references kept — or saves nothing.
onClick: () =>
- goToAuthorization(organizationId, credential.connectorSlug),
+ goToAuthorization(organizationId, credential.connectorSlug, {
+ kind: 'reconnect',
+ credentialId: credential.id,
+ }),
visible: credential.authMethod === 'oauth2',
disabled: busy,
},
diff --git a/services/platform/app/features/tasks/components/task-modal.repeat.test.tsx b/services/platform/app/features/tasks/components/task-modal.repeat.test.tsx
index 6d1dcd5c14..91353a2b66 100644
--- a/services/platform/app/features/tasks/components/task-modal.repeat.test.tsx
+++ b/services/platform/app/features/tasks/components/task-modal.repeat.test.tsx
@@ -463,7 +463,7 @@ describe('TaskModal — the details panel’s Repeat row', () => {
// A due-date series continued while the task stayed open, and that next
// task was deleted since: the task never continues again, so the row is
// locked on its own rule, with nothing left to open or stop.
- it('says the series ended once its next task was deleted', async () => {
+ it('says this task cannot repeat again once its next task was deleted', async () => {
openTask({
...baseTask,
status: 'todo',
@@ -475,7 +475,7 @@ describe('TaskModal — the details panel’s Repeat row', () => {
});
expect(locked).toHaveAttribute('aria-disabled', 'true');
expect(locked).toHaveAccessibleDescription(
- 'Weekly on Monday Its next task was deleted, so this series has ended.',
+ 'Weekly on Monday Its next task was deleted. This task cannot repeat again.',
);
expect(screen.queryByRole('button', { name: /^Next task/ })).toBeNull();
expect(screen.queryByRole('button', { name: 'Stop repeating' })).toBeNull();
diff --git a/services/platform/app/features/tasks/components/task-repeat-field.test.tsx b/services/platform/app/features/tasks/components/task-repeat-field.test.tsx
index fb419f924c..553ee1cb3f 100644
--- a/services/platform/app/features/tasks/components/task-repeat-field.test.tsx
+++ b/services/platform/app/features/tasks/components/task-repeat-field.test.tsx
@@ -3,6 +3,7 @@ import '@testing-library/jest-dom/vitest';
import { useState } from 'react';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
+import * as repeatDates from '@/lib/shared/task-repeat';
import {
localTimeZone,
startOfCalendarDate,
@@ -11,6 +12,7 @@ import {
import { checkAccessibility } from '@/tests/utils/a11y';
import { render, screen, waitFor, within } from '@/tests/utils/render';
+import * as repeatEdit from '../lib/task-repeat-edit';
import type { TaskRepeatFieldState } from '../lib/task-repeat-edit';
import { TaskRepeatField } from './task-repeat-field';
@@ -78,6 +80,7 @@ beforeEach(() => {
afterEach(() => {
vi.useRealTimers();
+ vi.restoreAllMocks();
});
describe('TaskRepeatField — writing a rule', () => {
@@ -369,3 +372,69 @@ describe('TaskRepeatField — rows that cannot change', () => {
expect(container).toBeEmptyDOMElement();
});
});
+
+describe('TaskRepeatField — exhausted calendar range', () => {
+ it('keeps a saved rule editable when its preview cannot be represented', async () => {
+ vi.spyOn(repeatDates, 'upcomingTaskRepeatDates').mockImplementation(() => {
+ throw new RangeError(
+ 'The repeat date is outside the supported calendar range',
+ );
+ });
+ const onChange = vi.fn();
+ const { user } = render(
+ ,
+ );
+ const picker = await openPicker(user);
+ expect(
+ within(picker).getByText(
+ 'Upcoming dates are outside the supported calendar range. Choose an earlier date.',
+ ),
+ ).toBeInTheDocument();
+ expect(within(picker).queryByRole('list')).not.toBeInTheDocument();
+ await user.click(within(picker).getByRole('radio', { name: 'Never' }));
+ expect(onChange).toHaveBeenCalledWith({ repeat: null });
+ });
+
+ it('handles an actual valid far-future date whose next recurrence overflows', async () => {
+ const onChange = vi.fn();
+ const { user } = render(
+ ,
+ );
+ const picker = await openPicker(user);
+ expect(
+ within(picker).getByText(
+ 'Upcoming dates are outside the supported calendar range. Choose an earlier date.',
+ ),
+ ).toBeInTheDocument();
+ await user.click(within(picker).getByRole('radio', { name: 'Never' }));
+ expect(onChange).toHaveBeenCalledWith({ repeat: null });
+ });
+
+ it('refuses a new due date outside the calendar range without throwing', async () => {
+ vi.spyOn(repeatEdit, 'taskRepeatPatch').mockImplementation(() => {
+ throw new RangeError(
+ 'The repeat date is outside the supported calendar range',
+ );
+ });
+ const onChange = vi.fn();
+ const { user } = render();
+ const picker = await openPicker(user);
+ await user.click(within(picker).getByRole('radio', { name: 'Daily' }));
+ expect(onChange).not.toHaveBeenCalled();
+ expect(screen.getByRole('alert')).toHaveTextContent(
+ 'Upcoming dates are outside the supported calendar range. Choose an earlier date.',
+ );
+ expect(
+ screen.getByRole('button', { name: 'Repeat: Never' }),
+ ).toBeInTheDocument();
+ });
+});
diff --git a/services/platform/app/features/tasks/components/task-repeat-field.tsx b/services/platform/app/features/tasks/components/task-repeat-field.tsx
index f3d51df75d..62f8068dd4 100644
--- a/services/platform/app/features/tasks/components/task-repeat-field.tsx
+++ b/services/platform/app/features/tasks/components/task-repeat-field.tsx
@@ -130,6 +130,9 @@ export function TaskRepeatField({
const { t } = useT('tasks');
const { day } = useRecurrenceFormat();
const [announcement, setAnnouncement] = useState('');
+ const [dateRangeError, setDateRangeError] = useState(
+ null,
+ );
if (state.kind === 'hidden') return null;
if (state.kind === 'locked' && state.reason === 'subtask') {
@@ -146,6 +149,14 @@ export function TaskRepeatField({
...rule,
timezone: timeZone,
});
+ const preview = (rule: RecurrenceRule) => {
+ try {
+ return upcomingTaskRepeatDates(withZone(rule), dates, now);
+ } catch (error) {
+ if (error instanceof RangeError) return null;
+ throw error;
+ }
+ };
// The rule as it would be stored; `null` for one the schema refuses.
const toTaskRepeat = (
rule: RecurrenceRule,
@@ -177,7 +188,15 @@ export function TaskRepeatField({