Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
ae42478
fix: cache product list by query
vitoUwu Mar 26, 2025
41dd7ec
Cookie with subdomains
matheusgr Dec 18, 2024
bd492c1
feat: make it possible to exclude routes from being proxied in vtex
soutofernando Sep 25, 2024
2108385
feat: add session loaders
vitoUwu Sep 26, 2024
c416e5a
[VTEX] Feat: add new types and cancel order action (#945)
yuriassuncx Oct 28, 2024
037d027
fix brand canonical
guitavano Oct 29, 2024
3fa4be9
fix: change product cancellation route
marcoferreiradev Oct 29, 2024
db7c3ca
add brand to breadcrumb
guitavano Oct 30, 2024
00dc0ae
remove console log
guitavano Oct 30, 2024
03d781a
fix orderPlaced page
guitavano Oct 30, 2024
6cda6cf
fixfixfix
guitavano Oct 30, 2024
37badd6
improve cache
guitavano Oct 31, 2024
55b639a
fix: add new type
marcoferreiradev Oct 31, 2024
c5dbc1c
fix: add new type
marcoferreiradev Oct 31, 2024
94c3caa
feat: add new prop and body item to cancel order action (#951)
yuriassuncx Nov 4, 2024
dbb75fa
(feat): creating an action for vtex masterdata's updatePartialDocumen…
vibe-dex Nov 4, 2024
e86208f
chec before render seo tags
guitavano Nov 5, 2024
64f065d
feat: update types for materData and OrderItem
marcoferreiradev Nov 5, 2024
ce20477
remove logged in if
guitavano Nov 6, 2024
8f17ada
add host header
guitavano Nov 6, 2024
31d25cc
remove excludePaths feature
guitavano Nov 22, 2024
a570fe8
remove comment
guitavano Nov 22, 2024
37892f0
remove unecessary host
guitavano Nov 22, 2024
3719958
fix fmt
guitavano Nov 22, 2024
3db894b
remove console log
guitavano Nov 22, 2024
af7e182
fmt
guitavano Nov 30, 2024
6a7d368
feat: create loader that returns only suggestions based on the query
marcoferreiradev Dec 20, 2024
0c19561
fix: cancel order
soutofernando Dec 20, 2024
d6a8eec
fix: sanitize IS sort param
vitoUwu Mar 12, 2025
1b22b54
feat: add get user order by id loader
vitoUwu Apr 17, 2025
7bdfd8c
fix: build manifest
vitoUwu Apr 17, 2025
421649f
feat: send more cookies to vtex requests
vitoUwu Apr 17, 2025
a3afc89
feat: add security layer to order api
vitoUwu Apr 17, 2025
b48f9c2
idk anymore
vitoUwu May 12, 2025
a1e6829
fix: check fmt manifest
vitoUwu May 12, 2025
7061d39
fix: types and get order group on orderplaced
vitoUwu May 12, 2025
0f7662b
Merge branch 'main' into feat/myaccountvtex
vitoUwu May 14, 2025
cd31f40
fix: woopsy
vitoUwu May 14, 2025
4670f43
Merge branch 'main' into feat/myaccountvtex
vitoUwu May 15, 2025
2994c9d
add simulation behavior props
vitoUwu May 21, 2025
e816763
add simulation behavior test a/b
vitoUwu May 21, 2025
6b6c28e
fix: undefined matcher
vitoUwu May 22, 2025
fcdedc6
fix: dangerously set inner HTML
vitoUwu May 22, 2025
5d882d6
feat: add metrics
vitoUwu Jun 13, 2025
42e2f81
feat: add some attributes
vitoUwu Jun 13, 2025
5e3fd85
use other PLP api
vitoUwu Aug 6, 2025
c57316b
refactor: use secure url to fetch products
vitoUwu Aug 6, 2025
d1f88f9
feat: use public url as base url
vitoUwu Aug 7, 2025
ab46a2a
refactor
vitoUwu Aug 12, 2025
4821acf
chore
vitoUwu Sep 7, 2025
b47e24c
Dont send abort controller if not async render
vitoUwu Sep 7, 2025
16f72a2
fix: section can be null
vitoUwu Sep 7, 2025
049aaaf
feat: send zip-code param to intelligent search api call
vitoUwu Sep 8, 2025
45dd4bf
feat: enhance hideUnavailableItems handling and persist zip-code in s…
vitoUwu Sep 17, 2025
792e86c
feat: add pickupPoint parameter and update zip-code to zipcode in sea…
vitoUwu Sep 30, 2025
be88d1c
feat: filter delivery options from selected facets and merge with pri…
vitoUwu Oct 7, 2025
31429f1
feat htmx update
vitoUwu Oct 13, 2025
3918c83
feat: add pickupPoint parameter to Params interface and update withDe…
vitoUwu Oct 13, 2025
203a58e
refactor: remove appKey validation from App component
vitoUwu Oct 16, 2025
1fcb9ef
Merge branch 'main' into feat/myaccountvtex
vitoUwu Oct 23, 2025
d0d2885
fix: orders type
vitoUwu Oct 23, 2025
ce9c53b
fix: typing
vitoUwu Oct 23, 2025
9a78710
Merge branch 'main' into feat/myaccountvtex
vitoUwu Nov 12, 2025
b040988
feat: add explicit return type to vtex category tree loader
vitoUwu Nov 13, 2025
7567337
Merge branch 'main' into feat/myaccountvtex
vitoUwu Nov 14, 2025
f684882
fix: safe parse segment
vitoUwu Nov 21, 2025
5e27f17
refactor: force disable azion assets
vitoUwu Nov 21, 2025
0f3a2c8
feat: add product reviews loader to power reviews
vitoUwu Nov 24, 2025
cdd8f42
chore: remove defer attribute from script tag in Events component
vitoUwu Dec 7, 2025
59e4a4f
refactor: newsletter is a public api
vitoUwu Dec 8, 2025
5e33185
feat: add logistics openapi and list holidays API
vitoUwu Dec 15, 2025
cf86157
feat: set holidays api visibility to private
vitoUwu Dec 15, 2025
63ded9a
feat: accept fit property in Source component
vitoUwu Dec 30, 2025
b17fc92
feat: validate credentials api
vitoUwu Jan 9, 2026
b15da97
refactor: return id
vitoUwu Jan 9, 2026
93c39cd
feat: ignore set cookie and override orderform
vitoUwu Jan 9, 2026
e46dd59
feat: export vcs deprecated
vitoUwu Jan 9, 2026
02c928a
feat: proper checkout api type
vitoUwu Jan 9, 2026
b67147e
fix: config loader type
vitoUwu Jan 9, 2026
1b5b0c5
feat: add missing param
vitoUwu Jan 9, 2026
4b92473
refactor: page types
vitoUwu Jan 14, 2026
857c239
fix: page types order
vitoUwu Jan 14, 2026
f3ad419
Squashed commit of the following:
vitoUwu Jan 20, 2026
8dafc03
feat: add email to credentials validation api
vitoUwu Jan 21, 2026
72b0429
feat: override orderformid to update attachment
vitoUwu Jan 21, 2026
758a75b
Squashed commit of the following:
vitoUwu Jan 23, 2026
807fe6d
Squashed commit of the following:
vitoUwu Feb 3, 2026
f88ceb4
Merge remote-tracking branch 'origin/main' into feat/myaccountvtex
vitoUwu Feb 11, 2026
1cfdce7
Merge remote-tracking branch 'origin/main' into feat/myaccountvtex
vitoUwu Feb 11, 2026
dfbb9c0
Merge branch 'main' into feat/myaccountvtex
vitoUwu Feb 26, 2026
6e50b4b
chore: ignore warn for assets.decocache.com domains
vitoUwu Feb 26, 2026
b05cf90
chore: ignore warn for more domains
vitoUwu Feb 26, 2026
086a22a
docs: document diff between feat/myaccountvtex and main
vitoUwu Feb 26, 2026
613fa54
Merge branch 'main' into feat/myaccountvtex
vitoUwu Mar 2, 2026
def9133
Merge branch 'main' into feat/myaccountvtex
vitoUwu Mar 5, 2026
2e6188b
remove simulation behavior a/b related code
vitoUwu Mar 5, 2026
7dc6014
update changes document
vitoUwu Mar 5, 2026
38058e8
Enhance simulation behavior handling across intelligent search loader…
vitoUwu Mar 5, 2026
9b830da
refactor: remove deprecated apis from vtex app
vitoUwu Mar 10, 2026
d55a6a8
refactor: remove unused action
vitoUwu Mar 10, 2026
78d3c3f
feat: add IS correaction api
vitoUwu Mar 10, 2026
a735e51
Merge branch 'main' into als-storefront
vitoUwu Mar 11, 2026
a3f6d9c
fix: reading property of undefdined
vitoUwu Mar 14, 2026
b0a6258
Merge branch 'main' into als-storefront
vitoUwu Mar 23, 2026
9d11d70
fix: prioritize checkout cookies over auth cookie on order placed loader
vitoUwu Apr 1, 2026
efc1460
Merge branch 'fix/order-placed-loader-cookie' into als-storefront
vitoUwu Apr 1, 2026
aee9297
Merge branch 'main' into als-storefront
vitoUwu Apr 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 143 additions & 0 deletions DIFF_MAIN_feat-myaccountvtex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
# Diff da branch vs main

## Escopo

- Branch atual: `feat/myaccountvtex`
- Base comparada: `main`
- Merge-base: `dd694199d49625184876bf6b422a8e886c9d1387`
- Data da coleta: 2026-03-05

## Resumo rapido

- Commits a frente da `main`: **96**
- Arquivos alterados: **70**
- Status: **45 modificados** e **25 novos**
- Delta total: **109137 insercoes** e **30651 remocoes**

## Onde mudou mais

- `vtex`: 49 arquivos
- `power-reviews`: 5 arquivos
- `website`: 5 arquivos
- `blog`: 2 arquivos
- `htmx`: 2 arquivos
- Outros (`commerce`, `linx`, `shopify`, `vnda`, `wake`, `wap`): 1 arquivo cada
- Raiz do repo: 1 arquivo (`DIFF_MAIN_feat-myaccountvtex.md`)

## Pontos de maior impacto (linhas alteradas)

> Observacao: grande parte do volume esta em arquivos OpenAPI gerados.

| Arquivo | Delta |
| ------------------------------------------------------ | --------------: |
| `vtex/utils/openapi/checkout.openapi.json` | +43725 / -0 |
| `vtex/utils/openapi/vcs.openapi.json` | +14251 / -22819 |
| `vtex/utils/openapi/checkout.openapi.gen.ts` | +27614 / -0 |
| `vtex/utils/openapi/logistics.openapi.json` | +12352 / -0 |
| `vtex/utils/openapi/vcs.openapi.gen.ts` | +243 / -7310 |
| `vtex/utils/openapi/logistics.openapi.gen.ts` | +6088 / -0 |
| `vtex/utils/openapi/vtexid.openapi.json` | +2088 / -0 |
| `vtex/utils/openapi/vtexid.openapi.gen.ts` | +594 / -0 |
| `vtex/loaders/intelligentSearch/productListingPage.ts` | +250 / -151 |
| `vtex/manifest.gen.ts` | +216 / -182 |
| `vtex/utils/types.ts` | +205 / -5 |

## Mudancas relevantes fora de OpenAPI

- `vtex/loaders/intelligentSearch/productListingPage.ts`: ajustes grandes na
logica de PLP e parametros (pickup point, zip-code, filtros, etc.).
- `vtex/actions/*` e `vtex/loaders/*`: adicao/expansao de endpoints para
address, sessions, payments, orders, profile e credentials.
- `vtex/utils/types.ts`: expansao de contratos e tipos.
- `website/components/Image.tsx` e `website/components/Picture.tsx`: ajustes no
pipeline de imagem/render.
- `website/components/Seo.tsx` e `website/utils/html.ts`: alteracoes em SEO e
tratamento de HTML.
- `power-reviews/*`: novo loader `productReviews` e adaptacoes em
listagem/detalhe.
- `blog/*`: ajustes em `handlePosts` e `Template`.

## Arquivos alterados (name-status)

```text
A DIFF_MAIN_feat-myaccountvtex.md
M blog/core/handlePosts.ts
M blog/sections/Template.tsx
M commerce/types.ts
M htmx/mod.ts
M htmx/sections/htmx.tsx
M linx/loaders/product/listingPage.ts
M power-reviews/loaders/productDetailsPage.ts
M power-reviews/loaders/productListingPage.ts
A power-reviews/loaders/productReviews.ts
M power-reviews/manifest.gen.ts
M power-reviews/mod.ts
M shopify/loaders/ProductListingPage.ts
M vnda/loaders/productListingPage.ts
M vtex/actions/address/create.ts
A vtex/actions/address/createAddress.ts
A vtex/actions/address/deleteAddress.ts
M vtex/actions/address/update.ts
A vtex/actions/address/updateAddress.ts
M vtex/actions/cart/updateAttachment.ts
A vtex/actions/credentials/validate.ts
A vtex/actions/masterdata/updatePartialDocument.ts
M vtex/actions/newsletter/updateNewsletterOptIn.ts
A vtex/actions/payments/delete.ts
A vtex/actions/profile/newsletterProfile.ts
A vtex/actions/sessions/delete.ts
A vtex/loaders/address/getAddressByZIP.ts
A vtex/loaders/address/list.ts
M vtex/loaders/cart.ts
M vtex/loaders/categories/tree.ts
M vtex/loaders/config.ts
M vtex/loaders/intelligentSearch/productListingPage.ts
A vtex/loaders/intelligentSearch/searches.ts
M vtex/loaders/legacy/productList.ts
M vtex/loaders/legacy/productListingPage.ts
A vtex/loaders/logistics/listHolidays.ts
M vtex/loaders/logistics/listPickupPointsByLocation.ts
M vtex/loaders/orders/getById.ts
M vtex/loaders/orders/list.ts
A vtex/loaders/orders/order.ts
A vtex/loaders/payments/info.ts
A vtex/loaders/payments/userPayments.ts
A vtex/loaders/profile/passwordLastUpdate.ts
A vtex/loaders/sessions/info.ts
M vtex/loaders/user.ts
M vtex/manifest.gen.ts
M vtex/middleware.ts
M vtex/mod.ts
M vtex/utils/client.ts
M vtex/utils/intelligentSearch.ts
M vtex/utils/legacy.ts
A vtex/utils/openapi/checkout.openapi.gen.ts
A vtex/utils/openapi/checkout.openapi.json
A vtex/utils/openapi/logistics.openapi.gen.ts
A vtex/utils/openapi/logistics.openapi.json
M vtex/utils/openapi/vcs.openapi.gen.ts
M vtex/utils/openapi/vcs.openapi.json
A vtex/utils/openapi/vtexid.openapi.gen.ts
A vtex/utils/openapi/vtexid.openapi.json
M vtex/utils/orderForm.ts
M vtex/utils/segment.ts
M vtex/utils/types.ts
M vtex/utils/vtexId.ts
M wake/loaders/productListingPage.ts
M wap/loaders/productListingPage.ts
M website/components/Events.tsx
M website/components/Image.tsx
M website/components/Picture.tsx
M website/components/Seo.tsx
M website/utils/html.ts
```

## Comandos usados para gerar este documento

```bash
git rev-list --count main..HEAD
git merge-base main HEAD
git diff --shortstat main...HEAD
git diff --name-status main...HEAD
git diff --numstat main...HEAD
```
3 changes: 2 additions & 1 deletion blog/core/handlePosts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ export const filterPostsBySlugs = (posts: BlogPost[], postSlugs: string[]) =>
export const filterPostsByTerm = (posts: BlogPost[], term: string) =>
posts.filter(({ content, excerpt, title }) =>
[content, excerpt, title].some((field) =>
field?.toLowerCase().includes(term.toLowerCase())
field &&
field.toLowerCase().includes(term.toLowerCase())
)
);

Expand Down
4 changes: 4 additions & 0 deletions commerce/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,10 @@ export interface Person extends Omit<Thing, "@type"> {
taxID?: string;
/** The telephone number. */
telephone?: string;
/** The birth date of the person. */
birthDate?: string;
}

// NON SCHEMA.ORG Compliant. Should be removed ASAP
export interface Author extends Omit<Thing, "@type"> {
"@type": "Author";
Expand Down Expand Up @@ -601,6 +604,7 @@ export interface PostalAddress extends Omit<ContactPoint, "@type"> {
/** The longitude of a location. For example -122.08585 (WGS 84). */
longitude?: number;
}

export interface LocationFeatureSpecification
extends Omit<PropertyValue, "@type"> {
"@type": "LocationFeatureSpecification";
Expand Down
41 changes: 14 additions & 27 deletions htmx/mod.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,20 @@
import { type App, type FnContext } from "@deco/deco";
import { Markdown } from "../decohub/components/Markdown.tsx";
import { PreviewContainer } from "../utils/preview.tsx";
import manifest, { Manifest } from "./manifest.gen.ts";
import { type App, type FnContext } from "@deco/deco";
export type AppContext = FnContext<Props, Manifest>;
export type Extension =
| "ajax-header"
| "alpine-morph"
| "class-tools"
| "client-side-templates"
| "debug"
| "event-header"
| "head-support"
| "include-vals"
| "json-enc"
| "idiomorph"
| "loading-states"
| "method-override"
| "morphdom-swap"
| "multi-swap"
| "path-deps"
| "preload"
| "remove-me"
| "response-targets"
| "restored"
| "ws"
| "path-params"
| "sse";

/**
* @title {{{name}}}
*/
export interface Extension {
name: string;
url: string;
}

export interface Props {
/** @default 1.9.11 */
/** @default 1.9.12 */
version?: string;
/** @defaul https://cdn.jsdelivr.net/npm */
/** @default https://cdn.jsdelivr.net/npm */
cdn?: string;
/** @title HTMX extensions to include */
extensions?: Extension[];
Expand All @@ -50,6 +35,7 @@ export default function Site(state: Props): App<Manifest, Required<Props>> {
manifest,
};
}

export const preview = async () => {
const markdownContent = await Markdown(
new URL("./README.md", import.meta.url).href,
Expand All @@ -71,3 +57,4 @@ export const preview = async () => {
},
};
};
export type AppContext = FnContext<Props, Manifest>;
14 changes: 11 additions & 3 deletions htmx/sections/htmx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,25 @@ import { Head } from "$fresh/runtime.ts";
import { AppContext, Extension } from "../mod.ts";
import { type SectionProps } from "@deco/deco";
import { useScript } from "@deco/deco/hooks";

const script = (extensions: Extension[]) => {
if (extensions.length > 0) {
if (document.readyState === "complete") {
document.body.setAttribute("hx-ext", extensions.join(","));
document.body.setAttribute(
"hx-ext",
extensions.map((ext) => ext.name).join(","),
);
return;
}
globalThis.onload = () => {
document.body.setAttribute("hx-ext", extensions.join(","));
document.body.setAttribute(
"hx-ext",
extensions.map((ext) => ext.name).join(","),
);
};
}
};

function Section({ version, cdn, extensions }: SectionProps<typeof loader>) {
return (
<Head>
Expand All @@ -27,7 +35,7 @@ function Section({ version, cdn, extensions }: SectionProps<typeof loader>) {
{extensions.map((ext) => (
<script
defer
src={`${cdn}/htmx.org@${version}/dist/ext/${ext}.js`}
src={ext.url}
crossOrigin="anonymous"
/>
))}
Expand Down
5 changes: 3 additions & 2 deletions linx/loaders/product/listingPage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { ProductListingPage } from "../../../commerce/types.ts";
import { safeJsonSerialize } from "../../../website/utils/html.ts";
import { AppContext } from "../../mod.ts";
import { isGridProductsModel } from "../../utils/paths.ts";
import {
Expand Down Expand Up @@ -107,11 +108,11 @@ const loader = async (
value: sort.Alias,
label: sort.Label,
})),
seo: {
seo: safeJsonSerialize({
title: pageInfo.PageTitle,
description: pageInfo.MetaDescription || "",
canonical: pageInfo.CanonicalLink,
},
}),
};
};

Expand Down
2 changes: 2 additions & 0 deletions power-reviews/loaders/productDetailsPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,5 @@ export default function productDetailsPage(
};
};
}

export const cache = "no-cache";
28 changes: 20 additions & 8 deletions power-reviews/loaders/productListingPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,27 @@ export default function productListingPage(
})
);

const fullReviewsResponse = await Promise.all(fullReviewsPromises);
const fullReviewsResponse = await Promise.allSettled(fullReviewsPromises);

const fullReviewsResults = await Promise.all(
fullReviewsResponse.map((review) => review.json()),
const fullReviewsResults = await Promise.allSettled(
fullReviewsResponse.map((response) => {
if (response.status === "fulfilled") {
return response.value.json();
} else {
return null;
}
}),
);

const productsExtendeds = fullReviewsResults.map((review, idx) => {
return {
...products[idx],
aggregateRating: toAggregateRating(review.results[0].rollup),
};
const productsExtendeds = fullReviewsResults.map((result, idx) => {
if (result.status === "fulfilled" && result.value) {
return {
...products[idx],
aggregateRating: toAggregateRating(result.value.results[0].rollup),
};
} else {
return products[idx];
}
});

return {
Expand All @@ -71,3 +81,5 @@ export default function productListingPage(
};
};
}

export const cache = "no-cache";
Loading
Loading