From 011d50924a9e9ec13d15403bc54278768caef46e Mon Sep 17 00:00:00 2001 From: Shane Maglangit Date: Mon, 15 Dec 2025 11:38:29 +0800 Subject: [PATCH] Redirect onboarding explore to starred projects Changelog: changed --- app/views/dashboard/projects/_blank_state_welcome.html.haml | 2 +- .../projects/_blank_state_welcome.html.haml_spec.rb | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/views/dashboard/projects/_blank_state_welcome.html.haml b/app/views/dashboard/projects/_blank_state_welcome.html.haml index 0e3eea1699e688..b4a04e613ab8f3 100644 --- a/app/views/dashboard/projects/_blank_state_welcome.html.haml +++ b/app/views/dashboard/projects/_blank_state_welcome.html.haml @@ -11,7 +11,7 @@ = render Onboarding::ActionCardComponent.new(title: _('Explore public projects'), description: _('Public projects are an easy way to allow everyone to have read-only access.'), icon: 'earth', - href: trending_explore_projects_path) + href: starred_explore_projects_path) - if current_user.can_create_group? = render Onboarding::ActionCardComponent.new(title: _('Create a group'), diff --git a/spec/views/dashboard/projects/_blank_state_welcome.html.haml_spec.rb b/spec/views/dashboard/projects/_blank_state_welcome.html.haml_spec.rb index a5ad2495375f00..860404c772536c 100644 --- a/spec/views/dashboard/projects/_blank_state_welcome.html.haml_spec.rb +++ b/spec/views/dashboard/projects/_blank_state_welcome.html.haml_spec.rb @@ -22,6 +22,12 @@ expect(rendered).to include(_('Create a project')) end + + it 'links to starred explore projects' do + render + + expect(rendered).to have_link(_('Explore public projects'), href: starred_explore_projects_path) + end end context 'with project creation disabled' do -- GitLab