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

User Metadata for Activity and Timers #2529

Merged
merged 18 commits into from
Feb 5, 2025
Merged

Conversation

Alex-Tideman
Copy link
Contributor

@Alex-Tideman Alex-Tideman commented Jan 30, 2025

Description & motivation 💭

Users are now able to set User Metadata at the event level (Timers and Activities only for now). This PR will decode and show the User Metadata summary field as the primary label on the Timeline and in the Event History row. If it doesn't exist, fall back to previous primary label (Activity Type, Start to Fire Timeout).

Also includes a lot of cleaning up of unused code, simplifying the Timeline Expanded view so that everything is HTML inside a single SVG ForeignObject instead of multiple. The Payload fields will be stacked vertically and not have large gaps between them.

Screenshots (if applicable) 📸

Screenshot 2025-01-31 at 1 39 54 PM Screenshot 2025-01-31 at 1 40 03 PM Screenshot 2025-01-31 at 1 41 09 PM Screenshot 2025-01-31 at 1 41 20 PM Screenshot 2025-01-31 at 1 41 35 PM Screenshot 2025-01-31 at 2 33 20 PM

Updated SS for Status Badge

Screenshot 2025-02-03 at 9 18 59 AM Screenshot 2025-02-03 at 9 48 41 AM

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

Docs

Any docs updates needed?

Copy link

vercel bot commented Jan 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
holocene ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 4, 2025 6:28pm

…. Need to figure out dynamic height of rest of timeline when expanded
}

const onDecode = async () => {
await tick();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let it render first, then calc the height

@Alex-Tideman Alex-Tideman merged commit 7d862a5 into main Feb 5, 2025
15 checks passed
@Alex-Tideman Alex-Tideman deleted the user-metadata-for-events branch February 5, 2025 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants