Skip to content
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

Chore rework UI activities #25539

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

ghernandez345
Copy link
Contributor

@ghernandez345 ghernandez345 commented Jan 17, 2025

For #23912

new UI for activities on the global, past, and upcoming feeds. These are the same changes in this PR, except we are reverting the changes around fleet initiated activities as that is not in the current activities API.

We are doing this so that the new activities can go out in a release while the backend is still being built and will be ready later.

NOTE: this does contain the code for cancel activity functionality but it hidden from the user.

  • Changes file added for user-visible changes in changes/, orbit/changes/ or ee/fleetd-chrome/changes.
  • Added/updated automated tests
  • Manual QA for all new/changed functionality

For #23912

Add the ability to cancel upcoming activities in the UI. This adds that
functionality but also changes the design of the activities used on the
past and upcoming feeds. This PR includes:

**new UI for activities on past and upcoming activity feeds **


![image](https://github.com/user-attachments/assets/f970a4fe-a04b-49cb-8b76-bbaf1f8dff02)

**ability to cancel an upcoming activity**


![image](https://github.com/user-attachments/assets/00107135-6a62-40d6-8c8d-9f16b7ae049a)

**changes to the global activities to use the new activity behaviour and
styles:**


![image](https://github.com/user-attachments/assets/d5bbd7e4-9879-45d0-b12c-188067c4253f)


> NOTE: there will need to be more work done to integrate with the API
when this is ready. That will be done in another PR.

- [ ] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
- [ ] Added/updated automated tests
- [x] Manual QA for all new/changed functionality
relates to #23912

This renders the fleet avatar if the activity is fleet initiated 


![image](https://github.com/user-attachments/assets/cb28f6e8-e5bd-4dad-8c68-bdce2ee6349e)

- [ ] Added/updated automated tests
- [ ] Manual QA for all new/changed functionality
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

Attention: Patch coverage is 64.21053% with 34 lines in your changes missing coverage. Please review.

Project coverage is 63.58%. Comparing base (732f46c) to head (fca698f).

Files with missing lines Patch % Lines
frontend/components/ActivityItem/ActivityItem.tsx 63.15% 14 Missing ⚠️
...vityFeed/GlobalActivityItem/GlobalActivityItem.tsx 60.71% 11 Missing ⚠️
.../DashboardPage/cards/ActivityFeed/ActivityFeed.tsx 33.33% 4 Missing ⚠️
frontend/services/entities/activities.ts 0.00% 3 Missing ⚠️
frontend/utilities/endpoints.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #25539      +/-   ##
==========================================
- Coverage   63.59%   63.58%   -0.01%     
==========================================
  Files        1619     1621       +2     
  Lines      155002   155033      +31     
  Branches     3985     4051      +66     
==========================================
+ Hits        98572    98583      +11     
- Misses      48659    48679      +20     
  Partials     7771     7771              
Flag Coverage Δ
frontend 53.12% <64.21%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ghernandez345 ghernandez345 marked this pull request as ready for review January 17, 2025 14:22
@ghernandez345 ghernandez345 requested a review from a team as a code owner January 17, 2025 14:22
@ghernandez345 ghernandez345 self-assigned this Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants