Skip to content
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

Adds POC "render" view of state #117

Merged
merged 4 commits into from
Apr 1, 2024
Merged

Adds POC "render" view of state #117

merged 4 commits into from
Apr 1, 2024

Conversation

skrawcz
Copy link
Contributor

@skrawcz skrawcz commented Mar 30, 2024

This should help people more easily view/see things.

TODOs:

  • styling, e.g. wrap width, toggle buttons.
  • using it for the result too?
  • enabling future customization

@skrawcz
Copy link
Contributor Author

skrawcz commented Mar 30, 2024

Screen Shot 2024-03-30 at 3 32 07 PM

@elijahbenizzy
Copy link
Contributor

elijahbenizzy commented Mar 30, 2024

Some styling/feature notes (I can do these tomorrow):

  • Button -> toggle
  • Automatically hide the __ ones (they're system-specific)
  • Should use json as default for non-string/int/primitive views
  • Minimize for long strings

This should help people more easily view/see things.

TODOs:
 - styling
 - using it for the result too?
 - enabling future customization
This is pretty basic -- but it seems to work.

This handles:
 - null values
 - arrays
 - dicts/objects

Tries to intelligently provide indexing (but
for objects it could be better). Ideally we'd
display the JSON path or something...
@skrawcz skrawcz marked this pull request as ready for review March 31, 2024 23:13
Copy link

ellipsis-dev bot commented Mar 31, 2024

Your subscription is not currently active. Please add a payment method at https://app.ellipsis.dev

@elijahbenizzy
Copy link
Contributor

elijahbenizzy commented Mar 31, 2024

Three changes:

  1. Make it rendered rather than render
  2. Make it a different color or something to make it distinct from after/before
  3. Default to raw
    I can do it later too but this is a minimal effort to make it a little easier to understand.

@elijahbenizzy
Copy link
Contributor

OK, improved:
image

@skrawcz
Copy link
Contributor Author

skrawcz commented Apr 1, 2024

@elijahbenizzy you didn't commit the rendered toggle.

@skrawcz
Copy link
Contributor Author

skrawcz commented Apr 1, 2024

Screen Shot 2024-04-01 at 11 54 38 AM

the toggle is effectively invisible 😆

data/state view

Expandable fields, ensures they all use the same classes, adds some
left-borders + highlighting
Copy link
Contributor

@elijahbenizzy elijahbenizzy left a comment

Choose a reason for hiding this comment

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

Ready to ship, assuming we can figure out why its working on my machine but not @skrawcz's...

@elijahbenizzy elijahbenizzy merged commit 463186e into main Apr 1, 2024
8 checks passed
@elijahbenizzy elijahbenizzy deleted the sketch_form_view branch April 1, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants