Skip to content

185: Add Save your Tchap Keys before logging out #291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Nov 14, 2022

Conversation

aulamber
Copy link
Contributor

@aulamber aulamber commented Nov 3, 2022

Checklist

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

Copy link
Contributor

@jdauphant jdauphant left a comment

Choose a reason for hiding this comment

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

Est-ce que c'est une feature que l'on pourra proposer à Element Web ?

@odelcroi
Copy link
Member

odelcroi commented Nov 7, 2022

Are we missing some french translations?
Capture d’écran 2022-11-07 à 09 55 48

@odelcroi odelcroi self-requested a review November 7, 2022 09:00
@estellecomment
Copy link
Contributor

Les traductions sont a ajotuer dans src/i18n/strings/tchap_translations.json


render() {
if (this.state.shouldLoadBackupStatus) {
// const description = (
Copy link
Contributor

Choose a reason for hiding this comment

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

Je pense qu'on peut supprimer le code d'element-web dont on se sert pas... Parce qu'on a le fichier LogoutDialog qui existe tjs donc on peut faire de comparaisons facilement.

{},
{
b: (sub) => <b>{ sub }</b>,
requestLink: (sub) => (
Copy link
Contributor

Choose a reason for hiding this comment

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

pas besoin de requestLink ici, parce que tu n'as pas mentionné de lien qui s'appelle "requestlink" dans le translated string.

{ dialogContent }
</BaseDialog>
);
} else {
Copy link
Contributor

Choose a reason for hiding this comment

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

dans notre cas, on veut afficher le dialog complet dans tous les cas. On a pas besoin de ce "are you sure you want to sign out". Donc on peut enlever le if (this.state.shouldLoadBackupStatus) ligne 144. (et du coup enlever les fonctions pas utilisees au besoin)

@estellecomment
Copy link
Contributor

Aussi à faire dans cette PR : le patch hide-secure-storage-2 avait apporté des modifs au LogoutDialog. Ces modifs avaient enlevé les références à keybackup, qui n'est pas encore présent sur tchap (il est présent chez element).
Le nouveau TchapLogoutDialog ne doit pas proposer le keybackup non plus.

Et du coup il faudra supprimer ce patch (https://github.com/tchapgouv/tchap-web-v4/blob/2f9d72eea49f0bd73eec56f556dd94979a2ad4f7/patches/hide-secure-storage-2/matrix-react-sdk+3.54.0.patch) et l'enlever de patches.json (

"hide-secure-storage-2": {
)

Copy link
Contributor

@estellecomment estellecomment left a comment

Choose a reason for hiding this comment

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

Nice job ! :)

We will need an end-to-end test for this... I opened a separate issue. #302
(we'll have a single test for the whole flow I think)

this.props.onFinished(true);
};

helpUrl = "https://tchap.beta.gouv.fr/faq#tcq05_001";
Copy link
Contributor

Choose a reason for hiding this comment

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

not used anywhere. Did you mean to add a link to this help page ?

@aulamber aulamber merged commit 12c1ea7 into develop_tchap Nov 14, 2022
@odelcroi odelcroi deleted the 185-logging-out-no-warning-on-keys-backup branch March 31, 2023 15:54
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.

4 participants