Add warning screen when server is added after community creation#3007
Add warning screen when server is added after community creation#3007adrastaea wants to merge 110 commits into
Conversation
…component spacings
…language from joining component,
… improving layout
…unexpected-server
…unexpected-server
…unexpected-server
| Enter a comma separated list of server host URLs to add to the current community. | ||
| </Typography> | ||
| </Paper> | ||
| </details> |
There was a problem hiding this comment.
I'm not clear on why this is here. Am I reviewing the right PR?
There was a problem hiding this comment.
This is just a debug utility to forcibly add malicious looking servers to a community for testing. It will only show up in development builds
There was a problem hiding this comment.
Ah I see, sorry, missed that.
|
These were some findings from Codex. I reviewed them and they make sense to me. I reviewed this PR locally against Findings1. Mobile warning drawer is not mounted
So mobile can receive/update state for 2. Desktop accept-with-ToS path can persist QSS/server acceptance before ToS is acceptedIn The ToS modal later dispatches only That reducer only updates Redux state: There is no socket emit from ToS acceptance, while backend QSS connect checks 3. In the “server added, ToS not accepted yet” path, normal QSS usage does not startThe earlier symptom is not just that Accepting the modal emits Backend handles that by only writing the community object: There is no The normal explicit QSS connect calls in this PR are limited to startup-from-storage, create-community, and join-via-QSS: A later reconnect/startup path could only proceed if backend local DB has sufficient state. But the new ToS flow does not write The actual QSS data-sync path requires both the QSS websocket to be connected and the auth connection to be joined. OrbitDB writes call Even if connected, it still queues locally unless auth sync is joined: The auth connection starts only after create/sign-in succeeds and emits The post-launch accept-server path does not reach either create/sign-in path. Therefore, for the intended “server added after community creation and user must accept ToS” flow, normal QSS usage does not begin: messages/log entries are dead-lettered locally, and data is not sent through QSS. Caveat: if backend already had 4. Mobile ToS request from
|
Warns users when a server is authorized on the chain which does not match the QSS endpoint or the endpoints the community was initialized with.
Pull Request Checklist
(Optional) Mobile checklist
Please ensure you completed the following checks if you did any changes to the mobile package: