settings_ui: Fix tab navigation in edit predictions settings (#48530)

Austin Cummings created

The provider dropdown and GitHub Copilot sign-in button were not
tab-navigable because they lacked tab_index. The copilot button
conditionally sets tab_index only when edit_prediction is true, since
it's also used in the agent configuration panel where tab navigation
isn't used.

Closes #48391

Release Notes:

- Fixed focus skipping provider dropdown and GitHub Copilot button in
edit prediction settings

Change summary

crates/copilot_ui/src/sign_in.rs                               | 1 +
crates/settings_ui/src/pages/edit_prediction_provider_setup.rs | 1 +
2 files changed, 2 insertions(+)

Detailed changes

crates/copilot_ui/src/sign_in.rs 🔗

@@ -568,6 +568,7 @@ impl ConfigurationView {
             .icon_color(Color::Muted)
             .icon_position(IconPosition::Start)
             .icon_size(IconSize::Small)
+            .when(edit_prediction, |this| this.tab_index(0isize))
             .on_click(|_, window, cx| {
                 if let Some(app_state) = AppState::global(cx).upgrade()
                     && let Some(copilot) = GlobalCopilotAuth::try_get_or_init(app_state, cx)