Commit Graph

339 Commits

Author SHA1 Message Date
Daniel Compton baa9755b15 Refactor inline styles to classes
Move existing CSS styles to app-db namespace
2018-01-16 14:33:08 +13:00
Daniel Compton 1be402fa40 Refactor inline styles to classes
Move existing CSS styles to app-db namespace
2018-01-15 15:56:09 +13:00
Daniel Compton 6894e291a5 Inspect paths into app-db and enable before/after app-db 2018-01-15 15:24:28 +13:00
Daniel Compton a51a9037f5 Refactor pod diff showing logic 2018-01-15 11:19:17 +13:00
Daniel Compton 676af57339 Add doc links for only-before and only-after diffing 2018-01-15 11:02:50 +13:00
Daniel Compton 0f6349682c Add initial diffing to app-db panel 2018-01-15 10:16:48 +13:00
Daniel Compton 33f476da43 Add SVG reset from Chrome 2018-01-12 17:06:22 +13:00
Daniel Compton ff5ed8f80d Cleanup whitespace 2018-01-12 15:55:33 +13:00
Gregg8 e601677a92 Cleanups and added bottom radius to Subs pods when closed 2018-01-12 10:40:09 +11:00
Daniel Compton e79fbf187c Add timing panel 2018-01-12 11:40:45 +13:00
Daniel Compton b9ec5319f1 Improvements to the previous and next arrows
- Disable when there are no more events
- Automatically pause when changing epoch
2018-01-12 08:19:06 +13:00
Daniel Compton c07121f750 Get matched event in header of panel 2018-01-11 23:27:54 +13:00
Daniel Compton b55e2c097d Remove metamorphic dependency 2018-01-11 23:21:16 +13:00
Daniel Compton 1c71e32156 Add play/pause toggle 2018-01-11 23:12:24 +13:00
Gregg8 fdf34c75c1 A couple more 2018-01-11 18:22:45 +11:00
Gregg8 13b20bc511 A few fixes in the subs screen for panel opening/closing 2018-01-11 18:20:45 +11:00
Gregg8 f0ce08c77d Adding deleting, closing/opening and diff-cole/open added 2018-01-11 18:15:02 +11:00
Daniel Compton 3c80acd9db Parse the event stream 2018-01-11 16:27:08 +13:00
Gregg8 6f16a7cd61 More Subs progress - now have pods 2018-01-11 13:00:38 +11:00
Gregg8 ed8987f30f More appd-db refactoring to use common constants where possible, added css-join fn, added old app-db code back in for reference 2018-01-11 11:11:31 +11:00
Gregg8 b9aa386686 Subs panel WIP (and refactor names and tidy) 2018-01-10 17:58:35 +11:00
Gregg8 6dbdd4c8c7 Refactored Overview to Event, added Timing panel and hid View panel 2018-01-10 16:34:35 +11:00
Gregg8 841b206778 Now displays default text strings (plus some refactoring) 2018-01-10 16:10:52 +11:00
Gregg8 31abfb3d88 Updated tooltips 2018-01-10 15:09:11 +11:00
Gregg8 d2392469ad app-db panel UI redesign WIP 2 2018-01-10 15:04:22 +11:00
Daniel Compton 1dfb6373fb Add debug panel 2018-01-10 12:29:52 +13:00
Gregg8 f4a6c3e9b9 app-db panel UI redesign WIP 2018-01-09 18:09:31 +11:00
Daniel Compton ac19e04572 Only show traces for the current epoch 2018-01-08 17:26:06 +13:00
Daniel Compton b324d62c4e Styling improvements 2018-01-08 11:52:54 +13:00
Daniel Compton 9855558815 Update font-weight to be light for tab buttons 2018-01-05 10:37:50 +13:00
Daniel Compton 28cef85b11 Make header match mockup 2018-01-05 10:32:26 +13:00
Daniel Compton 6e060b9903 Show Settings title and settings button when in settings panel 2018-01-04 09:55:39 +13:00
Daniel Compton 6ea438146d Make settings wrench orange when opening settings panel 2018-01-04 09:35:14 +13:00
Daniel Compton 0a7de66e4d Use the bundled reagent instead of the standard one 2017-12-22 17:33:47 +13:00
Daniel Compton 9cfe463d02 Add Reagent to source dependencies 2017-12-22 16:42:48 +13:00
Daniel Compton ad7d7393c7 Add metamorphic event processing 2017-12-22 16:40:43 +13:00
Daniel Compton 76f8147f1d Reformat styles 2017-12-22 12:11:06 +13:00
Daniel Compton 2b62d0e2e4 Fixup checkbox styling 2017-12-22 12:11:06 +13:00
Daniel Compton a3806a8afb Update logos and styles 2017-12-22 12:11:06 +13:00
Daniel Compton 38756239a7 Fill out settings panel 2017-12-22 12:11:06 +13:00
Daniel Compton 7746389741 Add placeholder namespaces for view and overview panels 2017-12-21 15:00:34 +13:00
Daniel Compton a5c052fd59 Toggle settings 2017-12-21 14:57:46 +13:00
Daniel Compton f7bdf6e414 Update styling to use blue modern 2017-12-21 14:57:39 +13:00
Daniel Compton 45809dddad Fix setting categories when reloading 2017-12-20 15:16:40 +13:00
Daniel Compton 1e83c2b337 Highlight events
Fixes #106
2017-12-19 21:48:08 +13:00
Daniel Compton d5e8c154f2 Persist filter category settings to localstorage
Fixes #121
2017-12-19 21:21:16 +13:00
Daniel Compton 08c19d13b3 Hide :sub/create traces for cached subscriptions
Fixes #93
2017-12-19 21:05:38 +13:00
Daniel Compton 12b211657a Persist trace expansions when changing tab
Fixes #105
2017-12-19 21:01:07 +13:00
Daniel Compton b378cb5f5a Only allow one time based filter at a time
Fixes #125
2017-12-19 20:42:30 +13:00
Daniel Compton a122621e37 Lower count before expandable icon shows
Fixes #126
2017-12-19 20:39:21 +13:00
Daniel Compton 68d88cc94b Add (hidden) settings panel 2017-12-19 10:45:48 +13:00
Daniel Compton aec228f816 Add "x" button to remove app-db panel paths 2017-12-11 14:38:19 +13:00
Daniel Compton 2edf0b843a Remove subvis panel and reorganise namespace layout 2017-12-11 14:03:33 +13:00
Daniel Compton 4fa6277dcd Disable loading snapshot when there isn't one, and tweak icon colours 2017-12-11 13:26:49 +13:00
Daniel Compton 0da5ee9522 Set objects properly, not with aset 2017-12-07 17:11:24 +13:00
Daniel Compton d58b4b8628 Only sort subscriptions by sub key, not whole sub vector
Fixes #119
2017-12-07 16:40:32 +13:00
Daniel Compton 5bbe678856 Add new state snapshotting feature 2017-12-04 17:00:10 +13:00
Daniel Compton 4c4ecf9e49 Unset styles on before/after 2017-12-04 15:56:48 +13:00
Daniel Compton 9b1d77dc00 Improve app-db styling 2017-12-04 15:43:00 +13:00
Daniel Compton 86054ec1ad Update subs style 2017-12-04 15:43:00 +13:00
Daniel Compton b5d5735b00 Split out colours to be used in other components 2017-12-04 15:43:00 +13:00
Daniel Compton 12542938a3 Add re-com v-box 2017-12-04 15:43:00 +13:00
Daniel Compton 5e4017cc94 Fix panel border not being shown correctly
Width was being rounded, and an extra 1% was added on, which meant you
would never see the scrollbars.
2017-12-04 13:53:29 +13:00
Daniel Compton 9d7be2c845 Reopen external window when reloading the application
Fixes #104
2017-11-27 16:39:23 +13:00
Daniel Compton 7d1062319d Comment out specs 2017-11-27 16:33:24 +13:00
Daniel Compton 4b86a36b66 Remove trailing hr from table
Fixes #116
2017-11-27 11:49:28 +13:00
Daniel Compton 1919827ea0 Fixup resetting styles 2017-11-24 16:48:52 +13:00
Daniel Compton 132dcd6b02 Update docs for using Garden 2017-11-24 16:26:49 +13:00
Daniel Compton 590343b36d Switch from Less to Garden 2017-11-24 16:16:23 +13:00
Daniel Compton 6128ec1901 Improve appearance of subscriptions panel 2017-11-23 10:03:03 +13:00
Daniel Compton 39d29f6252 Add bright yellow text when tracing is not enabled. 2017-11-22 15:02:52 +13:00
Daniel Compton 629406291f Depend on app-db for changes 2017-11-22 14:14:58 +13:00
Daniel Compton 77613b6fd2 Add initial subs panel 2017-11-21 14:45:18 +13:00
Daniel Compton 8b5f380232 Automatically expand app-db path when adding it to browser 2017-11-21 14:40:46 +13:00
Daniel Compton 9395e12c48 Show disposed subscriptions in the subs section 2017-11-17 15:52:57 +13:00
Daniel Compton a6bf2be052 Save and load JSONML expansions to localstorage 2017-11-16 15:36:59 +13:00
Daniel Compton 87e5679ebb Persist app-db expansions
Uses the path through the hiccup as the expansion path. This means that
if the hiccup layout changes, the wrong item can be expanded. However
it is still better than the alternative, and can be improved in the
future.

