• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / tigerdata-app / 7291b10e-eaa3-4284-9371-5a980ceebf59

24 Nov 2025 07:18PM UTC coverage: 87.613% (-3.7%) from 91.333%
7291b10e-eaa3-4284-9371-5a980ceebf59

push

circleci

web-flow
Adds breadcrumb to Wizard (#2231)

Adds the breadcrumb to the Wizard and the functionality to allow the
user to save their changes before leaving the Wizard when clicking on
the "Dashboard" link in the breadcrumbs.

Closes #2102

5 of 12 new or added lines in 11 files covered. (41.67%)

904 existing lines in 36 files now uncovered.

2801 of 3197 relevant lines covered (87.61%)

360.23 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/app/controllers/dashboard_controller.rb
1
# frozen_string_literal: true
2
class DashboardController < ApplicationController
2✔
3
  layout "welcome"
2✔
4

5
  def index
2✔
6
    @presenter = DashboardPresenter.new(current_user: current_user)
13✔
7

8
    session[:dashtab] ||= "project" # default the session tab to projects
13✔
9
    @dash_session = session[:dashtab]
13✔
10
    @session_id = current_user.mediaflux_session
13✔
11
    @emulation_role = session[:emulation_role] || "Not Emulating"
13✔
12
  end
13

14
  def emulate
2✔
UNCOV
15
    return if Rails.env.production?
1✔
16

UNCOV
17
    absolute_user = User.find(current_user.id)
1✔
UNCOV
18
    return unless absolute_user.trainer?
1✔
19

UNCOV
20
    if params.key?("emulation_menu")
1✔
UNCOV
21
      session[:emulation_role] = params[:emulation_menu]
1✔
22
    end
23
  end
24

25
  def dash_project
2✔
26
    if params.key?("dashtab")
×
27
      session[:dashtab] = params[:dashtab]
×
28
    end
29
  end
30

31
  def dash_admin
2✔
32
    if params.key?("dashtab")
×
33
      session[:dashtab] = params[:dashtab]
×
34
    end
35
  end
36
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc