-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(manager): move and update metrics cards in the server view #2241
base: master
Are you sure you want to change the base?
Changes from 10 commits
90673c3
51b17e9
4b51e45
8d5d9a5
80af4c7
f30ccc7
ee8c388
ab29f2c
2a6076d
23bf19e
2b1d7da
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -1051,6 +1051,16 @@ | |||||||||||||||||
"message": "Access keys", | ||||||||||||||||||
"description": "This string appears within the server view as a header of a table column that displays server access keys." | ||||||||||||||||||
}, | ||||||||||||||||||
"server_access_keys_tab": { | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we changing this? Can you keep the existing "Connections" for now? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's part of the set of changes that UX wanted! Do you want me to move it to a separate PR? It's behind a feature flag currently. |
||||||||||||||||||
"message": "Access keys ($KEY_COUNT$)", | ||||||||||||||||||
"description": "This string is a tab header indicating to the user that they're currently managing their access keys.", | ||||||||||||||||||
"placeholders": { | ||||||||||||||||||
"KEY_COUNT": { | ||||||||||||||||||
"content": "{keyCount}", | ||||||||||||||||||
"example": "12" | ||||||||||||||||||
} | ||||||||||||||||||
} | ||||||||||||||||||
}, | ||||||||||||||||||
"server_connections": { | ||||||||||||||||||
"message": "Connections", | ||||||||||||||||||
"description": "This string appears within the server view as a header of the section that displays server information and access keys." | ||||||||||||||||||
|
@@ -1099,6 +1109,22 @@ | |||||||||||||||||
"message": "Metrics", | ||||||||||||||||||
"description": "This string appears within the server view as a header of the section that displays server metrics." | ||||||||||||||||||
}, | ||||||||||||||||||
"server_metrics_data_transferred": { | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should decouple the window size from the message. How do we do the current "/ last 30 days"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's currently hardcoded: outline-apps/server_manager/messages/master_messages.json Lines 1068 to 1075 in ab29f2c
Would you be okay with me decoupling this when we add the ability for users to set their own time range? |
||||||||||||||||||
"message": "Data transferred in the last 30 days", | ||||||||||||||||||
"description": "This string indicates to the user that the metric displayed counts how much data was sent through the server over the last 30 days" | ||||||||||||||||||
}, | ||||||||||||||||||
"server_metrics_user_hours": { | ||||||||||||||||||
"message": "User hours spent on the VPN in the last 30 days", | ||||||||||||||||||
"description": "This string indicates to the user that the metric displayed counts how many hours users used the VPN over the last 30 days." | ||||||||||||||||||
}, | ||||||||||||||||||
"server_metrics_user_hours_unit": { | ||||||||||||||||||
"message": "hours", | ||||||||||||||||||
"description": "This string indicates to the user that the metric displayed is in hours." | ||||||||||||||||||
}, | ||||||||||||||||||
"server_metrics_average_devices": { | ||||||||||||||||||
"message": "Average number of devices used in the last 30 days", | ||||||||||||||||||
"description": "This string indicates to the user that the metric displayed corresponds to the average number of devices that used the VPN over the last 30 days." | ||||||||||||||||||
}, | ||||||||||||||||||
"server_my_access_key": { | ||||||||||||||||||
"message": "My access key", | ||||||||||||||||||
"description": "This string appears within the server view as the header for the default server access key. This key is meant to be used by the server administrator." | ||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean with sidestepping Webpack? Why do you need that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can try to figure out how to get this to work with webpack, but currently webpack wants to resolve the
url
link here but doesn't know how. This index.html isn't transformed by webpack so that's what I mean by "sidestepping"