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

pulibrary / tigerdata-app / 3f98f228-6ecf-4120-a478-d9932b13e420

23 Oct 2025 09:19PM UTC coverage: 91.178%. Remained the same
3f98f228-6ecf-4120-a478-d9932b13e420

push

circleci

web-flow
Added tooltip to Data Sponsor Field (#2092)

Added 20px to margin to display the tooltip.

ref #2081 


<img width="1219" height="201" alt="Screenshot 2025-10-23 at 2 34 36 PM"
src="https://github.com/user-attachments/assets/d529b85c-a834-4aa3-9456-1ca89e1ec6ac"
/>

Co-authored-by: Precilla Prempeh <pprempeh@princeton.edu>
Co-authored-by: Robert-Anthony Lee-Faison <leefaisonr@users.noreply.github.com>

2739 of 3004 relevant lines covered (91.18%)

757.2 hits per line

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

100.0
/app/presenters/dashboard_presenter.rb
1
# frozen_string_literal: true
2
class DashboardPresenter
4✔
3
  attr_reader :current_user
4✔
4
  def initialize(current_user:)
4✔
5
    @current_user = current_user
158✔
6
  end
7

8
  def all_projects
4✔
9
    return [] unless current_user&.eligible_sysadmin?
14✔
10

11
    @all_projects ||= Project.all_projects.map { |project| ProjectDashboardPresenter.new(project) }.sort_by(&:updated_at).reverse
32✔
12
    @all_projects
12✔
13
  end
14

15
  def dashboard_projects
4✔
16
    @dashboard_projects ||= Project.users_projects(current_user).map { |project| ProjectDashboardPresenter.new(project) }.sort_by(&:updated_at).reverse
306✔
17
    @dashboard_projects
136✔
18
  end
19

20
  def my_inventory_requests
4✔
21
    @my_inventory_requests ||= current_user.user_requests.where(type: "FileInventoryRequest")
4✔
22
  end
23

24
  def my_draft_requests
4✔
25
    @my_draft_requests ||= Request.where(requested_by: current_user.uid, state: Request::DRAFT)
138✔
26
  end
27

28
  def my_submitted_requests
4✔
29
    @my_submitted_requests ||= Request.where(requested_by: current_user.uid, state: Request::SUBMITTED)
138✔
30
  end
31
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