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

Implement create process form logic #774

Merged
merged 11 commits into from
Oct 3, 2024
Merged

Conversation

selankon
Copy link
Contributor

@selankon selankon commented Sep 24, 2024

This PR implements some new necessary logic in order to follow new saas requirements for process creation. Related:

vocdoni/interoperability#210
vocdoni/interoperability#229

  • Adds a footer on process creation
  • Adds a store draft button
  • Implement new steps when is saas
  • Add saas extra features on the form
  • Mock useAccountPlan, simulating a call that gives for an organization which features a plan has activated.
  • Add some minimum styles to try it easier

Important!

This PR does not implement:

  • New styles
  • Some buttons logics (for example save draft or upgrade plan)
  • New modals
  • Logic to store the election on the saas backend (this need some meetings). For now, the SDK and the remote signer are able to create an election on the backend as before.

Copy link

github-actions bot commented Sep 24, 2024

@github-actions github-actions bot temporarily deployed to pull request September 24, 2024 11:54 Inactive
Copy link

github-actions bot commented Sep 24, 2024

@github-actions github-actions bot temporarily deployed to pull request September 24, 2024 11:54 Inactive
@selankon selankon force-pushed the f/implement-create-process-form branch from efb4594 to ed3f9c2 Compare September 25, 2024 11:45
@selankon selankon changed the base branch from develop to d/saas September 25, 2024 11:45
@github-actions github-actions bot temporarily deployed to pull request September 25, 2024 11:47 Inactive
@github-actions github-actions bot temporarily deployed to pull request September 25, 2024 11:47 Inactive
@selankon selankon force-pushed the f/implement-create-process-form branch from ed3f9c2 to fb12f7a Compare September 25, 2024 11:53
@github-actions github-actions bot temporarily deployed to pull request September 25, 2024 11:55 Inactive
@github-actions github-actions bot temporarily deployed to pull request September 25, 2024 11:55 Inactive
@selankon selankon requested a review from emmdim September 25, 2024 11:58
@selankon selankon marked this pull request as ready for review September 25, 2024 11:58
@@ -16,7 +16,6 @@ export const VotingTypes = [VotingTypeSingle as VotingType, UnimplementedVotingT
export const useVotingType = (): GenericFeatureObject<VotingType> => {
const { t } = useTranslation()
return {
list: VotingTypes,
defined: import.meta.env.features.voting_type as VotingType[],
Copy link
Member

Choose a reason for hiding this comment

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

@selankon btw, it is not directly part of this PR, but there should be a convergence in the file names used to do the same thing.
For example Census/TypeSelector.tsx and the name of the current file Questions/useVotingType.ts do not coincide. Should probably choose one of the two naming forms

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am agree with that but this affect the legacy scaffold code. We should rename it there

Copy link
Member

Choose a reason for hiding this comment

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

TypeSelector has inherited its name from an old implementation which contained a component named TypeSelector. It certainly should be called useCensusTypes now, since it only contains a hook named that way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but rename it from develop or on d/saas?

Copy link
Member

Choose a reason for hiding this comment

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

From develop ofc

@github-actions github-actions bot temporarily deployed to pull request October 3, 2024 10:29 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 3, 2024 10:30 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 3, 2024 10:43 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 3, 2024 10:43 Inactive
Copy link
Member

@emmdim emmdim left a comment

Choose a reason for hiding this comment

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

LGTM

@selankon selankon force-pushed the f/implement-create-process-form branch from 330a29f to 134efa6 Compare October 3, 2024 11:31
@selankon selankon merged commit 7d305c7 into d/saas Oct 3, 2024
2 checks passed
@selankon selankon deleted the f/implement-create-process-form branch October 3, 2024 11:31
@github-actions github-actions bot temporarily deployed to pull request October 3, 2024 11:32 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 3, 2024 11:32 Inactive
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.

3 participants