Open mikermcneil opened 3 years ago
Below are the latest API wireframe to support the activity feed on the Home page in the Fleet UI.
per_page
parameter being set to 10
GET /api/v1/fleet/status?page=0&per_page=10
{
"activities": [
{
"id": 1,
"created_at": "2020-11-05T05:09:44Z",
"actor_full_name": "Jane Doe",
"actor_id": 1,
"type": "created_pack",
"details": {
"pack_id": 1,
"pack_name": "Cool pack"
}
},
{
"id": 2,
"created_at": "2020-11-05T05:09:44Z",
"actor_full_name": "Jane Doe",
"actor_id": 1,
"type": "deleted_pack",
"details": {
"pack_name": "Cool pack"
}
},
{
"id": 3,
"created_at": "2020-11-05T05:09:44Z",
"actor_full_name": "Jane Doe",
"actor_id": 1,
"type": "edited_pack",
"details": {
"pack_id": 1,
"pack_name": "Cool pack"
}
},
{
"id": 4,
"created_at": "2020-11-05T05:09:44Z",
"actor_full_name": "Jane Doe",
"actor_id": 1,
"type": "created_saved_query",
"details": {
"query_id": 1,
"query_name": "Awesome query"
}
},
{
"id": 5,
"created_at": "2020-11-05T05:09:44Z",
"actor_full_name": "Jane Doe",
"actor_id": 1,
"type": "deleted_saved_query",
"details": {
"query_name": "Awesome query"
}
},
{
"id": 6,
"created_at": "2020-11-05T05:09:44Z",
"actor_full_name": "Jane Doe",
"actor_id": 1,
"type": "edited_saved_query",
"details": {
"query_id": 1,
"query_name": "Awesome query"
}
},
{
"id": 7,
"created_at": "2020-11-05T05:09:44Z",
"actor_full_name": "Jane Doe",
"actor_id": 1,
"type": "created_team",
"details": {
"team_id": 1,
"team_name": "Walmart Pay"
}
},
{
"id": 8,
"created_at": "2020-11-05T05:09:44Z",
"actor_full_name": "Jane Doe",
"actor_id": 1,
"type": "deleted_team",
"details": {
"team_name": "Walmart Pay"
}
},
{
"id": 9,
"created_at": "2020-11-05T05:09:44Z",
"actor_full_name": "Jane Doe",
"actor_id": 1,
"type": "live_query",
"details": {
"targets_count": 12030,
"duration_ms": 1232323
}
}
],
"host_summary": {
"macos": 10567,
"windows": 1263,
"linux": 204,
"other": 20004
}
}
This issue now outlines the tasks required for adding the Home page and Activity feed feature to Fleet.
The Figma mockups for the Home page and Activity feed feature can be found on the Home page in the Fleet EE (current) Figma file: https://www.figma.com/file/qpdty1e2n22uZntKUZKEJl/?node-id=494%3A0
Linking to the "Add Activity feed feature to the Fleet UI" issue here: #1320
Track activity and display an activity feed on the logged-in home page. Supports:
To orient ourselves, here's a screenshot of an early wireframe: