Skip to content

Conversation

@BeyondEvil
Copy link
Owner

No description provided.

@BeyondEvil BeyondEvil force-pushed the beyondevil/cleanup branch 9 times, most recently from 676981e to bf424fa Compare February 11, 2023 20:36
class DataManager {
setManager(data) {
const collapsedCategories = getCollapsedCategory()
const collapsedCategories = [...getCollapsedCategory(), 'passed']

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

snyggt!

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tack! <3

Comment on lines 95 to 100
let durationText
if (formattedAccTime.hasOwnProperty('ms')) {
durationText = formattedAccTime.ms
} else {
durationText = formattedAccTime.seconds
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let durationText
if (formattedAccTime.hasOwnProperty('ms')) {
durationText = formattedAccTime.ms
} else {
durationText = formattedAccTime.seconds
}
const durationText = formattedAccTime.ms ?? formattedAccTime.seconds
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went with the ternary option, the ?? is super nice but I feel it's too much magic for your average pythonista to handle. 😅 @drRedflint

Copy link

@drRedflint drRedflint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!

@BeyondEvil BeyondEvil force-pushed the beyondevil/cleanup branch 17 times, most recently from 0893670 to 20365f7 Compare February 12, 2023 00:56
@BeyondEvil BeyondEvil force-pushed the beyondevil/cleanup branch 24 times, most recently from 62243e4 to 5508c39 Compare March 5, 2023 13:23
@BeyondEvil BeyondEvil force-pushed the beyondevil/cleanup branch from 5508c39 to 7f4c194 Compare March 5, 2023 13:30
@BeyondEvil BeyondEvil merged commit a355708 into combined-fe-and-be Mar 5, 2023
@BeyondEvil BeyondEvil deleted the beyondevil/cleanup branch March 5, 2023 13:33
BeyondEvil added a commit that referenced this pull request Mar 5, 2023
* fix main.js conflicts * fix js test * fix resource (main.js) test * revert change to report extra * filters style * css and dom brush up * Buildable app * always store data in html * Always store data blob in file * json dump test data * read data from dom element * manually initialize state * minimalistic dataset * simplify included files * Handle report extras * Handle python report hooks * imgviewer * present name in image viewer and open img on click * setup linter for project * conform to styles * show video in imageviewer (#14) * show video in imageviewer * Chore: Pluralize extra (#15) * Add extras.HTML * Move outcome handling to backend (#18) * Move outcome handling to backend * Pass in text version of longrepr if present * make collapse/expand all functional (#20) * make collapse/expand all functional * only create links for text, url and json (#22) * make filter search case insensitive (#21) * make filter search case insensitive * use sessionStorage to prevent preferences to be reapplied on new reports * avoid multiple event bindings + fix filter bug * Collapse individual row Co-authored-by: Jim Brännlund <jim.brannlund@gmail.com> * add no log output captured string * Query params (#25) * Add query params * adjust tests (#26) * Duration format (#27) * adjust tests * build format handler * remove dependency --------- Co-authored-by: Jim Brännlund <jimbrannlund@fastmail.com> * Beyondevil/cleanup (#28) * chore: Cleanup branch before merge * chore: Fix duration and CI * Fix pre-commit issues --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Viktor Gustafsson <vikt.gust@gmail.com>
BeyondEvil added a commit that referenced this pull request Apr 3, 2023
* fix main.js conflicts * fix js test * fix resource (main.js) test * revert change to report extra * filters style * css and dom brush up * Buildable app * always store data in html * Always store data blob in file * json dump test data * read data from dom element * manually initialize state * minimalistic dataset * simplify included files * Handle report extras * Handle python report hooks * imgviewer * present name in image viewer and open img on click * setup linter for project * conform to styles * show video in imageviewer (#14) * show video in imageviewer * Chore: Pluralize extra (#15) * Add extras.HTML * Move outcome handling to backend (#18) * Move outcome handling to backend * Pass in text version of longrepr if present * make collapse/expand all functional (#20) * make collapse/expand all functional * only create links for text, url and json (#22) * make filter search case insensitive (#21) * make filter search case insensitive * use sessionStorage to prevent preferences to be reapplied on new reports * avoid multiple event bindings + fix filter bug * Collapse individual row Co-authored-by: Jim Brännlund <jim.brannlund@gmail.com> * add no log output captured string * Query params (#25) * Add query params * adjust tests (#26) * Duration format (#27) * adjust tests * build format handler * remove dependency --------- Co-authored-by: Jim Brännlund <jimbrannlund@fastmail.com> * Beyondevil/cleanup (#28) * chore: Cleanup branch before merge * chore: Fix duration and CI * Fix pre-commit issues --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Viktor Gustafsson <vikt.gust@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants