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

Editable literal #42

Open
josephguillaume opened this issue Sep 27, 2024 · 1 comment
Open

Editable literal #42

josephguillaume opened this issue Sep 27, 2024 · 1 comment

Comments

@josephguillaume
Copy link
Contributor

I want to edit the literal values on things on my Pod, so that I can update outdated data, or fix things when I mistyped something.

pos-value currently provides a read-only display
https://github.com/pod-os/PodOS/blob/main/elements/src/components/pos-value/pos-value.tsx

@josephguillaume
Copy link
Contributor Author

josephguillaume commented Sep 27, 2024

  • The component assumes there is a single value to display. If the data has more than one value, then the component should either allow the user to specify which value to edit or should refuse to update.
  • A 'set' core function can ensure that a unique value is atomically updated
  • If no value is present, the component should allow a placeholder to be displayed
  • The component should provide some indication that the text is editable
  • An edited value should be modified in the same document it was read from
  • A new value (from a placeholder) should be saved in a predictable location, according to rules consistently used across PodOS.
  • The component display should update if the value is edited elsewhere.
  • Allow predicate to be specified as curie, using a prefix or vocab in ancestors

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

No branches or pull requests

2 participants