-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update with sprint 49 the feature branch (#975)
* feat: bun1943 register verify (#946) * fix: register verify bun1943-s48 https://bigc-b2b.atlassian.net/browse/BUN-1943 * fix: register verify * feat: country add default value https://bigc-b2b.atlassian.net/browse/BUN-1955 * fix: modify the login page design layout bun1916 https://bigc-b2b.atlassian.net/browse/BUN-1916 * fix: design top line of side menu should be alligned with top line of page header (#950) * fix: design top line of side menu should be alligned with top line of page header https://bigc-b2b.atlassian.net/browse/BUN-2063 * feat: add BUN-2070,BUN-2064,BUN-2066,BUN-2065 (#951) * feat: add "x" to close the buyer portal add Quote Title entry to the Buyer Quote Form in the Buyer Portal https://bigc-b2b.atlassian.net/browse/BUN-2070 https://bigc-b2b.atlassian.net/browse/BUN-2064 * feat: allow Password AutoFill https://bigc-b2b.atlassian.net/browse/BUN-2066 * feat: add a setting that determines where shoppers land when the login to they store https://bigc-b2b.atlassian.net/browse/BUN-2065 * fix: quick order pad page crashes hotfix about sup1506 https://bigc-b2b.atlassian.net/browse/SUP-1506 * fix: optimized login loadding BUN-2065 * ci: change the CODEOWNER to the buyer-portal team * fix: refix the CODEOWNERS * fix: missing address label https://bigc-b2b.atlassian.net/browse/BUN-2122 * fix/BUN-2084: clean no param rule in pages (#958) * fix: cleaning rules * fix: cherry picking changes * fix: clean code merge * fix: adding missing lines * fix/BUN-2083 clean up no params reassign rule (#962) * feat(BUN-2087): refactoring hooks eslint rule (#947) * fix(BUN-2085): nit in variable definition (#954) * fix: clean no param reassign rule in components (#953) * fix: clean no param reassign rule in components * fix: deleting clean directory * feat(BUN-2085): utils directory eslint cleanup (#952) --------- Co-authored-by: bc-victor <140021227+bc-victor@users.noreply.github.com> * brian/fix/sprint49 (#959) * fix: invoice link leads to a blank unresponsive buyer portal page https://bigc-b2b.atlassian.net/jira/software/c/projects/BUN/issues/BUN-2015 * fix: reordering For Product with Modifier Text Field https://bigc-b2b.atlassian.net/browse/BUN-2075 * fix: quick order pad change tip text (#964) * fix: quick order pad change tip text https://bigc-b2b.atlassian.net/browse/BUN-2141 * fix: translation issues * fix: quick order pad qty error https://bigc-b2b.atlassian.net/browse/BUN-2207 * fix: the cart counter is showing on the X icon on the mobile cart in the Buyer Portal (#2255) * chore: documentation efforts into connecting to production stores (#972) * ci: change the CODEOWNER to the buyer-portal team * fix: refix the CODEOWNERS * chore: documentation efforts into connecting to production stores --------- Co-authored-by: Micah Thomas <95306190+bc-micah@users.noreply.github.com> * fix: invoice,shoppingList,quote detail page link --------- Co-authored-by: BrianJiang2021 <80307788+BrianJiang2021@users.noreply.github.com> Co-authored-by: Brian.Jiang2021 <brian.jiang@bundleb2b.net> Co-authored-by: Micah Thomas <95306190+bc-micah@users.noreply.github.com> Co-authored-by: bc-victor <140021227+bc-victor@users.noreply.github.com>
- Loading branch information
1 parent
e35d9ec
commit 0d2e67d
Showing
61 changed files
with
764 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* @bc-micah @LeoChowChina @libruce | ||
* @B3BC/buyer-portal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,26 @@ | ||
VITE_B2B_URL=http://localhost:9000 | ||
VITE_B2B_SOCKET_URL=http://localhost:9000 | ||
VITE_TRANSLATION_SERVICE_URL=http://localhost:5000 | ||
# URL of the B2B API, if doing local development, this should be the URL of the local B2B API with its own port | ||
VITE_B2B_URL=https://api.bundleb2b.net | ||
|
||
# URL of the B2B Socket - this should be the same as the B2B API URL | ||
VITE_B2B_SOCKET_URL=https://api.bundleb2b.net | ||
|
||
# URL of the B2B Translation Service - if doing local development, try with localhost:5000 or check the service URL | ||
VITE_TRANSLATION_SERVICE_URL=https://api.bundleb2b.net | ||
|
||
# CHANNEL ID of the storefront, if your store is multi-storefront, you can use this to specify the storefront - otherwise leave as 1 | ||
VITE_CHANNEL_ID=1 | ||
|
||
# Store hash of the storefront, this is the unique identifier of the storefront | ||
VITE_STORE_HASH=store_hash | ||
|
||
# Captcha Site Key for the storefront | ||
VITE_CATPCHA_SETKEY=captcha_setkey | ||
|
||
# Client ID issued by B2B Edition for the storefront | ||
VITE_B2B_CLIENT_ID=client_id | ||
VITE_LOCAL_DEBUG="FALSE" | ||
VITE_LOCAL_GRAPHQL_ORIGIN="https://b2b-tunnel-<port>.bundleb2b.net" | ||
|
||
# Set this to TRUE to debug in your default storefront | ||
VITE_LOCAL_DEBUG=FALSE | ||
|
||
# URL where the GraphQL is hosted, usually the same one as B2B_URL_API. If the GraphQL API is hosted locally, set this to the local URL | ||
VITE_LOCAL_GRAPHQL_ORIGIN=https://api.bundleb2b.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
apps/storefront/src/components/layout/B3CloseAppButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { useContext } from 'react' | ||
import { useSelector } from 'react-redux' | ||
import { useNavigate } from 'react-router-dom' | ||
|
||
import useMobile from '@/hooks/useMobile' | ||
import { GlobaledContext } from '@/shared/global' | ||
import { globalStateSelector } from '@/store' | ||
|
||
import { CloseBox, CloseBoxMobile, CloseButton } from '../styled' | ||
|
||
export default function B3CloseAppButton() { | ||
const [isMobile] = useMobile() | ||
|
||
const { setOpenPageFn } = useSelector(globalStateSelector) | ||
|
||
const { | ||
state: { isCloseGotoBCHome }, | ||
} = useContext(GlobaledContext) | ||
const navigate = useNavigate() | ||
|
||
const handleCloseForm = () => { | ||
if (isCloseGotoBCHome) { | ||
window.location.href = '/' | ||
} else { | ||
navigate('/') | ||
setOpenPageFn({ | ||
isOpen: false, | ||
openUrl: '', | ||
}) | ||
} | ||
window.history.replaceState(null, '', window.location.pathname || '/') | ||
} | ||
|
||
const Box = isMobile ? CloseBoxMobile : CloseBox | ||
|
||
return ( | ||
<Box> | ||
<CloseButton | ||
sx={{ | ||
color: '#757371', | ||
}} | ||
onClick={handleCloseForm} | ||
/> | ||
</Box> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.