zulip/web
Lalit 1c8bf4f050 people: Make `get_by_user_id` type-safe.
We should make `get_by_user_id` type-safe in the sense that it's caller
should not expect undefined values and hence it's caller should not
need to validate the user ids.

To do this I extracted a method `maybe_get_user_by_id` which is
type-unsafe version of this function which will allow undefined values
and will behave exactly the same as the previous version. So the callers
which expects the undefined values from this function should use this
new function `maybe_get_user_by_id`.

Probably about half of these callers are implicitly iterating through
all users in the people.js data set and thus by construction should
never fail, but it's simpler to just convert all existing callers than
do that audit.
2023-07-02 16:57:16 -07:00
..
e2e-tests web-e2e-tests: Update references to "private message" and "PM". 2023-06-26 11:07:28 -07:00
generated
html
images compose: Add DM icon to the recipient dropdown. 2023-04-27 17:04:19 -07:00
shared web-shared: Update references to "private message" and "PM". 2023-06-26 11:07:28 -07:00
src people: Make `get_by_user_id` type-safe. 2023-07-02 16:57:16 -07:00
styles templates: Improve email confirmation page. 2023-07-02 16:14:41 -07:00
templates settings_emoji: Fix file upload bug in upload emoji modal. 2023-06-29 10:16:28 -07:00
tests people: Make `get_by_user_id` type-safe. 2023-07-02 16:57:16 -07:00
third bootstrap: Remove bootstrap CSS for url type inputs. 2023-06-23 11:53:38 -07:00
.browserslistrc webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00
.gitignore
babel.config.js eslint: Expand no-unused-vars check to all function parameters. 2023-07-02 16:16:38 -07:00
debug-require-webpack-plugin.ts
debug-require.js
postcss.config.js postcss: Enable postcss-preset-env. 2023-03-20 11:26:30 -07:00
webpack.assets.json ts: Convert `web/src/billing` module to TypeScript. 2023-06-23 11:42:29 -07:00
webpack.config.ts dependencies: Upgrade JavaScript dependencies. 2023-06-05 21:51:26 -07:00
webpack.dev-assets.json webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00