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

Add details view #108

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Add details view #108

wants to merge 10 commits into from

Conversation

jameseaster
Copy link
Contributor

Resolves - add details view for credential details window


What kind of change does this PR introduce?

  • Feature

What is the current behavior?

  • No current way to view all of a credentials values

What is the new behavior?

  • Creates a tree in the UI for a user to look through all of a credentials values

Does this PR introduce a breaking change?

  • Yes, new dependency (uuid) and new tab in UI

How has this been tested?

  • Locally

Screenshots:

n/a

@codecov-commenter
Copy link

codecov-commenter commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 12.04%. Comparing base (79df04e) to head (d36c512).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #108   +/-   ##
=======================================
  Coverage   12.04%   12.04%           
=======================================
  Files           6        6           
  Lines          83       83           
=======================================
  Hits           10       10           
  Misses         73       73           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 79df04e...d36c512. Read the comment docs.

package.json Outdated Show resolved Hide resolved
components/CredentialDetailsTree.vue Show resolved Hide resolved
Copy link
Member

@dlongley dlongley left a comment

Choose a reason for hiding this comment

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

Just need to tweak the developer bit and then we can pull this in.

const showDisplays = ref(false);
const showHighlights = ref(false);
const credentialImages = reactive([]);
const showDetails = ref(process.env.NODE_ENV === 'development');
Copy link
Member

Choose a reason for hiding this comment

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

This code runs in the browser, so we can't use node.js environment variables for this. We probably just need it to say "(Developer Only)" or something for now, so that regular users don't assume it's safe to use.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dlongley
Curious what you think about allowing this feature to be controlled by a configuration flag?

Committed in 361c1e7

const showDisplays = ref(false);
const showHighlights = ref(false);
const credentialImages = reactive([]);
const showDetails = ref(config?.vueWallet?.developmentMode);
Copy link
Member

@dlongley dlongley Oct 11, 2024

Choose a reason for hiding this comment

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

Sorry, I've been unclear about this particular feature. What do you think about having this always be enabled (no configuration for it), but clearly marking it as a "Developer feature" or with a "Developer only warning" in the UI / title / display area (above the tree) somewhere?

Another option would be to enable it via a menu or something -- but I don't think we want to maintain and deal with any static / deployment configuration for this -- and it will be useful to devs in production wallets.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds great - I'll add the warning text and remove the configuration. Thanks for the feedback

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed configuration and added warning banner: d36c512

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.

3 participants