Page MenuHomePhabricator
Feed Advanced Search

Oct 20 2022

michal updated the diff for D5322: [web] Use Button for text buttons.

Update. After changes to :hover behaviour in the newest revision of the previous diff, there are no longer visual changes in the thread composer.

Oct 20 2022, 6:39 AM
michal added inline comments to D5321: [web] Separate color in Button.
Oct 20 2022, 6:23 AM

Oct 19 2022

michal added 1 blocking reviewer(s) for D5321: [web] Separate color in Button: tomek.
Oct 19 2022, 6:23 AM
michal added inline comments to D5321: [web] Separate color in Button.
Oct 19 2022, 6:22 AM
michal updated the diff for D5321: [web] Separate color in Button.

Update

Oct 19 2022, 6:22 AM

Oct 18 2022

michal added 1 blocking reviewer(s) for D5321: [web] Separate color in Button: tomek.
Oct 18 2022, 6:00 AM
michal updated the diff for D5321: [web] Separate color in Button.

Update. Changed typing and re-added the transparent border. To keep all the properties dealing with border in sync I have added two css variables. Otherwise if someone wanted to change the border width or radius there would subtle visual bugs.

Oct 18 2022, 6:00 AM

Oct 17 2022

michal updated the test plan for D5321: [web] Separate color in Button.
Oct 17 2022, 6:29 AM
michal attached a referenced file: F202029: image.png.
Oct 17 2022, 6:28 AM
michal attached a referenced file: F202030: image.png.
Oct 17 2022, 6:28 AM
michal attached a referenced file: F202023: image.png.
Oct 17 2022, 6:26 AM
michal attached a referenced file: F202024: image.png.
Oct 17 2022, 6:26 AM
michal updated the diff for D5321: [web] Separate color in Button.

Updated to the new method. There's a slight visual change because now instead of using predefined colors for :hover colors we are using the filter property. I have tried to select the brightness values so that the changes are minimal (before/after):

Oct 17 2022, 6:24 AM
michal planned changes to D5321: [web] Separate color in Button.

I have talked with @tomek about this and we have figured out a solution without the z-index. I will update this diff shortly.

Oct 17 2022, 4:24 AM
michal requested review of D5321: [web] Separate color in Button.
Oct 17 2022, 1:10 AM
michal added a comment to D5321: [web] Separate color in Button.

Sorry, I should have explained more and not just dropped the code in the comment.

Oct 17 2022, 1:09 AM

Oct 14 2022

michal requested review of D5321: [web] Separate color in Button.
Oct 14 2022, 11:19 AM
michal added a comment to D5321: [web] Separate color in Button.

Without the z-index the ::before pseudo-element covers the Button children and I couldn't find a way to make it work without it.

Oct 14 2022, 11:18 AM
michal requested review of D5321: [web] Separate color in Button.
Oct 14 2022, 10:16 AM
michal added a comment to D5321: [web] Separate color in Button.

Are you sure about this? Can you perhaps link some StackOverflow or GitHub discussions that talk about this? I wonder what would happen if you dynamically (in JS) render a <style> tag

Here and here. I couldn't find anything that explicitly states that it's impossible but it seems like it. I tried just including ':hover': {color: 'red'} in the inline styles but it didn't work for me.
I think rendering <style> is one of the workarounds mentioned in the linked posts but it doesn't seem that great to me.

Oct 14 2022, 10:16 AM
michal requested review of D5321: [web] Separate color in Button.
Oct 14 2022, 8:32 AM
michal updated the diff for D5321: [web] Separate color in Button.

After talking with @ashoat it seems like the previous changes are not the best solution. In particular they don't support hover animation for all colors and only for the predefined success and danger.

Oct 14 2022, 8:31 AM
michal abandoned D5344: [web] Remove hover tint from relationship buttons.

Abandoning the diff in favour of other solutions.

Oct 14 2022, 8:09 AM

Oct 12 2022

michal added inline comments to D5343: [web] Use plain Button instead of html elements.
Oct 12 2022, 2:00 AM
michal updated the diff for D5343: [web] Use plain Button instead of html elements.

I tried to be as thorough as I could while testing, I will probably take another look at all the buttons before landing.

Oct 12 2022, 1:57 AM
michal updated the test plan for D5343: [web] Use plain Button instead of html elements.
Oct 12 2022, 1:48 AM
michal requested review of D5322: [web] Use Button for text buttons.
Oct 12 2022, 1:46 AM
michal updated the summary of D5322: [web] Use Button for text buttons.
Oct 12 2022, 1:44 AM
michal updated the diff for D5322: [web] Use Button for text buttons.

Added text-transform: uppercase back. This update also fixes two bugs that introduce changes to visuals so I'm requesting a review again.

  • the RETRY? button didn't change color depending on chat color (I didn't notice it before because I was testing on a blue chat)
  • The DELIVERY FAILED text was black so it wasn't visible. I wanted to create a task for this later, but while adding text-transform back I think it made sense to do this here instead of a one-line change later.

Please see the summary for images.

Oct 12 2022, 1:40 AM
michal added a comment to D5344: [web] Remove hover tint from relationship buttons.

Kind of agree, although I also agree with @atul that the green tint is a bit too dark.

Oct 12 2022, 1:19 AM

Oct 11 2022

michal updated the diff for D5324: [web] Use Button for relationship buttons.

Memoize buttonColor

Oct 11 2022, 8:12 AM
michal requested review of D5344: [web] Remove hover tint from relationship buttons.
Oct 11 2022, 8:10 AM
michal updated the diff for D5324: [web] Use Button for relationship buttons.

Remove different hover behaviour.

Oct 11 2022, 7:44 AM
michal requested review of D5343: [web] Use plain Button instead of html elements.
Oct 11 2022, 7:28 AM
michal added 1 blocking reviewer(s) for D5323: [web] Use Button in join chat button: tomek.
Oct 11 2022, 7:20 AM
michal updated the summary of D5342: [web] Introduce plain Button variant.
Oct 11 2022, 6:55 AM
michal requested review of D5342: [web] Introduce plain Button variant.
Oct 11 2022, 6:50 AM
michal added a comment to D5322: [web] Use Button for text buttons.

According to this article it's better for screen-readers (and it's better for a few other reasons but I don't think they are applicable to our example). I think we should change it back to text-transform.

Oct 11 2022, 6:32 AM
michal updated the summary of D5327: [web] Use <a> instead of <div> in some places.
Oct 11 2022, 6:21 AM
michal updated the diff for D5327: [web] Use <a> instead of <div> in some places.

Cleaned up css.

Oct 11 2022, 6:12 AM
michal requested review of D5324: [web] Use Button for relationship buttons.
Oct 11 2022, 6:10 AM
michal requested review of D5323: [web] Use Button in join chat button.
Oct 11 2022, 6:04 AM
michal updated the diff for D5323: [web] Use Button in join chat button.

Cleaned up css.

Oct 11 2022, 6:03 AM
michal requested review of D5322: [web] Use Button for text buttons.
Oct 11 2022, 6:02 AM
michal attached a referenced file: F195909: Screen Recording 2022-10-11 at 14.45.55.mov.
Oct 11 2022, 6:01 AM
michal updated the summary of D5322: [web] Use Button for text buttons.
Oct 11 2022, 6:00 AM
michal updated the diff for D5322: [web] Use Button for text buttons.

Removed the text-transform: uppercase. Fixed a bug with buttons in thread composer and this resulted in a slight change in visuals (see the updated summary). But that could be easily changed if it's undesirable.

Oct 11 2022, 5:58 AM
michal added a comment to D5324: [web] Use Button for relationship buttons.

Thanks for the help, I think it should be visible now!

Oct 11 2022, 5:50 AM
michal attached a referenced file: F195779: image.png.
Oct 11 2022, 5:48 AM
michal added 1 blocking reviewer(s) for D5321: [web] Separate color in Button: tomek.
Oct 11 2022, 5:38 AM
michal added inline comments to D5321: [web] Separate color in Button.
Oct 11 2022, 5:38 AM
michal updated the diff for D5321: [web] Separate color in Button.

Rename variants and buttonColor prop.

Oct 11 2022, 5:37 AM
michal updated the test plan for D5323: [web] Use Button in join chat button.
Oct 11 2022, 2:50 AM
michal added a comment to D5324: [web] Use Button for relationship buttons.

Sorry, I should have caught that!

Oct 11 2022, 1:47 AM
michal planned changes to D5322: [web] Use Button for text buttons.
Oct 11 2022, 1:16 AM
michal updated the summary of D5322: [web] Use Button for text buttons.
Oct 11 2022, 1:16 AM
michal added a comment to D5322: [web] Use Button for text buttons.

There's a css block:

div.failedSend {
  text-transform: uppercase;
  (...)
}

that previously applied to the "Retry?", but now that we use Button it had to be copied to retryButtonText. So I just kept the old behaviour, but I don't see any reason why we couldn't just use RETRY? (and <span>DELIVERY FAILED.</span>).

Oct 11 2022, 1:12 AM

Oct 10 2022

michal added a comment to D5321: [web] Separate color in Button.
In D5321#157310, @atul wrote:

Do you think it would be clearer if we renamed primary to filled and secondary to outline to help distinguish the two variants?

Oct 10 2022, 9:28 AM
michal requested review of D5327: [web] Use <a> instead of <div> in some places.
Oct 10 2022, 4:08 AM
michal requested review of D5324: [web] Use Button for relationship buttons.
Oct 10 2022, 3:11 AM
michal requested review of D5323: [web] Use Button in join chat button.
Oct 10 2022, 3:07 AM
michal requested review of D5322: [web] Use Button for text buttons.
Oct 10 2022, 2:59 AM
michal requested review of D5321: [web] Separate color in Button.
Oct 10 2022, 2:10 AM

Oct 5 2022

michal updated the diff for D5281: [web] Notifications dialog - add text.

Shorter lines

Oct 5 2022, 4:53 AM
michal updated the diff for D5201: [native] Throw JSError in sync functions.

Rebase

Oct 5 2022, 4:09 AM

Oct 4 2022

michal updated the diff for D5281: [web] Notifications dialog - add text.

Made requested changes, rebase

Oct 4 2022, 2:29 AM
michal updated the diff for D5279: [web] Notifications dialog - change name.

Use threadIsSidebar, rebase

Oct 4 2022, 2:12 AM
michal updated the diff for D5284: [lib] Block user from writing in sidebars.

Rebase

Oct 4 2022, 1:42 AM

Oct 3 2022

michal requested review of D5284: [lib] Block user from writing in sidebars.
Oct 3 2022, 7:09 AM
michal added a comment to D5271: [web] modified InlineSidebar container width to fix horizontal scrolling in ChatMessageList.

I can confirm that this fixes the issue for me!

Oct 3 2022, 6:33 AM
michal added 1 blocking reviewer(s) for D5201: [native] Throw JSError in sync functions: tomek.
Oct 3 2022, 6:14 AM
michal updated the diff for D5201: [native] Throw JSError in sync functions.

Rebase, tested variants mentioned by ashoat

Oct 3 2022, 6:14 AM
michal abandoned D5255: [web] Update notifications dialog for sidebars.

After 1-1 with Ashoat most changes here are not applicable, so I'm closing this and creating another stack.

Oct 3 2022, 2:51 AM
michal requested review of D5281: [web] Notifications dialog - add text.
Oct 3 2022, 2:39 AM
michal requested review of D5280: [web] Notifications dialog - disable background option.
Oct 3 2022, 2:33 AM
michal requested review of D5279: [web] Notifications dialog - change name.
Oct 3 2022, 2:31 AM

Sep 30 2022

michal updated the diff for D5229: [native] Warn if notif is too big after omiting messageInfo.

Rebase

Sep 30 2022, 6:41 AM
michal added 1 blocking reviewer(s) for D5229: [native] Warn if notif is too big after omiting messageInfo: tomek.
Sep 30 2022, 3:34 AM
michal updated the diff for D5229: [native] Warn if notif is too big after omiting messageInfo.

