-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Implement UI for history visibility acknowledgement. #31156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Implement UI for history visibility acknowledgement. #31156
Conversation
| .mx_RoomStatusBar_historyVisibility { | ||
| > div[role="alert"] { | ||
| /* cheat some basic alignment */ | ||
| display: flex; | ||
| align-items: center; | ||
| min-height: 70px; | ||
| padding-left: 16px; | ||
| background: var(--cpd-color-gradient-info-linear); | ||
| border-top: 1px solid var(--cpd-color-border-focused); | ||
| } | ||
|
|
||
| .mx_RoomStatusBar_historyVisibilityBadge > svg { | ||
| margin-right: 12px; | ||
| font-size: $font-24px; | ||
| color: var(--cpd-color-text-badge-info); | ||
| } | ||
|
|
||
| .mx_RoomStatusBar_historyVisibilityDescription { | ||
| font-size: $font-15px; | ||
| color: var(--cpd-color-text-info-primary); | ||
| } | ||
|
|
||
| .mx_RoomStatusBar_historyVisibilityLink { | ||
| font-size: $font-12px; | ||
| color: var(--cpd-color-text-primary); | ||
| } | ||
|
|
||
| .mx_RoomStatusBar_historyVisibilityButtonBar { | ||
| flex-grow: 1; | ||
| text-align: right; | ||
| margin-right: 22px; | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be checked by someone responsible for design! I've done my best to produce something similar to the Figma design, but I don't have a reference for dark mode, which currently looks utterly atrocious:
There's also some conflicts with the reset identity status, but I suspect this is a wider issue with this status bar - perhaps the identity reset should be refactored into the status bar?
68ef636 to
27b11e4
Compare
|
I'm wondering if this would be better off as a floating alert above the UI - would conflict less with the identity reset dialog. |
|
@kaylendog this is a question for the design team. Where are the figma design for this banner? |
Here (for EW)! |
|
Opening this up for review, since I can't make any headway on the CI failures:
|
florianduros
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Each components in shared component has its own folder. imo RoomStatusBarHistoryVisible should be in packages/shared-components/src/room/RoomStatusBarHistoryVisible.
The RoomStatusBarHistoryVisible is missing at least a render test and a check that onClose is correctly binded.
...ared-components/src/room/RoomStatusBarHistoryVisible/RoomStatusBarHistoryVisible.stories.tsx
Show resolved
Hide resolved
packages/shared-components/src/structures/RoomStatusBarHistoryVisible.stories.tsx
Outdated
Show resolved
Hide resolved
packages/shared-components/src/structures/RoomStatusBarHistoryVisible.module.css
Outdated
Show resolved
Hide resolved
packages/shared-components/src/structures/RoomStatusBarHistoryVisible.tsx
Outdated
Show resolved
Hide resolved
packages/shared-components/src/structures/RoomStatusBarHistoryVisible.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change seems unexpected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change seems unexpected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I can tell, I haven't touched anything close to this. Is this flaking, or is there some horrible rabbit hole I should investigate?
...hared-components/src/room/RoomStatusBarHistoryVisible/RoomStatusBarHistoryVisible.module.css
Outdated
Show resolved
Hide resolved
This change should restore my status as a good person.
Shows a banner above the message composer whenever a user opens a room with non-join history visibility, which they can dismiss.
Issue: element-hq/element-meta#2875
Checklist
public/exportedsymbols have accurate TSDoc documentation.