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

Rewrite pricing calculator #2308

Merged
merged 6 commits into from
Mar 26, 2024
Merged

Conversation

MohamedElmdary
Copy link
Member

Description

Pricing calculator had tons of issue so we decided to rewrite it in a better way

Changes

Rewrite pricing calculator

Related Issues

image

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstrings
  • Screenshots/Video attached (needed for UI changes)

@AlaaElattar
Copy link
Contributor

  • I built and ran yarn install, but the page not behaving right.
  • The prices below shouldn't disappear before changing also the colors not changing.
  • The spaces between toggles.
Screencast.from.03-05-2024.04.40.16.PM.webm

- style: no longer show loader instead write loading...
@MohamedElmdary
Copy link
Member Author

  • I built and ran yarn install, but the page not behaving right.
  • The prices below shouldn't disappear before changing also the colors not changing.
  • The spaces between toggles.

Screencast.from.03-05-2024.04.40.16.PM.webm

update loading behaviour but what about toggles spacing?

@AlaaElattar
Copy link
Contributor

  • By default if user logged in, the balance toggle should be enabled

@AlaaElattar
Copy link
Contributor

  • The color not changing at all.

image

@MohamedElmdary
Copy link
Member Author

  • The color not changing at all.

image

image
image

<VRow v-else>
<VCol cols="12">
<VAlert type="error">
Please provide a valid data inorder to calculate your deployment price correctly.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the alert should be more clear, it should mention which field is invalid. what do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

there is already an error shown on that specific field ... we can know instantly which field has error without checking every field over and over

:style="{ background: computePackageColor(priceTask.data?.sharedPackage.package) }"
>
<p>
Cost of reservation on a <strong v-text="'Shared Node'" /><br />
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if we should mention the package's name here or if the background color is enough?

Copy link
Member Author

Choose a reason for hiding this comment

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

@maayarosama what do u mean?
please add some ss if something is not working correctly

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's ignore my suggestion here as it's not needed

Base automatically changed from development_314 to development March 18, 2024 13:07
@Mahmoud-Emad Mahmoud-Emad requested a review from samaradel as a code owner March 18, 2024 13:07
Copy link
Contributor

@AlaaElattar AlaaElattar left a comment

Choose a reason for hiding this comment

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

Great Job

@AhmedHanafy725 AhmedHanafy725 merged commit bee662d into development Mar 26, 2024
3 checks passed
@AhmedHanafy725 AhmedHanafy725 deleted the development_314_calculator branch March 26, 2024 11:23
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.

4 participants