Skip to content

Conversation

@FlowFlorent
Copy link
Contributor

@FlowFlorent FlowFlorent commented Jul 30, 2024

Description

This aims to setup a prototype for an application which renders a list of many rooms in a single page (up to 500). Only a few rooms are in view at a time (roughly 25).
Each room must have the comments functionality available. It is acceptable for comments to not be live and be polled at an interval.

To achieve that, two things must be done:

  • autoConnect is set to false on the RoomProvider, that's already the case out of the box
  • hiddenEnablePolling api should be built to poll for comments when enable, and not when false

What's needed for autoConnect to work well:

  • allow Composer to be focused & editable while room is not connected
  • setup polling based on room connection status -> "initial" or "disconnected" or introduce another status

What's needed for hiddenEnablePolling:

  • Setup an api that reacts on the change of the value of hiddenEnablePolling
  • Provide an example of starting / stopping polling when a RoomProvider comes into / leaves the view respectivelly

@FlowFlorent FlowFlorent force-pushed the prototype-comments-no-ws branch from 0e2a807 to 5db2c44 Compare July 30, 2024 02:02
<Thread key={thread.id} thread={thread} className="thread" />
))}
<Composer className="composer" />
<Composer className="composer" disabled={false}/>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

does not work, explore why

}


export function useIsVisible(ref: React.RefObject<Element>): boolean {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

does not work yet

<ComposerInsertMentionEditorAction
label={$.COMPOSER_INSERT_MENTION}
disabled={isDisabled}
disabled={false}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

dirty enable logic, understand why composer doesn't allow focus

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