Skip to content

Complete deprecation of activityMiddleware.nextVisibleActivity and activityMiddleware.sameTimestampGroup#5565

Merged
compulim merged 3 commits intomicrosoft:mainfrom
compulim:remove-next-visible-activity
Sep 2, 2025
Merged

Complete deprecation of activityMiddleware.nextVisibleActivity and activityMiddleware.sameTimestampGroup#5565
compulim merged 3 commits intomicrosoft:mainfrom
compulim:remove-next-visible-activity

Conversation

@compulim
Copy link
Copy Markdown
Contributor

@compulim compulim commented Aug 30, 2025

Related to #4362.

Changelog Entry

Breaking changes

  • activityStatusMiddleware.nextVisibleActivity and activityStatusMiddleware.sameTimestampGroup is removed after deprecation, in PR #5565, by @compulim

Removed

  • activityStatusMiddleware.nextVisibleActivity and activityStatusMiddleware.sameTimestampGroup is being deprecated and will be removed on or after 2022-07-22, in PR #4362, by @compulim

Description

Removing deprecated nextVisibleActivity and sameTimestampGroup.

Design

Specific Changes

  • Removed all references to nextVisibleActivity and sameTimestampGroup
  • I have added tests and executed them locally
  • I have updated CHANGELOG.md
  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

@compulim compulim marked this pull request as ready for review August 30, 2025 20:49
@compulim compulim requested a review from Copilot August 30, 2025 21:24
Copy link
Copy Markdown
Contributor

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 removes the deprecated nextVisibleActivity and sameTimestampGroup properties from the activity status middleware as part of a planned cleanup. The deprecation was originally scheduled for removal on or after 2022-07-22.

  • Removes all references to the deprecated nextVisibleActivity and sameTimestampGroup properties
  • Updates samples and test files to use the new hideTimestamp property instead
  • Simplifies function signatures and middleware by eliminating the deprecated parameters

Reviewed Changes

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

Show a summary per file
File Description
packages/api/src/types/ActivityStatusMiddleware.ts Removes deprecated properties from the type definition
packages/api/src/hooks/useCreateActivityStatusRenderer.tsx Simplifies renderer to remove deprecated parameter handling
samples/05.custom-components/g.activity-status/index.html Updates sample to use hideTimestamp instead of sameTimestampGroup
samples/05.custom-components/f.password-input/index.html Removes nextVisibleActivity parameter from middleware
packages/api/src/legacy/LegacyActivityBridge.tsx Simplifies bridge to remove deprecated parameters
packages/api-middleware/src/legacy/activityMiddleware.ts Updates legacy middleware types
packages/api-middleware/src/internal/createActivityPolymiddlewareFromLegacy.tsx Removes deprecated parameter passing
tests/html2/activityGrouping/activityGrouping.legacyActivityStatusMiddleware.html Updates test to use new parameter names
tests/html/transcript.legacyActivityMiddleware.passwordInput.html Updates test to remove deprecated parameters
docs/HOOKS.md Adds deprecation notice for useRenderActivity hook
CHANGELOG.md Documents the breaking change removal

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread packages/api/src/types/ActivityStatusMiddleware.ts
Comment thread packages/api/src/hooks/useCreateActivityStatusRenderer.tsx
Comment thread packages/api/src/hooks/useCreateActivityStatusRenderer.tsx
@compulim compulim changed the title Remove deprecated activityMiddleware.nextVisibleActivity Complete deprecation of activityMiddleware.nextVisibleActivity and activityMiddleware.sameTimestampGroup Aug 30, 2025
@compulim compulim mentioned this pull request Sep 1, 2025
11 tasks
OEvgeny
OEvgeny previously approved these changes Sep 2, 2025
@compulim compulim merged commit 19831c9 into microsoft:main Sep 2, 2025
32 of 49 checks passed
@compulim compulim deleted the remove-next-visible-activity branch September 2, 2025 18:47
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.

3 participants