Skip to content

Commit a47c018

Browse files
authored
Add project type indicator behind feature flipper (#2265)
Co-authored-by: Precilla Prempeh <[email protected]> ref #2227
1 parent da29c87 commit a47c018

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

app/views/dashboard/_project_list_view.html.erb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,19 @@
1616
</div>
1717
<div class="summary">
1818
<div class="status <%= project.status.downcase %>"><%= project.status %></div>
19-
<div class="type"><%= project.type %></div>
19+
20+
<% if Flipflop.project_type_indicator? %>
21+
<div class="type"><%= project.type %></div>
22+
<% end %>
23+
2024
<div class="role"><%= project.role(current_user) %></div>
2125
<div class="download"><%= project.latest_file_list_time %></div>
2226

2327
<% if Flipflop.last_updated_dashboard? %>
2428
<div class="activity"><%= project.last_activity %></div>
2529
<% end %>
2630

27-
</div></div>
31+
</div></div>
2832

2933
<div class="storage-details">
3034
<div class="storage">

config/features.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@
2323
# description: "Take over the world."
2424

2525
feature :disable_login, default: false, description: "Disable login to the web portal."
26-
feature :last_updated_dashboard, default: true, description: "Show last updated column on dashboard."
26+
feature :last_updated_dashboard, default: false, description: "Show last updated column on dashboard."
27+
feature :project_type_indicator, default: false, description: "Show project type indicator on dashboard."
2728
end

spec/system/features_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
visit "/features"
2020
expect(page).not_to have_content("Disable login to the web portal")
2121
expect(page).not_to have_content("Last updated dashboard")
22+
expect(page).not_to have_content("Project type indicator")
2223
end
2324
end
2425

@@ -33,6 +34,7 @@
3334
visit "/features"
3435
expect(page).not_to have_content("Disable login to the web portal")
3536
expect(page).not_to have_content("Last updated dashboard")
37+
expect(page).not_to have_content("Project type indicator")
3638
end
3739
end
3840

@@ -47,6 +49,7 @@
4749
visit "/features"
4850
expect(page).to have_content("Disable login to the web portal")
4951
expect(page).to have_content("Last updated dashboard")
52+
expect(page).to have_content("Project type indicator")
5053
end
5154
end
5255

@@ -61,6 +64,7 @@
6164
visit "/features"
6265
expect(page).to have_content("Disable login to the web portal")
6366
expect(page).to have_content("Last updated dashboard")
67+
expect(page).to have_content("Project type indicator")
6468
end
6569
end
6670
end

0 commit comments

Comments
 (0)