Fixes #105
2017-11-16 15:33:07 +13:00
Daniel Compton 4d2db30dee Refactor CSS creation 2017-11-16 14:01:05 +13:00
Daniel Compton fa4fca778c Check if JSONML object has body before expanding 2017-11-16 13:53:23 +13:00
Daniel Compton 7a8662edea Refactor naming to match JSONML spec 2017-11-16 13:49:52 +13:00
Daniel Compton 1a8ba45cad Print commas in cljs-devtools headers 2017-11-16 12:59:51 +13:00
Daniel Compton 19f52b49aa Refactor get object and config 2017-11-16 12:46:41 +13:00
Daniel Compton 9391d1c162 Preserve ordering of paths by storing as a list, not a set 2017-11-15 15:56:39 +13:00
Daniel Compton 0c42aff532 Use a re-com input box for searching 2017-11-14 15:52:43 +13:00
Daniel Compton dabd165295 Extract out subscriptions 2017-11-13 16:22:43 +13:00
Daniel Compton 1c456acaae Add a few re-com utilities 2017-11-13 16:22:36 +13:00
Daniel Compton 8727b556f8 Last of renames to app-db 2017-11-13 13:16:35 +13:00
Matthew Huebert de58713e5b Add condensed pretty printing, and namespace aware truncation
Fixes #96, Taken from #100 and squashed into one commit. Fixes #100.
2017-11-13 12:50:13 +13:00
Daniel Compton 4a0c4e2673 Add a warning when the host page unloads
Fixes #102
2017-11-13 12:25:02 +13:00
Daniel Compton e418ca820c Fixup resizer 2017-11-10 15:28:07 +13:00
Daniel Compton 182aefe538 Fixup returning bad ctx from fx 2017-11-10 15:20:26 +13:00
Daniel Compton 6e6744c146 Remove debug 2017-11-10 15:17:28 +13:00
Daniel Compton de167f208c Fixup traces not being enabled on intial page load
This was relying on side-effects from rendering which no longer ran
in the re-frame world.
2017-11-10 15:13:33 +13:00
Daniel Compton 18331689e6 Add bottom margin to app-db data 2017-11-09 15:17:52 +13:00
Daniel Compton 7b23f85b2f Fixup flexbox styling
Fixes #97
2017-11-09 15:06:50 +13:00
Daniel Compton 94d0b38b04 Pop out traces into an external window
Fixes #92
2017-11-09 13:08:07 +13:00
Daniel Compton 74a0b26a6a Reformat code 2017-11-08 12:52:44 +13:00
Daniel Compton b21b83c182 Remove paths on click 2017-11-07 14:03:18 +13:00
Daniel Compton 5f6ff4fe9d Rework to use re-frame events rather than reagent 2017-11-06 15:34:32 +13:00
Daniel Compton cb868cb5ac Use re-frame for settings and config 2017-11-03 16:06:06 +13:00
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