Skip to content

Commit

Permalink
chore: 2022-10-06 release (#504) (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludtkemorgan committed Oct 18, 2022
1 parent 06fa80e commit 77965ed
Show file tree
Hide file tree
Showing 74 changed files with 1,142 additions and 244 deletions.
2 changes: 1 addition & 1 deletion shared-helpers/src/multiselectQuestions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const getRadioFields = (
return (
<fieldset>
{applicationSection === ApplicationSection.preferences && (
<legend className="field-label--caps mb-4">{question?.text}</legend>
<legend className="text__caps-spaced mb-4">{question?.text}</legend>
)}
<p className="field-note mb-8">{question?.description}</p>
<FieldGroup
Expand Down
2 changes: 2 additions & 0 deletions sites/partners/page_content/locale_overrides/general.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
"applications.duplicates.validApplications": "Valid Applications",
"applications.duplicates.duplicateGroup": "Duplicate group",
"applications.duplicates.primaryApplicant": "Primary applicant",
"applications.duplicates.set": "Set",
"applications.duplicates.sets": "Sets",
"applications.namedob": "Name + DOB",
"applications.newApplication": "New Application",
"applications.pending": "Pending",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ const ApplicationsList = () => {
config={{
gridComponents,
columns,
totalItemsLabel: t("applications.totalApplications"),
totalItemsLabel:
flaggedAppsData?.meta?.totalItems === 1
? t("applications.duplicates.set")
: t("applications.duplicates.sets"),
}}
data={{
items: flaggedAppsData?.items ?? [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ const ApplicationsList = () => {
config={{
gridComponents: { formatLinkCell: getLinkCellFormatter(router) },
columns: columns,
totalItemsLabel: t("applications.totalApplications"),
totalItemsLabel:
flaggedAppsData?.meta?.totalItems === 1
? t("applications.duplicates.set")
: t("applications.duplicates.sets"),
}}
data={{
items: flaggedAppsData?.items ?? [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const FormApplicationData = () => {
readerOnly
errorMessage={t("errors.dateError")}
required={!!isDateRequired}
labelClass={"field-label--caps"}
labelClass={"text__caps-spaced"}
/>
</ViewItem>

Expand All @@ -62,7 +62,7 @@ const FormApplicationData = () => {
readerOnly
disabled={!isDateFilled}
required={!!isDateFilled}
labelClass={"field-label--caps"}
labelClass={"text__caps-spaced"}
/>
</ViewItem>

Expand Down
2 changes: 1 addition & 1 deletion sites/partners/src/users/FormUserConfirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const FormUserConfirm = () => {
<Form id="update-password" onSubmit={handleSubmit(onSubmit)}>
<div className="form-card__group is-borderless">
<fieldset>
<legend className="field-label--caps">
<legend className="text__caps-spaced">
{t("authentication.createAccount.password")}
</legend>
<p className="field-note mb-4">{t("users.makeNote")}</p>
Expand Down
23 changes: 15 additions & 8 deletions sites/public/lib/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
ListingReviewOrder,
UnitsSummarized,
ListingStatus,
ListingAvailability,
} from "@bloom-housing/backend-core/types"
import {
t,
Expand Down Expand Up @@ -52,10 +51,10 @@ const getListingCardSubtitle = (address: Address) => {

const getListingTableData = (
unitsSummarized: UnitsSummarized,
listingAvailability: ListingAvailability
listingReviewOrder: ListingReviewOrder
) => {
return unitsSummarized !== undefined
? getSummariesTable(unitsSummarized.byUnitTypeAndRent, listingAvailability)
? getSummariesTable(unitsSummarized.byUnitTypeAndRent, listingReviewOrder)
: []
}

Expand Down Expand Up @@ -113,10 +112,18 @@ export const getListings = (listings) => {
}

const generateTableSubHeader = (listing) => {
if (listing.listingAvailability === ListingAvailability.availableUnits) {
return { content: t("listings.availableUnits"), styleType: AppearanceStyleType.success }
} else if (listing.listingAvailability === ListingAvailability.openWaitlist) {
return { content: t("listings.waitlist.open"), styleType: AppearanceStyleType.primary }
if (listing.reviewOrderType !== ListingReviewOrder.waitlist) {
return {
content: t("listings.availableUnits"),
styleType: AppearanceStyleType.success,
isPillType: true,
}
} else if (listing.reviewOrderType === ListingReviewOrder.waitlist) {
return {
content: t("listings.waitlist.open"),
styleType: AppearanceStyleType.primary,
isPillType: true,
}
}
return null
}
Expand All @@ -139,7 +146,7 @@ export const getListings = (listings) => {
}}
tableProps={{
headers: unitSummariesHeaders,
data: getListingTableData(listing.unitsSummarized, listing.listingAvailability),
data: getListingTableData(listing.unitsSummarized, listing.reviewOrderType),
responsiveCollapse: true,
cellClassName: "px-5 py-3",
}}
Expand Down
2 changes: 1 addition & 1 deletion sites/public/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function BloomApp({ Component, router, pageProps }: AppProps) {
if (process.env.NODE_ENV !== "production") {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const axe = require("@axe-core/react")
void axe(React, ReactDOM, 1000)
void axe(React, ReactDOM, 5000)
}
}, [])

Expand Down
4 changes: 2 additions & 2 deletions sites/public/pages/account/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const Edit = () => {
</AlertBox>
)}
<div className="form-card__group border-b">
<label className="field-label--caps" htmlFor="firstName">
<label className="text__caps-spaced" htmlFor="firstName">
{t("application.name.yourName")}
</label>

Expand Down Expand Up @@ -269,7 +269,7 @@ const Edit = () => {
)}
<div className="form-card__group border-b">
<fieldset>
<legend className="field-label--caps">
<legend className="text__caps-spaced">
{t("authentication.createAccount.password")}
</legend>
<p className="field-note mb-4">{t("account.settings.passwordRemember")}</p>
Expand Down
2 changes: 1 addition & 1 deletion sites/public/pages/additional-resources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const AdditionalResources = () => {
overrides: {
h4: {
component: ({ children, ...props }) => (
<h4 {...props} className="text-caps-underline">
<h4 {...props} className={"text__caps_underline"}>
{children}
</h4>
),
Expand Down
10 changes: 5 additions & 5 deletions sites/public/pages/applications/contact/address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ const ApplicationAddress = () => {
<div className="form-card__group border-b">
<fieldset>
<legend
className={`field-label--caps ${errors.applicant?.address ? "text-alert" : ""}`}
className={`text__caps-spaced ${errors.applicant?.address ? "text-alert" : ""}`}
>
{t("application.contact.address")}
</legend>
Expand Down Expand Up @@ -378,7 +378,7 @@ const ApplicationAddress = () => {
{clientLoaded && (sendMailToMailingAddress || application.sendMailToMailingAddress) && (
<div className="form-card__group border-b">
<fieldset>
<legend className="field-label--caps">
<legend className="text__caps-spaced">
{t("application.contact.mailingAddress")}
</legend>

Expand Down Expand Up @@ -456,7 +456,7 @@ const ApplicationAddress = () => {
<div className="form-card__group border-b">
<fieldset>
<legend
className={`field-label--caps ${errors?.contactPreferences ? "text-alert" : ""}`}
className={`text__caps-spaced ${errors?.contactPreferences ? "text-alert" : ""}`}
>
{t("application.contact.contactPreference")}
</legend>
Expand All @@ -476,7 +476,7 @@ const ApplicationAddress = () => {
<div className="form-card__group">
<fieldset>
<legend
className={`field-label--caps ${
className={`text__caps-spaced ${
errors?.applicant?.workInRegion ? "text-alert" : ""
}`}
>
Expand Down Expand Up @@ -529,7 +529,7 @@ const ApplicationAddress = () => {
(!workInRegion && application.applicant.workInRegion == "yes")) && (
<div className="form-card__group mx-0 px-0 mt-2">
<fieldset>
<legend className="field-label--caps">
<legend className="text__caps-spaced">
{t("application.contact.workAddress")}
</legend>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default () => {
onSubmit={handleSubmit(onSubmit, onError)}
>
<div className="form-card__group border-b">
<label className="field-label--caps" htmlFor="phoneNumber">
<label className="text__caps-spaced" htmlFor="phoneNumber">
{t("application.alternateContact.contact.phoneNumberFormLabel")}
</label>
<PhoneField
Expand All @@ -120,7 +120,7 @@ export default () => {
/>
</div>
<div className="form-card__group border-b">
<h3 className="field-label--caps">
<h3 className="text__caps-spaced">
{t("application.alternateContact.contact.emailAddressFormLabel")}
</h3>
<Field
Expand All @@ -140,7 +140,7 @@ export default () => {
</div>
<div className="form-card__group">
<fieldset>
<legend className="field-label--caps">
<legend className="text__caps-spaced">
{t("application.alternateContact.contact.contactMailingAddressLabel")}
</legend>
<p className="field-note mb-4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default () => {
<Form id="applications-contact-alternate-name" onSubmit={handleSubmit(onSubmit, onError)}>
<div className="form-card__group">
<fieldset>
<legend className="field-label--caps">
<legend className="text__caps-spaced">
{t("application.alternateContact.name.alternateContactFormLabel")}
</legend>
<Field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const ApplicationAlternateContactType = () => {
<Form id="applications-contact-alternate-type" onSubmit={handleSubmit(onSubmit, onError)}>
<div className="form-card__group">
<fieldset>
<legend className={`field-label--caps ${errors?.type ? "text-alert" : ""}`}>
<legend className={`text__caps-spaced ${errors?.type ? "text-alert" : ""}`}>
{t("application.alternateContact.type.label")}
</legend>
<p className="field-note mb-4">{t("t.pleaseSelectOne")}</p>
Expand Down
4 changes: 2 additions & 2 deletions sites/public/pages/applications/contact/name.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const ApplicationName = () => {
<div className="form-card__group border-b" data-test-id={"application-initial-page"}>
<fieldset>
<legend
className={`field-label--caps ${errors.applicant?.firstName ? "text-alert" : ""}`}
className={`text__caps-spaced ${errors.applicant?.firstName ? "text-alert" : ""}`}
>
{t("application.name.yourName")}
<LockIcon />
Expand Down Expand Up @@ -175,7 +175,7 @@ const ApplicationName = () => {

<div className="form-card__group">
<legend
className={`field-label--caps ${errors.applicant?.emailAddress ? "text-alert" : ""}`}
className={`text__caps-spaced ${errors.applicant?.emailAddress ? "text-alert" : ""}`}
>
{t("application.name.yourEmailAddress")}
<LockIcon />
Expand Down
12 changes: 6 additions & 6 deletions sites/public/pages/applications/household/member.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const ApplicationMember = () => {
<Form onSubmit={handleSubmit(onSubmit, onError)}>
<div className="form-card__group border-b">
<fieldset>
<legend className="field-label--caps">
<legend className="text__caps-spaced">
{t("application.household.member.name")}
</legend>

Expand Down Expand Up @@ -211,7 +211,7 @@ const ApplicationMember = () => {

<div className="form-card__group border-b">
<fieldset>
<legend className="field-label--caps">
<legend className="text__caps-spaced">
{t("application.household.member.haveSameAddress")}
</legend>
<FieldGroup
Expand All @@ -230,7 +230,7 @@ const ApplicationMember = () => {

{(sameAddress == "no" || (!sameAddress && member.sameAddress == "no")) && (
<fieldset className="mt-8">
<legend className="field-label--caps">
<legend className="text__caps-spaced">
{t("application.contact.address")}
</legend>

Expand Down Expand Up @@ -306,7 +306,7 @@ const ApplicationMember = () => {

<div className="form-card__group border-b">
<fieldset>
<legend className="field-label--caps">
<legend className="text__caps-spaced">
{t("application.household.member.workInRegion", {
county: listing?.countyCode,
})}
Expand All @@ -328,7 +328,7 @@ const ApplicationMember = () => {

{(workInRegion == "yes" || (!workInRegion && member.workInRegion == "yes")) && (
<fieldset className="mt-8">
<legend className="field-label--caps">
<legend className="text__caps-spaced">
{t("application.contact.address")}
</legend>

Expand Down Expand Up @@ -402,7 +402,7 @@ const ApplicationMember = () => {

<div className="form-card__group">
<div className={"field " + (errors.relationship ? "error" : "")}>
<label className="field-label--caps" htmlFor="relationship">
<label className="text__caps-spaced" htmlFor="relationship">
{t("application.household.member.whatIsTheirRelationship")}
</label>
<div className="control">
Expand Down
6 changes: 3 additions & 3 deletions sites/public/pages/applications/review/demographics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const ApplicationDemographics = () => {
<Form onSubmit={handleSubmit(onSubmit)}>
<div className="form-card__group border-b">
<fieldset>
<legend className="field-label--caps">
<legend className="text__caps-spaced">
{t("application.review.demographics.raceLabel")}
</legend>
<FieldGroup
Expand Down Expand Up @@ -140,7 +140,7 @@ const ApplicationDemographics = () => {
label={t("application.review.demographics.ethnicityLabel")}
placeholder={t("t.selectOne")}
register={register}
labelClassName="field-label--caps mb-3"
labelClassName="text__caps-spaced mb-3"
controlClassName="control"
options={ethnicityKeys}
keyPrefix="application.review.demographics.ethnicityOptions"
Expand All @@ -151,7 +151,7 @@ const ApplicationDemographics = () => {

<div className="form-card__group is-borderless">
<fieldset>
<legend className="field-label--caps">
<legend className="text__caps-spaced">
{t("application.review.demographics.howDidYouHearLabel")}
</legend>
<FieldGroup
Expand Down
2 changes: 1 addition & 1 deletion sites/public/pages/applications/start/choose-language.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const ApplicationChooseLanguage = () => {
{listing?.applicationConfig.languages.length > 1 && (
<>
<div className="w-full">
<Heading style="sidebarHeader">
<Heading styleType="underlineWeighted">
{t("application.chooseLanguage.chooseYourLanguage")}
</Heading>
</div>
Expand Down
2 changes: 1 addition & 1 deletion sites/public/pages/create-account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default () => {

<Form id="create-account" onSubmit={handleSubmit(onSubmit)}>
<div className="form-card__group border-b">
<label className="field-label--caps" htmlFor="firstName">
<label className="text__caps-spaced" htmlFor="firstName">
{t("application.name.yourName")}
</label>

Expand Down
2 changes: 1 addition & 1 deletion sites/public/src/ApplicationMultiselectQuestionStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const ApplicationMultiselectQuestionStep = ({
<div className={`form-card__group`}>
{questionSetInputType === "checkbox" ? (
<fieldset>
<legend className="field-label--caps mb-4">{question?.text}</legend>
<legend className="text__caps-spaced mb-4">{question?.text}</legend>
<p className="field-note mb-8">{question?.description}</p>

{allOptions.map((option) => {
Expand Down
4 changes: 2 additions & 2 deletions sites/public/src/ListingView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,10 @@ export const ListingView = (props: ListingProps) => {
description={listing.name}
/>
<div className="py-3 mx-3 flex flex-col items-center md:items-start text-center md:text-left">
<Heading priority={1} style={"cardHeader"} className={"text-black"}>
<Heading priority={1} styleType={"largePrimary"} className={"text-black"}>
{listing.name}
</Heading>
<Heading priority={2} style={"cardSubheader"} className={"mb-1"}>
<Heading priority={2} styleType={"mediumNormal"} className={"mb-1"}>
{oneLineAddress}
</Heading>
<p className="text-gray-750 text-base mb-1">{listing.developer}</p>
Expand Down
Loading

0 comments on commit 77965ed

Please sign in to comment.