Step 4 of Gitea support (#201). GitHub and Gitea are equal options on the card the app opens on, with the same two labels as the wizard. - Quick Sync's card asks where the repositories are: GitHub or Gitea, and for Gitea the server's address. On a first run nothing is chosen, and the token box takes a token only once a place is. The title, the token box and the "How to create a token" link follow the place. - Nothing is sent until the user asks. A token that is typed, pasted or filled in from a saved default goes nowhere by itself: the organization list is fetched when Find is pressed, and the repositories when Load is. Both go to the listers of the place on the card. An account's page lists and loads on open as before: its token was saved for its place. - A server address is taken when its box is left, not while it is typed. - Choosing another place empties the token, the organization and the table: the table's clone addresses are on the other host. - The card opens the way the last connection that worked left it (place, address, organization, target folder, in settings.json). Never a token. - Once a connection loaded its repositories, a bar offers to save it as an account; the account is saved on the place the connection was on. - The app opens on the workspace that was open last; with nothing recorded, on the first account; with no account, on Quick Sync. - The connection chip names the place, and the hint about a token that sees no organization is in the words of the forge. - README, ADR 0010, threat model T16, CLAUDE.md. Included, from the reviews of this pull request: - fix(app): no place is chosen by keyboard focus, and the pane's button closes and opens the pane - fix(app): Quick Sync uses no address that is being edited or cannot be used, and forgets what was typed before a place was chosen Closes #209 Closes #213 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: James Maes <james@kof22.com>
57 KiB
1233x1180px
57 KiB
1233x1180px