* feat tracker: add document titles to tabs * feat: titles for tabs * feat tracker: send initial title, parse titles better * feat ui: tab name styles * feat tracker: update changelogs * fix tracker: fix tests * fix tracker: fix failing tests, add some coverage * fix tracker: fix failing tests, add some coverage * Heatmaps (#2264) * feat ui: start heatmaps ui and tracker update * fix ui: drop clickmap from session * fix ui: refactor heatmap painter * fix ui: store click coords as int percent * feat(backend): insert normalized x and y to PG * feat(backend): insert normalized x and y to CH * feat(connector): added missing import * feat(backend): fixed different uint type issue * fix tracker: use max scrollable size for doc * fix gen files * fix ui: fix random crash, remove demo data generator * fix ui: rm some dead code --------- Co-authored-by: Alexander <zavorotynskiy@pm.me> * fix tracker: add heatmap changelog to tracker CHANGELOG.md * fix tracker: fix peerjs version to 1.5.4 (was 1.5.1) * fix document height calculation * Crossdomain tracking (#2277) * feat tracker: crossdomain tracking (start commit) * catch crossdomain messages, add nodeid placeholder * click scroll * frame placeholder number -> dynamic * click rewriter, fix scroll prop * some docs * some docs * fix options merging * CHANGELOG.md update * checking that crossdomain will not fire automatically * simplify func declaration * update test data * change clickmap document height calculation to scrollheight (which should be true height) --------- Co-authored-by: Alexander <zavorotynskiy@pm.me>
57 lines
1.4 KiB
Go
57 lines
1.4 KiB
Go
package messages
|
|
|
|
func transformDeprecated(msg Message) Message {
|
|
switch m := msg.(type) {
|
|
case *JSExceptionDeprecated:
|
|
return &JSException{
|
|
Name: m.Name,
|
|
Message: m.Message,
|
|
Payload: m.Payload,
|
|
Metadata: "{}",
|
|
}
|
|
case *Fetch:
|
|
return &NetworkRequest{
|
|
Type: "fetch",
|
|
Method: m.Method,
|
|
URL: m.URL,
|
|
Request: m.Request,
|
|
Response: m.Response,
|
|
Status: m.Status,
|
|
Timestamp: m.Timestamp,
|
|
Duration: m.Duration,
|
|
}
|
|
case *IssueEventDeprecated:
|
|
return &IssueEvent{
|
|
MessageID: m.MessageID,
|
|
Timestamp: m.Timestamp,
|
|
Type: m.Type,
|
|
ContextString: m.ContextString,
|
|
Context: m.Context,
|
|
Payload: m.Payload,
|
|
URL: "",
|
|
}
|
|
case *ResourceTimingDeprecated:
|
|
return &ResourceTiming{
|
|
Timestamp: m.Timestamp,
|
|
Duration: m.Duration,
|
|
TTFB: m.TTFB,
|
|
HeaderSize: m.HeaderSize,
|
|
EncodedBodySize: m.EncodedBodySize,
|
|
DecodedBodySize: m.DecodedBodySize,
|
|
URL: m.URL,
|
|
Initiator: m.Initiator,
|
|
TransferredSize: 0,
|
|
Cached: false,
|
|
}
|
|
case *MouseClickDeprecated:
|
|
return &MouseClick{
|
|
ID: m.ID,
|
|
HesitationTime: m.HesitationTime,
|
|
Label: m.Label,
|
|
Selector: m.Selector,
|
|
NormalizedX: 101, // 101 is a magic number to signal that the value is not present
|
|
NormalizedY: 101, // 101 is a magic number to signal that the value is not present
|
|
}
|
|
}
|
|
return msg
|
|
}
|