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

feat: handle switching the active account #2613

Merged
merged 19 commits into from
Aug 22, 2023
Merged

Commits on Jul 18, 2023

  1. Update Chat component

    - Display different messages for different states
    - Fix typings
    
    Signed-off-by: Martin Musale <[email protected]>
    musale committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    97d22cf View commit details
    Browse the repository at this point in the history
  2. Update the GraphNotificationClient

    - Add reconnect and closing of the connection methods
    - Add a method to unsubscribe from all the notifications
    
    Signed-off-by: Martin Musale <[email protected]>
    musale committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    48e130c View commit details
    Browse the repository at this point in the history
  3. Update the StatefulGraphChatClient

    - Add a new status 'no messages'
    - Perform state updates when the user account is changed
    - Add methods to handle connection closing or reconnection
    - Add methods to clear current user messages and update the current user name
    - Change state update logic when there is no chat ID passed
    
    Signed-off-by: Martin Musale <[email protected]>
    musale committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    6aeeb3f View commit details
    Browse the repository at this point in the history
  4. Update getting the current user values

    Signed-off-by: Martin Musale <[email protected]>
    musale committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    0faa800 View commit details
    Browse the repository at this point in the history
  5. Update sample to pass chatID and select a default chat

    Signed-off-by: Martin Musale <[email protected]>
    musale committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    1c0e2ec View commit details
    Browse the repository at this point in the history
  6. Update packages

    Signed-off-by: Martin Musale <[email protected]>
    musale committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    ecaa31d View commit details
    Browse the repository at this point in the history
  7. Purge the cached subscriptions from the session

    Signed-off-by: Martin Musale <[email protected]>
    musale committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    5352fb3 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2023

  1. Add ChatMessageBar template state messages

    Signed-off-by: Martin Musale <[email protected]>
    musale committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    97055e2 View commit details
    Browse the repository at this point in the history
  2. Add event states that are changing in the provider

    Signed-off-by: Martin Musale <[email protected]>
    musale committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    85c62e0 View commit details
    Browse the repository at this point in the history
  3. Remove default chat selection from sampl

    Signed-off-by: Martin Musale <[email protected]>
    musale committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    d91ce07 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2023

  1. Configuration menu
    Copy the full SHA
    3a8e86a View commit details
    Browse the repository at this point in the history
  2. Set the chat ID if only it has been changed

    Signed-off-by: Martin Musale <[email protected]>
    musale committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    dcbef44 View commit details
    Browse the repository at this point in the history
  3. Update the stateful client to emit errors

    Signed-off-by: Martin Musale <[email protected]>
    musale committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    d116960 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. Use property over the backing field

    Signed-off-by: Martin Musale <[email protected]>
    musale committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    6a56656 View commit details
    Browse the repository at this point in the history
  2. Close and re-open signalR hub connection when acct changes

    This is way simpler to enable removing all the subscriptions for a given chat. The alternative that
    was using the connection.off method required precise handlers that were the same as the ones
    passed during creation of the subscriptions.
    
    Signed-off-by: Martin Musale <[email protected]>
    musale committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    84d31a5 View commit details
    Browse the repository at this point in the history
  3. Log error when loadChatData fails

    Signed-off-by: Martin Musale <[email protected]>
    musale committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    f48d72f View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2023

  1. Remove guard checking chatId twice

    Signed-off-by: Musale Martin <[email protected]>
    musale committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    08e3a6e View commit details
    Browse the repository at this point in the history
  2. Remove CTA to select a chat to display messages

    Signed-off-by: Musale Martin <[email protected]>
    musale committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    9f3c7ee View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2023

  1. Add additional information in the error block

    Signed-off-by: Martin Musale <[email protected]>
    musale committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    69f6d14 View commit details
    Browse the repository at this point in the history