Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 5 additions & 3 deletions cypress/e2e/page/publish-page.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -704,9 +704,11 @@ describe('Publish Page Test', () => {
ShareSelectors.sharePopover().should('not.exist');
ShareSelectors.publishManageModal().should('be.visible');

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

cy.get('body').type('{esc}');
ShareSelectors.publishManageModal().should('not.exist');
Expand Down
12 changes: 3 additions & 9 deletions src/application/services/js-services/http/http_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1823,15 +1823,9 @@ export async function generateAITranslateForRow(workspaceId: string, payload: Ge
);

return payloadResponse.items
.map((item) => {
return Object.entries(item)
.map(([key, value]) => {
if (!value) return '';
return `${key}: ${value}`;
})
.join(', ');
})
.join('\n');
.map((item) => item.content)
.filter((content) => content)
.join(', ');
}

export async function createOrphanedView(workspaceId: string, payload: { document_id: string }) {
Expand Down
Loading