Can't change populated values back to null
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- typescript
- Domínio
- frontend
Direção de pesquisa
Start by locating the map editor’s event property editing code for JSON fields and boolean checkboxes, then trace how edited values are saved. Check whether the editor exposes a way to clear a property back to null; done means both fields can be cleared and the change is covered by an appropriate test. The issue gives no file or test path, so first identify the relevant entry point.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Once a json field has a value, you cannot set it back to null in the map editor. For example, if you create a SHOW_CHOICE event step, all the fields are initially blank/null. Once you enter a value, save it, then close the event editor, it is no longer able to go back to null. You cannot delete this value because it map editor will re-populate it.
In the screenshot above, if I want to set the forceWidth field to a null value again, I either need to make an entirely new SHOW_CHOICE event step or I need to remove it manually in json.
This also works for boolean checkbox properties. In the screenshot below, the top SET_CAMERA_POS is a freshly-created event step, thus all values are currently null. Once you touch the checkbox for the wait property, you can only set it to true or false. You can't get rid of it from the editor now.
This is all just a minor annoyance, not anything critical. I can always still manually work around this.
- Linguagem predominante
- TypeScript
- Estrelas
- 59
- Forks
- 19
- Merge médio
- 32min
- PRs com merge (30d)
- 2
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de CCDirectLink/crosscode-map-editor
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
-
internal
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 52/100
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 39/100
Todas as issues de CCDirectLink/crosscode-map-editor
Issues semelhantes
-
needs-area
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Azure/typespec-azure#5936 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 Meio dia Facilidade para iniciantes 72/100
vercel-labs/scriptc#2910 ·
Mantenedores costumam responder em até 1 dia
-
automation missing-model model-sync provider:fireworks-ai
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
anomalyco/models.dev#12458 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia