tutao / tutanota

Tuta is an email service with a strong focus on security and privacy that lets you encrypt emails, contacts and calendar entries on all your devices.
https://tuta.com
GNU General Public License v3.0
6.1k stars 525 forks source link

Migrate to TypeScript #3746

Closed bedhub closed 2 years ago

bedhub commented 2 years ago

We want to migrate our typesystem from flow to TypeScript.

Test notes

charlag commented 2 years ago

some converters: https://github.com/khan/flow-to-ts https://github.com/bcherny/flow-to-typescript

charlag commented 2 years ago

another point is enums: https://www.typescriptlang.org/docs/handbook/enums.html

I would recommend to use as const objects at first or maybe const enum where necessary because they have the lowest overhead.

vitoreiji commented 2 years ago

Some preliminary client testing revealed the following issues:

vitoreiji commented 2 years ago

@nowhub and I are testing Contacts.

vitoreiji commented 2 years ago

@nowhub and I are testing Appearance settings.

vitoreiji commented 2 years ago

@nowhub and I are testing Whitelabel settings.

vaf-hub commented 2 years ago

Found the following minor problem:

  1. Signup as a Free account.
  2. Go to subscription settings.
  3. See that it reads "FREE". It should be "Free" without caps.

The same will happen always if the accountType is something other than Premium. It happens because of a change in TutanotaConstants.ts: export const AccountTypeNames = ["System", "Free", "Outlook", "Premium", "Stream", "External"] was replaced with export const AccountTypeNames = reverse(AccountType)

We should either keept the reversed map explicitly or convert the enum to natural capitalization for the definition of AccountTypeNames.

vaf-hub commented 2 years ago

I will test subscription settings.

vitoreiji commented 2 years ago

@nowhub and I are testing Contact form settings.

vitoreiji commented 2 years ago

@nowhub and I are testing Global settings.

vaf-hub commented 2 years ago

I am testing PaymentSettings

vaf-hub commented 2 years ago

I am testing GroupSettings

vaf-hub commented 2 years ago

I am testing UserSettings.

vaf-hub commented 2 years ago

I will continue with MailSettings now.

mpfau commented 2 years ago

I will focus on search now

mpfau commented 2 years ago

will start testing mail editing, now

vitoreiji commented 2 years ago

@vaf-hub can you test the rejected senders list? I cannot seem to make anything appear there, don't know what the correct conditions would be. Nvm found the server config.

vitoreiji commented 2 years ago

I'll test mail folders and drag & drop now.