Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Clutch
Commits
38d828d6
Unverified
Commit
38d828d6
authored
3 years ago
by
Scarlett Perry
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
feedback: save search params as metadata in feedback submission (#1924)
parent
5ff5771f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
api/feedback/v1/feedback.proto
+1
-0
api/feedback/v1/feedback.proto
backend/api/feedback/v1/feedback.pb.go
+76
-66
backend/api/feedback/v1/feedback.pb.go
backend/api/feedback/v1/feedback.pb.validate.go
+2
-0
backend/api/feedback/v1/feedback.pb.validate.go
frontend/api/src/index.d.ts
+6
-0
frontend/api/src/index.d.ts
frontend/api/src/index.js
+17
-0
frontend/api/src/index.js
frontend/packages/core/src/NPS/feedback.tsx
+1
-0
frontend/packages/core/src/NPS/feedback.tsx
with
103 additions
and
66 deletions
+103
-66
api/feedback/v1/feedback.proto
+
1
-
0
View file @
38d828d6
...
...
@@ -95,6 +95,7 @@ message FeedbackMetadata {
Survey
survey
=
2
[
(
validate.rules
)
.
message
=
{
required
:
true
}
];
// TODO: remove if we decide to record feedback only when a user clicks the submit button
bool
user_submitted
=
3
;
string
url_search_params
=
4
;
}
message
Feedback
{
...
...
This diff is collapsed.
Click to expand it.
backend/api/feedback/v1/feedback.pb.go
+
76
-
66
View file @
38d828d6
...
...
@@ -439,7 +439,8 @@ type FeedbackMetadata struct {
Origin
Origin
`protobuf:"varint,1,opt,name=origin,proto3,enum=clutch.feedback.v1.Origin" json:"origin,omitempty"`
Survey
*
Survey
`protobuf:"bytes,2,opt,name=survey,proto3" json:"survey,omitempty"`
// TODO: remove if we decide to record feedback only when a user clicks the submit button
UserSubmitted
bool
`protobuf:"varint,3,opt,name=user_submitted,json=userSubmitted,proto3" json:"user_submitted,omitempty"`
UserSubmitted
bool
`protobuf:"varint,3,opt,name=user_submitted,json=userSubmitted,proto3" json:"user_submitted,omitempty"`
UrlSearchParams
string
`protobuf:"bytes,4,opt,name=url_search_params,json=urlSearchParams,proto3" json:"url_search_params,omitempty"`
}
func
(
x
*
FeedbackMetadata
)
Reset
()
{
...
...
@@ -495,6 +496,13 @@ func (x *FeedbackMetadata) GetUserSubmitted() bool {
return
false
}
func
(
x
*
FeedbackMetadata
)
GetUrlSearchParams
()
string
{
if
x
!=
nil
{
return
x
.
UrlSearchParams
}
return
""
}
type
Feedback
struct
{
state
protoimpl
.
MessageState
sizeCache
protoimpl
.
SizeCache
...
...
@@ -746,7 +754,7 @@ var file_feedback_v1_feedback_proto_rawDesc = []byte{
0x30
,
0x0a
,
0x05
,
0x76
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x1a
,
0x2e
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2e
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x75
,
0x72
,
0x76
,
0x65
,
0x79
,
0x52
,
0x05
,
0x76
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x3a
,
0x02
,
0x38
,
0x01
,
0x22
,
0x
b7
,
0x01
,
0x0a
,
0x10
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x65
,
0x3a
,
0x02
,
0x38
,
0x01
,
0x22
,
0x
e3
,
0x01
,
0x0a
,
0x10
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0x12
,
0x3e
,
0x0a
,
0x06
,
0x6f
,
0x72
,
0x69
,
0x67
,
0x69
,
0x6e
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0e
,
0x32
,
0x1a
,
0x2e
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2e
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2e
,
0x76
,
0x31
,
0x2e
,
...
...
@@ -757,71 +765,73 @@ var file_feedback_v1_feedback_proto_rawDesc = []byte{
0x53
,
0x75
,
0x72
,
0x76
,
0x65
,
0x79
,
0x42
,
0x08
,
0xfa
,
0x42
,
0x05
,
0x8a
,
0x01
,
0x02
,
0x10
,
0x01
,
0x52
,
0x06
,
0x73
,
0x75
,
0x72
,
0x76
,
0x65
,
0x79
,
0x12
,
0x25
,
0x0a
,
0x0e
,
0x75
,
0x73
,
0x65
,
0x72
,
0x5f
,
0x73
,
0x75
,
0x62
,
0x6d
,
0x69
,
0x74
,
0x74
,
0x65
,
0x64
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x0d
,
0x75
,
0x73
,
0x65
,
0x72
,
0x53
,
0x75
,
0x62
,
0x6d
,
0x69
,
0x74
,
0x74
,
0x65
,
0x64
,
0x22
,
0xfa
,
0x01
,
0x0a
,
0x08
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x12
,
0x22
,
0x0a
,
0x08
,
0x75
,
0x72
,
0x6c
,
0x5f
,
0x70
,
0x61
,
0x74
,
0x68
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x42
,
0x07
,
0xfa
,
0x42
,
0x04
,
0x72
,
0x02
,
0x20
,
0x01
,
0x52
,
0x07
,
0x75
,
0x72
,
0x6c
,
0x50
,
0x61
,
0x74
,
0x68
,
0x12
,
0x2a
,
0x0a
,
0x0c
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x5f
,
0x6c
,
0x61
,
0x62
,
0x65
,
0x6c
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x42
,
0x07
,
0xfa
,
0x42
,
0x04
,
0x72
,
0x02
,
0x20
,
0x01
,
0x52
,
0x0b
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x4c
,
0x61
,
0x62
,
0x65
,
0x6c
,
0x12
,
0x4c
,
0x0a
,
0x0c
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x5f
,
0x73
,
0x63
,
0x61
,
0x6c
,
0x65
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x1f
,
0x2e
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2e
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x52
,
0x61
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x53
,
0x63
,
0x61
,
0x6c
,
0x65
,
0x42
,
0x08
,
0xfa
,
0x42
,
0x05
,
0x8a
,
0x01
,
0x02
,
0x10
,
0x01
,
0x52
,
0x0b
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x53
,
0x63
,
0x61
,
0x6c
,
0x65
,
0x12
,
0x2b
,
0x0a
,
0x11
,
0x66
,
0x72
,
0x65
,
0x65
,
0x66
,
0x6f
,
0x72
,
0x6d
,
0x5f
,
0x72
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x10
,
0x66
,
0x72
,
0x65
,
0x65
,
0x66
,
0x6f
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x12
,
0x23
,
0x0a
,
0x0d
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x5f
,
0x74
,
0x79
,
0x70
,
0x65
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0c
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x54
,
0x79
,
0x70
,
0x65
,
0x22
,
0xe3
,
0x01
,
0x0a
,
0x15
,
0x53
,
0x75
,
0x62
,
0x6d
,
0x69
,
0x74
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x12
,
0x18
,
0x0a
,
0x02
,
0x69
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x42
,
0x08
,
0xfa
,
0x42
,
0x05
,
0x72
,
0x03
,
0x98
,
0x01
,
0x24
,
0x52
,
0x02
,
0x69
,
0x64
,
0x12
,
0x20
,
0x0a
,
0x07
,
0x75
,
0x73
,
0x65
,
0x72
,
0x5f
,
0x69
,
0x64
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x42
,
0x07
,
0xfa
,
0x42
,
0x04
,
0x72
,
0x02
,
0x20
,
0x01
,
0x52
,
0x06
,
0x75
,
0x73
,
0x65
,
0x72
,
0x49
,
0x64
,
0x12
,
0x42
,
0x0a
,
0x08
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x1c
,
0x2e
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2e
,
0x66
,
0x65
,
0x52
,
0x0d
,
0x75
,
0x73
,
0x65
,
0x72
,
0x53
,
0x75
,
0x62
,
0x6d
,
0x69
,
0x74
,
0x74
,
0x65
,
0x64
,
0x12
,
0x2a
,
0x0a
,
0x11
,
0x75
,
0x72
,
0x6c
,
0x5f
,
0x73
,
0x65
,
0x61
,
0x72
,
0x63
,
0x68
,
0x5f
,
0x70
,
0x61
,
0x72
,
0x61
,
0x6d
,
0x73
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0f
,
0x75
,
0x72
,
0x6c
,
0x53
,
0x65
,
0x61
,
0x72
,
0x63
,
0x68
,
0x50
,
0x61
,
0x72
,
0x61
,
0x6d
,
0x73
,
0x22
,
0xfa
,
0x01
,
0x0a
,
0x08
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x12
,
0x22
,
0x0a
,
0x08
,
0x75
,
0x72
,
0x6c
,
0x5f
,
0x70
,
0x61
,
0x74
,
0x68
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x42
,
0x07
,
0xfa
,
0x42
,
0x04
,
0x72
,
0x02
,
0x20
,
0x01
,
0x52
,
0x07
,
0x75
,
0x72
,
0x6c
,
0x50
,
0x61
,
0x74
,
0x68
,
0x12
,
0x2a
,
0x0a
,
0x0c
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x5f
,
0x6c
,
0x61
,
0x62
,
0x65
,
0x6c
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x42
,
0x07
,
0xfa
,
0x42
,
0x04
,
0x72
,
0x02
,
0x20
,
0x01
,
0x52
,
0x0b
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x4c
,
0x61
,
0x62
,
0x65
,
0x6c
,
0x12
,
0x4c
,
0x0a
,
0x0c
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x5f
,
0x73
,
0x63
,
0x61
,
0x6c
,
0x65
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x1f
,
0x2e
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2e
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x52
,
0x61
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x53
,
0x63
,
0x61
,
0x6c
,
0x65
,
0x42
,
0x08
,
0xfa
,
0x42
,
0x05
,
0x8a
,
0x01
,
0x02
,
0x10
,
0x01
,
0x52
,
0x0b
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x53
,
0x63
,
0x61
,
0x6c
,
0x65
,
0x12
,
0x2b
,
0x0a
,
0x11
,
0x66
,
0x72
,
0x65
,
0x65
,
0x66
,
0x6f
,
0x72
,
0x6d
,
0x5f
,
0x72
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x10
,
0x66
,
0x72
,
0x65
,
0x65
,
0x66
,
0x6f
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x12
,
0x23
,
0x0a
,
0x0d
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x5f
,
0x74
,
0x79
,
0x70
,
0x65
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0c
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x54
,
0x79
,
0x70
,
0x65
,
0x22
,
0xe3
,
0x01
,
0x0a
,
0x15
,
0x53
,
0x75
,
0x62
,
0x6d
,
0x69
,
0x74
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x12
,
0x18
,
0x0a
,
0x02
,
0x69
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x42
,
0x08
,
0xfa
,
0x42
,
0x05
,
0x72
,
0x03
,
0x98
,
0x01
,
0x24
,
0x52
,
0x02
,
0x69
,
0x64
,
0x12
,
0x20
,
0x0a
,
0x07
,
0x75
,
0x73
,
0x65
,
0x72
,
0x5f
,
0x69
,
0x64
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x42
,
0x07
,
0xfa
,
0x42
,
0x04
,
0x72
,
0x02
,
0x20
,
0x01
,
0x52
,
0x06
,
0x75
,
0x73
,
0x65
,
0x72
,
0x49
,
0x64
,
0x12
,
0x42
,
0x0a
,
0x08
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x1c
,
0x2e
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2e
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x42
,
0x08
,
0xfa
,
0x42
,
0x05
,
0x8a
,
0x01
,
0x02
,
0x10
,
0x01
,
0x52
,
0x08
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x12
,
0x4a
,
0x0a
,
0x08
,
0x6d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x24
,
0x2e
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2e
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x42
,
0x08
,
0xfa
,
0x42
,
0x05
,
0x8a
,
0x01
,
0x02
,
0x10
,
0x01
,
0x52
,
0x08
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x12
,
0x4a
,
0x0a
,
0x08
,
0x6d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x24
,
0x2e
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2e
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0x42
,
0x08
,
0xfa
,
0x42
,
0x05
,
0x8a
,
0x01
,
0x02
,
0x10
,
0x01
,
0x52
,
0x08
,
0x6d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0x22
,
0x18
,
0x0a
,
0x16
,
0x53
,
0x75
,
0x62
,
0x6d
,
0x69
,
0x74
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x2a
,
0x38
,
0x0a
,
0x06
,
0x4f
,
0x72
,
0x69
,
0x67
,
0x69
,
0x6e
,
0x12
,
0x16
,
0x0a
,
0x12
,
0x4f
,
0x52
,
0x49
,
0x47
,
0x49
,
0x4e
,
0x5f
,
0x55
,
0x4e
,
0x53
,
0x50
,
0x45
,
0x43
,
0x49
,
0x46
,
0x49
,
0x45
,
0x44
,
0x10
,
0x00
,
0x12
,
0x0a
,
0x0a
,
0x06
,
0x48
,
0x45
,
0x41
,
0x44
,
0x45
,
0x52
,
0x10
,
0x01
,
0x12
,
0x0a
,
0x0a
,
0x06
,
0x57
,
0x49
,
0x5a
,
0x41
,
0x52
,
0x44
,
0x10
,
0x02
,
0x2a
,
0x45
,
0x0a
,
0x0b
,
0x45
,
0x6d
,
0x6f
,
0x6a
,
0x69
,
0x52
,
0x61
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x12
,
0x15
,
0x0a
,
0x11
,
0x45
,
0x4d
,
0x4f
,
0x4a
,
0x49
,
0x5f
,
0x55
,
0x4e
,
0x53
,
0x50
,
0x45
,
0x43
,
0x49
,
0x46
,
0x49
,
0x45
,
0x44
,
0x10
,
0x00
,
0x12
,
0x07
,
0x0a
,
0x03
,
0x53
,
0x41
,
0x44
,
0x10
,
0x01
,
0x12
,
0x0b
,
0x0a
,
0x07
,
0x4e
,
0x45
,
0x55
,
0x54
,
0x52
,
0x41
,
0x4c
,
0x10
,
0x02
,
0x12
,
0x09
,
0x0a
,
0x05
,
0x48
,
0x41
,
0x50
,
0x50
,
0x59
,
0x10
,
0x03
,
0x32
,
0xad
,
0x02
,
0x0a
,
0x0b
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x41
,
0x50
,
0x49
,
0x12
,
0x85
,
0x01
,
0x0a
,
0x0a
,
0x47
,
0x65
,
0x74
,
0x53
,
0x75
,
0x72
,
0x76
,
0x65
,
0x79
,
0x73
,
0x12
,
0x25
,
0x2e
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2e
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x47
,
0x65
,
0x74
,
0x53
,
0x75
,
0x72
,
0x76
,
0x65
,
0x79
,
0x73
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x26
,
0x2e
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2e
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x47
,
0x65
,
0x74
,
0x53
,
0x75
,
0x72
,
0x76
,
0x65
,
0x79
,
0x73
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x28
,
0x82
,
0xd3
,
0xe4
,
0x93
,
0x02
,
0x1c
,
0x22
,
0x17
,
0x2f
,
0x76
,
0x31
,
0x2f
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2f
,
0x67
,
0x65
,
0x74
,
0x53
,
0x75
,
0x72
,
0x76
,
0x65
,
0x79
,
0x73
,
0x3a
,
0x01
,
0x2a
,
0xaa
,
0xe1
,
0x1c
,
0x02
,
0x08
,
0x02
,
0x12
,
0x95
,
0x01
,
0x0a
,
0x0e
,
0x53
,
0x75
,
0x62
,
0x6d
,
0x69
,
0x74
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x12
,
0x29
,
0x2e
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2e
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x75
,
0x62
,
0x6d
,
0x69
,
0x74
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x2a
,
0x2e
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2e
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x75
,
0x62
,
0x6d
,
0x69
,
0x74
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x2c
,
0x82
,
0xd3
,
0xe4
,
0x93
,
0x02
,
0x20
,
0x22
,
0x1b
,
0x2f
,
0x76
,
0x31
,
0x2f
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2f
,
0x73
,
0x75
,
0x62
,
0x6d
,
0x69
,
0x74
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x3a
,
0x01
,
0x2a
,
0xaa
,
0xe1
,
0x1c
,
0x02
,
0x08
,
0x01
,
0x42
,
0x3b
,
0x5a
,
0x39
,
0x67
,
0x69
,
0x74
,
0x68
,
0x75
,
0x62
,
0x2e
,
0x63
,
0x6f
,
0x6d
,
0x2f
,
0x6c
,
0x79
,
0x66
,
0x74
,
0x2f
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2f
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x65
,
0x6e
,
0x64
,
0x2f
,
0x61
,
0x70
,
0x69
,
0x2f
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2f
,
0x76
,
0x31
,
0x3b
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x76
,
0x31
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
0x63
,
0x6b
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0x42
,
0x08
,
0xfa
,
0x42
,
0x05
,
0x8a
,
0x01
,
0x02
,
0x10
,
0x01
,
0x52
,
0x08
,
0x6d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0x22
,
0x18
,
0x0a
,
0x16
,
0x53
,
0x75
,
0x62
,
0x6d
,
0x69
,
0x74
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x2a
,
0x38
,
0x0a
,
0x06
,
0x4f
,
0x72
,
0x69
,
0x67
,
0x69
,
0x6e
,
0x12
,
0x16
,
0x0a
,
0x12
,
0x4f
,
0x52
,
0x49
,
0x47
,
0x49
,
0x4e
,
0x5f
,
0x55
,
0x4e
,
0x53
,
0x50
,
0x45
,
0x43
,
0x49
,
0x46
,
0x49
,
0x45
,
0x44
,
0x10
,
0x00
,
0x12
,
0x0a
,
0x0a
,
0x06
,
0x48
,
0x45
,
0x41
,
0x44
,
0x45
,
0x52
,
0x10
,
0x01
,
0x12
,
0x0a
,
0x0a
,
0x06
,
0x57
,
0x49
,
0x5a
,
0x41
,
0x52
,
0x44
,
0x10
,
0x02
,
0x2a
,
0x45
,
0x0a
,
0x0b
,
0x45
,
0x6d
,
0x6f
,
0x6a
,
0x69
,
0x52
,
0x61
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x12
,
0x15
,
0x0a
,
0x11
,
0x45
,
0x4d
,
0x4f
,
0x4a
,
0x49
,
0x5f
,
0x55
,
0x4e
,
0x53
,
0x50
,
0x45
,
0x43
,
0x49
,
0x46
,
0x49
,
0x45
,
0x44
,
0x10
,
0x00
,
0x12
,
0x07
,
0x0a
,
0x03
,
0x53
,
0x41
,
0x44
,
0x10
,
0x01
,
0x12
,
0x0b
,
0x0a
,
0x07
,
0x4e
,
0x45
,
0x55
,
0x54
,
0x52
,
0x41
,
0x4c
,
0x10
,
0x02
,
0x12
,
0x09
,
0x0a
,
0x05
,
0x48
,
0x41
,
0x50
,
0x50
,
0x59
,
0x10
,
0x03
,
0x32
,
0xad
,
0x02
,
0x0a
,
0x0b
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x41
,
0x50
,
0x49
,
0x12
,
0x85
,
0x01
,
0x0a
,
0x0a
,
0x47
,
0x65
,
0x74
,
0x53
,
0x75
,
0x72
,
0x76
,
0x65
,
0x79
,
0x73
,
0x12
,
0x25
,
0x2e
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2e
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x47
,
0x65
,
0x74
,
0x53
,
0x75
,
0x72
,
0x76
,
0x65
,
0x79
,
0x73
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x26
,
0x2e
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2e
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x47
,
0x65
,
0x74
,
0x53
,
0x75
,
0x72
,
0x76
,
0x65
,
0x79
,
0x73
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x28
,
0x82
,
0xd3
,
0xe4
,
0x93
,
0x02
,
0x1c
,
0x22
,
0x17
,
0x2f
,
0x76
,
0x31
,
0x2f
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2f
,
0x67
,
0x65
,
0x74
,
0x53
,
0x75
,
0x72
,
0x76
,
0x65
,
0x79
,
0x73
,
0x3a
,
0x01
,
0x2a
,
0xaa
,
0xe1
,
0x1c
,
0x02
,
0x08
,
0x02
,
0x12
,
0x95
,
0x01
,
0x0a
,
0x0e
,
0x53
,
0x75
,
0x62
,
0x6d
,
0x69
,
0x74
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x12
,
0x29
,
0x2e
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2e
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x75
,
0x62
,
0x6d
,
0x69
,
0x74
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x2a
,
0x2e
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2e
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2e
,
0x76
,
0x31
,
0x2e
,
0x53
,
0x75
,
0x62
,
0x6d
,
0x69
,
0x74
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x2c
,
0x82
,
0xd3
,
0xe4
,
0x93
,
0x02
,
0x20
,
0x22
,
0x1b
,
0x2f
,
0x76
,
0x31
,
0x2f
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2f
,
0x73
,
0x75
,
0x62
,
0x6d
,
0x69
,
0x74
,
0x46
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x3a
,
0x01
,
0x2a
,
0xaa
,
0xe1
,
0x1c
,
0x02
,
0x08
,
0x01
,
0x42
,
0x3b
,
0x5a
,
0x39
,
0x67
,
0x69
,
0x74
,
0x68
,
0x75
,
0x62
,
0x2e
,
0x63
,
0x6f
,
0x6d
,
0x2f
,
0x6c
,
0x79
,
0x66
,
0x74
,
0x2f
,
0x63
,
0x6c
,
0x75
,
0x74
,
0x63
,
0x68
,
0x2f
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x65
,
0x6e
,
0x64
,
0x2f
,
0x61
,
0x70
,
0x69
,
0x2f
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x2f
,
0x76
,
0x31
,
0x3b
,
0x66
,
0x65
,
0x65
,
0x64
,
0x62
,
0x61
,
0x63
,
0x6b
,
0x76
,
0x31
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
}
var
(
...
...
This diff is collapsed.
Click to expand it.
backend/api/feedback/v1/feedback.pb.validate.go
+
2
-
0
View file @
38d828d6
...
...
@@ -837,6 +837,8 @@ func (m *FeedbackMetadata) validate(all bool) error {
// no validation rules for UserSubmitted
// no validation rules for UrlSearchParams
if
len
(
errors
)
>
0
{
return
FeedbackMetadataMultiError
(
errors
)
}
...
...
This diff is collapsed.
Click to expand it.
frontend/api/src/index.d.ts
+
6
-
0
View file @
38d828d6
...
...
@@ -10564,6 +10564,9 @@ export namespace clutch {
/** FeedbackMetadata userSubmitted */
userSubmitted?: (boolean|null);
/** FeedbackMetadata urlSearchParams */
urlSearchParams?: (string|null);
}
/** Represents a FeedbackMetadata. */
...
...
@@ -10584,6 +10587,9 @@ export namespace clutch {
/** FeedbackMetadata userSubmitted. */
public userSubmitted: boolean;
/** FeedbackMetadata urlSearchParams. */
public urlSearchParams: string;
/**
* Verifies a FeedbackMetadata message.
* @param message Plain object to verify
This diff is collapsed.
Click to expand it.
frontend/api/src/index.js
+
17
-
0
View file @
38d828d6
...
...
@@ -25674,6 +25674,7 @@ export const clutch = $root.clutch = (() => {
* @property {clutch.feedback.v1.Origin|null} [origin] FeedbackMetadata origin
* @property {clutch.feedback.v1.ISurvey|null} [survey] FeedbackMetadata survey
* @property {boolean|null} [userSubmitted] FeedbackMetadata userSubmitted
* @property {string|null} [urlSearchParams] FeedbackMetadata urlSearchParams
*/
/**
...
...
@@ -25715,6 +25716,14 @@ export const clutch = $root.clutch = (() => {
*/
FeedbackMetadata.prototype.userSubmitted = false;
/**
* FeedbackMetadata urlSearchParams.
* @member {string} urlSearchParams
* @memberof clutch.feedback.v1.FeedbackMetadata
* @instance
*/
FeedbackMetadata.prototype.urlSearchParams = "";
/**
* Verifies a FeedbackMetadata message.
* @function verify
...
...
@@ -25743,6 +25752,9 @@ export const clutch = $root.clutch = (() => {
if (message.userSubmitted != null && message.hasOwnProperty("userSubmitted"))
if (typeof message.userSubmitted !== "boolean")
return "userSubmitted: boolean expected";
if (message.urlSearchParams != null && message.hasOwnProperty("urlSearchParams"))
if (!$util.isString(message.urlSearchParams))
return "urlSearchParams: string expected";
return null;
};
...
...
@@ -25779,6 +25791,8 @@ export const clutch = $root.clutch = (() => {
}
if (object.userSubmitted != null)
message.userSubmitted = Boolean(object.userSubmitted);
if (object.urlSearchParams != null)
message.urlSearchParams = String(object.urlSearchParams);
return message;
};
...
...
@@ -25799,6 +25813,7 @@ export const clutch = $root.clutch = (() => {
object.origin = options.enums === String ? "ORIGIN_UNSPECIFIED" : 0;
object.survey = null;
object.userSubmitted = false;
object.urlSearchParams = "";
}
if (message.origin != null && message.hasOwnProperty("origin"))
object.origin = options.enums === String ? $root.clutch.feedback.v1.Origin[message.origin] : message.origin;
...
...
@@ -25806,6 +25821,8 @@ export const clutch = $root.clutch = (() => {
object.survey = $root.clutch.feedback.v1.Survey.toObject(message.survey, options);
if (message.userSubmitted != null && message.hasOwnProperty("userSubmitted"))
object.userSubmitted = message.userSubmitted;
if (message.urlSearchParams != null && message.hasOwnProperty("urlSearchParams"))
object.urlSearchParams = message.urlSearchParams;
return object;
};
This diff is collapsed.
Click to expand it.
frontend/packages/core/src/NPS/feedback.tsx
+
1
-
0
View file @
38d828d6
...
...
@@ -158,6 +158,7 @@ const NPSFeedback = (opts: FeedbackOptions) => {
origin
:
IClutch
.
feedback
.
v1
.
Origin
[
opts
.
origin
],
userSubmitted
:
hasSubmit
,
survey
,
urlSearchParams
:
window
.
location
.
search
,
},
});
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help