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

fix(notifications): update types, field names, cross-window syncing #6040

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

hayemaxi
Copy link
Contributor

  • Make types more granular.
  • Align names - fix onRecieve typo, openTxt -> openTextDocument
  • Sync from global state on reload to detect activity in other windows. This makes it so that if users dismiss in one window, it will dismiss in all windows. It will also prevent a bug where users may get dismissed notifications again if they have multiple windows.

License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

This comment was marked as resolved.

@hayemaxi hayemaxi force-pushed the notifications4 branch 2 times, most recently from 679619e to 360c7f6 Compare November 18, 2024 17:29
@hayemaxi hayemaxi marked this pull request as ready for review November 18, 2024 17:29
@hayemaxi hayemaxi requested review from a team as code owners November 18, 2024 17:29
@@ -13,7 +13,7 @@ import { AuthState } from './types'
import { getLogger } from '../shared/logger/logger'

/** Time in MS to poll for emergency notifications */
const emergencyPollTime = 1000 * 10 * 60
const emergencyPollTime = 1000 * 60 * 10
Copy link
Contributor

Choose a reason for hiding this comment

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

I added in some constants for time in datetime.ts, we should look to start using these

packages/core/src/notifications/types.ts Outdated Show resolved Hide resolved
- Make types more granular.
- Align names - fix onRecieve typo, openTxt -> openTextDocument
- Sync from global state on reload to detect activity in other windows. This makes it so that if users dismiss in one window, it will dismiss in all windows. It will also prevent a bug where users may get dismissed notifications again if they have multiple windows.
@hayemaxi hayemaxi merged commit 4158d67 into aws:master Nov 18, 2024
23 of 25 checks passed
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