-
Notifications
You must be signed in to change notification settings - Fork 17
1298 enhancement/cleanup code quality #1320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 7 commits
9915875
390d162
b557846
8889ee6
686e3c5
4272ea5
d6eb945
989fa2c
34f18a5
3a6fe97
4c8276d
3d5e3ee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Color constants — keep in sync with inst/shiny/www/styles/modules/_colors.scss | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Color constants duplicate and diverge from existing SCSS variables The existing
The sync comment on line 1 is good, but there's no mechanism to enforce it. A future developer changing the SCSS variable won't know to update the R constant (and vice versa). Suggestion: Add a matching comment in
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for the review. Now added bidirectional sync comment in |
||
| # See https://github.com/pharmaverse/aNCA/issues/1298 | ||
|
|
||
| # Backgrounds | ||
| BG_GREY_LIGHT <- "#eeeeee" | ||
| BG_GREY_HEADER <- "#e9e9e9" | ||
| BG_HIGHLIGHT_BLUE <- "#CCE5FF" | ||
| BG_BLUE_LIGHT <- "#e6f2ff" | ||
| ANCA_WHITE <- "#ffffff" | ||
|
|
||
| # Text | ||
| TEXT_MUTED <- "#999999" | ||
| TEXT_DIM <- "#888888" | ||
| TEXT_SUBTLE <- "#777777" | ||
| TEXT_SECONDARY <- "#666666" | ||
| TEXT_HEADING <- "#555555" | ||
|
|
||
| # Borders | ||
| BORDER_LIGHT <- "#dddddd" | ||
| BORDER_MUTED <- "#cccccc" | ||
| BORDER_PANEL <- "#dee2e6" | ||
|
|
||
| # Accent | ||
| ACCENT_BLUE <- "#0d6efd" | ||
| ACCENT_ORANGE <- "#ffa62d" | ||
| ACCENT_DANGER <- "#dc3545" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
require(stats)removal — likely safe but worth verifyingRemoving
require(magrittr)is clearly correct (%>%is re-exported bydplyr). Removingrequire(stats)is almost certainly fine sincestatsis a base package that's always loaded in R sessions, but worth a quickgrep -r "stats::" inst/shiny/to confirm no module code relies on the namespace being explicitly attached.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion,
grep -r "stats::" inst/shiny/returns zero results.