Skip to content
Snippets Groups Projects
Commit c328ddac authored by LE DURAND Matteo's avatar LE DURAND Matteo
Browse files

Mise à jour de l'UI en ajoutant l'onglet indicateur

parent 82687511
Branches
No related tags found
2 merge requests!28Ajout de l'onglet indicateur et plus,!18MAJ de main de la branche dev
...@@ -4,7 +4,7 @@ ui <- shinygouv::navbarPage_dsfr( ...@@ -4,7 +4,7 @@ ui <- shinygouv::navbarPage_dsfr(
id = "nav", id = "nav",
header = shinygouv::header_dsfr( header = shinygouv::header_dsfr(
intitule = c("DREAL", "Pays de la Loire"), intitule = c("DREAL", "Pays de la Loire"),
nom_site_service = "Tableau de bord GitLab-Forge", nom_site_service = "Visualisation des projets du CSD gérés avec git",
baseline = "Les Projets du Centre de Services de la Donnée" baseline = "Les Projets du Centre de Services de la Donnée"
), ),
footer = footer_dsfr( footer = footer_dsfr(
...@@ -16,8 +16,7 @@ ui <- shinygouv::navbarPage_dsfr( ...@@ -16,8 +16,7 @@ ui <- shinygouv::navbarPage_dsfr(
), ),
# First tab Projet --------- # First tab Projet ---------
shinygouv::navbarPanel_dsfr( shinygouv::navbarPanel_dsfr(
title = "Graphique des projets par durée", title = "Graphique par période",
htmltools::tags$head(tags$style(".fr-container { max-width: calc(100% - 2rem); }")), htmltools::tags$head(tags$style(".fr-container { max-width: calc(100% - 2rem); }")),
shinygouv::fluidRow_dsfr( shinygouv::fluidRow_dsfr(
shinygouv::column_dsfr( shinygouv::column_dsfr(
...@@ -44,21 +43,23 @@ ui <- shinygouv::navbarPage_dsfr( ...@@ -44,21 +43,23 @@ ui <- shinygouv::navbarPage_dsfr(
unique() , unique() ,
# Extrait les éléments uniques # Extrait les éléments uniques
multiple = TRUE multiple = TRUE
),extra_class = "fr-mt-6w" ),
extra_class = "fr-mt-6w"
), ),
column_dsfr( column_dsfr(
3, 3,
selectizeInput( selectizeInput(
inputId = "project_name", inputId = "project_name",
label = "Projet : ", label = "Sélectionnez projet : ",
choices = NULL, choices = NULL,
multiple = TRUE multiple = TRUE
),extra_class = "fr-mt-6w" ),
extra_class = "fr-mt-6w"
), ),
column_dsfr( column_dsfr(
3, 3,
selectizeInput( selectizeInput(
inputId = "author", inputId = "auteur",
label = "Auteur :", label = "Auteur :",
choices = unique(str_to_title(replace_non_ascii(all_data$auteur))), choices = unique(str_to_title(replace_non_ascii(all_data$auteur))),
selected = NULL, selected = NULL,
...@@ -83,12 +84,8 @@ ui <- shinygouv::navbarPage_dsfr( ...@@ -83,12 +84,8 @@ ui <- shinygouv::navbarPage_dsfr(
4, 4,
selectizeInput( selectizeInput(
inputId = "categorie", inputId = "categorie",
label = "Groupe: ", label = " Évenement (précis) ",
choices = c( choices = unique(all_data$type),
"Autre" = "tous",
"Spyrales" = "spyrale",
"R Formation" = "github"
),
selected = NULL, selected = NULL,
multiple = TRUE multiple = TRUE
) )
...@@ -106,24 +103,35 @@ ui <- shinygouv::navbarPage_dsfr( ...@@ -106,24 +103,35 @@ ui <- shinygouv::navbarPage_dsfr(
plotly::plotlyOutput("filteredPlot2", height = "700px"), plotly::plotlyOutput("filteredPlot2", height = "700px"),
extra_class = "fr-my-1w" extra_class = "fr-my-1w"
) )
) )
),# tab graphique par choix ↑ ),# tab graphique par choix ↑
tabPanel_dsfr( tabPanel_dsfr(
id = "indicateur" , id = "indicateur" ,
title = "Indicateurs", title = "Indicateurs",
shinygouv::fluidRow_dsfr( shinygouv::fluidRow_dsfr(
shinygouv::column_dsfr(12) column_dsfr(3,
textOutput("nb_projet"),
textOutput("nb_commit"),
textOutput("nb_temps"), extra_class = "fr-my-1w"
),
shinygouv::column_dsfr(9,
plotlyOutput("bar_chart"),
extra_class = "fr-my-1w"),
column_dsfr(12,textOutput("min_value")),
column_dsfr(12,textOutput("temps")),
column_dsfr(12,plotOutput("bar"),
extra_class = "fr-my-1w")
) )
), ),# tab indicateur par choix ↑
tabPanel_dsfr( tabPanel_dsfr(
id = "table" , id = "Table" ,
title = "tableau", title = "Table",
shinygouv::fluidRow_dsfr( shinygouv::fluidRow_dsfr(
shinygouv::column_dsfr(12, shinygouv::column_dsfr(12,
DT::dataTableOutput("table")) DTOutput('table'))
)
) )
)# tab table par choix ↑
)#↑ tableau_proj )#↑ tableau_proj
)# ↑ Navbar )# ↑ Navbar
)# ↑ UI )# ↑ UI
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment