HomePhabricator
Diffusion Comm 1740a06c02ee

[native] Create a place where logs are stored and can be displayed

Tags
None
Referenced Files
F4045159: logs-moved-buttons.png
Feb 12 2025, 3:18 AM
File Not Attached
F4045158: logs-web-full.png
Feb 12 2025, 3:18 AM
File Not Attached
F4045157: logs-web-empty.png
Feb 12 2025, 3:18 AM
File Not Attached
F4045156: logs-web-settings.png
Feb 12 2025, 3:18 AM
File Not Attached
Subscribers
None

Description

[native] Create a place where logs are stored and can be displayed

Summary:
The logs are stored in a new context. We could use Redux for that, but the benefits would be quite limited because we don't need to persist the logs. We can always consider changing the approach and persist them, but they are a simple replacement to the alerts, which aren't persisted as well.

The logs are displayed on a new staff-only screen accessible from the profile screen. It is possible to clear them and copy to a clipboard.

logs-web-settings.png (334×1 px, 25 KB)

logs-web-empty.png (1×1 px, 67 KB)

logs-web-full.png (1×1 px, 183 KB)

logs-moved-buttons.png (2×1 px, 200 KB)

https://linear.app/comm/issue/ENG-10140/replace-staff-alerts-with-a-log

Test Plan: Added a button that results in adding ew logs. Tested if they are displayed correctly on the screen, can be copied, and cleared.

Reviewers: kamil, angelika

Reviewed By: kamil

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D14295

Details

Provenance
tomekAuthored on Feb 4 2025, 9:12 AM
Reviewer
kamil
Differential Revision
D14295: [native] Create a place where logs are stored and can be displayed
Parents
rCOMM0d9f892d8aeb: [native] update community drawer button to navigate to community joiner modal
Branches
Loading...
Tags
Loading...