Commit 6f043be
authored
ref(rules): Translate int minutes to words (#67021)
Based on the hardcoded values we have available as options
[here](https://github.com/getsentry/sentry/blob/be87b8cea8131a46248e11507edd8d58d4d59f3d/static/app/views/alerts/rules/issue/index.tsx#L83-L93)
translate the number of minutes to available values for human
readability.
Before:
<img width="423" alt="Screenshot 2024-03-14 at 2 53 47 PM"
src="https://github.com/getsentry/sentry/assets/29959063/411e07a6-2844-421b-a302-58bbdfcd7923">
After:
<img width="431" alt="Screenshot 2024-03-14 at 2 53 52 PM"
src="https://github.com/getsentry/sentry/assets/29959063/f4631d4e-393f-404f-bf58-9b9d4cca2afa">
Closes
getsentry/team-core-product-foundations#1581 parent 1752f52 commit 6f043be
File tree
2 files changed
+29
-5
lines changed- src/sentry/rules/actions
- tests/sentry/api/endpoints
2 files changed
+29
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
45 | 65 | | |
46 | 66 | | |
47 | 67 | | |
| |||
62 | 82 | | |
63 | 83 | | |
64 | 84 | | |
65 | | - | |
66 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
67 | 89 | | |
68 | 90 | | |
69 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
1016 | | - | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
1017 | 1019 | | |
1018 | 1020 | | |
1019 | 1021 | | |
| |||
1063 | 1065 | | |
1064 | 1066 | | |
1065 | 1067 | | |
1066 | | - | |
| 1068 | + | |
1067 | 1069 | | |
1068 | 1070 | | |
1069 | 1071 | | |
| |||
1081 | 1083 | | |
1082 | 1084 | | |
1083 | 1085 | | |
1084 | | - | |
| 1086 | + | |
1085 | 1087 | | |
1086 | 1088 | | |
1087 | 1089 | | |
| |||
0 commit comments