mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-06 06:28:27 +00:00
Make shared component build work in isolation (#31066)
* Make shared component build work in isolation * Add deps that were missing because they were getting picked up from element-web main but shared-components needs itself * Exclude test files from dts generation * Bump version * Change all the shared-component import to be the built artifact * Don't randomly inhale eslint configs in parent dirs please * maybe we don't need this anymore? * maybe fix build * Maybe fix docker build * More build faff * build:res on the parent as part of shared component prepare * link shared component repo inn docker build * 💅 * 💅x2 * Try converting the translation keys to a .d.ts file manually so it gets bundled rather than left as a relative import to the json file * add the script * Add this back for 2nd time now I think * Shouldn't need this anymore * patch-package on prepare because we're patching a dev dependency so it won't be there if we're installed as a dependency * Unused import * Prettier compliance * Only use counterpart from shared components as per comment * Import shared components CSS * Prettier * Call the one from shared components rather than recurse infinitely * Hopefully make tests work * wake up, comment goes before import * Fix lint errors * Fix dupe TranslationKey export * Update compound-web to fix type error An update to @types.react adds the 'hint' value to the enum of the 'popover' attribute and this version of compound-web uses the maching verson of @types/react so they don't conflict. * Maybe, hopefully, get the types working? Please? * Add copyright header to i18nkeys as eslint complains otherwise since it's now in src * prettier * stop running shared-component tests in EW * update snapshots because flex is now from an external stylesheet I guess * More snapshots * Manual class update * Avoid bundling compound bits Because a) it's silly and b) it means we end up bundling a copy of floating-ui too which causes absolute madness with its useDelayGroup contexts. * ignore test util files for coverage * Add !important because the styles are being applied in a different order now * Another !important because css order has changed * Try adding it here to make the test files ignored * More !important * commit yarn lock change * Add shared components coverage file * Update snapshots Because the line height was being overridden to 22.5px somehow by something I can't find, and now isn't: surely the normal 1.5rem is more sensible. * Update snapshots, attempt 2 * Another !important * More snapshot updates * Add test for i18n wrappers & add test script * lint * Prettier * Hopefully run shared component tests * don't need this bit for non-matrix * install ew deps * rigfht coverage location * Rename job here too * Try different coverage filename * Fix copyrights & comment * Typo Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> --------- Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ exports[`<ExtensionsCard /> should render empty state 1`] = `
|
||||
Add extensions
|
||||
</button>
|
||||
<div
|
||||
class="flex mx_EmptyState"
|
||||
class="_flex_4dswl_9 mx_EmptyState"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: column; --mx-flex-align: center; --mx-flex-justify: center; --mx-flex-gap: var(--cpd-space-4x); --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
<svg
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ exports[`<PinnedMessagesCard /> should show the empty state when there are no pi
|
||||
tabindex="-1"
|
||||
>
|
||||
<div
|
||||
class="flex mx_EmptyState"
|
||||
class="_flex_4dswl_9 mx_EmptyState"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: column; --mx-flex-align: center; --mx-flex-justify: center; --mx-flex-gap: var(--cpd-space-4x); --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
<svg
|
||||
|
||||
+11
-11
@@ -69,7 +69,7 @@ exports[`<RoomSummaryCard /> has button to edit topic 1`] = `
|
||||
title=""
|
||||
/>
|
||||
<section
|
||||
class="flex mx_RoomSummaryCard_badges"
|
||||
class="_flex_4dswl_9 mx_RoomSummaryCard_badges"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: start; --mx-flex-justify: center; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
<span
|
||||
@@ -110,11 +110,11 @@ exports[`<RoomSummaryCard /> has button to edit topic 1`] = `
|
||||
</span>
|
||||
</section>
|
||||
<section
|
||||
class="flex mx_RoomSummaryCard_topic"
|
||||
class="_flex_4dswl_9 mx_RoomSummaryCard_topic"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: column; --mx-flex-align: start; --mx-flex-justify: center; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
<div
|
||||
class="mx_RoomSummaryCard_topic_container mx_RoomSummaryCard_topic_box box-flex"
|
||||
class="mx_RoomSummaryCard_topic_container mx_RoomSummaryCard_topic_box _box-flex_1odfs_9"
|
||||
style="--mx-box-flex: 1;"
|
||||
>
|
||||
<p
|
||||
@@ -152,7 +152,7 @@ exports[`<RoomSummaryCard /> has button to edit topic 1`] = `
|
||||
</button>
|
||||
</div>
|
||||
<div
|
||||
class="mx_RoomSummaryCard_topic_edit box-flex"
|
||||
class="mx_RoomSummaryCard_topic_edit _box-flex_1odfs_9"
|
||||
style="--mx-box-flex: 1;"
|
||||
>
|
||||
<a
|
||||
@@ -782,7 +782,7 @@ exports[`<RoomSummaryCard /> renders the room summary 1`] = `
|
||||
title=""
|
||||
/>
|
||||
<section
|
||||
class="flex mx_RoomSummaryCard_badges"
|
||||
class="_flex_4dswl_9 mx_RoomSummaryCard_badges"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: start; --mx-flex-justify: center; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
<span
|
||||
@@ -823,11 +823,11 @@ exports[`<RoomSummaryCard /> renders the room summary 1`] = `
|
||||
</span>
|
||||
</section>
|
||||
<section
|
||||
class="flex mx_RoomSummaryCard_topic"
|
||||
class="_flex_4dswl_9 mx_RoomSummaryCard_topic"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: column; --mx-flex-align: start; --mx-flex-justify: center; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
<div
|
||||
class="mx_RoomSummaryCard_topic_box box-flex"
|
||||
class="mx_RoomSummaryCard_topic_box _box-flex_1odfs_9"
|
||||
style="--mx-box-flex: 1;"
|
||||
>
|
||||
<a
|
||||
@@ -1457,7 +1457,7 @@ exports[`<RoomSummaryCard /> renders the room topic in the summary 1`] = `
|
||||
title=""
|
||||
/>
|
||||
<section
|
||||
class="flex mx_RoomSummaryCard_badges"
|
||||
class="_flex_4dswl_9 mx_RoomSummaryCard_badges"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: start; --mx-flex-justify: center; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
<span
|
||||
@@ -1498,11 +1498,11 @@ exports[`<RoomSummaryCard /> renders the room topic in the summary 1`] = `
|
||||
</span>
|
||||
</section>
|
||||
<section
|
||||
class="flex mx_RoomSummaryCard_topic"
|
||||
class="_flex_4dswl_9 mx_RoomSummaryCard_topic"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: column; --mx-flex-align: start; --mx-flex-justify: center; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
<div
|
||||
class="mx_RoomSummaryCard_topic_container mx_RoomSummaryCard_topic_box box-flex"
|
||||
class="mx_RoomSummaryCard_topic_container mx_RoomSummaryCard_topic_box _box-flex_1odfs_9"
|
||||
style="--mx-box-flex: 1;"
|
||||
>
|
||||
<p
|
||||
@@ -1540,7 +1540,7 @@ exports[`<RoomSummaryCard /> renders the room topic in the summary 1`] = `
|
||||
</button>
|
||||
</div>
|
||||
<div
|
||||
class="mx_RoomSummaryCard_topic_edit box-flex"
|
||||
class="mx_RoomSummaryCard_topic_edit _box-flex_1odfs_9"
|
||||
style="--mx-box-flex: 1;"
|
||||
>
|
||||
<a
|
||||
|
||||
@@ -77,7 +77,7 @@ exports[`<UserInfo /> with crypto enabled renders <BasicUserInfo /> 1`] = `
|
||||
class="mx_UserInfo_container mx_UserInfo_header"
|
||||
>
|
||||
<div
|
||||
class="flex mx_UserInfo_profile"
|
||||
class="_flex_4dswl_9 mx_UserInfo_profile"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: column; --mx-flex-align: center; --mx-flex-justify: start; --mx-flex-gap: 0; --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
<h1
|
||||
@@ -85,7 +85,7 @@ exports[`<UserInfo /> with crypto enabled renders <BasicUserInfo /> 1`] = `
|
||||
dir="auto"
|
||||
>
|
||||
<div
|
||||
class="flex mx_UserInfo_profile_name"
|
||||
class="_flex_4dswl_9 mx_UserInfo_profile_name"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: row-reverse; --mx-flex-align: center; --mx-flex-justify: start; --mx-flex-gap: 0; --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
@user:example.com
|
||||
@@ -113,7 +113,7 @@ exports[`<UserInfo /> with crypto enabled renders <BasicUserInfo /> 1`] = `
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
class="flex mx_UserInfo_verification"
|
||||
class="_flex_4dswl_9 mx_UserInfo_verification"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: center; --mx-flex-gap: 0; --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
<p
|
||||
@@ -364,7 +364,7 @@ exports[`<UserInfo /> with crypto enabled should render a deactivate button for
|
||||
class="mx_UserInfo_container mx_UserInfo_header"
|
||||
>
|
||||
<div
|
||||
class="flex mx_UserInfo_profile"
|
||||
class="_flex_4dswl_9 mx_UserInfo_profile"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: column; --mx-flex-align: center; --mx-flex-justify: start; --mx-flex-gap: 0; --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
<h1
|
||||
@@ -372,7 +372,7 @@ exports[`<UserInfo /> with crypto enabled should render a deactivate button for
|
||||
dir="auto"
|
||||
>
|
||||
<div
|
||||
class="flex mx_UserInfo_profile_name"
|
||||
class="_flex_4dswl_9 mx_UserInfo_profile_name"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: row-reverse; --mx-flex-align: center; --mx-flex-justify: start; --mx-flex-gap: 0; --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
@user:example.com
|
||||
@@ -400,7 +400,7 @@ exports[`<UserInfo /> with crypto enabled should render a deactivate button for
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
class="flex mx_UserInfo_verification"
|
||||
class="_flex_4dswl_9 mx_UserInfo_verification"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: center; --mx-flex-gap: 0; --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
<p
|
||||
|
||||
+3
-3
@@ -3,7 +3,7 @@
|
||||
exports[`<UserInfoHeaderVerificationView /> renders verification unavailable message 1`] = `
|
||||
<div>
|
||||
<div
|
||||
class="flex mx_UserInfo_verification"
|
||||
class="_flex_4dswl_9 mx_UserInfo_verification"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: center; --mx-flex-gap: 0; --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
<p
|
||||
@@ -20,7 +20,7 @@ exports[`<UserInfoHeaderVerificationView /> renders verification unavailable mes
|
||||
exports[`<UserInfoHeaderVerificationView /> renders verified badge when user is verified 1`] = `
|
||||
<div>
|
||||
<div
|
||||
class="flex mx_UserInfo_verification"
|
||||
class="_flex_4dswl_9 mx_UserInfo_verification"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: center; --mx-flex-gap: 0; --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
<span
|
||||
@@ -52,7 +52,7 @@ exports[`<UserInfoHeaderVerificationView /> renders verified badge when user is
|
||||
exports[`<UserInfoHeaderVerificationView /> renders verify button 1`] = `
|
||||
<div>
|
||||
<div
|
||||
class="flex mx_UserInfo_verification"
|
||||
class="_flex_4dswl_9 mx_UserInfo_verification"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: center; --mx-flex-gap: 0; --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
<div
|
||||
|
||||
+3
-3
@@ -31,7 +31,7 @@ exports[`<UserInfoHeaderView /> renders custom user identifiers in the header 1`
|
||||
class="mx_UserInfo_container mx_UserInfo_header"
|
||||
>
|
||||
<div
|
||||
class="flex mx_UserInfo_profile"
|
||||
class="_flex_4dswl_9 mx_UserInfo_profile"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: column; --mx-flex-align: center; --mx-flex-justify: start; --mx-flex-gap: 0; --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
<h1
|
||||
@@ -39,7 +39,7 @@ exports[`<UserInfoHeaderView /> renders custom user identifiers in the header 1`
|
||||
dir="auto"
|
||||
>
|
||||
<div
|
||||
class="flex mx_UserInfo_profile_name"
|
||||
class="_flex_4dswl_9 mx_UserInfo_profile_name"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: row-reverse; --mx-flex-align: center; --mx-flex-justify: start; --mx-flex-gap: 0; --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
@user:example.com
|
||||
@@ -62,7 +62,7 @@ exports[`<UserInfoHeaderView /> renders custom user identifiers in the header 1`
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
class="flex mx_UserInfo_verification"
|
||||
class="_flex_4dswl_9 mx_UserInfo_verification"
|
||||
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: center; --mx-flex-gap: 0; --mx-flex-wrap: nowrap;"
|
||||
>
|
||||
<svg
|
||||
|
||||
Reference in New Issue
Block a user