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

pulibrary / tigerdata-app / 06b34e0f-9eb9-4f19-8b30-8cd31925be17

02 Dec 2025 02:30PM UTC coverage: 87.656%. Remained the same
06b34e0f-9eb9-4f19-8b30-8cd31925be17

Pull #2258

circleci

carolyncole
Add a login and learn more actions to the welcome screen
remove the early adopter information as that is no longer true
Pull Request #2258: Add a login and learn more actions to the welcome screen

2805 of 3200 relevant lines covered (87.66%)

357.06 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✔
15
    return if Rails.env.production?
1✔
16

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

20
    if params.key?("emulation_menu")
1✔
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