-
Notifications
You must be signed in to change notification settings - Fork 115
refactor: resolve all todos #1064
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
Changes from all commits
8228197
edb27f9
e509bb8
b036c74
76cbbb8
ecdc77b
da6aa8e
f7f16b1
44fc29a
f79d67f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,6 @@ import cookie from '@vue-storefront/magento/nuxt/cookie'; | |
|
|
||
| const moduleOptions = JSON.parse('<%= JSON.stringify(options) %>'); | ||
|
|
||
| // TODO should be moved to THEME and expose consistent cookie management API | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. By default, all todos in composable package are abandoned
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is already done anyway |
||
| export default integrationPlugin(({ | ||
| app, res, req, integration, | ||
| }) => { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -254,7 +254,6 @@ const factoryParams: UseCartFactoryParams<Cart, CartItem, Product> = { | |
| .addVirtualProductsToCart | ||
| .cart as unknown as Cart; | ||
| default: | ||
| // todo implement other options | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. already done |
||
| // @ts-ignore | ||
| // eslint-disable-next-line no-underscore-dangle | ||
| throw new Error(`Product Type ${product.__typename} not supported in add to cart yet`); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,6 @@ const factoryParams: UseExternalCheckoutFactoryParams = { | |
|
|
||
| if (externalCheckout.enable) { | ||
| if (userToken && cartToken) { | ||
| // @TODO: Implements Multiple Store | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We are going to work on the external checkout in dedicated tasks |
||
| /* if (Object.keys(externalCheckout.stores).length) { | ||
|
|
||
| } */ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -114,7 +114,6 @@ const factoryParams: UseWishlistFactoryParams<any, any, any> = { | |
|
|
||
| return bundleProductData?.addProductsToWishlist?.wishlist ?? {}; | ||
| default: | ||
| // todo implement other options | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. obsolete |
||
| // @ts-ignore | ||
| // eslint-disable-next-line no-underscore-dangle | ||
| throw new Error(`Product Type ${product.__typename} not supported in add to wishlist yet`); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,7 +55,6 @@ export const getItemPrice = (product: CartItem): AgnosticPrice => { | |
| special: specialPrice || 0, | ||
| // @ts-ignore | ||
| credit: Math.round(specialPrice / 10), | ||
| // @TODO: Who set this installment value? | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. By default, all todos in composable package are abandoned |
||
| installment: Math.round((specialPrice * 1.1046) / 10), | ||
| discountPercentage: 100 - Math.round((specialPrice / regularPrice) * 100), | ||
| total: product.prices?.row_total?.value, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -202,7 +202,6 @@ export const getFormattedPrice = (price: number) => { | |
| return null; | ||
| } | ||
|
|
||
| // TODO get correct data from api | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. By default, all todos in composable package are abandoned |
||
| const locale = 'en'; | ||
| const country = 'en'; | ||
| const currency = 'USD'; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -114,10 +114,7 @@ export default defineComponent({ | |
| const isShippingMethodStepCompleted = computed( | ||
| () => state.value?.method_code && !isLoading.value, | ||
| ); | ||
| /** | ||
| * @TODO: Do not run the setShippingMethodsOnCart mutation on in-store pickup orders. | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do not really understand this [05.2021] |
||
| * Instead, specify the pickup_location_code attribute in the setShippingAddressesOnCart mutation. | ||
| */ | ||
|
|
||
| const selectShippingMethod = async (method: AvailableShippingMethod) => { | ||
| const shippingData = { | ||
| carrier_code: method.carrier_code, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,8 +51,6 @@ export interface UseApiInterface { | |
| */ | ||
| query: Request; | ||
|
|
||
| // TODO: Add code sample | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have the task for this M2-352 |
||
|
|
||
| /** | ||
| * Executes received GraphQL Mutation with optional variables and headers and | ||
| * returns the result. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -175,7 +175,7 @@ export default defineComponent({ | |
| const { activeTab, setActiveTab, openNewReviewTab } = useProductTabs(); | ||
|
|
||
| const { isAuthenticated } = useUser(); | ||
| const { addItem: addItemToWishlist, isInWishlist } = useWishlist(); | ||
| const { addOrRemoveItem, isInWishlist } = useWishlist(); | ||
| const basePrice = ref(0); | ||
| const openTab = ref(1); | ||
|
|
||
|
|
@@ -184,13 +184,13 @@ export default defineComponent({ | |
| ); | ||
|
|
||
| const productPrice = computed(() => getGroupedProductPriceCommand(props.product)); | ||
| const productSpecialPrice = 0; // TODO add logic for special price calculation; | ||
| const productSpecialPrice = 0; | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be addressed M2-603 |
||
| const totalReviews = computed(() => getTotalReviews(props.product)); | ||
| const averageRating = computed(() => getAverageRating(props.product)); | ||
|
|
||
| return { | ||
| addItem, | ||
| addItemToWishlist, | ||
| addItemToWishlist: addOrRemoveItem, | ||
| averageRating, | ||
| basePrice, | ||
| canAddToCart, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think that this is important