Added comment

Sep 30 2022, 3:33 AM
michal updated the diff for D5254: [native] Remove background option from sidebar settings.

Rebase on master

Sep 30 2022, 3:11 AM

Sep 29 2022

michal updated the diff for D5219: [native] Unify thread settings accessibility.

Rebase

Sep 29 2022, 6:04 AM
michal requested review of D5229: [native] Warn if notif is too big after omiting messageInfo.
Sep 29 2022, 6:00 AM
michal updated the diff for D5229: [native] Warn if notif is too big after omiting messageInfo.

Added notification id to the logs on android and ios.

Sep 29 2022, 6:00 AM
michal planned changes to D5255: [web] Update notifications dialog for sidebars.
Sep 29 2022, 5:12 AM
michal updated the diff for D5203: [services] Move constants to a separate file in commtest.

Rebase on master, run the tests instead of just compiling

Sep 29 2022, 5:08 AM
michal added inline comments to D5229: [native] Warn if notif is too big after omiting messageInfo.
Sep 29 2022, 3:52 AM
michal updated the diff for D5247: [lib/ native] Rename fetchJSON to callServerEndpoint.

Additional rename, rebase

Sep 29 2022, 3:00 AM
michal added inline comments to D5247: [lib/ native] Rename fetchJSON to callServerEndpoint.
Sep 29 2022, 2:38 AM
michal requested review of D5255: [web] Update notifications dialog for sidebars.
Sep 29 2022, 1:49 AM
michal requested review of D5254: [native] Remove background option from sidebar settings.
Sep 29 2022, 1:34 AM

Sep 28 2022

michal updated the diff for D5229: [native] Warn if notif is too big after omiting messageInfo.

Added explicit return in response to review. Also based on the notes about .length() which makes the notification immutable, added a defensive _cloneDeep before checking the notification size without the messageInfos.

Sep 28 2022, 3:13 AM
michal requested review of D5247: [lib/ native] Rename fetchJSON to callServerEndpoint.
Sep 28 2022, 2:21 AM

Sep 27 2022

michal added a comment to D5219: [native] Unify thread settings accessibility.

Yes, I've checked. I will amend the test plan right now.

Sep 27 2022, 8:30 AM
michal updated the test plan for D5219: [native] Unify thread settings accessibility.
Sep 27 2022, 8:28 AM
michal added a comment to D5201: [native] Throw JSError in sync functions.

According to this stackoverflow comment (which isn't about if constexpr but still applies) compilers can backport useful features from newer versions of the standard to the previous versions if they are purely additive and wouldn't change the meaning of the code. This is probably what's happening here. There's a Wno-C++17-extensions flag if we want to disable this behavior (although we depend on c++17 in a few other places, as noted in the previous comment).

Sep 27 2022, 8:16 AM
michal added a reviewer for D5203: [services] Move constants to a separate file in commtest: tomek.
Sep 27 2022, 7:07 AM
michal added inline comments to D5229: [native] Warn if notif is too big after omiting messageInfo.
Sep 27 2022, 7:04 AM
michal updated the test plan for D5201: [native] Throw JSError in sync functions.
Sep 27 2022, 6:14 AM
michal updated the diff for D5201: [native] Throw JSError in sync functions.

Update, removed some duplicate code.
I had to use if constexpr to differentiate between void and non-void instantiations of runSyncOrThrowJSError, because promise<void>::set_value takes no arguments so we can't call set_value(task()) (even if task returns void).
There's a warning while building android version:

warning: constexpr if is a C++17 extension [-Wc++17-extensions]

but there are already similar warnings about other code in this file:

warning: decomposition declarations are a C++17 extension [-Wc++17-extensions]
for (const auto &[message, media] : messagesVector) {

and it compiles on both android and ios.
There are ways to avoid using c++17 features but they would be much uglier.

Sep 27 2022, 6:04 AM
michal added 1 blocking reviewer(s) for D5203: [services] Move constants to a separate file in commtest: marcin.
Sep 27 2022, 5:09 AM