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

feat: Improve hc-scaffold entry-type developer experience #383

Merged
merged 5 commits into from
Oct 17, 2024

Conversation

c12i
Copy link
Collaborator

@c12i c12i commented Oct 9, 2024

This PR introduces the following changes:

selection; refactor FieldType parsing

@c12i c12i changed the title feat: Refactor Field Type selection feat: Improve hc-scaffold entry-type developer experience Oct 9, 2024
@c12i c12i requested a review from matthme October 9, 2024 09:16
@c12i c12i marked this pull request as ready for review October 9, 2024 09:16
@c12i c12i requested a review from pdaoust October 9, 2024 09:48
@c12i c12i added the ShouldBackport/0.4 This change should be backported to develop-0.1 label Oct 9, 2024
Copy link
Collaborator

@matthme matthme left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@c12i c12i merged commit 196a30f into holochain:develop Oct 17, 2024
6 of 8 checks passed
@c12i c12i removed the ShouldBackport/0.4 This change should be backported to develop-0.1 label Oct 17, 2024
c12i added a commit to c12i/scaffolding that referenced this pull request Oct 17, 2024
…n#383)

* refactor enum type selection; add option to restart field type
selection; refactor FieldType parsing

* Improve EntryTypeReference parsing

* Improve parse_enum parsing logic

* Update field_type parsing logic
c12i added a commit that referenced this pull request Oct 21, 2024
* Bump crate version

* feat: Create links from/to `ExternalHash` (#380)

* add ExternalHash field types and option to target this type when scaffolding a link-type

* ensure external hash is imported in type declarations

* feat: create links from/to AnyLinkableHash

* Add AnyLinkablehHash field type templates and add to reserved words

* fix failed to resolve errors

* improve checking for reserved keywords

* fix invalid link-type delete method in test template

* simplify reserved_words hashsets

* update cli

* Extend reserved keywords to check for javascript keywords

* Update AnyLinkableHash sample value

* Extend reserved words check tests

* fix AnyLinkableHash link-type tests

* Fix AnyLinkableHash link-type tests and remove redundant AND/OR hbs
helpers

* update inner_choose_referenceable

* /AnyLinkableHash/ExternalHash

* Update invalid serserved word error message

* Refactor entry/link type utils

* Add some context to the [None] option when scaffolding a link-type

* /AnyLinkableHash/ExternalHash in link-type template

* Fix option placement

* Prevent UI from getting generated where the base type of a link is an
ExternalHash

* ExternalHash links can be bidirectional

* Only skip ui if to_referenceable is some and the field_type is of
ExternalHash

* Remove unnecessary into call in delete link function

* Fix rustfmt ci failure

* Fix missing conversion

* Fix react link-type template

* feat: Improve `hc-scaffold entry-type` developer experience (#383)

* refactor enum type selection; add option to restart field type
selection; refactor FieldType parsing

* Improve EntryTypeReference parsing

* Improve parse_enum parsing logic

* Update field_type parsing logic

* fix: Optimize nix flake (#384)

* optimize nix flake

* Supress clippy warnings

* Nix flake update
c12i added a commit that referenced this pull request Oct 31, 2024
* refactor enum type selection; add option to restart field type
selection; refactor FieldType parsing

* Improve EntryTypeReference parsing

* Improve parse_enum parsing logic

* Update field_type parsing logic
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.

refactor: update enum entry-type prompts to infer the field name of the enum from the name of the enum itself
2 participants