Henry Hiles Henry-Hiles · he/him
Henry-Hiles suggested changes for Nexus/nexus#33 2026-06-02 16:48:12 -04:00
Server selection and login are on different pages.

Seems fine other than these. I'd also appreciate if you could fix the merge conflicts.

Henry-Hiles commented on pull request Nexus/nexus#33 2026-06-02 16:48:12 -04:00
Server selection and login are on different pages.
Henry-Hiles commented on pull request Nexus/nexus#33 2026-06-02 16:48:12 -04:00
Server selection and login are on different pages.

prefer Navigator.of(context).pop()

Henry-Hiles commented on pull request Nexus/nexus#33 2026-06-02 14:55:28 -04:00
Server selection and login are on different pages.

Yeah, that should work great. I have it set to format on save.

Henry-Hiles commented on pull request Nexus/nexus#33 2026-06-02 13:39:39 -04:00
Server selection and login are on different pages.

Also, you should use Navigator.of(context).push, and await it.

Henry-Hiles commented on pull request Nexus/nexus#33 2026-06-02 13:37:03 -04:00
Server selection and login are on different pages.

These focusnodes shouldnt be needed. Perhaps we just need a Form()

Henry-Hiles commented on pull request Nexus/nexus#33 2026-06-02 13:35:18 -04:00
Server selection and login are on different pages.

Please keep width as default always, and only override the border at all if hasError is true. Also, does both focusedBorder and enabledBorder need to be set?

Henry-Hiles commented on pull request Nexus/nexus#33 2026-06-02 13:33:08 -04:00
Server selection and login are on different pages.

bad formatting here. make sure you format your code :)

Henry-Hiles commented on pull request Nexus/nexus#33 2026-06-02 13:32:13 -04:00
Server selection and login are on different pages.

Uh, no it's not. The "safe"/normal way is to set autofocus on the text field.

Henry-Hiles commented on pull request Nexus/nexus#33 2026-06-02 13:31:09 -04:00
Server selection and login are on different pages.

you changed this to have two spaces between the ) and {, not sure why

Henry-Hiles commented on pull request Nexus/nexus#33 2026-06-02 13:24:42 -04:00
Server selection and login are on different pages.

Might be nice to do that Uri.parse in client.discoverHomeserver, and have that return a Uri.

Henry-Hiles pushed to main at Nexus/nexus 2026-06-02 12:51:06 -04:00
d2ec5f035b
treewide: use dot shorthands where possible
Henry-Hiles pushed to main at Nexus/nexus 2026-06-02 11:53:19 -04:00
c2cef857f8
treewide: use dot shorthands where possible
Henry-Hiles suggested changes for Nexus/nexus#33 2026-06-02 10:02:43 -04:00
Server selection and login are on different pages.

This mostly looks good, just a couple things I think should be done a different way.

Henry-Hiles commented on pull request Nexus/nexus#33 2026-06-02 10:02:43 -04:00
Server selection and login are on different pages.

This will be redundant when it takes in a URI.

Henry-Hiles commented on pull request Nexus/nexus#33 2026-06-02 10:02:43 -04:00
Server selection and login are on different pages.

Lets take in final Uri homeserver as an argument here, instead of using ClientStateController.

Henry-Hiles commented on pull request Nexus/nexus#33 2026-06-02 10:02:43 -04:00
Server selection and login are on different pages.

Else: pop page

Henry-Hiles commented on pull request Nexus/nexus#33 2026-06-02 10:02:43 -04:00
Server selection and login are on different pages.

I don't think this logic needs to be changed this much. If you can keep the previous logic, but instead show ServerSelectPage instead of login, we can take a different approach to push the login.

Henry-Hiles commented on pull request Nexus/nexus#33 2026-06-02 10:02:43 -04:00
Server selection and login are on different pages.

Given this won't be persistent anyways, I think we can go for a simpler approach and not touch client state controller.

Henry-Hiles commented on pull request Nexus/nexus#33 2026-06-02 10:02:43 -04:00
Server selection and login are on different pages.

I'd appreciate if you didn't commit these changes.