-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Appsilon/feat/gracefully-handle-app-list-…
…error Feat: Graceful Handling of First-touch API Call (App List)
- Loading branch information
Showing
8 changed files
with
105 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
box::use( | ||
shiny[ | ||
div, | ||
img, | ||
p, | ||
renderUI | ||
], | ||
) | ||
|
||
#' @description Function to generate an empty state UI | ||
#' @param text Text to display in the empty state | ||
#' @param image_path Path to the image to display in the empty state | ||
#' @export | ||
generate_empty_state_ui <- function( | ||
text = "Select an application and a job to view logs", | ||
image_path = "static/illustrations/empty_state.svg" | ||
) { | ||
div( | ||
class = "empty-state-container", | ||
p( | ||
class = "empty-state-text", | ||
text | ||
), | ||
img( | ||
src = image_path, | ||
class = "empty-state-image", | ||
alt = text | ||
) | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters