playcanvas / playcanvas/editor

Display names for array entries in Inspector for JSON attributes

Open
#210 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: ui enhancement
Dominant language
TypeScript
Stars
1.3k
Forks
215
Avg merge
1d 29m
Merged PRs (30d)
30

Description

When an array is displayed, we see each entry called [0], [1] ...

Screen Shot 2020-11-02 at 3 05 06 PM

Perhaps if element contains a string attribute, it could be used to enhance it.

For example a first attribute of type string should be used .. so if we have Name: john
it would show [0]: John

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by locating the Inspector component that renders JSON attributes and the code that labels array entries; verify how array elements and their string attributes are represented. Done means array entries can use an appropriate string attribute, such as Name, instead of only numeric labels, with existing array display behavior preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.