Skip to content

Update Home Page: Add Sessions

In #654+ we made the home page capable of showing item tags next to action buttons; also adding and removing them dynamically. This issue is supposed to make use of that new mechanism.

The goal here is to add a couple of sessions to the HCP home page. Namely the open ones, in order to remind the HCP that she has some unfinished business. The session then come with actions to delete or activate them (future issue).

What to Do

  • Create OpenSessionHomePageEntryModule
    • Includes OpenSessionHomePageEntryService
      • The service adds open sessions as ItemEntries to the homepage
      • The service removes sessions, when they are no longer open

Open Sessions?

Open sessions are managed by OpenSessionStoreService sessions stored in this store a considered open. If they get removed from the store they are closed. (A Session is active, when it is the one currently being used in OpenSessionHome, not relevant to this issue).

Since OpenSessionStoreService extends ItemStore you can track additions and removal of sessions with OpenSessionStoreService.addition$ and OpenSessionStoreService.removal$ respectively.

How to test?

I suggest logging the instance of OpenSessionStoreService to the console. From there we can use OpenSessionStoreService.startNewSession() and OpenSessionStoreService.close(). Or more directly: OpenSessionStoreService.addConfig(), OpenSessionStoreService.removeItem().

Figma: https://www.figma.com/file/8PWKCoBl4vl4TrI32UV5op/RC-Design-PRODUCTION?type=design&node-id=5837%3A61724&mode=design&t=LlziTNRrMYIsUnXt-1

Clickup: https://app.clickup.com/t/861mt59rm

Edited by Andreas Pittrich