Skip to content

Annotate most exported connected components.#4943

Merged
chrisbobbe merged 22 commits intozulip:masterfrom
chrisbobbe:pr-annotate-connected-components
Aug 10, 2021
Merged

Annotate most exported connected components.#4943
chrisbobbe merged 22 commits intozulip:masterfrom
chrisbobbe:pr-annotate-connected-components

Conversation

@chrisbobbe
Copy link
Copy Markdown
Contributor

@chrisbobbe chrisbobbe commented Aug 4, 2021

With the exception of MentionWarnings, which I've opened #4942 for, and ComposeMenu, which we have #4796 for. And of course #4926.

Related: #4907

Copy link
Copy Markdown
Member

@gnprice gnprice left a comment

Choose a reason for hiding this comment

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

Thanks @chrisbobbe! All looks good, with one nit below; then please merge at will.

Comment thread src/compose/ComposeBox.js
Comment on lines +85 to +94
type Props = $ReadOnly<{|
...OuterProps,

// from withSafeAreaInsets
insets: EdgeInsets,

// from `connect`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: Let's put these (and the prop from withGetText, below) in a consistent order relative to how we do the wrapping, so it's easy to compare the two and see that they line up.

In the common case with just connect, we generally put those at the end, so I guess let's do it consistent with that: OuterProps first, then the next thing inward (which is withGetText), then the next thing inward, etc.

We should eventually convert this to a function component for zulip#4837.

In the meantime, this annotation will get us closer to switching to
Flow's new "Types-First" mode; that's zulip#4907.
Like we currently do in `MessageList`, where the set of props that
callers are meant to pass gets a bit opaque from the use of several
HOCs. See
  https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/Flow.20types-first/near/1243407.
We should eventually convert this to a function component for zulip#4837.

In the meantime, this annotation will get us closer to switching to
Flow's new "Types-First" mode; that's zulip#4907.
We should eventually convert this to a function component for zulip#4837.

In the meantime, this annotation will get us closer to switching to
Flow's new "Types-First" mode; that's zulip#4907.
We should eventually convert this to a function component for zulip#4837.

In the meantime, this annotation will get us closer to switching to
Flow's new "Types-First" mode; that's zulip#4907.
We should eventually convert this to a function component for zulip#4837.

In the meantime, this annotation will get us closer to switching to
Flow's new "Types-First" mode; that's zulip#4907.
We should eventually convert this to a function component for zulip#4837.

In the meantime, this annotation will get us closer to switching to
Flow's new "Types-First" mode; that's zulip#4907.
We should eventually convert this to a function component for zulip#4837.

In the meantime, this annotation will get us closer to switching to
Flow's new "Types-First" mode; that's zulip#4907.
We should eventually convert this to a function component for zulip#4837.

In the meantime, this annotation will get us closer to switching to
Flow's new "Types-First" mode; that's zulip#4907.
We should eventually convert this to a function component for zulip#4837.

In the meantime, this annotation will get us closer to switching to
Flow's new "Types-First" mode; that's zulip#4907.
We should eventually convert this to a function component for zulip#4837.

In the meantime, this annotation will get us closer to switching to
Flow's new "Types-First" mode; that's zulip#4907.
We should eventually convert this to a function component for zulip#4837.

In the meantime, this annotation will get us closer to switching to
Flow's new "Types-First" mode; that's zulip#4907.
@chrisbobbe chrisbobbe force-pushed the pr-annotate-connected-components branch from e4581c3 to 1990c46 Compare August 10, 2021 22:44
@chrisbobbe
Copy link
Copy Markdown
Contributor Author

Thanks for the review! Merged, with that tweak.

@chrisbobbe chrisbobbe merged commit 1990c46 into zulip:master Aug 10, 2021
@chrisbobbe chrisbobbe deleted the pr-annotate-connected-components branch November 4, 2021 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants