Skip to content

Commit

Permalink
ENG-0000 fix(portal): Enable info maintenance flag & update quest suc…
Browse files Browse the repository at this point in the history
…cess redirect (#798)

* Enable info maintenance flag
* Update quest success redirect
  • Loading branch information
0xjojikun authored Aug 24, 2024
1 parent d47c3c3 commit 4252c68
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ jobs:
--build-arg PHOSPHOR_COLLECTION_ID=${{ secrets.PHOSPHOR_COLLECTION_ID }} \
--build-arg GTM_TRACKING_ID=${{ secrets.GTM_TRACKING_ID }} \
--build-arg FF_FULL_LOCKDOWN_ENABLED=false \
--build-arg FF_INCIDENT_BANNER_ENABLED=true
--build-arg FF_GENERIC_BANNER_ENABLED=true \
--build-arg FF_INCIDENT_BANNER_ENABLED=false
docker tag portal ${{ env.ECR_IMAGE }}
docker push ${{ env.ECR_IMAGE }}
rm privy_verification_key.pem
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ jobs:
--build-arg PHOSPHOR_COLLECTION_ID=${{ secrets.PHOSPHOR_COLLECTION_ID }} \
--build-arg GTM_TRACKING_ID=${{ secrets.GTM_TRACKING_ID }} \
--build-arg FF_FULL_LOCKDOWN_ENABLED=false \
--build-arg FF_INCIDENT_BANNER_ENABLED=true
--build-arg FF_GENERIC_BANNER_ENABLED=true \
--build-arg FF_INCIDENT_BANNER_ENABLED=false
docker tag portal ${{ env.ECR_IMAGE }}
docker push ${{ env.ECR_IMAGE }}
rm privy_verification_key.pem
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ jobs:
--build-arg PHOSPHOR_COLLECTION_ID=${{ secrets.PHOSPHOR_COLLECTION_ID }} \
--build-arg GTM_TRACKING_ID=${{ secrets.GTM_TRACKING_ID }} \
--build-arg FF_FULL_LOCKDOWN_ENABLED=false \
--build-arg FF_INCIDENT_BANNER_ENABLED=true
--build-arg FF_INCIDENT_BANNER_ENABLED=false \
--build-arg FF_GENERIC_BANNER_ENABLED=true
docker tag portal ${{ env.ECR_IMAGE }}
docker push ${{ env.ECR_IMAGE }}
rm privy_verification_key.pem
Expand Down
2 changes: 2 additions & 0 deletions apps/portal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ ARG PHOSPHOR_COLLECTION_ID=${PHOSPHOR_COLLECTION_ID}
ARG GTM_TRACKING_ID=${GTM_TRACKING_ID}
ARG FF_FULL_LOCKDOWN_ENABLED=${FF_FULL_LOCKDOWN_ENABLED}
ARG FF_INCIDENT_BANNER_ENABLED=${FF_INCIDENT_BANNER_ENABLED}
ARG FF_GENERIC_BANNER_ENABLED=${FF_GENERIC_BANNER_ENABLED}
ARG VITE_DEPLOY_ENV=${VITE_DEPLOY_ENV}

ENV ALCHEMY_MAINNET_API_KEY=${ALCHEMY_MAINNET_API_KEY}
Expand Down Expand Up @@ -54,6 +55,7 @@ ENV PHOSPHOR_COLLECTION_ID=${PHOSPHOR_COLLECTION_ID}
ENV GTM_TRACKING_ID=${GTM_TRACKING_ID}
ENV FF_FULL_LOCKDOWN_ENABLED=${FF_FULL_LOCKDOWN_ENABLED}
ENV FF_INCIDENT_BANNER_ENABLED=${FF_INCIDENT_BANNER_ENABLED}
ENV FF_GENERIC_BANNER_ENABLED=${FF_GENERIC_BANNER_ENABLED}
ENV VITE_DEPLOY_ENV=${VITE_DEPLOY_ENV}

WORKDIR /app
Expand Down
4 changes: 1 addition & 3 deletions apps/portal/app/components/quest/quest-success-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ export default function QuestSuccessModal({
IQ Points
</Text>
</div>
<NavLink
to={`/app/quest/narrative/0${nextQuestId ? `#${nextQuestId}` : ''}`}
>
<NavLink to={`/app/quest/narrative/0`}>
<Button
variant={ButtonVariant.primary}
size={ButtonSize.md}
Expand Down
4 changes: 2 additions & 2 deletions apps/portal/app/components/site-wide-banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const SiteWideBanner = ({

if (featureFlags.FF_GENERIC_BANNER_ENABLED === 'true') {
bannerData.variant = 'info'
bannerData.title = 'Scheduled Maintenance'
bannerData.title = "Ongoing Incident with Quest 'Chapter 3: Language'"
bannerData.message =
'Intuition will be temporarily unavailable during scheduled maintenance. We’ll be back online shortly — thanks for your patience!'
"We are currently investigating an issue with quest 'Chapter 3: Language'. We have removed the requirement to move on to quest 'Chapter 4: Expression'. Please wait until this banner goes away to make a ticket if the issue persists."
} else if (featureFlags.FF_INCIDENT_BANNER_ENABLED === 'true') {
bannerData.variant = 'warning'
bannerData.title =
Expand Down
2 changes: 1 addition & 1 deletion apps/portal/app/routes/app+/quest+/narrative+/$id.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default function Quests() {
label={`Chapter ${quest.position}`}
points={quest.points}
questCriteria={getQuestCriteriaShort(quest.condition)}
disabled={!available}
disabled={!available || !quest.active}
id={quest.id}
handleClick={(e) => {
e.preventDefault()
Expand Down

0 comments on commit 4252c68

Please sign in to comment.