Page MenuHomePhorge
Feed Search

Jul 6 2023

ashoat added inline comments to D8423: [web][native] Update invite link copy.
Jul 6 2023, 7:37 PM
ashoat added inline comments to D8415: [web] Introduce edit link modal.
Jul 6 2023, 7:35 PM
ashoat added inline comments to D8413: [web] Create manage links modal.
Jul 6 2023, 7:34 PM
ashoat added inline comments to D8359: [native] Create the community roles screen.
Jul 6 2023, 7:31 PM
ashoat accepted D8420: [keyserver/lib] Add keyserver support for creating roles.

Generally looks good! If you apply the changes in D8391, this should be basically be ready to go

Jul 6 2023, 7:29 PM
ashoat requested changes to D8391: [native] Populate the create role screen.

Nice, I think the API has been figured out! Some comments inline, but none of them should require a big refactor

Jul 6 2023, 7:25 PM
ashoat added inline comments to D8422: [keyserver/lib/native] Create updates for new role creation.
Jul 6 2023, 7:15 PM
ashoat added a comment to D8421: [native] Use CreateRolesScreenHeaderRightButton to save a new role.

Minor nits

Jul 6 2023, 7:13 PM
ashoat added a comment to D8271: [native] Unblock scrolling when continuing editing.

Thanks for explaining! Your explanation gave me some helpful pointers, but I still had to do some investigation on my own to get the whole story.

Jul 6 2023, 1:54 PM
ashoat accepted D8027: [web] Scrolling to the edited message when it overflows.
Jul 6 2023, 12:42 PM

Jul 5 2023

ashoat requested changes to D8271: [native] Unblock scrolling when continuing editing.
Jul 5 2023, 6:54 PM
ashoat added a comment to D8271: [native] Unblock scrolling when continuing editing.

I still can't tell what makes this case "special", and what justifies this hack. In no other place do we have to manually set closed. Why is this case different? Why can't we continue to rely on the standard mechanism for setting closed?

Jul 5 2023, 6:53 PM
ashoat added a comment to D8391: [native] Populate the create role screen.

I skimmed through the last comment, as it's been a lot of back-and-forth recently and I want to move quickly here. Please keep that in mind, as I might've missed something.

Jul 5 2023, 6:51 PM
ashoat added a comment to D8391: [native] Populate the create role screen.
  1. Pass in all selected options as an array of ConfigurableCommunityPermissionOption, instead of a list of strings representing threadPermissions to the keyserver. Essentially, the keyserver would receive an array of:
[
   {
     title: 'React to messages',
     description: 'Allows members to add reactions to messages'
    },
    {
      title: 'Add members',
      description: 'Allows members to add other members to channels',
    }
]
Jul 5 2023, 6:31 PM
ashoat accepted D8422: [keyserver/lib/native] Create updates for new role creation.
Jul 5 2023, 5:57 PM
ashoat requested changes to D8420: [keyserver/lib] Add keyserver support for creating roles.
Jul 5 2023, 5:55 PM
ashoat requested changes to D8391: [native] Populate the create role screen.

After our discussion over chat, I think the new conclusion is that the client code for creating / managing roles shouldn't think about threadPermissions at all, and should instead use a new enum that reflects the list of user-facing permissions. The keyserver will handle converting from the new enum of user-facing permissions to threadPermissions... so some version of this data structure will likely still be necessary, but it will probably be keyserver-specific, and the format of the data structure might be different given differing requirements. Does that sound right to you @rohan?

Jul 5 2023, 5:52 PM
ashoat accepted D8427: [native] Change 'Create Community' to 'Create community'.
Jul 5 2023, 5:43 PM
ashoat added inline comments to D8394: [web] add database module to worker.
Jul 5 2023, 5:36 PM
ashoat added a comment to D8395: [web] add SQLite files to `.gitignore`.

Thanks for explaining!

Jul 5 2023, 5:33 PM
ashoat added inline comments to D8350: [web/native] Add lastCommunicatedPlatformDetails to redux.
Jul 5 2023, 5:32 PM
ashoat requested changes to D8419: [web] Introduce disable link modal.
Jul 5 2023, 5:30 PM
ashoat accepted D8413: [web] Create manage links modal.
Jul 5 2023, 5:16 PM
ashoat added inline comments to D8413: [web] Create manage links modal.
Jul 5 2023, 5:15 PM
ashoat accepted D8423: [web][native] Update invite link copy.

Looks perfect! Thanks for iterating on this

Jul 5 2023, 5:10 PM
ashoat accepted D8027: [web] Scrolling to the edited message when it overflows.

Looks good, but I want to make sure that constants are kept in sync with CSS. I don't see any comments.

Jul 5 2023, 5:07 PM
ashoat accepted D7630: [native] Blocking navigation in edit mode in ChatRouter.
Jul 5 2023, 5:00 PM
ashoat requested changes to D8271: [native] Unblock scrolling when continuing editing.

I really want to accept this, but frankly I'm confused about this diff.

Jul 5 2023, 1:52 AM
ashoat added inline comments to D8420: [keyserver/lib] Add keyserver support for creating roles.
Jul 5 2023, 1:42 AM
ashoat added inline comments to D8422: [keyserver/lib/native] Create updates for new role creation.
Jul 5 2023, 1:39 AM
ashoat accepted D8312: [Docs] Document how to build and deploy tunnelbroker.
Jul 5 2023, 1:35 AM
ashoat accepted D8326: [Docs] Mention Chrome needs to be restarted.
Jul 5 2023, 1:34 AM
ashoat resigned from D8355: [lib] Generate converters from validators.

Thank you, the types look great now!! I unfortunately haven't had time for a detailed review (just to complain about types 😅), so going to resign here so one of the original reviewers can take a closer look

Jul 5 2023, 1:29 AM
ashoat requested changes to D8423: [web][native] Update invite link copy.

Thanks @tomek! Would accept if not for the ManagePublicLinkScreen issue... for that, I'd to review the updates before accepting

Jul 5 2023, 1:22 AM
ashoat updated subscribers of D8350: [web/native] Add lastCommunicatedPlatformDetails to redux.
Jul 5 2023, 12:51 AM
ashoat added inline comments to D8414: [web] Split modal into multiple components.
Jul 5 2023, 12:48 AM

Jul 4 2023

ashoat added inline comments to D8422: [keyserver/lib/native] Create updates for new role creation.
Jul 4 2023, 7:37 PM
ashoat requested changes to D8420: [keyserver/lib] Add keyserver support for creating roles.
Jul 4 2023, 7:35 PM
ashoat added inline comments to D8376: Introduce additional type for Android rescinds to avoid adding undefined notification id and undefined badgeOnly after encryption..
Jul 4 2023, 6:55 PM
ashoat added a comment to D8379: [native] Navigate to a screen to create a new role.

Thanks Rohan for pointing out those inconsistencies! Would you mind putting up a separate diff to fix up the "Create Community" button too (so it's "Create community")? Figure it should only take a sec

Jul 4 2023, 6:49 PM
ashoat accepted D7630: [native] Blocking navigation in edit mode in ChatRouter.

Great work – I think this solution looks almost perfect! Can you make sure to address the inline comments before landing? If there's any ambiguity, or if my suggestion doesn't work for some reason, please feel free to re-request review

Jul 4 2023, 6:47 PM
ashoat requested changes to D8027: [web] Scrolling to the edited message when it overflows.

Thanks for the update! This is really close, but going to request changes one last time due to the number of comments.

Jul 4 2023, 6:34 PM
ashoat requested changes to D8371: [lib] Workaround Flow issues in messages-reducer.

Thanks for pointing to Shape<Media>. I patched this locally and found we can improve things a little bit after fixing that type.

Jul 4 2023, 6:14 PM
ashoat committed rCOMMf6c4df21ff60: [web][keyserver] `codeVersion` -> 8.
Jul 4 2023, 3:15 PM

Jul 3 2023

ashoat requested changes to D8419: [web] Introduce disable link modal.
Jul 3 2023, 6:56 PM
ashoat requested changes to D8405: [Keyserver] Attempt login to identity service.
Jul 3 2023, 6:52 PM
ashoat added a comment to D8380: [lib] Instantiate user-surfaced roles, titles, and descriptions.

Thanks @rohan! Mostly followed up in D8391, but one other thing I wanted to note here:

Jul 3 2023, 6:33 PM
ashoat requested changes to D8391: [native] Populate the create role screen.

I appreciate your response, but I don't think my concern here was addressed:

Jul 3 2023, 6:31 PM
ashoat added a comment to D8395: [web] add SQLite files to `.gitignore`.

Will the resultant WASM-compiled SQLite be committed to the repo or no?

Jul 3 2023, 6:07 PM
ashoat accepted D8415: [web] Introduce edit link modal.
Jul 3 2023, 6:05 PM
ashoat accepted D8413: [web] Create manage links modal.

Accepting to unblock, but have a couple comments. The title stuff could potentially be handled in a follow-up if that's your preference, as I suspect it might require design changes

Jul 3 2023, 5:53 PM
ashoat accepted D8411: [native] Refactor exitEditAlert function.
Jul 3 2023, 5:44 PM
ashoat added inline comments to D8410: [native] switch getViewerAlreadySelectedMessageReactions to useGetViewerAlreadySelectedMessageReactions.
Jul 3 2023, 5:41 PM
ashoat accepted D8370: [lib] Introduce blobURI multimedia message field.
Jul 3 2023, 5:39 PM
ashoat committed rCOMMf499e24e832f: [web][keyserver] `codeVersion` -> 7.
Jul 3 2023, 5:36 PM
ashoat added a comment to D8404: [Keyserver/rust] Remove legacy auth_token configuration.

After this lands, I can remove identity_auth_token from my production keyserver config, yeah?

Jul 3 2023, 5:33 PM
ashoat added inline comments to D8401: [Identity] Allow for setting logging levels through env.
Jul 3 2023, 5:32 PM
ashoat added inline comments to D8330: [keyserver] fetchUsernames helper function.
Jul 3 2023, 5:28 PM
ashoat added inline comments to D8390: [shell] script to generate WASM database code.
Jul 3 2023, 5:24 PM
ashoat accepted D8375: [nix] add emscripten dependency.
Jul 3 2023, 5:21 PM
ashoat added inline comments to D8394: [web] add database module to worker.
Jul 3 2023, 5:19 PM
ashoat added inline comments to D8394: [web] add database module to worker.
Jul 3 2023, 3:17 PM
ashoat resigned from D8408: [services][commtest] Replace gRPC Blob client with HTTP.

Dependency looks good

Jul 3 2023, 2:26 AM
ashoat requested changes to D8355: [lib] Generate converters from validators.

Copy-pasting my comment from earlier:

Jul 3 2023, 2:19 AM
ashoat added a comment to D8355: [lib] Generate converters from validators.

Do you mean that it will desync before getting released or later? Because they not being synchronized, is the reason why we are generating static functions and not using validators directly. If at some point in the future, we update the validators we don't want to also update these functions because the migration code shouldn't change. So the CI job would have to be removed after shipping anyway.

Jul 3 2023, 2:19 AM
ashoat added a reviewer for D8355: [lib] Generate converters from validators: ashoat.

This needs a very close review on the types. It looks pretty daunting, and I don't have time for this tonight unfortunately. Hopefully I will have some time tomorrow, but we'll see.

Jul 3 2023, 2:17 AM
ashoat resigned from D8352: [web] Move createAsyncMigrate to lib.

We already use this dependency

Jul 3 2023, 2:12 AM
ashoat requested changes to D8400: [Keyserver] Apply DB Migrations.

Is there anybody else you can ask to help with review? Best to avoid having me as a solo reviewer. I've been getting pulled into a ton of diff reviews lately (more than before) and my time for them is very limited...

Jul 3 2023, 2:11 AM
ashoat requested changes to D8391: [native] Populate the create role screen.
Jul 3 2023, 1:58 AM
ashoat requested changes to D8380: [lib] Instantiate user-surfaced roles, titles, and descriptions.

This diff is very difficult to review on its own, as the significance of the format of this collection is not clear until you see the callsite in D8391. In general, it's best to include an initial callsite when introducing a utility function / utility collection like this

Jul 3 2023, 1:58 AM
ashoat updated subscribers of D8379: [native] Navigate to a screen to create a new role.
Jul 3 2023, 1:50 AM
ashoat added inline comments to D8351: [web/native] Send platform details on http communication.
Jul 3 2023, 1:46 AM
ashoat added a comment to D8371: [lib] Workaround Flow issues in messages-reducer.

I am behind on a bunch of things and don't have the time to investigate this further right now, but I strongly suspect that we can do better here

Jul 3 2023, 1:41 AM
ashoat requested changes to D8370: [lib] Introduce blobURI multimedia message field.
Jul 3 2023, 1:39 AM
ashoat accepted D8373: Use dedicated functions to get blobURI.

I am accepting this fairly blindly. I don't have a good idea of all the callsites that need to be updated here, or the general data flow. Trusting that @bartek has thought it through and tested it carefully

Jul 3 2023, 1:32 AM

Jul 2 2023

ashoat accepted D8374: [lib][keyserver] Use blobURI based on client version.
Jul 2 2023, 10:05 PM
ashoat accepted D8372: [lib] Add util functions to get blob URI.

It would be easier to review this if you included the first usage in the diff. It helps to be able to see the usage alongside the implementation

Jul 2 2023, 9:13 PM
ashoat requested changes to D8371: [lib] Workaround Flow issues in messages-reducer.

Also it looks like this fails Flow CI

Jul 2 2023, 9:12 PM
ashoat added a comment to D8371: [lib] Workaround Flow issues in messages-reducer.

This is a lot more anys and $FlowFixMes than I expected, and they aren't being immediately cast to a proper type after the any-cast. I'll need to take a closer look and try to type it myself before I can accept this, as I suspect there are better ways to do it. I'm also not sure that every single any-cast and $FlowFixMe is related to the issue that will be solved in the updated version of Flow

Jul 2 2023, 9:06 PM
ashoat accepted D8307: [web] Add manage invite links menu item.
Jul 2 2023, 8:43 PM
ashoat accepted D8300: [keyserver] call identity service during account creation and deletion.
Jul 2 2023, 6:36 PM
ashoat accepted D8406: [keyserver] Add conditional handling for import.meta in tests and update Babel configuration.
Jul 2 2023, 6:34 PM

Jun 30 2023

ashoat accepted D8378: [web/native] Small changes to the change roles stack.
Jun 30 2023, 8:09 AM

Jun 29 2023

ashoat added inline comments to D8135: [web] Show option to change role from the members modal.
Jun 29 2023, 4:00 PM
ashoat accepted D8364: [web] Move `exifRotate` from `input-state-container` to `media-utils`.
Jun 29 2023, 1:50 AM
ashoat accepted D8363: [lib] Consolidate `baseUpdateImageUserAvatar` into `baseSetUserAvatar`.
Jun 29 2023, 1:48 AM
ashoat accepted D8345: Move registrationMode-related logic from `updateImageUserAvatar` to `nativeUpdateUserImageAvatar`.

Thanks for explaining

Jun 29 2023, 1:46 AM
ashoat accepted D8343: Move registrationMode-related logic from `setUserAvatar` to `nativeSetUserAvatar`.

Thanks for explaining

Jun 29 2023, 1:46 AM
ashoat added inline comments to D8160: [native] Create a ChangeRolesHeaderRightButton to save role changes.
Jun 29 2023, 1:43 AM
ashoat accepted D8360: [lib] Rename `updateImageUserAvatar` to `baseUpdateImageUserAvatar` in `EditUserAvatarProvider`.
Jun 29 2023, 1:33 AM
ashoat resigned from D8336: [chore] clean up more services stuff.

I'm not super familiar with the services codebase

Jun 29 2023, 1:29 AM
ashoat resigned from D8244: [services] Delete shared C++ lib.

I'm not super familiar with the services codebase

Jun 29 2023, 1:28 AM
ashoat added inline comments to D8359: [native] Create the community roles screen.
Jun 29 2023, 1:24 AM
ashoat accepted D8334: [chore] remove unused files and folders.
Jun 29 2023, 1:22 AM
ashoat requested changes to D8345: Move registrationMode-related logic from `updateImageUserAvatar` to `nativeUpdateUserImageAvatar`.

Same feedback as in D8343

Jun 29 2023, 1:20 AM
ashoat requested changes to D8343: Move registrationMode-related logic from `setUserAvatar` to `nativeSetUserAvatar`.

I'm confused – what was not platform-agnostic about this before? It seems like you still need the state in lib, so I'm not really sure what this diff is achieving

Jun 29 2023, 1:20 AM
ashoat accepted D8346: Move `native`-specific `uploadSelectedMedia` from `updateImageUserAvatar` to `nativeUpdateUserImageAvatar`.
Jun 29 2023, 1:19 AM
ashoat added a comment to D8355: [lib] Generate converters from validators.
  1. Can you annotate every any-cast with an explanation as to why it is needed? Please include the Flow error you're seeing, and the other things you've tried. Going forward, please always include this when using an any-cast (or something comparable, like Object or Function or $FlowFixMe)
  2. I worry that the codegenned file might get out of sync with its inputs. Before landing, can you create a Linear task to add a CI job that regenerates the file and confirms there are no changes? We should make sure we complete that task before we ship this project.
Jun 29 2023, 1:13 AM
ashoat added inline comments to D8351: [web/native] Send platform details on http communication.
Jun 29 2023, 1:09 AM
ashoat accepted D8341: [native] Introduce `useNativeSetUserAvatar` and use throughout `native`.
Jun 29 2023, 1:00 AM