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

refactor: Import Node type from planx-core #3656

Merged
merged 11 commits into from
Sep 12, 2024
Merged

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Sep 11, 2024

What does this PR do?

  • Shares types for Node with planx-core
  • Uppercases type which were incorrectly lowercase within the Store namespace
    • I also added an ESlint rule for ensuring types and interfaces are always PascalCase, along with a few small fixes

Copy link

github-actions bot commented Sep 11, 2024

Removed vultr server and associated DNS entries

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the main file updated in this PR.

Comment on lines +39 to +43
export interface Response {
question: Node & { id: NodeId };
selections: Array<Node & { id: NodeId }>;
hidden: boolean;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is pulled out here to reuse existing types, rather than redefine them (as seen in editor.planx.uk/src/types.ts)

@DafyddLlyr DafyddLlyr requested a review from a team September 12, 2024 10:08
@DafyddLlyr DafyddLlyr marked this pull request as ready for review September 12, 2024 10:08
Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

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

Really nice, long overdue improvement - thanks !!

/**
* Looser Node type with `any` data
* @deprecated Should share type with PlanX core once `Value` is retired and Flow Graph is typed
*/
Copy link
Member

Choose a reason for hiding this comment

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

@DafyddLlyr DafyddLlyr merged commit 596a54e into main Sep 12, 2024
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/editor-node-type branch September 12, 2024 10:51
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.

2 participants