Device manager - render extended device information (#9360)
* record device client inforamtion events on app start * matrix-client-information -> matrix_client_information * fix types * remove another unused export * add docs link * display device client information in device details * update snapshots * integration-ish test client information in metadata * tests * fix tests * export helper * DeviceClientInformation type * Device manager - select all devices (#9330) * add device selection that does nothing * multi select and sign out of sessions * test multiple selection * fix type after rebase * select all sessions * rename type * use ExtendedDevice type everywhere * rename clientName to appName for less collision with UA parser * fix bad find and replace * rename ExtendedDeviceInfo to ExtendedDeviceAppInfo * rename DeviceType comp to DeviceTypeIcon * update tests for new required property deviceType * add stubbed user agent parsing * setup test cases * detect device type correctly * 80% working ua parser * parse asera gents for device info * combine clientName/Version into one field, remove debug from tests * add new metadata to device details * render device info from UA
This commit is contained in:
parent
c4432a8a97
commit
c9f5d57fa0
4 changed files with 45 additions and 0 deletions
|
@ -61,6 +61,9 @@ describe('<DeviceDetails />', () => {
|
|||
last_seen_ip: '123.456.789',
|
||||
last_seen_ts: now - 60000000,
|
||||
appName: 'Element Web',
|
||||
client: 'Firefox 100',
|
||||
deviceModel: 'Iphone X',
|
||||
deviceOperatingSystem: 'Windows 95',
|
||||
};
|
||||
const { container } = render(getComponent({ device }));
|
||||
expect(container).toMatchSnapshot();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue