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

Update hardcoded URL #184

Merged
merged 1 commit into from
Nov 14, 2024
Merged
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
Update hardcoded URL
ataideverton committed Nov 14, 2024
commit 55d15a90d90a1dfc9df631dd781172dbeb3766e9
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -6,12 +6,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Fix action url that was hard coded


## [1.37.2] - 2024-11-11

### Fix

- Fixed the change `Is Required` text to `Is Filterable` present in warning
- Fixed the change `Is Required` text to `Is Filterable` present in warning

## [1.37.1] - 2024-11-07
### Feat
8 changes: 7 additions & 1 deletion react/admin/OrganizationsList.tsx
Original file line number Diff line number Diff line change
@@ -21,6 +21,8 @@ import type { TagProps } from '@vtex/admin-ui'
import { Alert, Link, Button } from 'vtex.styleguide'
import { FormattedMessage } from 'react-intl'

import { useSessionResponse } from '../modules/session'
import type { Session } from '../modules/session'
import {
INITIAL_FETCH_LIST_OPTIONS,
useOrganizationsList,
@@ -45,6 +47,10 @@ const OrganizationsList: FunctionComponent = () => {
INITIAL_FETCH_LIST_OPTIONS
)

const session = useSessionResponse() as Session

const account = session?.namespaces?.account?.accountName?.value

const [isOpenWarning, setIsOpenWarning] = useState(true)

const { data: fetchedOrgs, loading, refetch } = useOrganizationsList()
@@ -172,7 +178,7 @@ const OrganizationsList: FunctionComponent = () => {
<Button
size="small"
variation="tertiary"
href="https://b2bstore005.ds.vtexcrm.com.br/#RGF0YUVudGl0eSNGb3JtRGF0YSNyb3dJZD1DTCMjI0Zvcm1EYXRhX1N1Y2VzcyNBamF4UmVxdWVz%0adEVycm9yI2NvbnRlbnQ%3d"
href={`https://${account}.ds.vtexcrm.com.br/#RGF0YUVudGl0eSNGb3JtRGF0YSNyb3dJZD1DTCMjI0Zvcm1EYXRhX1N1Y2VzcyNBamF4UmVxdWVz%0adEVycm9yI2NvbnRlbnQ%3d`}
className={csx({ fontWeight: '500', whiteSpace: 'nowrap' })}
target="_blank"
>

Unchanged files with check annotations Beta

Check warning on line 15 in react/MyOrganizationLink.tsx

GitHub Actions / QE / Lint Node.js

Unexpected any. Specify a different type

Check warning on line 17 in react/MyOrganizationLink.tsx

GitHub Actions / QE / Lint Node.js

Unexpected any. Specify a different type
properties: {
street: {
title: formatMessage(messages.address),
cellRenderer: ({ rowData }: any) => {

Check warning on line 43 in react/admin/CostCenterAddressList.tsx

GitHub Actions / QE / Lint Node.js

Unexpected any. Specify a different type
return `${rowData.street}, ${rowData.city}, ${rowData.state}, ${rowData.postalCode}`
},
},
receiverName: {
title: formatMessage(messages.receiverName),
cellRenderer: ({ rowData }: any) => {

Check warning on line 49 in react/admin/CostCenterAddressList.tsx

GitHub Actions / QE / Lint Node.js

Unexpected any. Specify a different type
try {
const receiver = JSON.parse(rowData?.receiverName)
const strings = Object.keys(receiver).map(
checked: {
title: formatMessage(messages.defaultAddress),
width: 150,
cellRenderer: ({ rowData }: any) => {

Check warning on line 65 in react/admin/CostCenterAddressList.tsx

GitHub Actions / QE / Lint Node.js

Unexpected any. Specify a different type
return (
<Toggle
onChange={() => {
})
}
const handleRowsChange = (_: any, value: string) => {

Check warning on line 113 in react/admin/CostCenterAddressList.tsx

GitHub Actions / QE / Lint Node.js

Unexpected any. Specify a different type
const newTableLength = parseInt(value, 10)
setState({
const lineActions = [
{
label: () => `${formatMessage(messages.addressEdit)}`,
onClick: ({ rowData }: any) => {

Check warning on line 175 in react/admin/CostCenterAddressList.tsx

GitHub Actions / QE / Lint Node.js

Unexpected any. Specify a different type
handleEditAddressModal(rowData.addressId)
},
},
{
label: () => formatMessage(messages.addressDelete),
isDangerous: true,
onClick: ({ rowData }: any) => {

Check warning on line 182 in react/admin/CostCenterAddressList.tsx

GitHub Actions / QE / Lint Node.js

Unexpected any. Specify a different type
handleDeleteAddressModal(rowData.addressId)
},
},
inputSearch: {
value: state.searchValue,
placeholder: formatMessage(messages.searchAddress),
onChange: (e: any) =>

Check warning on line 210 in react/admin/CostCenterAddressList.tsx

GitHub Actions / QE / Lint Node.js

Unexpected any. Specify a different type
setState({ ...state, searchValue: e.target.value }),
onClear: onClearHandle,
onSubmit: handleInputSearchSubmit,
const uid = setGUID(newAddressState)
const duplicated = data?.getCostCenterById?.addresses?.find(
(item: any) => item.addressId === uid

Check warning on line 302 in react/admin/CostCenterDetails.tsx

GitHub Actions / QE / Lint Node.js

Unexpected any. Specify a different type
)
setLoadingState(true)