Commit Graph

339 Commits

Author SHA1 Message Date
Daniel Compton 6950c81e6e Move files around 2017-11-03 13:31:46 +13:00
Daniel Compton 900bb414e9 Use mranderson to bundle an isolated copy of re-frame
This allows us to re-frame, while we instrument re-frame.
2017-11-02 16:29:22 +13:00
Daniel Compton 6bd14f1799 Rename events to traces in traces view 2017-11-02 16:05:57 +13:00
Daniel Compton 53ded51dfb Merge branch 'darwin/config' 2017-11-02 11:53:00 +13:00
Daniel Compton 3af7398cdf Comment out header wrapping for now 2017-11-02 11:49:22 +13:00
Matt Huebert 0807a6156f Detect re-frame-trace views via 'devtools outer'
This is more reliable than looking for the namespace, as reagent does not attempt to keep namespace information when compiled with Closure, whereas "devtools outer" is hard-coded as the :display-name for the panel's container and survives compilation/optimization.
2017-11-01 14:34:54 +13:00
Matthew Huebert a6cb2abdbc Support for React 16 component paths
We rely on reagent.impl.component/component-path to avoid rendering re-frame-trace events to itself (causing infinite loop). This patch copies in a very recent change to Reagent which supports reading of component paths from React 16 components.
2017-10-31 09:47:48 +13:00
Antonin Hildebrand 94b6d64f2b Patch default cljs-devtools styles to wrap normally
We don't want to hard-code styles to make this future-proof.
2017-10-30 19:54:58 +01:00
Antonin Hildebrand cf81870e13 Don't interfere with app's cljs-devtools prefs
Also properly set :initial-hierarchy-depth-budget
2017-10-30 19:28:05 +01:00
Antonin Hildebrand 77068d3b5d Introduce with-cljs-devtools-prefs macro 2017-10-30 19:25:44 +01:00
Daniel Compton 8ce90653dc Reformat all code 2017-10-30 16:02:22 +13:00
Daniel Compton 74faed83e3 Hide index spans 2017-10-30 14:10:28 +13:00
Daniel Compton 4935d3f50f Rename label to app-db 2017-10-27 16:03:58 +13:00
Daniel Compton 33f9e0966b Rename app-state to app-db 2017-10-27 13:26:27 +13:00
Daniel Compton 0ae40e8fcd Comment out subvis 2017-10-27 09:55:15 +13:00
Daniel Compton a1af35b316 Limit captured traces to max 4,000 to prevent performance slowdowns
Fixes #91
2017-10-26 16:59:38 +13:00
Daniel Compton f1bfdc2476 Print full keyword for operation name 2017-10-26 16:57:07 +13:00
Daniel Compton a0811a03b4 Speed up animations for auto scrolling 2017-10-26 16:04:08 +13:00
Daniel Compton 70d20af6e7 Fix bad merge which set window-width back to a value
Fixes #90
2017-10-26 11:24:17 +13:00
Daniel Compton a49febb8e4 Add docstring for jsonml->hiccup 2017-10-24 15:28:43 +13:00
Daniel Compton 92e7a2b1bd Make expansion button not change size when expanding
It seems like this needs to be in a variable width font for the size
to stay consistent.
2017-10-24 15:24:30 +13:00
chris (daiyi) 4b70c7f5fc Make search input into a component 2017-10-24 15:24:30 +13:00
chris (daiyi) 58cc6bb1e5 Collapse data trees and subtrees behind one point by default 2017-10-24 15:24:30 +13:00
chris (daiyi) f4ce962ae3 Add & remove sub-paths into app-state 2017-10-24 15:24:30 +13:00
Saskia Lindner a9306075b3 Fix hiccup structure 2017-10-24 15:24:30 +13:00
Saskia Lindner 019ebc7748 Add docstring to string->css function 2017-10-24 15:24:30 +13:00
Saskia Lindner 448cee365e Move position of app-state tab 2017-10-24 15:24:30 +13:00
Saskia Lindner 0ab47c5029 Refactor naming for render state tab 2017-10-24 15:24:30 +13:00
Saskia Lindner 8c1d39b006 Refactor jsonml parsing 2017-10-24 15:24:30 +13:00
chris (daiyi) 910483dd53 Toggling data structures with arrows only, not body 2017-10-24 15:24:29 +13:00
Saskia Lindner 49095dcfe3 Refactor function for style string parsing 2017-10-24 15:24:29 +13:00
chris (daiyi) c18714a9d8 Correctly pass all params in form 2 component 2017-10-24 15:24:29 +13:00
chris (daiyi) ea2f3d6dab Add toggle arrow indicators next to expandable objects 2017-10-24 15:24:29 +13:00
chris (daiyi) 5a832abab4 Clean jsonml rendering code 2017-10-24 15:24:29 +13:00
chris (daiyi) 4c5b4b8194 Expand and collapse data structures 2017-10-24 15:24:29 +13:00
chris (daiyi) 32f5699f7f Expand entire data structure 2017-10-24 15:24:29 +13:00
Saskia Lindner 64815b3aa6 Add css styles from jsonml 2017-10-24 15:24:29 +13:00
chris (daiyi) 3a2f14cf32 Handle custom formatter objects 2017-10-24 15:24:29 +13:00
chris (daiyi) ed21d59ede Use placeholder toggle for data objects 2017-10-24 15:24:29 +13:00
chris (daiyi) fcd376b8a4 Remember selected tab 2017-10-24 15:24:29 +13:00
chris (daiyi) 2713630f64 First pass at rendering jsonML to dom 2017-10-24 15:24:29 +13:00
chris (daiyi) 251b3436ae Add basic data structure views and styles 2017-10-24 15:24:29 +13:00
chris (daiyi) 4ea8041bbc Render app-db state with symantic class names 2017-10-24 15:24:29 +13:00
chris (daiyi) 506ee537f1 Create app-state tab 2017-10-24 15:24:29 +13:00
chris (daiyi) 5f3cb0dbb8 Equalise table padding 2017-10-24 15:24:29 +13:00
Daniel Compton 2858a0ff6c Update window width state when window resizes
Fixes #26
2017-10-20 15:08:23 +13:00
Daniel Compton 05656af0b9 Revert "Switch re-frame-trace to render into Shadow DOM"
Because it doesn't actually work yet.

This reverts commit bab881ee75.

Relates to https://github.com/Day8/re-frame-trace/issues/44
2017-10-20 14:05:16 +13:00
Daniel Compton bab881ee75 Switch re-frame-trace to render into Shadow DOM
I tried to render re-frame-trace into a Shadow DOM which worked, but I
ran out of time to get click handlers to work. This is the working point
that I got up to.

Relates to https://github.com/Day8/re-frame-trace/issues/44
2017-10-20 14:02:32 +13:00
Daniel Compton 586de69894 Use CSS pseudo-selectors for odd/even instead of calculating an index 2017-10-19 16:14:19 +13:00
Daniel Compton 4d13391c37 Handle window viewport size changing, and other misc dragging bugs
Fixes #26
2017-10-19 16:04:25 +13:00
Christian Karlsen 0a4d04b214 Fix on-mouse-up not firing when resizing 2017-09-15 11:46:36 -04:00
saskali 5d4f21b89f Add trace filter by category (#71)
* Add trace filter by category

- fixes #39
- fixes #57

* Fix combination of filter types

* Refactor filter

- use idiom 'seq' to check for empty sequences

* Make small refactorings in filter code

* Refactor toggle-category-fn to use set operations
2017-09-14 16:44:44 +02:00
chris bb37c70113 Table readability (#69)
* Restyle table for readability

* Make op text colours accessible AA standard

* Table to full panel width

* Separate traces with stripes in classnames

* Trace detail arrows brighten on focus state

* Show print icon when hovering on trace detail

* Clean filter inputs and accessibility focus

* Make filtering state more obvious

* Click trace filtering count to reset filters

* Remove redundant buttons
2017-09-11 13:34:32 +02:00
chris (daiyi) 01f883ca4d Fix trace table bottom being clipped from view 2017-09-07 15:33:13 +12:00
chris (daiyi) 0339579c1c Equalise table padding 2017-09-01 12:13:01 +02:00
Daniel Compton b345eb824e Use when-not instead of single branch if-not and do 2017-09-01 14:31:25 +12:00
Saskia Lindner 8e3279c39c Replace time filter when adding a new one 2017-09-01 14:31:25 +12:00
Saskia Lindner 562a8c7322 Prevent duplicate filter strings 2017-09-01 14:31:25 +12:00
Daniel Compton 4451982037 Don't convert Clojure objects to JS objects
- Add docs to suggest use of cljs-devtools
2017-09-01 13:24:02 +12:00
Saskia Lindner 9a4072ddf8 Print trace details to console on click
- fixes #56
2017-08-31 15:20:04 +02:00
Saskia Lindner 654925545e Merge branch 'master' into feature/extend-filter 2017-08-31 12:04:51 +02:00
Saskia Lindner e3c9eb6947 Refactor adding new filters 2017-08-31 11:55:54 +02:00
Daniel Compton 6bee5c3a63 Use the correct location for getting CSS 2017-08-31 16:23:46 +12:00
Daniel Compton e19835e927 Build CSS to go into the resources directory 2017-08-31 16:17:58 +12:00
chris (daiyi) b8d22ca17a Move .less to resources folder 2017-08-31 16:09:14 +12:00
chris (daiyi) e448b45f0a Use lein-less to do css preprocessing
closes #61
2017-08-31 16:09:14 +12:00
chris (daiyi) 483d1f5a16 Use slurp macro to read styles from .css file
closes #24
2017-08-31 16:09:14 +12:00
Daniel Compton 91d4ac57f7 Merge pull request #58 from Day8/local-storage-show-details
Save state of traces panel to localstorage
2017-08-31 16:06:36 +12:00
Saskia Lindner 49a84e3f60 Merge branch 'master' into feature/autoscroll 2017-08-29 16:56:49 +02:00
Saskia Lindner df1bc168fa Merge branch 'master' into feature/extend-filter 2017-08-29 16:55:52 +02:00
Saskia Lindner 50deba5281 Refactor save query function 2017-08-29 16:43:27 +02:00
Saskia Lindner 7bd773fe02 Load traces if panel is open 2017-08-29 15:56:52 +02:00
Saskia Lindner 60f6082c67 Remove traces from localstorage 2017-08-29 14:53:32 +02:00
Saskia Lindner 3fa8da74f2 Refactor autoscroll list
- add docstring
- use callback ref to reference DOM element
2017-08-29 14:45:43 +02:00
Saskia Lindner 6276a76cbb Refactor autoscrolling code 2017-08-28 17:18:28 +02:00
Saskia Lindner f7cf12c1bb Save showing state for panel to localstorage 2017-08-28 16:14:06 +02:00
Saskia Lindner d5aefa9b1d Pin traces to bottom for autoscrolling 2017-08-25 11:43:00 +02:00
Saskia Lindner 0c336605f3 Save traces and detail expansions to localstorage
fixes #54
2017-08-25 11:23:07 +02:00
Daniel Compton 036392b648 Use a default get value for panel-width-ratio ls 2017-08-25 11:07:16 +12:00
chris (daiyi) 46c4b402bf Save panel width to localstorage 2017-08-25 11:04:57 +12:00
Daniel Compton 465712c1e4 Add local-store get default value, save ls keys with a safe prefix 2017-08-25 11:00:58 +12:00
chris (daiyi) 85d274a528 Override clojure get in localstorage ns 2017-08-25 11:00:58 +12:00
chris (daiyi) 21406bb3b4 Rename localstorage and only trigger on filter change 2017-08-25 11:00:58 +12:00
chris (daiyi) 312b5d3b50 Save filter items to localstorage. 2017-08-25 11:00:58 +12:00
chris (daiyi) 09fdd66e71 Create localstorage helper 2017-08-25 11:00:58 +12:00
Daniel Compton 48f17700d3 Improve behaviour of text filtering
- Make only the text itself clickable
- Stop propagation of the event any further, preventing the trace from
  also being toggled.
2017-08-25 10:46:20 +12:00
Daniel Compton a989ad0580 Print all tags, but limit size to 400 characters
This prevents the system from completely blowing up if large events are
dispatched.
2017-08-25 09:17:23 +12:00
Saskia Lindner ec946ea7eb Show event params in trace details 2017-08-25 09:17:23 +12:00
saskali 45a58550be Merge branch 'master' into feature/extend-filter 2017-08-23 10:52:10 +02:00
Saskia Lindner 5258a17451 Refactor css hover state 2017-08-23 10:39:29 +02:00
Daniel Compton 97a73aeeb9 UI tweaks for row show/hiding
- Make whole row clickable
- Remove cursor pointer: https://medium.com/simple-human/buttons-shouldnt-have-a-hand-cursor-b11e99ca374b
- Add hover effect for hovering over a row
2017-08-23 11:15:18 +12:00
Saskia Lindner 99e83496cc Enable selecting trace names as filters 2017-08-22 18:59:42 +02:00
Saskia Lindner fd21fec4e5 Refactor names and logic 2017-08-22 16:29:51 +02:00
Saskia Lindner b9a83a9908 Fix logic for hiding details 2017-08-17 16:58:17 +02:00
Saskia Lindner c3ac48cacd Refactor names and map access 2017-08-17 15:17:16 +02:00
Saskia Lindner 5c5569cd5f Enable hide and show of trace details 2017-08-16 16:08:38 +02:00
Daniel Compton b34d344b6e Move styles and components file into trace folder 2017-08-16 15:40:19 +12:00
Daniel Compton a94f017c3e Fix spelling mistake in init-tracing docstring 2017-08-16 15:00:56 +12:00
Daniel Compton dd0ad6ac54 Merge pull request #38 from Day8/bug/rendering-operation-names
Fix rendering of correct operation names in traces
2017-08-16 09:56:47 +12:00
chris (daiyi) 30b836cd8b Pin filter input to top of panel 2017-08-15 18:51:09 +02:00
Saskia Lindner 543d2e414b Fix rendering of correct operation names in traces 2017-08-15 15:21:09 +02:00
chris (daiyi) 33765b3eeb Fix panel resizing 2017-08-14 20:58:46 +12:00
chris (daiyi) e70c86cbe7 use html dropdown value fields 2017-08-04 18:48:36 +02:00
Saskia Lindner 2dde68256c Parse input for duration filter correctly 2017-08-02 16:37:29 +02:00
chris (daiyi) b869ecc544 a11y: add focus states to buttons 2017-08-02 15:18:25 +02:00
chris (daiyi) 4b29ca59fd Still show 'x of n' event count when x is 0 2017-08-02 14:32:57 +02:00
Saskia Lindner e42e7d23a9 Refactor code 2017-08-02 11:45:40 +02:00
Saskia Lindner 7b55f8d8fb Refactor filter function 2017-08-02 11:11:29 +02:00
Saskia Lindner 0ab1aa6e0a Rewrite filter function wip 2017-08-02 11:11:29 +02:00
chris (daiyi) 8ef8b9f5dc Keep event duration info to single line 2017-08-02 10:36:00 +02:00
chris (daiyi) 11fcf21e2d Improve styles and colours and composition 2017-08-01 22:59:46 +02:00
chris (daiyi) d04a114838 Move trace count info and clear button to table header 2017-08-01 16:25:52 +02:00
chris (daiyi) 2f64dc998b Add filter tag styles and extract to ns's 2017-08-01 15:32:33 +02:00
Saskia Lindner 13be234bf0 Refactor render-traces 2017-08-01 15:29:59 +02:00
Saskia Lindner 8bfb1994e0 Change color of sub/run and fsm-trigger 2017-08-01 15:08:11 +02:00
Saskia Lindner a7f17b2407 Refactor render-traces function 2017-08-01 15:06:53 +02:00
Saskia Lindner 672d4ee575 Add filter-type to queries 2017-07-31 16:02:38 +02:00
Saskia Lindner e823807feb Reset filter input to empty string 2017-07-31 15:04:07 +02:00
Saskia Lindner 2e0e7375dc Prevent adding filter-items on blur 2017-07-31 14:46:13 +02:00
Saskia Lindner c676186a35 Prevent adding empty filter items 2017-07-31 14:45:22 +02:00
Saskia Lindner 059ab97e85 Add filter items wip 2017-07-31 14:39:24 +02:00
Saskia Lindner b3bfa816bb Fix case insensitive filtering 2017-07-27 14:05:10 +02:00
chris (daiyi) aa4b455559 Indicate selected tab 2017-07-26 18:24:32 +02:00
Saskia Lindner a9000d2c27 Enable case insensitive filtering 2017-07-26 17:08:51 +02:00
Saskia Lindner 5dce696e29 Add basic styling improvements 2017-07-26 17:01:26 +02:00
chris (daiyi) bc0825a558 Only inject panel once 2017-07-25 17:16:16 +02:00
Dexter Gramfors d0ef056a57 (#11) Automatically inject devtools into the DOM in the preload namespace. 2017-04-13 12:15:23 +12:00
Daniel Compton c7eae79ec3 Move preload ns to day8.re-frame.trace.preload 2017-04-13 11:19:55 +12:00
Dexter Gramfors 2cecacb6af #10 Add preload namespace that calls init-tracing! for use with the :preloads compiler option. 2017-04-13 00:56:17 +02:00
Daniel Compton 8c95ebad3c Update for re-frame 0.9.0 2016-12-16 14:45:28 +13:00
Daniel Compton 44429f981c Add enable and disable-tracing functions
Hard coded at the moment to disable/enable when showing the panel. Will
be eventually made configurable.

Fixes #7
2016-12-15 11:21:52 +13:00
Daniel Compton 91d8715584 Whitespace 2016-12-15 10:52:20 +13:00
Daniel Compton 0aaf6ce77f Don't pass on-save as props to input field.
Fixes #8
2016-12-15 10:52:09 +13:00
Daniel Compton d2a4c78b9c Set defaults 2016-12-09 10:55:17 +13:00
Daniel Compton c253ad9c83 Update to support new API 2016-12-09 10:37:41 +13:00
Daniel Compton 9335c3963c Continue working 2016-11-16 11:36:47 +13:00
Daniel Compton 6b8b961d13 Commit changes 2016-11-15 15:06:10 +13:00
Daniel Compton c6384dcd74
Temp working point 2016-11-09 14:39:39 +13:00
Daniel Compton b3d64dd7a8
Temp working point 2016-11-09 12:30:11 +13:00