Page MenuHomePhabricator
Feed Advanced Search

Aug 25 2022

abosh added inline comments to D4890: [native] Make `failed` `boolean` in `PendingMultimediaUpload`.
Aug 25 2022, 7:26 AM
abosh added a reviewer for D4890: [native] Make `failed` `boolean` in `PendingMultimediaUpload`: ashoat.

@ashoat do you remember why this prop was a string instead of a boolean?

Aug 25 2022, 7:24 AM
abosh updated the test plan for D4941: [keyserver] Add message report creator.
Aug 25 2022, 7:13 AM
abosh accepted D4941: [keyserver] Add message report creator.

Ah that makes sense! 🤦 Ashoat is the keyserver admin, so the report would only come to him on his account.

Aug 25 2022, 7:07 AM

Aug 24 2022

abosh added inline comments to D4941: [keyserver] Add message report creator.
Aug 24 2022, 9:05 AM
abosh requested changes to D4941: [keyserver] Add message report creator.

For some reason, the Test Plan isn't working for me. Is there something I'm misunderstanding or extra I need to do?

Aug 24 2022, 9:02 AM
abosh updated the test plan for D4941: [keyserver] Add message report creator.
Aug 24 2022, 8:44 AM
abosh attached a referenced file: F148406: image.png.
Aug 24 2022, 8:37 AM
abosh attached a referenced file: F148405: image.png.
Aug 24 2022, 8:37 AM
abosh accepted D4926: [Docs] Update nix dev env status.
Aug 24 2022, 8:37 AM
abosh updated the diff for D4891: [web] Make `failed` `boolean` in `PendingMultimediaUpload`.

Remove failureMessage prop (see discussion on D4890).

Aug 24 2022, 8:31 AM
abosh attached a referenced file: F148338: image.png.
Aug 24 2022, 8:29 AM
abosh updated the summary of D4891: [web] Make `failed` `boolean` in `PendingMultimediaUpload`.
Aug 24 2022, 8:28 AM
abosh updated the diff for D4890: [native] Make `failed` `boolean` in `PendingMultimediaUpload`.

Remove failureMessage prop

Aug 24 2022, 8:27 AM
abosh added a comment to D4890: [native] Make `failed` `boolean` in `PendingMultimediaUpload`.

I wound't say it is used here. We only set it as a prop of an object, but this prop doesn't seem to be used. Do we really need this prop at all? I'm asking, because if there was a code which used failed message content, this diff should have a place where failed is replaced by failureMessage, but I don't see thing like that.

Aug 24 2022, 8:24 AM

Aug 23 2022

abosh added a comment to D4929: [Chore] Minor text linting.

Herald rule added you

Aug 23 2022, 4:23 PM
abosh requested review of D4932: [web] Simplify `return` value of `changeThreadSettingsAction`.
Aug 23 2022, 2:44 PM
abosh requested review of D4931: [web] Disable Save button after settings are saved in `ThreadSettingsGeneralTab`.
Aug 23 2022, 2:30 PM
abosh accepted D4929: [Chore] Minor text linting.
Aug 23 2022, 2:29 PM
abosh requested review of D4930: [web] Memoize `loginButtonContent` and `saveButtonContent`.
Aug 23 2022, 2:24 PM
abosh resigned from D4928: [Nix] Fix corrosion logic when rustc is on PATH.
Aug 23 2022, 1:38 PM
abosh requested changes to D4926: [Docs] Update nix dev env status.
Aug 23 2022, 1:38 PM
abosh added inline comments to D4926: [Docs] Update nix dev env status.
Aug 23 2022, 12:07 PM
abosh attached a referenced file: F147230: image.png.
Aug 23 2022, 12:07 PM
abosh requested changes to D4926: [Docs] Update nix dev env status.

Not too sure about the Nix side of this (looks like @ashoat already gave some high-level feedback which should take precedence over my feedback) but there are some things that can be cleaned up on the Markdown level.

Aug 23 2022, 12:06 PM
abosh attached a referenced file: F147096: image.png.
Aug 23 2022, 12:03 PM
abosh attached a referenced file: F147097: image.png.
Aug 23 2022, 12:03 PM
abosh accepted D4908: [web] Introduce `TooltipContext`.

Makes sense, but adding @tomek and @atul as blocking so they can look. feel free to change blocking status.

Aug 23 2022, 10:39 AM
abosh added a comment to D4909: [web] Introduce `clearTooltip` and `renderTooltip` functions in `TooltipContext`.

Just have some questions, but still want @atul and @tomek to take a look.

Aug 23 2022, 10:39 AM
abosh accepted D4882: [Nix] Warn user of writes to /etc/nix/nix.conf.

Yup makes sense!

Aug 23 2022, 10:10 AM
abosh added inline comments to D4925: [web] Use safer type declarations instead of invariants.
Aug 23 2022, 7:44 AM
abosh updated the summary of D4890: [native] Make `failed` `boolean` in `PendingMultimediaUpload`.
Aug 23 2022, 6:58 AM
abosh updated the summary of D4890: [native] Make `failed` `boolean` in `PendingMultimediaUpload`.
Aug 23 2022, 6:58 AM
abosh added a comment to D4925: [web] Use safer type declarations instead of invariants.

Only took a quick look because I think at least one of @atul @jacek or @tomek should take a look so not going to request review/accept, but left some inline comments.

Aug 23 2022, 6:54 AM

Aug 22 2022

abosh accepted D4903: [Nix] Factor out dev env variable logic to another file.

Looks good.

Aug 22 2022, 6:33 PM
abosh accepted D4902: [Nix] Only prompt Powerline when an interactive shell.

Nice, looks like the Buildkite CI passes as well.

Aug 22 2022, 6:29 PM
abosh requested changes to D4901: [native] Rename timestamp variables in `uploadFile(...)` for clarity.
Aug 22 2022, 6:26 PM
abosh accepted D4900: [native] Rename callbacks in `InputStateContainer:uploadFile` for clarity.
Aug 22 2022, 6:19 PM
abosh accepted D4880: [Nix] Auto start redis on nix develop.
Aug 22 2022, 1:51 PM
abosh accepted D4882: [Nix] Warn user of writes to /etc/nix/nix.conf.
Aug 22 2022, 1:36 PM
abosh requested review of D4899: [native] Convert `ColorSelectorModal` to a functional component.
Aug 22 2022, 1:21 PM
abosh requested review of D4898: [keyserver] Add `uploadResult` to `uploadRows` object in `createUploads`.
Aug 22 2022, 12:45 PM
abosh added inline comments to D4875: [Nix] Attempt to start mariadb on every nix develop.
Aug 22 2022, 10:40 AM
abosh accepted D4881: [Nix] Reduce services noise when doing nix develop.

This revision is okay, but the rest of the stack still needs to be addressed.

Aug 22 2022, 10:28 AM

Aug 19 2022

abosh requested review of D4892: [native] Use `Array.some(...)` in `uploadInProgress`.
Aug 19 2022, 2:21 PM
abosh requested review of D4891: [web] Make `failed` `boolean` in `PendingMultimediaUpload`.
Aug 19 2022, 2:13 PM
abosh updated the diff for D4890: [native] Make `failed` `boolean` in `PendingMultimediaUpload`.

Remove ? from failureMessage's type, making it only string.

Aug 19 2022, 1:58 PM
abosh requested review of D4890: [native] Make `failed` `boolean` in `PendingMultimediaUpload`.
Aug 19 2022, 1:56 PM
abosh requested changes to D4882: [Nix] Warn user of writes to /etc/nix/nix.conf.
Aug 19 2022, 1:32 PM
abosh requested changes to D4880: [Nix] Auto start redis on nix develop.

Have a hunch that folks on the team are going to ask if we can separate this into separate .sh file or somehow run shellcheck on the contents... might be worth leaving a comment here to preempt that?

Aug 19 2022, 12:36 PM
abosh accepted D4879: [Nix] Move daemon creation to separate script.

Awesome, this guarantees ShellCheck can take a look at the code before reviewers!

Aug 19 2022, 12:16 PM
abosh accepted D4875: [Nix] Attempt to start mariadb on every nix develop.

Ok, accepting this because the Test Plan worked for me but I'm always wary of accepting diffs that have code that hasn't been explicitly run through the ShellCheck CI. If we could figure that out it'd be awesome!

Aug 19 2022, 12:03 PM
abosh closed D4877: [native] Clean up lines in `retryMultimediaMessage`.
Aug 19 2022, 10:21 AM
abosh committed rCOMM2cc525b67b96: [native] Clean up lines in `retryMultimediaMessage` (authored by abosh).
[native] Clean up lines in `retryMultimediaMessage`
Aug 19 2022, 10:21 AM
abosh added a comment to D4877: [native] Clean up lines in `retryMultimediaMessage`.
In D4877#141648, @atul wrote:

I'm also reasoning through InputStateContainer at the moment so understand and appreciate the initiative to try to refactor things!

That said, trying to clean up all of these little stylistic syntax things could be a slippery slope. Even when the changes are simple there's still overhead in terms of putting up a diff, writing out Summary/Test Plan, having it reviewed, etc.

I think we should try to focus our refactoring efforts on changes that help improve comprehension. That could be breaking down chunks of logic into separate functions, renaming variables/functions to be more descriptive, making minor architecture changes to make things more intuitive, etc.


The issue you pointed out with failed is a great candidate for improving comprehension via refactoring:

Like failed being a string instead of being a boolean makes little sense. Because if !failed is true (so failed is null basically), that means an upload is in progress, and if failed is not null or undefined (so failed is truthy), that means an upload is NOT in progress. Like what, shouldn't failed being truthy mean an upload failed, since failed being truthy kind of sounds like something failed. just make it a boolean! Then if failed is true, that means the upload failed


That said, if you notice these little syntax things as you're working and it's minimal effort to just quickly put up a diff, feel free to keep putting them up! I think it's definitely an improvement, just don't want us to get too carried away with trying to solve all of these minor style things.

Aug 19 2022, 10:20 AM

Aug 18 2022

abosh requested review of D4877: [native] Clean up lines in `retryMultimediaMessage`.
Aug 18 2022, 1:26 PM
abosh requested changes to D4875: [Nix] Attempt to start mariadb on every nix develop.

Some inline comments and questions. Confirmed the Test Plan worked for me.

image.png (1×1 px, 238 KB)

Aug 18 2022, 1:19 PM
abosh accepted D4866: [web] Update `SWMansionIcon` component with cleaned up icons.

Thanks for the inline comments, those are really useful. Maybe one of the diffs in an icons stack could be moved to the Diff Hall of Fame 👀

Aug 18 2022, 12:11 PM
abosh accepted D4874: [web] Set `stroke: none` for `SWMansionIcon` SVGs.
Aug 18 2022, 12:03 PM
abosh closed D4873: [web] Use nullish coalescing operator in `InputStateContainer`.
Aug 18 2022, 11:43 AM
abosh committed rCOMMeef5b67932f4: [web] Use nullish coalescing operator in `InputStateContainer` (authored by abosh).
[web] Use nullish coalescing operator in `InputStateContainer`
Aug 18 2022, 11:43 AM
abosh requested review of D4873: [web] Use nullish coalescing operator in `InputStateContainer`.
Aug 18 2022, 10:06 AM
abosh accepted D4872: [Nix] Expose rustc to development shell.

Confirmed this works.

image.png (1×1 px, 237 KB)

Aug 18 2022, 9:59 AM
abosh accepted D4865: [native] Update `SWMansionIcon` component with cleaned up icons.

There are a few icons that don't appear and have a in their place. I'll go through and replace the old icon names with the corresponding new ones.

Aug 18 2022, 9:48 AM

Aug 17 2022

abosh accepted D4863: [web] Replace `sidebar` and `reply` icon `MessageTooltip` with `CommIcon`.

The filled versions look better in my opinion, so that’s awesome!

Aug 17 2022, 10:47 AM
abosh accepted D4862: [Nix] Configure nix before attempting Powerline install.

It works!

image.png (1×2 px, 445 KB)

Aug 17 2022, 9:50 AM
abosh added a comment to D4862: [Nix] Configure nix before attempting Powerline install.

I noticed that you're on master. This PR is to address this exact issue. You can do arc patch D4862 and then try again.

Aug 17 2022, 9:45 AM
abosh requested changes to D4862: [Nix] Configure nix before attempting Powerline install.

sudo tee /etc/nix/nix.conf > /dev/null

Aug 17 2022, 8:13 AM
abosh closed D4853: Use `==` in string equality check in `detect_abis.sh`.
Aug 17 2022, 7:38 AM
abosh committed rCOMM42e38d9502a4: Use `==` in string equality check in `detect_abis.sh` (authored by abosh).
Use `==` in string equality check in `detect_abis.sh`
Aug 17 2022, 7:38 AM
abosh added a comment to D4853: Use `==` in string equality check in `detect_abis.sh`.
In D4853#140513, @jon wrote:

= is the same as == in any shell that supports [[...]]

Aug 17 2022, 7:36 AM

Aug 16 2022

abosh requested review of D4853: Use `==` in string equality check in `detect_abis.sh`.
Aug 16 2022, 6:28 PM
abosh closed D4851: [native] Clean up `detect_abis.sh`.
Aug 16 2022, 6:10 PM
abosh committed rCOMMb836238ee3e1: [native] Clean up `detect_abis.sh` (authored by abosh).
[native] Clean up `detect_abis.sh`
Aug 16 2022, 6:10 PM
abosh updated the diff for D4851: [native] Clean up `detect_abis.sh`.

Would prefer to use associative arrays, but can't guarantee bash4+ is available until after move to nix dev

Aug 16 2022, 6:09 PM
abosh added inline comments to D4851: [native] Clean up `detect_abis.sh`.
Aug 16 2022, 6:09 PM
abosh retitled D4848: [lib] Clear enabled apps on logout from [lib] Clear enabled aps on logout to [lib] Clear enabled apps on logout.
Aug 16 2022, 2:06 PM
abosh accepted D4844: [Nix] Add nix installation script.
In D4844#140414, @jon wrote:

@abosh , please test the nix.conf workflow again.

Aug 16 2022, 2:04 PM
abosh accepted D4852: [web] Replace `cloud-filled` icon in `ChatThreadAncestors` with `CommIcon`.
WARNING: The actual icon changed. I'm using the same cloud icon we decided with Alicja to go with on native. I strongly think we should go with the same filled cloud icon on web because A. consistency B. it looks a lot better than an open path.
Aug 16 2022, 1:32 PM
abosh accepted D4850: [web] Introduce `CommIcon` component.
Aug 16 2022, 1:28 PM
abosh accepted D4844: [Nix] Add nix installation script.
Aug 16 2022, 1:14 PM
abosh requested review of D4851: [native] Clean up `detect_abis.sh`.
Aug 16 2022, 1:12 PM
abosh accepted D4844: [Nix] Add nix installation script.
Aug 16 2022, 12:11 PM
abosh updated the summary of D4849: [native] Replace `reply-filled` icon in `SwipeableMessage` with `CommIcon`.
Aug 16 2022, 11:08 AM
abosh updated the summary of D4849: [native] Replace `reply-filled` icon in `SwipeableMessage` with `CommIcon`.
Aug 16 2022, 11:08 AM
abosh updated the summary of D4849: [native] Replace `reply-filled` icon in `SwipeableMessage` with `CommIcon`.
Aug 16 2022, 11:07 AM
abosh requested changes to D4844: [Nix] Add nix installation script.

Cool! Just some more inline questions I missed on my first pass.

Aug 16 2022, 11:06 AM
abosh accepted D4845: [Docs] Update nix installation notes.

Looks good!

Aug 16 2022, 10:36 AM
abosh accepted D4843: [Nix] Use file to determine user preference.

Ok, thanks for addressing my feedback!

Aug 16 2022, 10:28 AM
abosh attached a referenced file: F140095: image.png.
Aug 16 2022, 10:23 AM
abosh requested changes to D4844: [Nix] Add nix installation script.

trusted users (for cache)

Aug 16 2022, 10:23 AM
abosh requested changes to D4843: [Nix] Use file to determine user preference.

Couldn't different shell settings potentially break reproducibility?

Aug 16 2022, 9:42 AM
abosh accepted D4840: [native] Replace `sidebar-filled` icon in `SwipeableMessage` with `CommIcon`.

Ok, looks good!

Aug 16 2022, 8:32 AM
abosh added a comment to D4836: [native] Remove `sortBy` property from `fetchPhotos`.

Sorry! My bad, in the rush of trying to get the issue marked as done before the dev sync I forgot to respond. Definitely won’t do that again. I know the importance of “accepting with comments” so I should have been more diligent.

Aug 16 2022, 8:30 AM
abosh added inline comments to D4845: [Docs] Update nix installation notes.
Aug 16 2022, 8:13 AM
abosh attached a referenced file: F140035: image.png.
Aug 16 2022, 8:13 AM
abosh requested changes to D4845: [Docs] Update nix installation notes.

This is so much cleaner, I'm only requesting changes to get your feedback on some inline comments. But this looks so much better!


Additionally, @ashoat and @varun should always be listed as reviewers for docs diffs. But looks like @ashoat already saw/gave feedback on this diff. Adding him just in case.

image.png (794×1 px, 124 KB)

Aug 16 2022, 8:02 AM
abosh closed D4836: [native] Remove `sortBy` property from `fetchPhotos`.
Aug 16 2022, 7:42 AM
abosh committed rCOMM091b31930a10: [native] Remove `sortBy` property from `fetchPhotos` (authored by abosh).
[native] Remove `sortBy` property from `fetchPhotos`
Aug 16 2022, 7:42 AM
abosh abandoned D4838: [native] Rename `swmansion.ttf` to `SWMansion.ttf`.
In D4838#140143, @atul wrote:

Appreciate how quickly you put this up, but unfortunately I'll be recreating this file anyways so we should probably just abandon this diff.

Once recreated, both the filename and font name (which you can find in the information section of Font Book on your Mac, see below) will be in sync

Screen Shot 2022-08-16 at 10.27.50 AM.png (938×1 px, 283 KB)

Aug 16 2022, 7:33 AM