Skip to content

Conversation

@keellyp keellyp self-assigned this Jun 18, 2025
@keellyp keellyp requested a review from Copilot June 18, 2025 08:25
@keellyp keellyp added the 🐞 bug Something isn't working label Jun 18, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses the issue of displaying hyperlinks for deleted activity types by updating query skip conditions and refactoring the logic that determines deleted activity types.

  • Added a new utility function isDeletedActivityType to identify deleted activity types.
  • Updated skip conditions in activity log queries to avoid hyperlink generation for deleted activity types.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/components/developers/activityLogs/ActivityLogDetails.tsx Updated query skip conditions to include a check for deleted activity types.
src/components/activityLogs/utils.tsx Introduced the isDeletedActivityType function and refactored link generation conditions accordingly.

Copy link
Collaborator

@ansmonjol ansmonjol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume user will face an error toast when receiving a 404 on those 2 queries?

Maybe we should then add a context: { silentErrorCodes: [LagoApiError.NotFound] }, to those WDYT?

@keellyp keellyp merged commit 8906c35 into main Jun 18, 2025
4 checks passed
@keellyp keellyp deleted the issue-front-sq branch June 18, 2025 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants