Skip to content

Commit cfbbc44

Browse files
authored
chore: translate row content (#207)
* chore: translate row content * chore: translate row content
1 parent 88cfcb0 commit cfbbc44

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

cypress/e2e/page/publish-page.cy.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -704,9 +704,11 @@ describe('Publish Page Test', () => {
704704
ShareSelectors.sharePopover().should('not.exist');
705705
ShareSelectors.publishManageModal().should('be.visible');
706706

707-
// Verify panel exists and is visible separately to avoid null subject issues
708-
ShareSelectors.publishManagePanel().should('exist').should('be.visible');
709-
ShareSelectors.publishManagePanel().contains('Namespace');
707+
// Verify panel exists inside modal to avoid null subject issues
708+
ShareSelectors.publishManageModal().within(() => {
709+
ShareSelectors.publishManagePanel().should('be.visible');
710+
cy.contains('Namespace').should('be.visible');
711+
});
710712

711713
cy.get('body').type('{esc}');
712714
ShareSelectors.publishManageModal().should('not.exist');

src/application/services/js-services/http/http_api.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,15 +1823,9 @@ export async function generateAITranslateForRow(workspaceId: string, payload: Ge
18231823
);
18241824

18251825
return payloadResponse.items
1826-
.map((item) => {
1827-
return Object.entries(item)
1828-
.map(([key, value]) => {
1829-
if (!value) return '';
1830-
return `${key}: ${value}`;
1831-
})
1832-
.join(', ');
1833-
})
1834-
.join('\n');
1826+
.map((item) => item.content)
1827+
.filter((content) => content)
1828+
.join(', ');
18351829
}
18361830

18371831
export async function createOrphanedView(workspaceId: string, payload: { document_id: string }) {

0 commit comments

Comments
 (0)