forked from amitvkulkarni/ProjectManagement
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
176 lines (134 loc) · 9.39 KB
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
library(shiny)
library(shinydashboard)
library(dplyr)
library(shinycssloaders)
library(shinythemes)
library(rhandsontable)
library(bsplus)
library(htmltools)
library(giphyr)
library(rpivotTable)
library(plotly)
library(shinyalert)
library(shinyalert)
library(shinyjs)
library(supercaliheatmapwidget)
dashboardPage(
dashboardHeader(dropdownMenuOutput("dropdownmenu"),
title = "Divisão de Pesquisa",dropdownMenuOutput("msgOutput")
),
dashboardSidebar(
sidebarMenu(id= "tabs", width = 350,
menuItem("Home", icon = icon("home"), tabName = "home"),
menuItem("Projects & Tasks", icon = icon("tasks"), tabName = "projects_tasks")
#menuItem("Generate Report", tabName = "sectors", icon = icon("download"),
#radioButtons('format', 'Document format', c('PDF', 'Word'),inline = FALSE, selected = 1),
#downloadButton("report", "Download Report", class = "butt"),
#tags$head(tags$style(".butt{color: blue !important;}"))))
#menuItem("Team", icon = icon("users"), tabName = "team"),
#menuItem("Timesheets", icon = icon("clock"), tabName = "timesheets"),
#menuItem("Do it Yourself", icon = icon("hand-pointer"), tabName = "doitYourself"),
#menuItem("Help", icon = icon("hands-helping"), tabName = "help"),
)
),
dashboardBody(
#useShinyalert(),
useShinyjs(),
shinyjs::extendShinyjs(text = "shinyjs.refresh = function() { location.reload(); }", functions = c()),
#------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
tags$head(
tags$style(
HTML(".shiny-notification {
position:fixed;
top: calc(90%);
left: calc(0.5%);
}
"
)
)
),
fluidPage(
tabItems(
tabItem(tabName = "home",
#tags$img(src = "home.jpg", width = "1600", height = "350"),
fluidRow(
valueBoxOutput("Completed", width = 3),
valueBoxOutput("WIP", width = 3),
valueBoxOutput("Delayed", width = 3),
valueBoxOutput("OnHold", width = 3)
),
fluidRow(
box(plotlyOutput("Project_status"), width = 12,solidHeader = FALSE, status = "primary", title = "Status do Projeto", collapsible = TRUE),
box(plotlyOutput("Project_category"), width = 4,solidHeader = FALSE, status = "primary", title = "Tipo de Projeto", collapsible = TRUE),
box(plotlyOutput("Complexity"), width = 4,solidHeader = FALSE, status = "primary", title = "Participação", collapsible = TRUE),
box(plotlyOutput("Audits"), width = 4,solidHeader = FALSE, status = "primary", title = "Centro Aprovado", collapsible = TRUE),
#box(plotlyOutput("Proj_task_cnt"), width = 4,solidHeader = TRUE, status = "primary", title = "Project & Tasks", collapsible = TRUE),
box(DTOutput("upcoming_deadlines"), width = 5,solidHeader = FALSE, status = "primary", title = "Deadlines", collapsible = TRUE),
box(DTOutput("overdue_tasks"), width = 6,solidHeader = FALSE, status = "primary", title = "Pendências", collapsible = TRUE),
box(DTOutput("Overview"), width = 12,solidHeader = FALSE, status = "primary", title = "Projetos Detalhados", collapsible = TRUE)
)
),
#------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
tabItem(tabName = "projects_tasks",
box(tabBox(id = "tabset_projects",width = 12,
tabPanel("Projects", icon = icon("tasks"),
box(withSpinner(rHandsontableOutput("Projects")), width = 12),
actionButton("saveBtnProjects", "Save Projects", icon = icon("save")),
actionButton("BtnResetProjects", "Reset Filters", icon = icon("eraser"))),
tabPanel("Project_schedule", icon = icon("tasks"),
selectInput("selectProject", label = h5("Select Project"),choices = sort(unique(raw_data_projects$PROJECT.NAME), decreasing = F),
selected = 1, width = "15%"),
plotlyOutput("schedule")
),
tabPanel("Project_schedule_new", icon = icon("tasks"),
selectInput("selectProject_new", label = h5("Select Project"),choices = sort(unique(raw_data_projects$PROJECT.NAME), decreasing = F),
selected = 1, width = "15%"),
timevisOutput("schedule_new"),
box(withSpinner(rHandsontableOutput("schedule_table")), width = 12)
)
),
title = "Project Details",collapsible = TRUE, width = 12, solidHeader = TRUE, status = "primary"),
box(tabBox(id = "tabset_tasks",width = 12,
tabPanel("Tasks",icon = icon("tasks"),
box(withSpinner(rHandsontableOutput("Tasks")), width = 12),
actionButton("saveBtnTasks", "Save Tasks", icon = icon("save")),
actionButton("BtnResetTasks", "Reset Filters", icon = icon("eraser")),
#verbatimTextOutput("selected")
),
tabPanel("Metrics", icon = icon("signal"),
box(withSpinner(plotlyOutput("Tasks_Leads")), width = 5))
#actionButton("down","Download Plot", icon = icon("download")))
# tabPanel("Do It Youself", icon = icon("hand-pointer"),
# rpivotTableOutput("pivot"))
), collapsible = TRUE, width = 12, solidHeader = TRUE, status = "primary", title = "Tasks Details")),
#------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# tabItem(tabName = "timesheets",
#
# selectInput("selectAnalyst", label = h3(""),choices = list("Vinayaka.Shivayogi.Javalli", "Mahesh.Kumar.Natikar"), selected = 1),
# box(tabBox(id = "tabset_timesheet",width = 12,
# tabPanel("Time", icon = icon("user-clock"),
# supercaliheatmapwidgetOutput("timesheet"))
# ),title = "Resource Availability", width = 12, solidHeader = TRUE, status = "primary")
# ),
#
#------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
tabItem(tabName = "help",
box(tags$img(src = "Projects.gif", height="100%", width="100%")),
box(tags$img(src = "Tasks.gif",height="100%", width="100%")),
box(tags$img(src = "DIY.gif",height="100%", width="100%")),
box(tags$img(src = "Download.gif",height="100%", width="100%"))
),
#------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
tabItem(tabName = "doitYourself",
# box(h2("You can explore the projects and Tasks data further by using the pivot like feature below and guess what, this works exactly same as Microsoft Excel !!!"),
# width = 12, height = 5, status = "primary"),br(), br(),br(), br(),br(), br(),
fluidRow(
#tags$img(src = "DIY1.jpg", width = "1600", height = "350"),
selectInput("selectData", label = h3(""),choices = list("Projects", "Tasks"), selected = 1),
box(rpivotTableOutput("pivot"), width = "100%", height = "100%")
)
)
)
)
)
)