<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shelcia David on Medium]]></title>
        <description><![CDATA[Stories by Shelcia David on Medium]]></description>
        <link>https://medium.com/@shelcia?source=rss-dd838a6f81c8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3O41q1MGzUaM6FqcGNn0xA.png</url>
            <title>Stories by Shelcia David on Medium</title>
            <link>https://medium.com/@shelcia?source=rss-dd838a6f81c8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:02:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shelcia/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I Built the Frontend First. Here’s How I Made Sure the Backend Team Didn’t Break It.]]></title>
            <link>https://medium.com/techtrends-digest/i-built-the-frontend-first-heres-how-i-made-sure-the-backend-team-didn-t-break-it-8f2b5f2eaa42?source=rss-dd838a6f81c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f2b5f2eaa42</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[pact]]></category>
            <dc:creator><![CDATA[Shelcia David]]></dc:creator>
            <pubDate>Wed, 08 Apr 2026 06:51:47 GMT</pubDate>
            <atom:updated>2026-04-08T06:51:47.698Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a6L0t6oJGStQps-6oBVVfg.png" /></figure><p>Not long ago I was working on a complex project where the frontend was ready well before the backend APIs were. We had designs, we had components, we had mock data. What we didn’t have was any guarantee that when the real API finally showed up, it would look anything like what we’d built against.</p><p><em>And that’s a nerve-wracking place to be.</em></p><p>The backend team was working in parallel. They were moving fast. Field names changed. Response shapes shifted. And every time something changed on their end, someone had to remember to tell us. Sometimes they did. Sometimes we found out when things broke in staging.</p><p>That’s when I started looking into contract testing, and specifically into Pact.</p><h3>What even is a contract?</h3><p>When your frontend calls an API, there’s an implicit agreement in place. Your frontend expects certain fields in a certain shape. The backend promises to return them. But that agreement usually only lives in a Confluence page, a Slack thread, or someone’s memory.</p><p>A contract makes that agreement explicit and testable. If either side breaks it, you find out immediately instead of in staging.</p><h3>Why not just write end-to-end tests?</h3><p>That was my first instinct too. But E2E tests need a real backend running, real data, a real environment. They’re slow and brittle and they completely fall apart when your backend isn’t ready yet, which was exactly my situation.</p><p>Contract tests are different. They run against a local mock server that Pact spins up for you. No backend needed. No shared environment. Just fast, reliable tests that tell you whether the agreement is still holding.</p><blockquote><em>You’re not testing behavior. You’re testing the agreement itself. Does the backend still return what the frontend expects?</em></blockquote><h3>How Pact works</h3><p>Pact follows a consumer-driven approach, which suited us perfectly since we were building the frontend first.</p><ol><li><strong>The consumer (frontend)</strong> writes tests describing exactly what it needs from the API</li><li><strong>Those tests generate a contract JSON file</strong>, the “pact”</li><li><strong>The provider (backend)</strong> runs that contract against its real implementation to verify it can fulfill it</li><li><strong>CI keeps both sides honest</strong>, catching any drift before it hits production</li></ol><p>The contract file becomes the source of truth. It lives in git, it’s versioned, and it travels between teams.</p><h3>Let’s set it up from scratch</h3><p>Here’s the full walk through. We’re using Pact v15, Mocha as the test runner, and Chai for assertions. All TypeScript.</p><p>The folder structure we’re building:</p><pre>your-ui-project/<br>├── pact/<br>│   ├── .mocharc.json<br>│   ├── setup-chai.ts<br>│   ├── tsconfig.json<br>│   ├── contracts/          &lt;- generated contract JSONs live here  <br>│   └── src/<br>│       └── consumer/<br>│           └── your-feature/<br>│               ├── fixtures<br>│               │   └── create.ts<br>│               └── create.spec.ts<br>└── package.json</pre><h3>Step 1: Install dependencies</h3><p>Add these to your UI project’s package.json:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2528135%252C181%252C226%252C1%2529%26t%3Dcobalt%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25257B%25250A%252520%252520%252522devDependencies%252522%25253A%252520%25257B%25250A%252520%252520%252520%252520%252522%252540pact-foundation%25252Fpact%252522%25253A%252520%252522%25255E15.0.1%252522%25252C%25250A%252520%252520%252520%252520%252522%252540pact-foundation%25252Fpact-cli%252522%25253A%252520%252522%25255E15.0.1%252522%25252C%25250A%252520%252520%252520%252520%252522%252540types%25252Fchai%252522%25253A%252520%252522%25255E5.2.2%252522%25252C%25250A%252520%252520%252520%252520%252522%252540types%25252Fchai-as-promised%252522%25253A%252520%252522%25255E8.0.2%252522%25252C%25250A%252520%252520%252520%252520%252522%252540types%25252Fmocha%252522%25253A%252520%252522%25255E10.0.10%252522%25252C%25250A%252520%252520%252520%252520%252522chai%252522%25253A%252520%252522%25255E5.2.0%252522%25252C%25250A%252520%252520%252520%252520%252522chai-as-promised%252522%25253A%252520%252522%25255E8.0.1%252522%25252C%25250A%252520%252520%252520%252520%252522mocha%252522%25253A%252520%252522%25255E11.2.2%252522%25252C%25250A%252520%252520%252520%252520%252522tsx%252522%25253A%252520%252522%25255E4.19.3%252522%25252C%25250A%252520%252520%252520%252520%252522typescript%252522%25253A%252520%252522%25255E5.5.3%252522%25250A%252520%252520%25257D%25252C%25250A%252520%252520%252522scripts%252522%25253A%252520%25257B%25250A%252520%252520%252520%252520%252522test%25253Apact%25253Aconsumer%252522%25253A%252520%252522cd%252520pact%252520%252526%252526%252520mocha%252520%25255C%252522.%25252Fsrc%25252Fconsumer%25252F%252A%252A%25252F%252A.spec.ts%25255C%252522%252522%25250A%252520%252520%25257D%25250A%25257D&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%252528135%25252C181%25252C226%25252C1%252529%26t%3Dcobalt%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%2525257B%2525250A%25252520%25252520%25252522devDependencies%25252522%2525253A%25252520%2525257B%2525250A%25252520%25252520%25252520%25252520%25252522%25252540pact-foundation%2525252Fpact%25252522%2525253A%25252520%25252522%2525255E15.0.1%25252522%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522%25252540pact-foundation%2525252Fpact-cli%25252522%2525253A%25252520%25252522%2525255E15.0.1%25252522%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522%25252540types%2525252Fchai%25252522%2525253A%25252520%25252522%2525255E5.2.2%25252522%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522%25252540types%2525252Fchai-as-promised%25252522%2525253A%25252520%25252522%2525255E8.0.2%25252522%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522%25252540types%2525252Fmocha%25252522%2525253A%25252520%25252522%2525255E10.0.10%25252522%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522chai%25252522%2525253A%25252520%25252522%2525255E5.2.0%25252522%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522chai-as-promised%25252522%2525253A%25252520%25252522%2525255E8.0.1%25252522%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522mocha%25252522%2525253A%25252520%25252522%2525255E11.2.2%25252522%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522tsx%25252522%2525253A%25252520%25252522%2525255E4.19.3%25252522%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522typescript%25252522%2525253A%25252520%25252522%2525255E5.5.3%25252522%2525250A%25252520%25252520%2525257D%2525252C%2525250A%25252520%25252520%25252522scripts%25252522%2525253A%25252520%2525257B%2525250A%25252520%25252520%25252520%25252520%25252522test%2525253Apact%2525253Aconsumer%25252522%2525253A%25252520%25252522cd%25252520pact%25252520%25252526%25252526%25252520mocha%25252520%2525255C%25252522.%2525252Fsrc%2525252Fconsumer%2525252F%25252A%25252A%2525252F%25252A.spec.ts%2525255C%25252522%25252522%2525250A%25252520%25252520%2525257D%2525250A%2525257D&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5420ec4a9a8d34962807ea5569332a7c/href">https://medium.com/media/5420ec4a9a8d34962807ea5569332a7c/href</a></iframe><h3>Step 2: Configure Mocha</h3><p>Create pact/.mocharc.json. This tells Mocha how to pick up and run your TypeScript test files:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2528135%252C181%252C226%252C1%2529%26t%3Dcobalt%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25257B%25250A%252520%252520%252522%252524schema%252522%25253A%252520%252522https%25253A%25252F%25252Fjson.schemastore.org%25252Fmocharc%252522%25252C%25250A%252520%252520%252522color%252522%25253A%252520true%25252C%25250A%252520%252520%252522exit%252522%25253A%252520true%25252C%25250A%252520%252520%252522file%252522%25253A%252520%252522.%25252Fsetup-chai.ts%252522%25252C%25250A%252520%252520%252522node-option%252522%25253A%252520%25255B%252522import%25253Dtsx%252522%25255D%25252C%25250A%252520%252520%252522extension%252522%25253A%252520%25255B%252522ts%252522%25255D%25252C%25250A%252520%252520%252522recursive%252522%25253A%252520true%25252C%25250A%252520%252520%252522retries%252522%25253A%2525201%25252C%25250A%252520%252520%252522timeout%252522%25253A%2525205000%25250A%25257D&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%252528135%25252C181%25252C226%25252C1%252529%26t%3Dcobalt%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%2525257B%2525250A%25252520%25252520%25252522%25252524schema%25252522%2525253A%25252520%25252522https%2525253A%2525252F%2525252Fjson.schemastore.org%2525252Fmocharc%25252522%2525252C%2525250A%25252520%25252520%25252522color%25252522%2525253A%25252520true%2525252C%2525250A%25252520%25252520%25252522exit%25252522%2525253A%25252520true%2525252C%2525250A%25252520%25252520%25252522file%25252522%2525253A%25252520%25252522.%2525252Fsetup-chai.ts%25252522%2525252C%2525250A%25252520%25252520%25252522node-option%25252522%2525253A%25252520%2525255B%25252522import%2525253Dtsx%25252522%2525255D%2525252C%2525250A%25252520%25252520%25252522extension%25252522%2525253A%25252520%2525255B%25252522ts%25252522%2525255D%2525252C%2525250A%25252520%25252520%25252522recursive%25252522%2525253A%25252520true%2525252C%2525250A%25252520%25252520%25252522retries%25252522%2525253A%252525201%2525252C%2525250A%25252520%25252520%25252522timeout%25252522%2525253A%252525205000%2525250A%2525257D&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/52d596b40874edab6995ffd54fa0f0cd/href">https://medium.com/media/52d596b40874edab6995ffd54fa0f0cd/href</a></iframe><h3>Step 3: Set up Chai</h3><p>Create pact/setup-chai.ts. This runs before any test and registers the chai-as-promised plugin so you can write async assertions without it feeling painful:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2528135%252C181%252C226%252C1%2529%26t%3Dcobalt%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dimport%252520%252A%252520as%252520chai%252520from%252520%2527chai%2527%25250Aimport%252520chaiAsPromised%252520from%252520%2527chai-as-promised%2527%25250A%25250Achai.use%2528chaiAsPromised%2529&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%252528135%25252C181%25252C226%25252C1%252529%26t%3Dcobalt%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dimport%25252520%25252A%25252520as%25252520chai%25252520from%25252520%252527chai%252527%2525250Aimport%25252520chaiAsPromised%25252520from%25252520%252527chai-as-promised%252527%2525250A%2525250Achai.use%252528chaiAsPromised%252529&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/74cf25bb9581e11383fb31f9a841814f/href">https://medium.com/media/74cf25bb9581e11383fb31f9a841814f/href</a></iframe><h3>Step 4: Create your constants file</h3><p>Create pact/src/constants.ts. Consumer and provider names, shared headers, and where contracts get written. Keeping this centralized saves you a lot of repetition later.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2528135%252C181%252C226%252C1%2529%26t%3Dcobalt%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dimport%252520path%252520from%252520%2527path%2527%25250Aimport%252520%25257B%252520string%252520%25257D%252520from%252520%2527%252540pact-foundation%25252Fpact%25252Fsrc%25252Fv3%25252Fmatchers%2527%25250Aexport%252520const%252520ISO8601_DATETIME_FORMAT%252520%25253D%252520%2527YYYY-MM-DDTHH%25253Amm%25253Ass.sssZ%2527%25250Aexport%252520enum%252520Provider%252520%25257B%25250A%252520%252520MyBackend%252520%25253D%252520%2527my-backend%2527%25252C%25250A%25257D%25250Aexport%252520enum%252520Consumer%252520%25257B%25250A%252520%252520MyApp%252520%25253D%252520%2527my-app%2527%25252C%25250A%25257D%25250Aexport%252520const%252520AUTHORIZATION_HEADER%252520%25253D%252520%2527Authorization%2527%25250A%25252F%25252F%252520Tells%252520Pact%252520the%252520header%252520must%252520exist%252520as%252520a%252520string%25252C%25250A%25252F%25252F%252520without%252520caring%252520about%252520the%252520actual%252520token%252520value%25250Aexport%252520const%252520DEFAULT_REQUEST_HEADERS%252520%25253D%252520%25257B%25250A%252520%252520%25255BAUTHORIZATION_HEADER%25255D%25253A%252520string%2528%2529%25252C%25250A%252520%252520%2527Content-Type%2527%25253A%252520%2527application%25252Fjson%2527%25252C%25250A%25257D%25250Aexport%252520const%252520CONTRACTS_DIR%252520%25253D%252520path.resolve%2528process.cwd%2528%2529%25252C%252520%2527contracts%2527%2529&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%252528135%25252C181%25252C226%25252C1%252529%26t%3Dcobalt%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dimport%25252520path%25252520from%25252520%252527path%252527%2525250Aimport%25252520%2525257B%25252520string%25252520%2525257D%25252520from%25252520%252527%25252540pact-foundation%2525252Fpact%2525252Fsrc%2525252Fv3%2525252Fmatchers%252527%2525250Aexport%25252520const%25252520ISO8601_DATETIME_FORMAT%25252520%2525253D%25252520%252527YYYY-MM-DDTHH%2525253Amm%2525253Ass.sssZ%252527%2525250Aexport%25252520enum%25252520Provider%25252520%2525257B%2525250A%25252520%25252520MyBackend%25252520%2525253D%25252520%252527my-backend%252527%2525252C%2525250A%2525257D%2525250Aexport%25252520enum%25252520Consumer%25252520%2525257B%2525250A%25252520%25252520MyApp%25252520%2525253D%25252520%252527my-app%252527%2525252C%2525250A%2525257D%2525250Aexport%25252520const%25252520AUTHORIZATION_HEADER%25252520%2525253D%25252520%252527Authorization%252527%2525250A%2525252F%2525252F%25252520Tells%25252520Pact%25252520the%25252520header%25252520must%25252520exist%25252520as%25252520a%25252520string%2525252C%2525250A%2525252F%2525252F%25252520without%25252520caring%25252520about%25252520the%25252520actual%25252520token%25252520value%2525250Aexport%25252520const%25252520DEFAULT_REQUEST_HEADERS%25252520%2525253D%25252520%2525257B%2525250A%25252520%25252520%2525255BAUTHORIZATION_HEADER%2525255D%2525253A%25252520string%252528%252529%2525252C%2525250A%25252520%25252520%252527Content-Type%252527%2525253A%25252520%252527application%2525252Fjson%252527%2525252C%2525250A%2525257D%2525250Aexport%25252520const%25252520CONTRACTS_DIR%25252520%2525253D%25252520path.resolve%252528process.cwd%252528%252529%2525252C%25252520%252527contracts%252527%252529&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e7f59821be46b9b8824aa32b94968262/href">https://medium.com/media/e7f59821be46b9b8824aa32b94968262/href</a></iframe><p>One thing I appreciated here: using string() for the auth header means Pact checks that the header <em>exists</em> without caring what the actual token value is. You&#39;re not hard coding real credentials into your tests.</p><h3>Step 5: Add helper utilities</h3><p>Create pact/src/helpers.ts. The consumerName() helper is small but it keeps your contract filenames descriptive and consistent as the number of endpoints grows.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2528135%252C181%252C226%252C1%2529%26t%3Dcobalt%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dimport%252520path%252520from%252520%2527path%2527%25250Aimport%252520%25257B%252520CONTRACTS_DIR%252520%25257D%252520from%252520%2527.%25252Fconstants%2527%25250A%25252F%25252F%252520e.g.%252520consumerName%2528%2527my-app%2527%25252C%252520%2527user%2527%25252C%252520%2527create%2527%2529%252520returns%252520%252522my-app-user-create%252522%25250Aexport%252520const%252520consumerName%252520%25253D%252520%2528%25250A%252520%252520consumer%25253A%252520string%25252C%25250A%252520%252520feature%25253A%252520string%25252C%25250A%252520%252520scope%25253A%252520string%25250A%2529%252520%25253D%25253E%252520%252560%252524%25257Bconsumer%25257D-%252524%25257Bfeature%25257D-%252524%25257Bscope%25257D%252560%25250Aexport%252520const%252520getPactFile%252520%25253D%252520%2528consumer%25253A%252520string%25252C%252520provider%25253A%252520string%2529%25253A%252520string%252520%25253D%25253E%25250A%252520%252520path.join%2528CONTRACTS_DIR%25252C%252520%252560%252524%25257Bconsumer%25257D-%252524%25257Bprovider%25257D.json%252560%2529&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%252528135%25252C181%25252C226%25252C1%252529%26t%3Dcobalt%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dimport%25252520path%25252520from%25252520%252527path%252527%2525250Aimport%25252520%2525257B%25252520CONTRACTS_DIR%25252520%2525257D%25252520from%25252520%252527.%2525252Fconstants%252527%2525250A%2525252F%2525252F%25252520e.g.%25252520consumerName%252528%252527my-app%252527%2525252C%25252520%252527user%252527%2525252C%25252520%252527create%252527%252529%25252520returns%25252520%25252522my-app-user-create%25252522%2525250Aexport%25252520const%25252520consumerName%25252520%2525253D%25252520%252528%2525250A%25252520%25252520consumer%2525253A%25252520string%2525252C%2525250A%25252520%25252520feature%2525253A%25252520string%2525252C%2525250A%25252520%25252520scope%2525253A%25252520string%2525250A%252529%25252520%2525253D%2525253E%25252520%25252560%25252524%2525257Bconsumer%2525257D-%25252524%2525257Bfeature%2525257D-%25252524%2525257Bscope%2525257D%25252560%2525250Aexport%25252520const%25252520getPactFile%25252520%2525253D%25252520%252528consumer%2525253A%25252520string%2525252C%25252520provider%2525253A%25252520string%252529%2525253A%25252520string%25252520%2525253D%2525253E%2525250A%25252520%25252520path.join%252528CONTRACTS_DIR%2525252C%25252520%25252560%25252524%2525257Bconsumer%2525257D-%25252524%2525257Bprovider%2525257D.json%25252560%252529&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/647a6e8c86391b08f26314f453e6d680/href">https://medium.com/media/647a6e8c86391b08f26314f453e6d680/href</a></iframe><h3>Step 6: Define your TypeScript types</h3><p>Create pact/src/types.ts. Type everything. It will catch mismatches between your fixtures and your actual API shapes before Pact even runs.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2528135%252C181%252C226%252C1%2529%26t%3Dcobalt%26wt%3Dnone%26l%3Dapplication%252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dexport%252520interface%252520GraphQLResponse%25253CT%25253E%252520%25257B%25250A%252520%252520data%25253A%252520T%25250A%25257D%25250Aexport%252520interface%252520CreateUserInput%252520%25257B%25250A%252520%252520name%25253A%252520string%25250A%25257D%25250Aexport%252520interface%252520CreateUserData%252520%25257B%25250A%252520%252520createUser%25253A%252520%25257B%25250A%252520%252520%252520%252520uuid%25253A%252520string%25250A%252520%252520%252520%252520name%25253A%252520string%25250A%252520%252520%252520%252520createdAt%25253A%252520string%25250A%252520%252520%252520%252520updatedAt%25253A%252520string%25250A%252520%252520%25257D%25250A%25257D&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%252528135%25252C181%25252C226%25252C1%252529%26t%3Dcobalt%26wt%3Dnone%26l%3Dapplication%25252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dexport%25252520interface%25252520GraphQLResponse%2525253CT%2525253E%25252520%2525257B%2525250A%25252520%25252520data%2525253A%25252520T%2525250A%2525257D%2525250Aexport%25252520interface%25252520CreateUserInput%25252520%2525257B%2525250A%25252520%25252520name%2525253A%25252520string%2525250A%2525257D%2525250Aexport%25252520interface%25252520CreateUserData%25252520%2525257B%2525250A%25252520%25252520createUser%2525253A%25252520%2525257B%2525250A%25252520%25252520%25252520%25252520uuid%2525253A%25252520string%2525250A%25252520%25252520%25252520%25252520name%2525253A%25252520string%2525250A%25252520%25252520%25252520%25252520createdAt%2525253A%25252520string%2525250A%25252520%25252520%25252520%25252520updatedAt%2525253A%25252520string%2525250A%25252520%25252520%2525257D%2525250A%2525257D&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d5134dd5ee750afacca8152adeea102f/href">https://medium.com/media/d5134dd5ee750afacca8152adeea102f/href</a></iframe><h3>Step 7: Write your fixtures</h3><p>This is where most of the Pact-specific thinking happens. Fixtures define your test data and your matchers. Matchers are the key idea in Pact: instead of saying “the name field must equal John Doe”, you say “the name field must be a string”. The contract stays valid even as test data changes.</p><pre>import { like, uuid, datetime, string } from &#39;@pact-foundation/pact/src/v3/matchers&#39;<br>import { ISO8601_DATETIME_FORMAT } from &#39;../../constants&#39;<br>import { CreateUserInput } from &#39;../../types&#39;<br><br>export const CREATE_USER_MUTATION = `<br>  mutation CreateUser($input: CreateUserInput!) {<br>    createUser(input: $input) {<br>      uuid<br>      name<br>      createdAt<br>      updatedAt<br>      __typename<br>    }<br>  }<br>`<br>export const createUserInput: CreateUserInput = { name: &#39;John Doe&#39; }<br>export const createUserRequestBody = {<br>  operationName: &#39;CreateUser&#39;,<br>  query: CREATE_USER_MUTATION,<br>  variables: { input: createUserInput },<br>}<br>export const createUserRequestBodyMatcher = {<br>  operationName: like(&#39;CreateUser&#39;),<br>  query: like(CREATE_USER_MUTATION),<br>  variables: { input: like({ name: &#39;John Doe&#39; }) },<br>}<br>export const createUserSuccessResponseMatcher = {<br>  data: {<br>    createUser: {<br>      uuid: uuid(&#39;082b6218-db3d-4090-85a4-6c1d4178fc6d&#39;),<br>      name: string(&#39;John Doe&#39;),<br>      createdAt: datetime(ISO8601_DATETIME_FORMAT, &#39;2025-05-20T18:25:31.02656Z&#39;),<br>      updatedAt: datetime(ISO8601_DATETIME_FORMAT, &#39;2025-05-20T18:25:31.02656Z&#39;),<br>    },<br>  },<br>}</pre><p>The three matchers I reached for most often on this project:</p><ul><li>like(value) checks type and structure, not the exact value</li><li>uuid(example) validates the field is a properly formatted UUID</li><li>datetime(format, example) validates the field matches an ISO 8601 timestamp</li></ul><blockquote>Note: if you’re using Apollo, make sure __typename is in your mutation. Apollo adds it to every request automatically, and Pact will flag a mismatch if it&#39;s missing from your fixture.</blockquote><h3>Step 8: Write the test</h3><p>Now the spec file. Pact spins up a mock server, your real API client calls it, and if everything matches, the contract JSON is written to disk.</p><pre>import { PactV3 } from &#39;@pact-foundation/pact&#39;<br>import { expect } from &#39;chai&#39;<br>import { Consumer, Provider, CONTRACTS_DIR, DEFAULT_REQUEST_HEADERS } from &#39;../../constants&#39;<br>import { consumerName } from &#39;../../helpers&#39;<br>import {<br>  createUserRequestBody,<br>  createUserRequestBodyMatcher,<br>  createUserSuccessResponseMatcher,<br>} from &#39;./fixtures/create&#39;<br><br>const provider = new PactV3({<br>  dir: CONTRACTS_DIR,<br>  consumer: consumerName(Consumer.MyApp, &#39;user&#39;, &#39;create&#39;),<br>  provider: Provider.MyBackend,<br>})<br>const createUser = async (baseUrl: string, token: string) =&gt; {<br>  const response = await fetch(`${baseUrl}/graphql`, {<br>    method: &#39;POST&#39;,<br>    headers: {<br>      Authorization: `Bearer ${token}`,<br>      &#39;Content-Type&#39;: &#39;application/json&#39;,<br>    },<br>    body: JSON.stringify(createUserRequestBody),<br>  })<br>  return response.json()<br>}<br>describe(&#39;My App - User - Create&#39;, () =&gt; {<br>  it(&#39;returns 200 and user data when creation succeeds&#39;, async () =&gt; {<br>    provider<br>      .uponReceiving(&#39;a GraphQL request to create a user&#39;)<br>      .withRequest({<br>        method: &#39;POST&#39;,<br>        path: &#39;/graphql&#39;,<br>        headers: DEFAULT_REQUEST_HEADERS,<br>        body: createUserRequestBodyMatcher,<br>      })<br>      .willRespondWith({<br>        status: 200,<br>        headers: { &#39;Content-Type&#39;: &#39;application/json&#39; },<br>        body: createUserSuccessResponseMatcher,<br>      })<br>    return provider.executeTest(async (mockServer) =&gt; {<br>      const result = await createUser(mockServer.url, &#39;test-token&#39;)<br>      expect(result).to.have.property(&#39;data&#39;)<br>      expect(result.data).to.have.property(&#39;createUser&#39;)<br>      expect(result.data.createUser).to.have.property(&#39;uuid&#39;)<br>      expect(result.data.createUser).to.have.property(&#39;name&#39;)<br>    })<br>  })<br>})</pre><p>executeTest() handles everything. It starts the mock server, passes you its URL, runs your fetch call against it, checks the request matched what you defined, and writes the contract JSON if it all lines up.</p><h3>Step 9: Run your tests</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2528135%252C181%252C226%252C1%2529%26t%3Dcobalt%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%252523%252520Install%252520deps%252520if%252520you%252520haven%2527t%252520yet%25250Ayarn%252520install%25250A%252523%252520Run%252520from%252520your%252520project%252520root%25250Ayarn%252520test%25253Apact%25253Aconsumer%25250A&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%252528135%25252C181%25252C226%25252C1%252529%26t%3Dcobalt%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25252523%25252520Install%25252520deps%25252520if%25252520you%25252520haven%252527t%25252520yet%2525250Ayarn%25252520install%2525250A%25252523%25252520Run%25252520from%25252520your%25252520project%25252520root%2525250Ayarn%25252520test%2525253Apact%2525253Aconsumer%2525250A&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/821ede5e4df38f9c97b97d3a39b5d711/href">https://medium.com/media/821ede5e4df38f9c97b97d3a39b5d711/href</a></iframe><p>If it passes, you’ll find a contract file at pact/contracts/my-app-user-create-my-backend.json. That file is what you share with the backend team. They run it against their real implementation to verify compatibility, no shared environment needed, no waiting for a deploy.</p><h3>The last piece: CI</h3><p>Commit your contract JSON files to git and add a CI step that regenerates them on every run and diffs against what’s committed. If they don’t match, CI fails.</p><p>That means if someone on the backend team changes a field name, CI catches it before it ever reaches staging. And if you intentionally update the contract, you review the diff, commit it, and everyone knows the agreement changed.</p><p>Here’s what that looks like in GitLab CI:</p><pre>.ui-pact-consumer:<br>  extends: .ui-base<br>  stage: Test<br>  script:<br>    - cd ui/$PROJECT<br>    - |<br>      if grep -q &quot;test:pact:consumer&quot; package.json; then<br>        yarn test:pact:consumer<br>      else<br>        echo &quot;Pact consumer tests not configured for $PROJECT&quot;<br>        exit 0<br>      fi<br>  needs:<br>    - job: mr:run-pipeline<br>      optional: true<br>  rules:<br>    - if: &#39;$CI_PIPELINE_SOURCE == &quot;merge_request_event&quot;&#39;<br>      changes:<br>        - ui/${PROJECT}/pact/**/*<br>        - ui/${PROJECT}/src/graphql/**/*<br>        - ui/${PROJECT}/package.json<br>        - ci/base/*<br>        - ci/test/${PROJECT}.gitlab-ci.yml<br><br>pact-test:consumer:my-app:<br>  extends: .ui-pact-consumer<br>  variables:<br>    PROJECT: my-app<br>  needs:<br>    - job: mr:run-pipeline<br>      optional: true</pre><p>This was the part that made the biggest difference for us in practice. The contract file in git became the thing both teams pointed at. No more “I thought we agreed on this field name” conversations.</p><h3>A few things I’d tell myself earlier</h3><ul><li>Use like() everywhere. Exact value matching makes contracts break constantly and for no good reason.</li><li>One contract per feature or operation. It sounds like more files but it makes debugging so much easier.</li><li>Contract tests don’t replace your unit or integration tests. They cover a very specific thing: the boundary between your frontend and your backend.</li></ul><p>If you’re in a situation where frontend and backend are moving at different speeds and you’re nervous about them falling out of sync, Pact is genuinely worth the setup time. It gave our team a shared language for API agreements and moved those “wait, you changed the response shape?” conversations from production incidents to CI failures.</p><p>That’s a trade I’ll take every time.</p><p><em>Stack: @pact-foundation/pact v15 · mocha v11 · TypeScript 5 · chai v5</em></p><blockquote>Happy Coding !</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f2b5f2eaa42" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techtrends-digest/i-built-the-frontend-first-heres-how-i-made-sure-the-backend-team-didn-t-break-it-8f2b5f2eaa42">I Built the Frontend First. Here’s How I Made Sure the Backend Team Didn’t Break It.</a> was originally published in <a href="https://medium.com/techtrends-digest">Coffee☕ And Code💚</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Migrated My 5-Year-Old React Project to TypeScript (Without Losing My Mind)]]></title>
            <link>https://medium.com/techtrends-digest/how-i-migrated-my-5-year-old-react-project-to-typescript-without-losing-my-mind-d62c18306eef?source=rss-dd838a6f81c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/d62c18306eef</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Shelcia David]]></dc:creator>
            <pubDate>Sat, 14 Mar 2026 19:44:19 GMT</pubDate>
            <atom:updated>2026-03-15T09:47:05.559Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wywXiDzx0QZLde2ON2XURg.png" /></figure><p><em>A practical, step-by-step guide for migrating a real-world vanilla JS React codebase</em></p><h3>Context</h3><p>A few years ago I built a React app that lets you mock a backend and generate data [full CRUD operations], no real server needed. It became one of my more popular open-source repositories, and people have been contributing to it ever since.</p><p>There was just one problem: I wrote it before I really understood TypeScript.</p><p>After spending the <strong>last three years</strong> working exclusively with <em>React + TypeScript </em>at work, going back to this codebase felt like debugging with oven mitts on. So I finally committed to migrating it — and documented every step along the way.</p><p>Here’s exactly how I did it.</p><h3>Step 1: Bootstrap TypeScript Without Touching Any Logic</h3><p><em>The golden rule of a JS → TS migration is: </em><strong><em>get the project compiling before you change a single line of behavior.</em></strong></p><h4>Install dependencies</h4><p>Add TypeScript and your type packages:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dnpm%252520install%252520--save-dev%252520typescript%252520%252540types%25252Freact%252520%252540types%25252Freact-dom%252520%252540types%25252Fnode&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dnpm%25252520install%25252520--save-dev%25252520typescript%25252520%25252540types%2525252Freact%25252520%25252540types%2525252Freact-dom%25252520%25252540types%2525252Fnode&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/659aee9e4eb7062976d8a3bb5b41a886/href">https://medium.com/media/659aee9e4eb7062976d8a3bb5b41a886/href</a></iframe><h4>Add tsconfig.json</h4><p>Place this in your project root:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25257B%25250A%252520%252520%252522compilerOptions%252522%25253A%252520%25257B%25250A%252520%252520%252520%252520%252522ignoreDeprecations%252522%25253A%252520%2525226.0%252522%25252C%25250A%252520%252520%252520%252520%252522target%252522%25253A%252520%252522ES2020%252522%25252C%25250A%252520%252520%252520%252520%252522useDefineForClassFields%252522%25253A%252520true%25252C%25250A%252520%252520%252520%252520%252522lib%252522%25253A%252520%25255B%252522ES2020%252522%25252C%252520%252522DOM%252522%25252C%252520%252522DOM.Iterable%252522%25255D%25252C%25250A%252520%252520%252520%252520%252522module%252522%25253A%252520%252522ESNext%252522%25252C%25250A%252520%252520%252520%252520%252522skipLibCheck%252522%25253A%252520true%25252C%25250A%25250A%252520%252520%252520%252520%252522moduleResolution%252522%25253A%252520%252522Bundler%252522%25252C%25250A%252520%252520%252520%252520%252522resolveJsonModule%252522%25253A%252520true%25252C%25250A%252520%252520%252520%252520%252522isolatedModules%252522%25253A%252520true%25252C%25250A%252520%252520%252520%252520%252522noEmit%252522%25253A%252520true%25252C%25250A%252520%252520%252520%252520%252522jsx%252522%25253A%252520%252522react-jsx%252522%25252C%25250A%25250A%252520%252520%252520%252520%252522strict%252522%25253A%252520false%25252C%25250A%252520%252520%252520%252520%252522types%252522%25253A%252520%25255B%252522vite%25252Fclient%252522%25255D%25252C%25250A%25250A%252520%252520%252520%252520%252522baseUrl%252522%25253A%252520%252522.%252522%25252C%25250A%252520%252520%252520%252520%252522paths%252522%25253A%252520%25257B%25250A%252520%252520%252520%252520%252520%252520%252522%252540%25252F%252A%252522%25253A%252520%25255B%252522.%25252Fsrc%25252F%252A%252522%25255D%25250A%252520%252520%252520%252520%25257D%25250A%252520%252520%25257D%25252C%25250A%252520%252520%252522include%252522%25253A%252520%25255B%252522src%252522%25255D%25250A%25257D%25250A&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%2525257B%2525250A%25252520%25252520%25252522compilerOptions%25252522%2525253A%25252520%2525257B%2525250A%25252520%25252520%25252520%25252520%25252522ignoreDeprecations%25252522%2525253A%25252520%252525226.0%25252522%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522target%25252522%2525253A%25252520%25252522ES2020%25252522%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522useDefineForClassFields%25252522%2525253A%25252520true%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522lib%25252522%2525253A%25252520%2525255B%25252522ES2020%25252522%2525252C%25252520%25252522DOM%25252522%2525252C%25252520%25252522DOM.Iterable%25252522%2525255D%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522module%25252522%2525253A%25252520%25252522ESNext%25252522%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522skipLibCheck%25252522%2525253A%25252520true%2525252C%2525250A%2525250A%25252520%25252520%25252520%25252520%25252522moduleResolution%25252522%2525253A%25252520%25252522Bundler%25252522%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522resolveJsonModule%25252522%2525253A%25252520true%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522isolatedModules%25252522%2525253A%25252520true%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522noEmit%25252522%2525253A%25252520true%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522jsx%25252522%2525253A%25252520%25252522react-jsx%25252522%2525252C%2525250A%2525250A%25252520%25252520%25252520%25252520%25252522strict%25252522%2525253A%25252520false%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522types%25252522%2525253A%25252520%2525255B%25252522vite%2525252Fclient%25252522%2525255D%2525252C%2525250A%2525250A%25252520%25252520%25252520%25252520%25252522baseUrl%25252522%2525253A%25252520%25252522.%25252522%2525252C%2525250A%25252520%25252520%25252520%25252520%25252522paths%25252522%2525253A%25252520%2525257B%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252522%25252540%2525252F%25252A%25252522%2525253A%25252520%2525255B%25252522.%2525252Fsrc%2525252F%25252A%25252522%2525255D%2525250A%25252520%25252520%25252520%25252520%2525257D%2525250A%25252520%25252520%2525257D%2525252C%2525250A%25252520%25252520%25252522include%25252522%2525253A%25252520%2525255B%25252522src%25252522%2525255D%2525250A%2525257D%2525250A&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c2ec21adf9e86b83d849cafc480e79d7/href">https://medium.com/media/c2ec21adf9e86b83d849cafc480e79d7/href</a></iframe><blockquote><strong>Tip:</strong> Start with &quot;strict&quot;: false if your codebase is large. Flip it to true once everything compiles.</blockquote><h4>Add src/vite-env.d.ts</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25252F%25252F%25252F%252520%25253Creference%252520types%25253D%252522vite%25252Fclient%252522%252520%25252F%25253E&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%2525252F%2525252F%2525252F%25252520%2525253Creference%25252520types%2525253D%25252522vite%2525252Fclient%25252522%25252520%2525252F%2525253E&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b01e6741cfdfbb028749321500f3970d/href">https://medium.com/media/b01e6741cfdfbb028749321500f3970d/href</a></iframe><h4>Rename vite.config.js → vite.config.ts</h4><p>Don’t forget this step, it’s easy to miss.</p><h3>Step 2: Update ESLint for TypeScript</h3><p>If you’re using ESLint, you need a few additional dev dependencies:</p><pre>  &quot;devDependencies&quot;: {<br>    &quot;@types/node&quot;: &quot;^25.2.0&quot;,<br>    &quot;@types/react&quot;: &quot;^18.3.27&quot;,<br>    &quot;@types/react-dom&quot;: &quot;^18.3.7&quot;,<br>    &quot;@typescript-eslint/eslint-plugin&quot;: &quot;^8.54.0&quot;,<br>    &quot;@typescript-eslint/parser&quot;: &quot;^8.54.0&quot;,<br>    &quot;@vitejs/plugin-react&quot;: &quot;^5.1.2&quot;,<br>    &quot;eslint&quot;: &quot;^9.39.2&quot;,<br>    &quot;eslint-config-prettier&quot;: &quot;^10.1.8&quot;,<br>    &quot;eslint-plugin-jsx-a11y&quot;: &quot;^6.10.2&quot;,<br>    &quot;eslint-plugin-react&quot;: &quot;^7.37.5&quot;,<br>    &quot;eslint-plugin-react-hooks&quot;: &quot;^7.0.1&quot;,<br>    &quot;eslint-plugin-simple-import-sort&quot;: &quot;^12.1.1&quot;,<br>    &quot;eslint-plugin-unused-imports&quot;: &quot;^4.3.0&quot;,<br>    &quot;prettier&quot;: &quot;^3.8.1&quot;,<br>    &quot;tw-animate-css&quot;: &quot;^1.4.0&quot;,<br>    &quot;typescript&quot;: &quot;^5.9.3&quot;,<br>    &quot;vite&quot;: &quot;^7.3.1&quot;<br>  }</pre><p>Here’s the full ESLint config I landed on. It’s curated for a <strong><em>React + TypeScript + Vite setup</em></strong>, feel free to trim rules that don’t fit your project:</p><pre>import js from &#39;@eslint/js&#39;;<br>import globals from &#39;globals&#39;;<br>import react from &#39;eslint-plugin-react&#39;;<br>import reactHooks from &#39;eslint-plugin-react-hooks&#39;;<br>import jsxA11y from &#39;eslint-plugin-jsx-a11y&#39;;<br>import tseslint from &#39;@typescript-eslint/eslint-plugin&#39;;<br>import tsParser from &#39;@typescript-eslint/parser&#39;;<br>import simpleImportSort from &#39;eslint-plugin-simple-import-sort&#39;;<br>import unusedImports from &#39;eslint-plugin-unused-imports&#39;;<br><br>export default [<br>  // --------------------------------------------------<br>  // Ignore config + build files<br>  // --------------------------------------------------<br>  {<br>    ignores: [&#39;eslint.config.js&#39;, &#39;dist&#39;, &#39;build&#39;, &#39;coverage&#39;, &#39;node_modules&#39;, &#39;public&#39;],<br>  },<br>  js.configs.recommended,<br><br>  // --------------------------------------------------<br>  // React + TS files ONLY<br>  // --------------------------------------------------<br>  {<br>    files: [&#39;**/*.{ts,tsx}&#39;],<br><br>    languageOptions: {<br>      parser: tsParser,<br>      parserOptions: {<br>        ecmaVersion: &#39;latest&#39;,<br>        sourceType: &#39;module&#39;,<br>        project: &#39;./tsconfig.eslint.json&#39;,<br>      },<br>      globals: globals.browser,<br>    },<br><br>    settings: {<br>      react: { version: &#39;detect&#39; },<br>    },<br><br>    plugins: {<br>      react,<br>      &#39;react-hooks&#39;: reactHooks,<br>      &#39;jsx-a11y&#39;: jsxA11y,<br>      &#39;@typescript-eslint&#39;: tseslint,<br>      &#39;simple-import-sort&#39;: simpleImportSort,<br>      &#39;unused-imports&#39;: unusedImports,<br>    },<br><br>    rules: {<br>      // ---------------- React ----------------<br>      &#39;react/react-in-jsx-scope&#39;: &#39;off&#39;,<br>      &#39;react/prop-types&#39;: &#39;off&#39;,<br>      &#39;react/self-closing-comp&#39;: &#39;error&#39;,<br>      &#39;react/jsx-curly-brace-presence&#39;: [&#39;error&#39;, { props: &#39;never&#39;, children: &#39;never&#39; }],<br><br>      // ---------------- Hooks ----------------<br>      &#39;react-hooks/rules-of-hooks&#39;: &#39;error&#39;,<br>      &#39;react-hooks/exhaustive-deps&#39;: &#39;warn&#39;,<br><br>      // ---------------- TypeScript ----------------<br>      &#39;@typescript-eslint/no-unused-vars&#39;: &#39;off&#39;,<br>      &#39;@typescript-eslint/explicit-module-boundary-types&#39;: &#39;off&#39;,<br>      &#39;@typescript-eslint/consistent-type-imports&#39;: [<br>        &#39;error&#39;,<br>        {<br>          prefer: &#39;type-imports&#39;,<br>          fixStyle: &#39;separate-type-imports&#39;,<br>        },<br>      ],<br><br>      // ---------------- Unused imports ----------------<br>      &#39;unused-imports/no-unused-imports&#39;: &#39;error&#39;,<br>      &#39;unused-imports/no-unused-vars&#39;: [<br>        &#39;warn&#39;,<br>        {<br>          argsIgnorePattern: &#39;^_&#39;,<br>          varsIgnorePattern: &#39;^_&#39;,<br>        },<br>      ],<br><br>      // ---------------- Import sorting ----------------<br>      &#39;simple-import-sort/imports&#39;: [<br>        &#39;error&#39;,<br>        {<br>          groups: [<br>            [&#39;^react$&#39;, &#39;^react/&#39;],<br>            [&#39;^@/&#39;],<br>            [&#39;^@?\\w&#39;],<br>            [&#39;^\\.\\.(?!/?$)&#39;, &#39;^\\.\\./?$&#39;],<br>            [&#39;^\\.(?!/?$)&#39;, &#39;^\\./?$&#39;],<br>            [&#39;^\\u0000&#39;],<br>          ],<br>        },<br>      ],<br>      &#39;simple-import-sort/exports&#39;: &#39;error&#39;,<br><br>      // ---------------- Spacing rules ----------------<br>      &#39;padding-line-between-statements&#39;: [<br>        &#39;error&#39;,<br>        { blankLine: &#39;always&#39;, prev: &#39;*&#39;, next: &#39;return&#39; },<br>        {<br>          blankLine: &#39;always&#39;,<br>          prev: &#39;*&#39;,<br>          next: [&#39;if&#39;, &#39;for&#39;, &#39;while&#39;, &#39;switch&#39;, &#39;try&#39;],<br>        },<br>        {<br>          blankLine: &#39;always&#39;,<br>          prev: [&#39;if&#39;, &#39;for&#39;, &#39;while&#39;, &#39;switch&#39;, &#39;try&#39;],<br>          next: &#39;*&#39;,<br>        },<br>        { blankLine: &#39;always&#39;, prev: [&#39;const&#39;, &#39;let&#39;, &#39;var&#39;], next: &#39;*&#39; },<br>        {<br>          blankLine: &#39;any&#39;,<br>          prev: [&#39;const&#39;, &#39;let&#39;, &#39;var&#39;],<br>          next: [&#39;const&#39;, &#39;let&#39;, &#39;var&#39;],<br>        },<br>      ],<br>    },<br>  },<br>];</pre><p>Also add a tsconfig.eslint.json at the root so ESLint&#39;s TypeScript parser can find your project files:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%252Fjson%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25257B%25250A%252520%252520%252522extends%252522%25253A%252520%252522.%25252Ftsconfig.json%252522%25252C%25250A%252520%252520%252522include%252522%25253A%252520%25255B%252522src%252522%25252C%252520%252522vite.config.ts%252522%25252C%252520%252522eslint.config.js%252522%25255D%25250A%25257D&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%25252Fjson%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%2525257B%2525250A%25252520%25252520%25252522extends%25252522%2525253A%25252520%25252522.%2525252Ftsconfig.json%25252522%2525252C%2525250A%25252520%25252520%25252522include%25252522%2525253A%25252520%2525255B%25252522src%25252522%2525252C%25252520%25252522vite.config.ts%25252522%2525252C%25252520%25252522eslint.config.js%25252522%2525255D%2525250A%2525257D&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9998fc3e70924f1df912fad07f228f1f/href">https://medium.com/media/9998fc3e70924f1df912fad07f228f1f/href</a></iframe><h3>Step 3: Rename Your Entry Points First</h3><p>Don’t try to rename everything at once. Start with the files that <strong>unblock the rest of the project, </strong>the ones imported everywhere.</p><p>In my case, that was:</p><pre>src/main.jsx          → src/main.tsx<br>src/App.jsx           → src/App.tsx<br>src/routes.jsx        → src/routes.tsx<br>src/context/ThemeContext.jsx → ThemeContext.tsx</pre><p>Rename these first, get them compiling (even with temporary any types), and then work outward.</p><blockquote><strong>Start with the easy files</strong>: look for files that only export constants with no JSX or functions. These rename with zero friction and help build momentum.</blockquote><h3>Step 4: Fix Third-Party Package Type Errors</h3><p>One obstacle I ran into: I was using @fontsource/* packages for custom fonts. TypeScript complained because those packages don&#39;t ship type declarations for side-effect imports.</p><p>The fix is simple — create a globals.d.ts in your project root:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25252F%25252F%252520.%25252Fsrc%25252Fglobals.d.ts%25250Adeclare%252520module%252520%2527%252A.css%2527%25253B%25250Adeclare%252520module%252520%2527%252540fontsource%25252F%252A%2527%252520%25257B%25257D%25250Adeclare%252520module%252520%2527%252540fontsource-variable%25252F%252A%2527%252520%25257B%25257D&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dauto%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%2525252F%2525252F%25252520.%2525252Fsrc%2525252Fglobals.d.ts%2525250Adeclare%25252520module%25252520%252527%25252A.css%252527%2525253B%2525250Adeclare%25252520module%25252520%252527%25252540fontsource%2525252F%25252A%252527%25252520%2525257B%2525257D%2525250Adeclare%25252520module%25252520%252527%25252540fontsource-variable%2525252F%25252A%252527%25252520%2525257B%2525257D&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3bdc06fe7460dd3622d7d836e0ef4ce7/href">https://medium.com/media/3bdc06fe7460dd3622d7d836e0ef4ce7/href</a></iframe><p>This tells TypeScript to treat those imports as valid without needing declarations. You may hit similar issues with other packages, this same pattern resolves most of them.</p><h3>Step 5: Build a Types Spine</h3><p>Before migrating your components, create a central types/index.ts file. Think of it as the skeleton that the rest of your codebase hangs off.</p><p>In my project, the app revolves around resources, projects, and auth, so my types file looked something like this:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dexport%252520type%252520ApiStringResponse%25253CT%252520%25253D%252520unknown%25253E%252520%25253D%252520%25257B%25250A%252520%252520data%25253A%252520T%25253B%25250A%252520%252520status%25253A%252520string%25253B%25250A%252520%252520message%25253A%252520string%25253B%25250A%25257D%25253B%25250A%25250Aexport%252520type%252520ApiResult%25253CT%25253E%252520%25253D%252520%25257B%25250A%252520%252520status%25253A%252520string%25253B%25250A%252520%252520message%25253A%252520T%25253B%25250A%25257D%25253B&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%25252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dexport%25252520type%25252520ApiStringResponse%2525253CT%25252520%2525253D%25252520unknown%2525253E%25252520%2525253D%25252520%2525257B%2525250A%25252520%25252520data%2525253A%25252520T%2525253B%2525250A%25252520%25252520status%2525253A%25252520string%2525253B%2525250A%25252520%25252520message%2525253A%25252520string%2525253B%2525250A%2525257D%2525253B%2525250A%2525250Aexport%25252520type%25252520ApiResult%2525253CT%2525253E%25252520%2525253D%25252520%2525257B%2525250A%25252520%25252520status%2525253A%25252520string%2525253B%2525250A%25252520%25252520message%2525253A%25252520T%2525253B%2525250A%2525257D%2525253B&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/21f6ca815ec12782380740abf4d02936/href">https://medium.com/media/21f6ca815ec12782380740abf4d02936/href</a></iframe><p>Migrate your service/model files early — services/models/*.js → .ts — because your UI components will depend on these types.</p><h3>Practical patterns you’ll use constantly</h3><p><strong>Interfaces for component props:</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dinterface%252520CommonResourceModalProps%252520%25257B%25250A%252520%252520open%25253F%25253A%252520boolean%25253B%25250A%252520%252520setOpen%25253F%25253A%252520React.Dispatch%25253CReact.SetStateAction%25253Cboolean%25253E%25253E%25253B%25250A%252520%252520title%25253F%25253A%252520string%25253B%25250A%25250A%252520%252520inputs%25253A%252520Resource%25253B%25250A%252520%252520setInputs%25253A%252520React.Dispatch%25253CReact.SetStateAction%25253CResource%25253E%25253E%25253B%25250A%25250A%252520%252520schema%25253A%252520SchemaItem%25255B%25255D%25253B%25250A%252520%252520setSchema%25253A%252520React.Dispatch%25253CReact.SetStateAction%25253CSchemaItem%25255B%25255D%25253E%25253E%25253B%25250A%25250A%252520%252520buttonTxt%25253F%25253A%252520string%25253B%25250A%252520%252520func%25253A%252520%2528%2529%252520%25253D%25253E%252520void%252520%25257C%252520Promise%25253Cvoid%25253E%25253B%25250A%252520%252520children%25253F%25253A%252520ReactNode%25253B%25250A%25257D%25250A%25250Aconst%252520CommonResourceModal%252520%25253D%252520%2528%25257B%25250A%252520%252520open%252520%25253D%252520false%25252C%25250A%252520%252520setOpen%252520%25253D%252520%2528%2529%252520%25253D%25253E%252520%25257B%25257D%25252C%25250A%252520%252520title%252520%25253D%252520%2527%2527%25252C%25250A%252520%252520inputs%25252C%25250A%252520%252520setInputs%25252C%25250A%252520%252520schema%25252C%25250A%252520%252520setSchema%25252C%25250A%252520%252520buttonTxt%252520%25253D%252520%2527Create%2527%25252C%25250A%252520%252520func%25252C%25250A%252520%252520children%25252C%25250A%25257D%25253A%252520CommonResourceModalProps%2529%252520%25253D%25253E%252520%25257B&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%25252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dinterface%25252520CommonResourceModalProps%25252520%2525257B%2525250A%25252520%25252520open%2525253F%2525253A%25252520boolean%2525253B%2525250A%25252520%25252520setOpen%2525253F%2525253A%25252520React.Dispatch%2525253CReact.SetStateAction%2525253Cboolean%2525253E%2525253E%2525253B%2525250A%25252520%25252520title%2525253F%2525253A%25252520string%2525253B%2525250A%2525250A%25252520%25252520inputs%2525253A%25252520Resource%2525253B%2525250A%25252520%25252520setInputs%2525253A%25252520React.Dispatch%2525253CReact.SetStateAction%2525253CResource%2525253E%2525253E%2525253B%2525250A%2525250A%25252520%25252520schema%2525253A%25252520SchemaItem%2525255B%2525255D%2525253B%2525250A%25252520%25252520setSchema%2525253A%25252520React.Dispatch%2525253CReact.SetStateAction%2525253CSchemaItem%2525255B%2525255D%2525253E%2525253E%2525253B%2525250A%2525250A%25252520%25252520buttonTxt%2525253F%2525253A%25252520string%2525253B%2525250A%25252520%25252520func%2525253A%25252520%252528%252529%25252520%2525253D%2525253E%25252520void%25252520%2525257C%25252520Promise%2525253Cvoid%2525253E%2525253B%2525250A%25252520%25252520children%2525253F%2525253A%25252520ReactNode%2525253B%2525250A%2525257D%2525250A%2525250Aconst%25252520CommonResourceModal%25252520%2525253D%25252520%252528%2525257B%2525250A%25252520%25252520open%25252520%2525253D%25252520false%2525252C%2525250A%25252520%25252520setOpen%25252520%2525253D%25252520%252528%252529%25252520%2525253D%2525253E%25252520%2525257B%2525257D%2525252C%2525250A%25252520%25252520title%25252520%2525253D%25252520%252527%252527%2525252C%2525250A%25252520%25252520inputs%2525252C%2525250A%25252520%25252520setInputs%2525252C%2525250A%25252520%25252520schema%2525252C%2525250A%25252520%25252520setSchema%2525252C%2525250A%25252520%25252520buttonTxt%25252520%2525253D%25252520%252527Create%252527%2525252C%2525250A%25252520%25252520func%2525252C%2525250A%25252520%25252520children%2525252C%2525250A%2525257D%2525253A%25252520CommonResourceModalProps%252529%25252520%2525253D%2525253E%25252520%2525257B&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3598b9253eb45dce597bd51a8336e844/href">https://medium.com/media/3598b9253eb45dce597bd51a8336e844/href</a></iframe><p><strong>Types for union or computed values:</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dtype%252520Theme%252520%25253D%252520%2527light%2527%252520%25257C%252520%2527dark%2527%252520%25257C%252520%2527system%2527%25253B%25250Atype%252520Status%252520%25253D%252520%2527idle%2527%252520%25257C%252520%2527loading%2527%252520%25257C%252520%2527success%2527%252520%25257C%252520%2527error%2527%25253B&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%25252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dtype%25252520Theme%25252520%2525253D%25252520%252527light%252527%25252520%2525257C%25252520%252527dark%252527%25252520%2525257C%25252520%252527system%252527%2525253B%2525250Atype%25252520Status%25252520%2525253D%25252520%252527idle%252527%25252520%2525257C%25252520%252527loading%252527%25252520%2525257C%25252520%252527success%252527%25252520%2525257C%25252520%252527error%252527%2525253B&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/40dd78678f3f46413171c51c669da1da/href">https://medium.com/media/40dd78678f3f46413171c51c669da1da/href</a></iframe><p><strong>Typed state:</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dtype%252520ValidationMapValue%252520%25253D%252520%25257B%252520errCode%25253A%252520string%252520%25257D%25253B%25250A%252520%252520const%252520%25255BvalidationInfo%25252C%252520setValidationInfo%25255D%252520%25253D%252520useState%25253CMap%25253Cnumber%25252C%252520ValidationMapValue%25253E%25253E%2528%25250A%252520%252520%252520%252520%2528%2529%252520%25253D%25253E%252520new%252520Map%2528%2529%25252C%25250A%252520%252520%2529%25253B&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%25252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dtype%25252520ValidationMapValue%25252520%2525253D%25252520%2525257B%25252520errCode%2525253A%25252520string%25252520%2525257D%2525253B%2525250A%25252520%25252520const%25252520%2525255BvalidationInfo%2525252C%25252520setValidationInfo%2525255D%25252520%2525253D%25252520useState%2525253CMap%2525253Cnumber%2525252C%25252520ValidationMapValue%2525253E%2525253E%252528%2525250A%25252520%25252520%25252520%25252520%252528%252529%25252520%2525253D%2525253E%25252520new%25252520Map%252528%252529%2525252C%2525250A%25252520%25252520%252529%2525253B&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6d7ca7cdb41d7b700488ff68e5358084/href">https://medium.com/media/6d7ca7cdb41d7b700488ff68e5358084/href</a></iframe><p><strong>Typed event handlers:</strong></p><pre>  // -----------------------<br>  // Input handling<br>  // -----------------------<br>  const handleInputs = (e: React.ChangeEvent&lt;HTMLInputElement&gt;) =&gt; {<br>    const { name, value } = e.target;<br><br>    if (name === &#39;number&#39;) {<br>      const num = Number(value);<br><br>      setInputs((prev) =&gt; ({ ...prev, number: num }));<br><br>      if (!value.length || Number.isNaN(num)) {<br>        setValidNumber(false);<br>      } else if (!validNumber) {<br>        setValidNumber(true);<br>      }<br><br>      return;<br>    }<br><br>    setInputs((prev) =&gt; ({ ...prev, [name]: value }) as Resource);<br><br>    if (name === &#39;name&#39;) {<br>      if (value.length === 0) setValidName(false);<br>      else if (!validName) setValidName(true);<br>    }<br>  };</pre><p><strong>Typed utility functions:</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dexport%252520const%252520toISO%252520%25253D%252520%2528date%25253A%252520Date%252520%25257C%252520undefined%25252C%252520time%25253A%252520string%2529%252520%25253D%25253E%252520%25257B%25250A%252520%252520if%252520%2528%2521date%2529%252520return%252520undefined%25253B%25250A%25250A%252520%252520const%252520%25255Bh%252520%25253D%252520%252700%2527%25252C%252520m%252520%25253D%252520%252700%2527%25252C%252520s%252520%25253D%252520%252700%2527%25255D%252520%25253D%252520time.split%2528%2527%25253A%2527%2529%25253B%25250A%25250A%252520%252520return%252520dayjs%2528date%2529%25250A%252520%252520%252520%252520.hour%2528Number%2528h%2529%2529%25250A%252520%252520%252520%252520.minute%2528Number%2528m%2529%2529%25250A%252520%252520%252520%252520.second%2528Number%2528s%2529%2529%25250A%252520%252520%252520%252520.millisecond%25280%2529%25250A%252520%252520%252520%252520.toISOString%2528%2529%25253B%25250A%25257D%25253B&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%25252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dexport%25252520const%25252520toISO%25252520%2525253D%25252520%252528date%2525253A%25252520Date%25252520%2525257C%25252520undefined%2525252C%25252520time%2525253A%25252520string%252529%25252520%2525253D%2525253E%25252520%2525257B%2525250A%25252520%25252520if%25252520%252528%252521date%252529%25252520return%25252520undefined%2525253B%2525250A%2525250A%25252520%25252520const%25252520%2525255Bh%25252520%2525253D%25252520%25252700%252527%2525252C%25252520m%25252520%2525253D%25252520%25252700%252527%2525252C%25252520s%25252520%2525253D%25252520%25252700%252527%2525255D%25252520%2525253D%25252520time.split%252528%252527%2525253A%252527%252529%2525253B%2525250A%2525250A%25252520%25252520return%25252520dayjs%252528date%252529%2525250A%25252520%25252520%25252520%25252520.hour%252528Number%252528h%252529%252529%2525250A%25252520%25252520%25252520%25252520.minute%252528Number%252528m%252529%252529%2525250A%25252520%25252520%25252520%25252520.second%252528Number%252528s%252529%252529%2525250A%25252520%25252520%25252520%25252520.millisecond%2525280%252529%2525250A%25252520%25252520%25252520%25252520.toISOString%252528%252529%2525253B%2525250A%2525257D%2525253B&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/1f17589e2ff70736a3d2a736a25f8679/href">https://medium.com/media/1f17589e2ff70736a3d2a736a25f8679/href</a></iframe><p>once you got this working and compiling, move to next step.</p><h3>Turning on strict: true (Brace Yourself)</h3><p>Once the project compiled in non-strict mode, I flipped &quot;strict&quot;: true in tsconfig.jsonand got absolutely bombarded with errors. This is completely normal. Don&#39;t panic.</p><p>Most of the errors fell into a handful of repeating patterns, and once you recognize them, they’re fast to fix:</p><h4>1. Non-null assertions, use them surgically, not liberally</h4><p>! is appropriate only when you genuinely control the guarantee. Two valid cases from this codebase:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25252F%25252F%252520main.tsx%252520-%252520you%252520own%252520index.html%25252C%252520the%252520element%252520is%252520guaranteed%25250AReactDOM.createRoot%2528document.getElementById%2528%2527root%2527%2529%2521%2529.render%2528%25253CApp%252520%25252F%25253E%2529%25253B&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%25252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%2525252F%2525252F%25252520main.tsx%25252520-%25252520you%25252520own%25252520index.html%2525252C%25252520the%25252520element%25252520is%25252520guaranteed%2525250AReactDOM.createRoot%252528document.getElementById%252528%252527root%252527%252529%252521%252529.render%252528%2525253CApp%25252520%2525252F%2525253E%252529%2525253B&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/16f820d38d227ebed308c1e28b99f165/href">https://medium.com/media/16f820d38d227ebed308c1e28b99f165/href</a></iframe><p>For service/model method calls, ! at every call site is the wrong fix. The better approach is to fix the type <strong>once at the declaration</strong> using a RequiredMethods&lt;K&gt; utility type, so every consumer is automatically clean:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dtype%252520RequiredMethods%25253CK%252520extends%252520keyof%252520ApiCore%25253E%252520%25253D%252520Required%25253CPick%25253CApiCore%25252C%252520K%25253E%25253E%252520%252526%252520Omit%25253CApiCore%25252C%252520K%25253E%25253B&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%25252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dtype%25252520RequiredMethods%2525253CK%25252520extends%25252520keyof%25252520ApiCore%2525253E%25252520%2525253D%25252520Required%2525253CPick%2525253CApiCore%2525252C%25252520K%2525253E%2525253E%25252520%25252526%25252520Omit%2525253CApiCore%2525252C%25252520K%2525253E%2525253B&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d7a5986c3663a54b3a8ab1ac8a634d83/href">https://medium.com/media/d7a5986c3663a54b3a8ab1ac8a634d83/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25252F%252520services%25252Fmodels%25252FresourceModel.ts%25250Aexport%252520const%252520resourceModel%252520%25253D%252520createModel%2528...%2529%252520as%252520RequiredMethods%25253C%2527get%2527%252520%25257C%252520%2527post%2527%252520%25257C%252520%2527put%2527%252520%25257C%252520%2527delete%2527%25253E%25253B&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%25252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%2525252F%25252520services%2525252Fmodels%2525252FresourceModel.ts%2525250Aexport%25252520const%25252520resourceModel%25252520%2525253D%25252520createModel%252528...%252529%25252520as%25252520RequiredMethods%2525253C%252527get%252527%25252520%2525257C%25252520%252527post%252527%25252520%2525257C%25252520%252527put%252527%25252520%2525257C%25252520%252527delete%252527%2525253E%2525253B&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3b959a7ec11918eb760442e58cc50eb9/href">https://medium.com/media/3b959a7ec11918eb760442e58cc50eb9/href</a></iframe><p>Now every call site is clean with no ! needed — and if a method genuinely doesn&#39;t exist, TypeScript will catch it.</p><h4>2. Untyped generic components</h4><p>A lazy Loadable wrapper typed as any will fail under strict mode. Type it properly as a generic:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dfunction%252520Loadable%25253CP%252520extends%252520object%25253E%2528Component%25253A%252520React.ComponentType%25253CP%25253E%2529%252520%25257B%25250A%252520%252520return%252520function%252520WrappedComponent%2528props%25253A%252520P%2529%252520%25257B%25250A%252520%252520%252520%252520return%252520%2528%25250A%252520%252520%252520%252520%252520%252520%25253CSuspense%252520fallback%25253D%25257B%25253CLoader%252520%25252F%25253E%25257D%25253E%25250A%252520%252520%252520%252520%252520%252520%252520%252520%25253CComponent%252520%25257B...props%25257D%252520%25252F%25253E%25250A%252520%252520%252520%252520%252520%252520%25253C%25252FSuspense%25253E%25250A%252520%252520%252520%252520%2529%25253B%25250A%252520%252520%25257D%25253B%25250A%25257D&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%25252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dfunction%25252520Loadable%2525253CP%25252520extends%25252520object%2525253E%252528Component%2525253A%25252520React.ComponentType%2525253CP%2525253E%252529%25252520%2525257B%2525250A%25252520%25252520return%25252520function%25252520WrappedComponent%252528props%2525253A%25252520P%252529%25252520%2525257B%2525250A%25252520%25252520%25252520%25252520return%25252520%252528%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%2525253CSuspense%25252520fallback%2525253D%2525257B%2525253CLoader%25252520%2525252F%2525253E%2525257D%2525253E%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%2525253CComponent%25252520%2525257B...props%2525257D%25252520%2525252F%2525253E%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%2525253C%2525252FSuspense%2525253E%2525250A%25252520%25252520%25252520%25252520%252529%2525253B%2525250A%25252520%25252520%2525257D%2525253B%2525250A%2525257D&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/60973848b01293f5ddcb55eec4426bcb/href">https://medium.com/media/60973848b01293f5ddcb55eec4426bcb/href</a></iframe><h4>3. Implicit any on function parameters</h4><p>Utility functions with untyped params become errors. These are usually quick one-liners:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dexport%252520const%252520copyTextToClipboard%252520%25253D%252520%2528text%25253A%252520string%2529%25253A%252520void%252520%25253D%25253E%252520%25257B%2525C2%2525A0...%252520%25257D%25253B%25250Aexport%252520const%252520logout%252520%25253D%252520%2528navigate%25253A%252520%2528path%25253A%252520string%2529%252520%25253D%25253E%252520void%2529%25253A%252520void%252520%25253D%25253E%252520%25257B%2525C2%2525A0...%252520%25257D%25253B&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%25252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dexport%25252520const%25252520copyTextToClipboard%25252520%2525253D%25252520%252528text%2525253A%25252520string%252529%2525253A%25252520void%25252520%2525253D%2525253E%25252520%2525257B%252525C2%252525A0...%25252520%2525257D%2525253B%2525250Aexport%25252520const%25252520logout%25252520%2525253D%25252520%252528navigate%2525253A%25252520%252528path%2525253A%25252520string%252529%25252520%2525253D%2525253E%25252520void%252529%2525253A%25252520void%25252520%2525253D%2525253E%25252520%2525257B%252525C2%252525A0...%25252520%2525257D%2525253B&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f5f73dbb661c927d04baff4196579ef5/href">https://medium.com/media/f5f73dbb661c927d04baff4196579ef5/href</a></iframe><h4>4. Blind as casts → isApiResponse() type guard</h4><p>A blind cast like res as ApiResponse&lt;Resource&gt; silences the error without checking anything. Replace it with a real runtime type guard:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dexport%252520function%252520isApiResponse%2528res%25253A%252520unknown%2529%25253A%252520res%252520is%252520ApiResponse%25253Cunknown%25253E%252520%25257B%25250A%2525C2%2525A0%252520return%252520%2528%25250A%2525C2%2525A0%252520%252520%252520typeof%252520res%252520%25253D%25253D%25253D%252520%2527object%2527%252520%252526%252526%25250A%2525C2%2525A0%252520%252520%252520res%2525C2%2525A0%2521%25253D%25253D%252520null%252520%252526%252526%25250A%2525C2%2525A0%252520%252520%252520typeof%252520%2528res%252520as%252520ApiResponse%25253Cunknown%25253E%2529.status%252520%25253D%25253D%25253D%252520%2527string%2527%252520%252526%252526%25250A%2525C2%2525A0%252520%252520%252520%2527message%2527%252520in%252520res%25250A%2525C2%2525A0%252520%2529%25253B%25250A%25257D&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%25252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dexport%25252520function%25252520isApiResponse%252528res%2525253A%25252520unknown%252529%2525253A%25252520res%25252520is%25252520ApiResponse%2525253Cunknown%2525253E%25252520%2525257B%2525250A%252525C2%252525A0%25252520return%25252520%252528%2525250A%252525C2%252525A0%25252520%25252520%25252520typeof%25252520res%25252520%2525253D%2525253D%2525253D%25252520%252527object%252527%25252520%25252526%25252526%2525250A%252525C2%252525A0%25252520%25252520%25252520res%252525C2%252525A0%252521%2525253D%2525253D%25252520null%25252520%25252526%25252526%2525250A%252525C2%252525A0%25252520%25252520%25252520typeof%25252520%252528res%25252520as%25252520ApiResponse%2525253Cunknown%2525253E%252529.status%25252520%2525253D%2525253D%2525253D%25252520%252527string%252527%25252520%25252526%25252526%2525250A%252525C2%252525A0%25252520%25252520%25252520%252527message%252527%25252520in%25252520res%2525250A%252525C2%252525A0%25252520%252529%2525253B%2525250A%2525257D&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3e2664ef5d7562cac258bda6b3f0830b/href">https://medium.com/media/3e2664ef5d7562cac258bda6b3f0830b/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3DapiCore.getSingle%2528id%2529.then%2528%2528res%2529%252520%25253D%25253E%252520%25257B%25250A%252520%252520if%252520%2528%2521isApiResponse%2528res%2529%2529%252520return%25253B%25250A%252520%252520if%252520%2528res.status%252520%2521%25253D%25253D%252520%2527200%2527%2529%252520%25257B%252520...%252520%25257D%25250A%25257D%2529%25253B&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%25252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3DapiCore.getSingle%252528id%252529.then%252528%252528res%252529%25252520%2525253D%2525253E%25252520%2525257B%2525250A%25252520%25252520if%25252520%252528%252521isApiResponse%252528res%252529%252529%25252520return%2525253B%2525250A%25252520%25252520if%25252520%252528res.status%25252520%252521%2525253D%2525253D%25252520%252527200%252527%252529%25252520%2525257B%25252520...%25252520%2525257D%2525250A%2525257D%252529%2525253B&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0684420eccd28f731bbfef6b3c41b7ef/href">https://medium.com/media/0684420eccd28f731bbfef6b3c41b7ef/href</a></iframe><h4>5. Context consumers → custom useTheme() hook</h4><p>Instead of asserting useContext(ThemeContext)! at every consumer, add a wrapper hook that throws a descriptive error if called outside the provider:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dexport%252520function%252520useTheme%2528%2529%25253A%252520ThemeContextValue%252520%25257B%25250A%2525C2%2525A0%252520const%252520ctx%252520%25253D%252520useContext%2528ThemeContext%2529%25253B%25250A%2525C2%2525A0%252520if%252520%2528%2521ctx%2529%252520throw%252520new%252520Error%2528%2527useTheme%252520must%252520be%252520used%252520within%252520%25253CThemeProvider%25253E%2527%2529%25253B%25250A%2525C2%2525A0%252520return%252520ctx%25253B%25250A%25257D&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%25252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dexport%25252520function%25252520useTheme%252528%252529%2525253A%25252520ThemeContextValue%25252520%2525257B%2525250A%252525C2%252525A0%25252520const%25252520ctx%25252520%2525253D%25252520useContext%252528ThemeContext%252529%2525253B%2525250A%252525C2%252525A0%25252520if%25252520%252528%252521ctx%252529%25252520throw%25252520new%25252520Error%252528%252527useTheme%25252520must%25252520be%25252520used%25252520within%25252520%2525253CThemeProvider%2525253E%252527%252529%2525253B%2525250A%252525C2%252525A0%25252520return%25252520ctx%2525253B%2525250A%2525257D&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/20ed68e51c79808aa10e85337cf4ee7d/href">https://medium.com/media/20ed68e51c79808aa10e85337cf4ee7d/href</a></iframe><p>If someone renders one outside the provider, in a test, for example, they get a clear message instead of a silent crash.</p><h4>6. Third-party lib type mismatches, read the actual signature</h4><p>When a cast feels wrong, check the library’s actual types first. In ResultModal, the initial fix was null as unknown as object to satisfy json-beautify, a double cast that&#39;s almost always a code smell. Looking at the signature: the replacer param is typed as Function | object | any[], meaning it never accepts null. The correct fix is [] (empty array), which means &quot;no key filtering&quot;, semantically equivalent to JSON.stringify(val, null):</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25252F%25252F%252520Before%252520-%252520double%252520cast%252520smell%25250AjsonBeautify%2528data%25252C%252520null%252520as%252520unknown%252520as%252520object%25252C%2525202%25252C%25252080%2529%25253B%252520%25252F%25252F%252520%2525E2%25259D%25258C%25250A%25252F%25252F%252520After%252520-%252520correct%252520and%252520intentional%25250AjsonBeautify%2528data%25252C%252520%25255B%25255D%25252C%2525202%25252C%25252080%2529%25253B%252520%25252F%25252F%252520%2525E2%25259C%252585&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%25252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%2525252F%2525252F%25252520Before%25252520-%25252520double%25252520cast%25252520smell%2525250AjsonBeautify%252528data%2525252C%25252520null%25252520as%25252520unknown%25252520as%25252520object%2525252C%252525202%2525252C%2525252080%252529%2525253B%25252520%2525252F%2525252F%25252520%252525E2%2525259D%2525258C%2525250A%2525252F%2525252F%25252520After%25252520-%25252520correct%25252520and%25252520intentional%2525250AjsonBeautify%252528data%2525252C%25252520%2525255B%2525255D%2525252C%252525202%2525252C%2525252080%252529%2525253B%25252520%2525252F%2525252F%25252520%252525E2%2525259C%25252585&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/32efc01d60650d5c834c8a60f744288f/href">https://medium.com/media/32efc01d60650d5c834c8a60f744288f/href</a></iframe><h4>7. Duplicate or missing type definitions</h4><p>Strict mode surfaces cases where you’ve defined the same type in multiple files, or where component props aren’t formally declared. Consolidate duplicates into types/index.ts and add explicit interfaces:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%252895%252C126%252C157%252C1%2529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dinterface%252520EditResourceModalProps%252520%25257B%25250A%2525C2%2525A0%252520resource%25253A%252520Resource%25253B%25250A%2525C2%2525A0%252520projectId%25253A%252520string%25253B%25250A%2525C2%2525A0%252520onClose%25253A%252520%2528%2529%252520%25253D%25253E%252520void%25253B%25250A%25257D%25250Aconst%252520EditResourceModal%252520%25253D%252520%2528%25257B%252520resource%25252C%252520projectId%25252C%252520onClose%252520%25257D%25253A%252520EditResourceModalProps%2529%252520%25253D%25253E%252520%25257B%252520...%252520%25257D%25253B&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%25252895%25252C126%25252C157%25252C1%252529%26t%3Dnight-owl%26wt%3Dnone%26l%3Dapplication%25252Ftypescript%26width%3D680%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dinterface%25252520EditResourceModalProps%25252520%2525257B%2525250A%252525C2%252525A0%25252520resource%2525253A%25252520Resource%2525253B%2525250A%252525C2%252525A0%25252520projectId%2525253A%25252520string%2525253B%2525250A%252525C2%252525A0%25252520onClose%2525253A%25252520%252528%252529%25252520%2525253D%2525253E%25252520void%2525253B%2525250A%2525257D%2525250Aconst%25252520EditResourceModal%25252520%2525253D%25252520%252528%2525257B%25252520resource%2525252C%25252520projectId%2525252C%25252520onClose%25252520%2525257D%2525253A%25252520EditResourceModalProps%252529%25252520%2525253D%2525253E%25252520%2525257B%25252520...%25252520%2525257D%2525253B&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/00c1fd2b0eb2d73840bfd945422d2b2f/href">https://medium.com/media/00c1fd2b0eb2d73840bfd945422d2b2f/href</a></iframe><h3>The Migration Order That Worked for Me</h3><p>If your codebase is large, doing it file-by-file without a plan is chaos. Here’s the order I’d recommend:</p><ol><li><strong>Config files</strong> — tsconfig.json, vite.config.ts, ESLint</li><li><strong>Entry points</strong> — main.tsx, App.tsx, routes.tsx</li><li><strong>Shared contexts</strong> — anything imported by most of the app</li><li><strong>Service/model layer</strong> — services/models/*.ts, API types</li><li><strong>Pages and components</strong> — work from leaf nodes inward</li><li><strong>Utilities and helpers</strong> — usually the easiest to type</li></ol><blockquote><strong><em>Use </em></strong><strong><em>any strategically, not lazily.</em></strong><em> It&#39;s fine to use </em><em>any temporarily to get a file compiling, but immediately leave a </em><em>// TODO: type this comment so you come back to it. Don&#39;t let </em><em>any become your permanent solution</em></blockquote><h3>Was It Worth It?</h3><p>Honestly, yes, and it took less time than I expected. A few hours for a moderately sized codebase. The payoff is immediate: autocomplete starts working properly, you catch prop-type mismatches before runtime, and new contributors have a much easier time understanding data shapes.</p><p>If you’ve been putting off migrating an old project, I hope this gives you the push to start. The hardest part is just beginning.</p><p>If you’re curious about the actual project I migrated, check out <a href="https://mocker-gen.netlify.app/"><strong>Mocker</strong></a><strong>, </strong>it lets you mock a backend and generate data with full CRUD support. Contributions are welcome now that it’s on TypeScript!</p><blockquote>Happy coding.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d62c18306eef" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techtrends-digest/how-i-migrated-my-5-year-old-react-project-to-typescript-without-losing-my-mind-d62c18306eef">How I Migrated My 5-Year-Old React Project to TypeScript (Without Losing My Mind)</a> was originally published in <a href="https://medium.com/techtrends-digest">Coffee☕ And Code💚</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Curating System Analysis Report]]></title>
            <link>https://shelcia.medium.com/curating-system-analysis-report-1c33bef9a312?source=rss-dd838a6f81c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c33bef9a312</guid>
            <category><![CDATA[market-research-reports]]></category>
            <category><![CDATA[system-analysis]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[report]]></category>
            <dc:creator><![CDATA[Shelcia David]]></dc:creator>
            <pubDate>Sat, 31 Jan 2026 15:21:01 GMT</pubDate>
            <atom:updated>2026-01-31T15:21:01.869Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Assignment Dated 5 December 2024 at UW Madison</em></p><p>The goal of this project is to improve Today in the Union (T.I.T.U.), which is an existing platform for managing events at UW-Madison and the surrounding community. T.I.T.U. is an event management interface that covers a diverse range of activities, including academic, cultural, and social events. Our project aims to enhance the system so that students, staff, and community members can more effectively organize and participate in activities, boosting event attendance and enhancing the university’s reputation to attract more enrollment and partnerships.</p><p>T.I.T.U. ‘s primary issue is its user interface, which is confusing and unfriendly for prospective event attendees to navigate. Users looking for specific types of events are turned away by the lack of any proper organization on the calendar, such as a search or categorization function. To improve the T.I.T.U. page for students, student organizations, and private event holders alike, our team suggests a project to rework the look and feel of T.I.T.U. for the end user while keeping the current system’s integration with EMS, UW-Madison’s internal event calendar.</p><p>The primary expected risks are technical issues with integration and conflicting user feedback. T.I.T.U. ‘s current integration with EMS may cause issues when changing to a new user interface; the new categorization systems may require more human effort to maintain and keep the interface functional. Therefore, a portion of the project cost takes into account the maintenance cost of the new system. User feedback is unpredictable and will take time to sort out; however, a period of two weeks is allotted exclusively for receiving feedback on the new features, which should allow time for the project team to evaluate feedback and integrate user suggestions before launch.</p><p>The project team is projected to include 2 developers and 3 user experience/interface designers, a project duration of 12 weeks, and an overall cost of $75,000. Once completed, the project is expected to deliver business value by increasing accessibility and attendance of events at the Wisconsin Union, thereby increasing the demand of the space for private event holders who, unlike registered student organizations (RSOs), pay fees to hold events at the Unions. A redesigned website will benefit key stakeholders such as the Campus Events Office and private organizations that hold events at the Unions with increased event space reservation revenue, while RSOs and their attendees will appreciate easier access to club events. Lastly, a more professional user interface will enhance the University’s professional reputation as a place for holding exciting, innovative events and gatherings.</p><h3>1. System Overview and Selection</h3><p>The Today in the Union (T.I.T.U.) platform is an existing system designed to manage and promote events at UW-Madison and the surrounding community. It offers information on a diverse range of activities, including academic, cultural, and social events, serving as a central hub for students, staff, and community members to discover and participate in events.</p><p>T.I.T.U. is integrated with EMS, an event management software system that is used across UW-Madison’s campus. The Campus Event Services office at the Wisconsin Union, which operates the boards at Memorial Union and Union South, uses this system of event management to maintain the T.I.T.U. board. Information is collected by email or call by the intake team at Campus Event Services, then entered into EMS; that event information is then automatically pulled from EMS by the boards at the student unions and the T.I.T.U. website.</p><p>Our team selected T.I.T.U. for this project because of its significant role in connecting the university and the community. While the platform is valuable, it has areas for improvement, such as usability, accessibility, and engagement features. By addressing these gaps, we aim to enhance the system’s effectiveness, increase event attendance, and strengthen UW-Madison’s reputation, helping attract more enrollment and external partnerships.</p><h3>2. Identified Problems with Contextual Evidence</h3><p>Our contextual inquiries revealed user frustration, such as difficulty finding cultural or art-related events due to inadequate search results or unclear event descriptions​. These revealed the shortcomings which reduced the overall user experience: (1) Lack of efficient search functionality and categorization ; (2) Limited event details, which impede decision-making for users ; (3) Absence of user-friendly bookmarking, notifications, and filtering tools ; and (4) Lack of information about regularly-occurring club meetings and their room reservations.</p><p><em>This led to the following How Might We statement:</em></p><blockquote>How might we improve the event search experience for Madison residents on the Wisconsin Union’s website to help users quickly find cultural/academic events that match their interests?</blockquote><h3>3. Solution, Ideation and Selection</h3><p>During our ideation phase, the team brainstormed a variety of solutions to enhance the T.I.T.U. system. We categorized our ideas into three primary focus areas: Event Promotion and Communication , Website Usability Improvements , and Event Categorization and Filtering Enhancements . Our approach was driven by user feedback and contextual inquiry insights, with the ultimate goal of making the T.I.T.U. page more user-friendly, inclusive, and efficient for finding relevant events.</p><p>​​Our brainstorming phase led to a range of potential solutions, including:</p><ul><li>Implementing a robust search bar and event categorization system.</li><li>Providing detailed event descriptions and filters based on event type.</li><li>Introducing features for bookmarking and calendar integration.</li><li>Promotion of lesser-known, existing events around campus.</li><li>Color coding the events based on the type of event.</li></ul><h4>Selected Final Solution and Justification</h4><p>For the final solution, our team decided to focus primarily on enhancing event categorization, filtering, and search functionalities within the T.I.T.U. page, while also incorporating detailed event descriptions and a bookmarking feature. This decision was based on the following factors:</p><ul><li>User-Centric Design : Our contextual inquiries highlighted that users struggled most with navigating through cluttered event lists and lacked the ability to find events based on specific criteria quickly. Introducing advanced filtering, categorization, and a robust search bar directly addresses these frustrations.</li><li>Immediate Usability Impact : These improvements would deliver a noticeable, positive change in user experience and reduce the time spent searching for relevant events.</li><li>Alignment with Project Goals : By focusing on these enhancements, we meet our objective of boosting event engagement, making it easier for users to discover and participate in campus events. This will lead to increased participation.</li></ul><p>We selected these solutions based on weighing user feedback and their potential to significantly improve usability and engagement​ and how aligned those are with our goals for the project.</p><h3>4. Expected Business Value</h3><p>The project aims to improve the T.I.T.U. platform to boost user engagement and event attendance, benefiting students, community members, and event organizers. The current website might cause UW-Madison to lose money as well as engagement from the students, as the users feel overwhelmed by all the information and lack of filtering. A redesigned page will not only enhance UW-Madison’s reputation and foster community connections, it will also attract more enrollment and partnerships, generating potential revenue. A redesign of the website will also lead to minimal upkeep and therefore earn the university money over time.</p><ul><li>Increase Event Participation: By improving the usability and functionality of the T.I.T.U. platform, students, staff, and community members can more easily find and attend events, boosting overall participation.</li><li>Strengthen Community Connections: The platform serves as a central hub for information, fostering better connections between the university and the surrounding community, as well as promoting collaboration with external organizations.</li><li>Enhance University Reputation: A more efficient and user-friendly platform can improve UW-Madison’s reputation for event management and campus engagement, attracting more students, partnerships, and external opportunities.</li><li>Optimize Resource Utilization: Enhancing the platform helps coordinate campus resources more effectively , reducing waste and maximizing the value delivered to users.</li></ul><h3>5. Stakeholder Management Plan</h3><h4>Key stakeholders include:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gv-ntDFm0QBhQL6zd28uzw.png" /></figure><h4>Stakeholder Communication Plan:</h4><p>The team will write a progress report distributed to stakeholders every two weeks after the project starts, every other Monday. The progress report details current tasks, key parts that the team has completed, whether the project is on track, and information about current and future financial expenditures.</p><h3>6. Potential Risks and Risk Management</h3><p>Technical Risks include issues with system integration and platform compatibility. We plan to mitigate these risks by conducting early and ongoing compatibility and cross-platform testing and allocating extra time for troubleshooting.</p><p>Data Risks include challenges with data acquisition, maintenance, and compliance. We plan to mitigate these risks by assigning data acquisition responsibility to stakeholders and implementing compliance checks and privacy assessments at each project phase.</p><p>Stakeholder Risks include misaligned expectations with stakeholders and development access issues. We plan to mitigate these risks by documenting shareholder expectations at the beginning of the project and arranging meetings to review the current codebase.</p><p>User Feedback Risks include negative user feedback and difficulties in recruiting diverse user groups. We plan to mitigate these risks by acknowledging the subjectivity of feedback and scheduling multiple testing rounds to ensure diverse participation.</p><p>Project Management Risks include interpersonal issues among team members and unplanned expenditures. We plan to mitigate these risks by fostering team relationships before the project in a low-stakes setting, establishing clear conflict resolution protocols, and focusing development on core, in-scope features to control costs.</p><h3>7. Cost and Duration</h3><p>The project is expected to be completed within 12 weeks, divided into three main phases: design, development, and testing. The team consists of 2 part-time software developers and 3 part-time UX/UI designers, who will collaboratively work to ensure the project’s success.</p><h4>Financial Breakdown</h4><p>The total estimated cost for the project is $78 ,000, primarily covering t eam salaries and post-launch maintenance. Below is the detailed financial breakdown:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rCwKal2hsXAgYLgMWys15A.png" /></figure><h4>Project Schedule and Milestones</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X_GUS74rHquXjVppiNLlQA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c33bef9a312" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Impact of Covid-19 on Unemployment in India]]></title>
            <link>https://shelcia.medium.com/impact-of-covid-19-on-unemployment-in-india-5d5b88296bd6?source=rss-dd838a6f81c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d5b88296bd6</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[policy]]></category>
            <category><![CDATA[employment]]></category>
            <category><![CDATA[covid19]]></category>
            <dc:creator><![CDATA[Shelcia David]]></dc:creator>
            <pubDate>Tue, 27 Jan 2026 13:58:11 GMT</pubDate>
            <atom:updated>2026-01-27T13:58:11.711Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Article dated December 2023 as part of UW Madison assignment</em></p><h3>Introduction</h3><h4>Purpose</h4><p>The purpose of this policy brief is to conduct a comprehensive analysis of the effects of the Covid-19 pandemic on unemployment in India. This brief specifically targets various user groups based on <strong>age, gender, region, and urban/rural setup.</strong> It seeks to understand how certain parameters, such as GDP, played a role in these effects. The overarching goal is to provide valuable insights and propose effective policy interventions to address the challenges posed by the unemployment crisis.</p><h4>Understanding the data</h4><p>The data have been collected from various reputable institutions such as the RBI, the World Health Organization, and the International Labour Organization. These data have been meticulously cleaned and reviewed, encompassing processes like the conversion of text to dates and numbers. However, it’s important to note that some States and Union Territories, including <em>Arunachal Pradesh, Mizoram, Nagaland, and the Indian Islands, lacked verifiable data on unemployment </em>and are thus excluded in this study. Despite this limitation, we will primarily focus on exploring the concept of <strong>“The unemployment rate,”</strong> which represents the number of unemployed people as a percentage of the labor force (the labor force being the sum of the employed and unemployed).</p><blockquote>Unemployment Rate (%) = (Unemployed ÷ Labor Force) x 100</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*kszSgNBckMh8gKjJwPaPFA.png" /><figcaption>Fig.1 Average Unemployment Rate % in India from 1999–2022[1]</figcaption></figure><h3>The Impact on Unemployment Rate Across States/UTs in India</h3><p>The figure 2[1] explores the changes in unemployment rates before and during the pandemic years (2019, 2020) across various states in India. With few exceptions, most states witnessed a substantial increase in unemployment rates. In Figure 3[2], we delve into whether GDP per capita correlates with the unemployment rates depicted in Figure 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*IogVD-YMfot8eU3gRRgvzw.png" /></figure><p><strong>Unemployment Rate Change from 2019 to 2020</strong></p><ol><li>Jharkhand experienced the highest increase in unemployment with a change of 10.49%, followed by Bihar (8.95%) and Haryana (6.56%).</li><li>Tripura, Himachal Pradesh, and Assam witnessed a decrease in unemployment during this period.</li></ol><p><strong>Regional Disparities</strong></p><ol><li>Southern states like Tamil Nadu, Karnataka, and Telangana showed both high GDP per capita and significant unemployment increase suggesting there is much more nuances to be considered.</li><li>Northern states like Bihar and Uttar Pradesh had low GDP per capita and varying unemployment changes. North Eastern States showed decrease in unemployment.</li><li>States like Himachal Pradesh and Tripura showed a decrease in unemployment, suggesting potential economic stability.</li></ol><p><strong>Puducherry’s Unique Scenario</strong></p><ol><li>Puducherry experienced an exceptionally high increase in unemployment (19.19%), coupled with a relatively high GDP per capita (₹2,03,178).</li><li>This suggests a potential economic challenge despite the high GDP per capita, requiring further investigation into the local economic factors.</li></ol><p><em>While GDP per capita remains a crucial indicator, certain states grappled with a worsening unemployment situation despite boasting high GDP per capita. This nuance suggests that various intricate factors, such as the influence of major sectors like tourism, may have played a significant role in shaping the employment landscape.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*E0_YBQLHIXKJbfDEj0WJ1w.png" /><figcaption>Fig.2 Avg. Unemployment Rate Change[1]</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*-_nYF6rsd2Xx1NTRPcb7QA.png" /><figcaption>Fig.3 Avg. GDP per capita in INR[2]</figcaption></figure><h3>The Impact on Unemployment Rate Across Different User Demographics</h3><p>Figure 4[3] illustrates the unemployment rates across various user demographics, including the youth population of the country, women, and men.</p><p><strong>Women Unemployment Rate</strong></p><ul><li><strong>Trend Shift: </strong>Women’s unemployment rate decreased steadily from 1999 to 2019 but experienced a significant increase in 2020. The subsequent decrease in 2021 suggests a potential recovery, though it remains above pre-pandemic levels.</li></ul><p><strong>Youth Unemployment</strong></p><ul><li><strong>Consistent Rise:</strong> Youth unemployment consistently increased over the years, reaching a peak in 2020. While there was a decrease in 2021, it remains elevated, signaling challenges in providing employment opportunities for the younger demographic.</li></ul><p><strong>Male Employment</strong></p><ul><li><strong>Stability and Dip: </strong>Male employment remained relatively stable until a noticeable dip in 2020. The subsequent increase in 2021 suggests a partial recovery, but the levels are yet to return to those observed before the pandemic.</li></ul><p><em>Women consistently experienced lower unemployment rates compared to youth and had a more substantial impact in 2020. The recovery in 2021 is a positive sign but warrants ongoing attention to address gender-specific employment challenges. The consistent rise in youth unemployment underscores the need for targeted policies and initiatives to enhance job opportunities for this demographic, especially in the post-pandemic recovery period.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*dV5wIShJxJQIqpaXDte7VQ.png" /><figcaption>Fig.4 Unemployment Rate Across Various User Demographics from 1999–2022 [3]</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*HYIhqbR-HoXwC5HFDabYWw.png" /></figure><h3>The Impact on Unemployment Rate Across Rural and Urban Regions</h3><p><strong>Overall Trends:</strong></p><ol><li><strong>Rural Dominance: </strong>Across regions, the average unemployment rates are predominantly higher in rural areas, indicating unique challenges faced by rural populations in terms of employment opportunities.</li><li><strong>Varied Regional Dynamics: </strong>While some states experienced an increase in unemployment from 2019 to 2020, others faced a decrease, suggesting diverse regional economic impacts.</li></ol><p><strong>Regional Insights:</strong></p><ol><li><strong>Bihar and Jharkhand Challenge: </strong>Bihar and Jharkhand witnessed significant increases in average unemployment rates from 2019 to 2020.</li><li><strong>Haryana’s Struggle: </strong>Haryana faced a considerable rise in unemployment, emphasizing the need for tailored strategies to address employment challenges in the region.</li><li><strong>Puducherry’s Urban Concern:</strong> Puducherry exhibited a notable increase in average unemployment, particularly in urban areas. This indicates urban-specific challenges that may require specialized attention.</li><li><strong>Southern States Resilience: </strong>States like Karnataka and Tamil Nadu displayed resilience, maintaining relatively lower average unemployment rates despite the challenges posed by 2020.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*iFRkXho7T1Q9sKMNG3RAHg.png" /><figcaption>Fig.5 Avg. Unemployment Rate in Rural and Urban Regions[5]</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*eIUB6_5Lz3c7xm5bJdrivA.png" /><figcaption>Fig.6 Avg. Unemployment Rate in Rural and Urban Regions[5]</figcaption></figure><h3>Take Aways</h3><ul><li>The Covid-19 pandemic had a significant impact on unemployment in India, with a 156% increase in the unemployment rate from 2019 to 2020. Around 10 million Indians were unemployed in 2020.</li><li>Most states in India witnessed a substantial increase in unemployment rates during the pandemic. Jharkhand had the highest increase in unemployment, followed by Bihar and Haryana. However, some states like Tripura, Himachal Pradesh, and Assam experienced a decrease in unemployment.</li><li>Women’s unemployment rate experienced a significant increase in 2020, although it decreased in 2021. Youth unemployment consistently increased, reaching a peak in 2020. Male employment remained relatively stable but dipped in 2020.</li><li>Unemployment rates are generally higher in rural areas compared to urban areas. Bihar, Jharkhand, and Haryana witnessed significant increases in unemployment rates. Puducherry faced urban-specific challenges with a notable increase in unemployment. Southern states like Karnataka and Tamil Nadu showed resilience with relatively lower unemployment rates.</li></ul><h3>Possible Policy Interventions</h3><p>Based on the analysis and data presented, the following policy interventions are recommended:</p><p><strong>Skill Development Programs</strong></p><p>Implement comprehensive skill development programs to enhance the employability of the workforce, particularly targeting vulnerable groups such as <em>women and youth</em>. These programs should focus on providing training in sectors with high growth potential and promoting entrepreneurship.</p><p><strong>Strengthen Social Safety Nets</strong></p><p>Enhance social safety net programs to provide temporary financial assistance and job placement services to those who have lost their jobs. Expand the coverage of unemployment benefits and ensure efficient delivery mechanisms to reach those in need.</p><p><strong>Increase Government Spending on Infrastructure</strong><br><strong> </strong><br>Increase public investment in infrastructure projects, including transportation, energy, and telecommunications. These projects not only create immediate job opportunities but also have long-term positive effects on economic growth and employment.</p><h3>Conclusion</h3><p>India is home to <strong>1.3 billion people</strong>. The Covid-19 pandemic had a profound impact on unemployment in India, with a significant increase in the unemployment rate. The analysis of the data presented in the <strong><em>policy brief reveals regional disparities, gender-specific challenges, and variations in the rural-urban divide</em></strong>. Addressing these complexities requires a multi-faceted approach.</p><p>Effective policy interventions should focus on skill development, promoting job-creating sectors, strengthening social safety nets, and increasing investment in infrastructure. These measures will not only address the immediate unemployment crisis but also contribute to long-term economic growth and stability.</p><p>It is crucial for policymakers to take into account the unique characteristics of different regions and demographic groups while formulating interventions. By implementing targeted policies and initiatives, India can mitigate the adverse effects of unemployment, promote inclusive growth, and create a more resilient and prosperous economy for all its citizens.</p><h3>References</h3><ol><li>“Unemployment in India”, <em>Unemployment India, </em><a href="https://unemploymentinindia.cmie.com/">https://unemploymentinindia.cmie.com/</a></li><li>“Table 9, Handbook of Statistics on the Indian Economy, 2019–20”, <em>Reserve Bank of India, </em><a href="https://rbi.org.in/Scripts/AnnualPublications.aspx?head=Handbook+of+Statistics+on+Indian+Economy">https://rbi.org.in/Scripts/AnnualPublications.aspx?head=Handbook+of+Statistics+on+Indian+Economy</a></li><li>“Unemployment, modeled ILO estimate in India”, <em>The World Bank, </em><a href="https://data.worldbank.org/indicator/SL.UEM.TOTL.FE.ZS">https://data.worldbank.org/indicator/SL.UEM.TOTL.FE.ZS</a></li><li>“Youth Unemployment Rate in India Was Higher Than Its Neighbors in 2022”,<em> Taniya Roy for Wire, </em><a href="https://thewire.in/economy/youth-unemployment-rate-in-india-was-higher-than-its-neighbours-in-2022-world-bank-report">https://thewire.in/economy/youth-unemployment-rate-in-india-was-higher-than-its-neighbours-in-2022-world-bank-report</a></li><li>“Women &amp; Men in India 2019–20”, <em>Ministry of Statistics Programme Implementation</em>, <a href="https://mospi.gov.in/publication/women-men-india-2019">https://mospi.gov.in/publication/women-men-india-2019</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d5b88296bd6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning to design UX case study]]></title>
            <link>https://medium.com/design-bootcamp/learning-to-design-ux-case-study-b1b673673ce1?source=rss-dd838a6f81c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1b673673ce1</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[uw-madison]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[ux-research]]></category>
            <category><![CDATA[case-study]]></category>
            <dc:creator><![CDATA[Shelcia David]]></dc:creator>
            <pubDate>Sat, 08 Feb 2025 15:01:45 GMT</pubDate>
            <atom:updated>2026-01-28T18:03:29.186Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zlQyWJeYXgUqtGoFjOYlCg.png" /></figure><h4>This is collection of class assignment notes on drafting UX case study throughout Spring 2024 Semester at UW Madison</h4><p><em>Case study Link</em>: <a href="https://www.behance.net/gallery/212977041/UPS-Madison-Case-Study">https://www.behance.net/gallery/212977041/UPS-Madison-Case-Study</a></p><h3>P1: How Might We.</h3><p>During this “How might we” assignment, I delved into various design principles and conducted accessibility checks for the websites featured in A1. The primary objective was to pinpoint pain points and frustrations, with the ultimate aim of identifying areas for improvement in the digital space.</p><p>For the initial trading card, my approach involved in-depth research, where I meticulously identified and defined problem statements based on data collected through user interviews and surveys. In contrast, for the other two trading cards, I turned to Google and Yelp reviews, along with personal experiences and insights from friends, to discern and delineate the associated pain points.</p><p>Once the pain points were identified, I synthesized the findings into concise summaries within the trading cards. Subsequently, I embarked on drafting “How might we” statements by scrutinizing opportunities within the defined scope. To ensure a comprehensive evaluation, I considered accessibility and design principles such as the 8 Golden Interface Rules (notably, the lack of feedback and inability to undo in the second trading card), Fitts Law (applied to the CTA button and add to cart buttons in the third trading card), Hick’s Law (highlighting the issue of too many options in the second trading card), aesthetics (identified as lacking in the second and third trading cards), and adherence to the Web Content Accessibility Guidelines (WGAC).</p><p>Based on these assessments, I sketched rough outlines on the UI to visualize the areas that could benefit from improvement. Subsequently, leveraging the identified opportunities, I formulated potential solutions for each “How might we” statement, focusing on applying relevant design principles to enhance and refine the spaces.</p><p>This process involved a careful consideration of the design principles previously highlighted, ensuring that each proposed solution addressed the specific challenges outlined in the “How might we” statements.</p><p>The drafted solutions aimed not only to resolve the identified pain points but also to elevate the overall design and usability of the UI, providing a holistic approach to optimizing the user experience</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3a4swPI4h04v0Fxx" /><figcaption>For the analyzing on screens I took screenshots and went through the pain points mentioned and identified the space on screen which could be improved and added labels accordingly.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2NhQIYMdtO7R_qrI" /><figcaption>for accessibility checks I used WAVE extension (WGAC compiled and industry standard) to understand the accessibility flaws and addressed the way it could be fixed.</figcaption></figure><h3>P2: Brainstorming.</h3><p>During this “Brainstorming” assignment, I truly appreciated the collaboration and teamwork typically involved in brainstorming sessions (which wasn’t there much was this assignment). After discussing with my classmates, I decided that improving Madison’s UPS store website, focusing on printing, would be a good fit, as there are numerous opportunities for enhancement.</p><p>In class, I highlighted aspects not aligned with UX principles and generally confusing for users to my classmates, who provided feedback for further refinement. Following the class discussion, I revisited the pain points and frustrations to identify additional opportunities through brainstorming on FigJam. I initiated a timer widget on FigJam to adhere to the 40–45 minute timeframe mentioned in the assignment description, although I found that the most viable ideas emerged within approximately 15 minutes and very few popped out after that.</p><p>I attempted to address constraints such as ‘What if users lack technical experience and don’t know where to begin?’ and ‘What if users prefer not to use the website?’ Additionally, I considered whether existing features would require more development time, thus increasing costs. To tackle these challenges, I decided to prioritize essential features to avoid overwhelming users and potentially save on development costs. I also opted to streamline features and refrain from delving into AI integration (but I do have one idea based on it without constraints), which could demand more time and resources.</p><p>Once satisfied with the ideas, I stopped the timer and utilized FigJam AI to group them together, requiring multiple attempts to achieve satisfactory groupings. Upon successful grouping by the AI, I worked on refining those groups, adjusting headings, and trading ideas across themes for better fit. This process led to the identification of five major themes, which I further refined to three promising ideas to pursue for the semester.</p><p>I documented these three ideas and delved into exploring and explaining the specific opportunities associated with each. I believe these idea summaries provide a solid starting point and can be further explored during the semester.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TDyjzjsg_Yq7QbVN" /><figcaption>My brainstorming board. One of the best things Figjam has to offer is its community driven widget and plugin which gives me access to features like summarize, sorting, timer widget and stickers. <a href="https://www.figma.com/file/CricUPywkP68Njig84wjTS/UX2-A2---Shelcia-David-Raj?type=whiteboard&amp;node-id=0%3A1&amp;t=8SW3YiciO6ppCcXH-1">UX2 A2 — Shelcia David Raj</a></figcaption></figure><h3>P3: Sketching.</h3><p>One of my initial tasks was to reflect on the assignment feedback from A2, where the Professor highlighted the need to refine the “how might we” statement for greater specificity. I decided to drop the idea of streamlining the overall flow and focus solely on pricing and placing orders for printing. This approach provided a unique and narrowed perspective for the flow I needed to design. Diligently, I revised the statement to enhance its precision. Following this, I revisited the ideas I had brainstormed in A2, exploring various topics. Armed with these insights, I devised several solutions to address the issue at hand. Opting for the sketchboard, I delved into the design solution that best embodied the core idea. Subsequently, I sketched out the flow, detailing the process of placing orders for printing.</p><p>Despite having a well-planned storyline, there were some aspects I overlooked, such as a missing text field, which required me to go back and overwrite it. This realization underscored the significance of sketching any UI/UX idea. Additionally, I discovered that I’m not proficient at sketching; I had to redraw the storyboards three times, but with each iteration, they improved. Levels, annotations, and captions proved invaluable in helping me convey my thoughts with even greater clarity.</p><p>Once I was satisfied with the captions and storyboards, I decided to gather them in a document and number them. The storyboard began with my own experience: “I am a graduate student who wants to print two PDF files and is not familiar with the platform, which could be confusing.” I ensured that the idea of the storyboard aligned with the design idea I chose, which was “reducing frustration among users regarding price and placing orders.” I also made sure that the UI in each screen could be changed or modified, just in case of replacing dropdowns with checkboxes, as I had mentioned in the caption of each storyboard. I believe this would be a good starting point for prototyping the product for the rest of the semester.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*09GGFT8YhcuvO2s-" /><figcaption>My Sketching process. After laying out the plan, I drew the first iteration in pencil to quickly make any improvements and then, in the second and third iterations, I focused on making the sketch clearer.</figcaption></figure><h3>P4: Task Flow.</h3><p>One of my initial tasks was to reflect on the assignment feedback from A3. Unfortunately, it seems I skipped a few steps, such as creating low fidelity mockups and constructing a storyline. However, this oversight proved to be quite useful in this assignment. Having already formed a clear picture of how my mobile web app should look, it was easier for me to figure out the task flows. The challenging aspect of the assignment was breaking down these flows and considering them as individual tasks.</p><p>For this assignment, since I already had predetermined task flows in mind, I started by jotting them down and placing them in blue boxes, which would later be connected to signify flow. Once that was done, I drew a rectangle of mobile size with the app bar always on top and used that as the base template. Then, incorporating the insights discussed in previous assignments, I proceeded to draft screen by screen. After completing this for a particular flow, I wrote down the description and title for the flow and screen name. I attached the label afterward.</p><p>After completing the task, I made changes wherever I felt necessary to further refine the task flow. Once that was done, I began assigning labels based on the purpose of the screen or the functionality it served. Another interesting observation I’ve made is that with each iteration of working on this, I find myself adding more nuances to the overall flow. This is particularly evident now, as I reflect on my fifth time thinking and drafting the entirety of the platform. (ITERATIONS !!!)</p><p>Overall, I believe that this will be a good starting point for developing high-fidelity mockups later on during this semester, setting a solid foundation for further refinement and enhancement of the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QWehDmR2ETXlXTDp" /><figcaption>The FigJam workspace contained task workflows. Notice the diverse use of elements on the screen for various purposes. Items positioned as layers above are depicted in a darker shade, indicating they represent distinct UI elements.</figcaption></figure><h3>P5: Screen Design.</h3><p>As common practice, I looked through feedback from previous assignments. One of the things mentioned was that the “add to cart” functionality was overlooked. Upon further inspection, I realized that the flow connecting to “add to cart” should be clearer, and it’s important to provide straightforward access to the cart functionality, allowing users to undo their actions without confusion.</p><p>For this assignment, I selected three task flows from previous assignments and attempted rough sketches of UI elements that would better fit the described tasks. I aimed to ensure that the elements were intuitive enough to be self-explanatory. After drawing the screens, I annotated and labeled them as necessary, without going overboard. Once my first iteration of design sketches was complete, I conducted further inspection to identify any overlooked elements that could disrupt the flow. One of the issues was not having a straightforward cart icon on the menu bar itself. Similar to other e-commerce or shopping apps, it’s usually placed on the menu bar. Another aspect was adding a checkbox for users to indicate if they wanted the same painting option for the uploaded files. Additionally, I realized that I had overlooked how users could add files. In the second iteration, I ensured that there were multiple user-friendly methods available, without overcrowding or overwhelming the interface. Each action button was designed to match existing patterns familiar to users.</p><p>In the second iteration, I also considered the spacing between UI components. For example, on the printing options screen, users can delete, edit, and zoom in/out. Grouping them together in one place might be confusing for users, so I separated and grouped them according to Gestalt’s law. Once I was satisfied with the design screens, I annotated them as necessary to eliminate any ambiguity regarding UI elements and flow design.</p><p>Overall, I believe this marks an excellent starting point for low-fidelity wireframes, providing valuable insights into how I want to position UI elements on the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kGg-Ujjxzf5MbSDE" /><figcaption>Returning to my notebook, I dedicated a separate page to each task flow to enhance clarity. Throughout the process, I extensively utilized various UI elements such as buttons, modals, icons, avatars, and images to effectively convey the design concepts.</figcaption></figure><h3>P6: Design System.</h3><p>As a common practice, I reviewed feedback from previous assignments. One aspect highlighted was the potential benefit of providing users with a numbered progress. With this in mind, I considered implementing steppers with appropriate labels. Completion of each step would be indicated by a change in the stepper’s icon, while the overall progress would be denoted by how much the stepper line has filled in.</p><p>In selecting colors, I referenced <a href="https://m3.material.io/theme-builder#/custom">(https://m3.material.io/theme-builder#/custom</a>) to grasp the foundational themes, though the primary UI colors were drawn from Flowbite UI (<a href="https://flowbite.com/docs/customize/colors/">https://flowbite.com/docs/customize/colors/</a>). After choosing the primary background and other major colors, I generated color hues based on these primaries using the Foundation Color Generator plugin.</p><p>For typography, I aimed for a friendly and accessible style that would be versatile across all UI elements. Contemplating options such as Avenir, Figtree, Outfit, and Uber fonts, I ultimately chose Uber Move font for its adaptability and range of variants. Subsequently, I began setting up the typography definitions necessary for the design system, ensuring they would meet the needs of all UI screens.</p><p>With typography established, I shifted focus to elemental design. Beginning with the basics, I concentrated on essential atom elements essential for UI screens. I initiated with avatars, allowing for variations in size and style to accommodate future design requirements. Responding to feedback, I then proceeded to design the stepper progress indicators. Additionally, I crafted a comprehensive text field element capable of accommodating various states, including error and success notifications.</p><p>In adherence to the feedback, I recognized the importance of not relying solely on colors for critical UI elements like input fields and alerts. To address this, I incorporated icons aligned with the messaging of each UI element. While my intention was to primarily utilize filled and outlined variants throughout the screen, I included color variants as a contingency measure if needed. Some of the components are inspired from the Uber base design ecosystem (<a href="https://base.uber.com/6d2425e9f/p/294ab4-base-design-system">https://base.uber.com/6d2425e9f/p/294ab4-base-design-system</a>).</p><p>With these elements in place, I believe I can now begin contemplating a high-level fidelity prototype.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DDpdYj7TK136pCMR" /><figcaption>One of the standout features of Figma is its plugin ecosystem. My recent discovery was the Foundation Color Generator, which not only generates hues based on the color but also creates font palettes and sets variables. I found this feature quite amusing and valuable for my design workflow.</figcaption></figure><h3>P7: Paper Prototyping.</h3><p>As a common practice, I went through the feedback and this time implemented a stepper form to track the user’s progress. One thing that truly stood out to me was how different users interacted with the UI screen, always surprising me. I never once thought that the stepper form could be interpreted differently, perhaps due to the not-so-good drawings.</p><p>Some of the user feedback I received included the following: The screens appeared unfamiliar to the user, and the design seemed foreign (one user tried touching the stepper to upload). There is no option to view the printing material as a separate PDF or file. The user is confused by the options dropdown, as they are unsure of what each option corresponds to; for example, what “letter” size means. Scheduling seems hectic, and there is a need for an option to pick up the material as soon as possible. The user is unsure of where to pick up the printing material.</p><p>The initial process of drafting paper prototypes was easier for me as I was already familiar with what I wanted to achieve. I used assignments A5, A4, and A3 to draw the screens, and the tasks we completed in the classroom were very helpful.</p><p>Once I drew up the prototype, I tested it once to see if I missed any screens in between. After the unit testing, I approached users one by one and asked them to complete three tasks, which predominantly covered what the web app is made for. I asked them to think out loud so I could take notes, and I tried my level best not to explain anything on the screen. Once I received their feedback, I collected it and started thinking about solutions.</p><p>With the feedback, I tried to objectively create solutions to avoid confusion, while also incorporating best design practices and implementing some UX laws. I believe that with this approach, I will be able to further improve the interactivity and decide which components to place where, as I now have a more nuanced idea about how users interact with the paper prototype I made.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-frIqzk7rmhnv6tH" /><figcaption>User 1 encountered an issue while completing the payment screen and navigating to the completion screen. There were instances where I couldn’t indicate that the button is disabled until the scheduled time, preventing the completion of the process in real-time.</figcaption></figure><h3>P8: Wireframing.</h3><p>As a common practice, I usually review feedback before beginning work. This time, the feedback involved three additional users from the previous assignment on paper prototyping. They particularly expressed uncertainties about certain UI elements and interactivity. One positive aspect of the last assignment is that as soon as feedback was received, it was thoroughly examined and suggestions were objectively documented. I have now incorporated those suggestions into the designs I created. The wireframes are based on paper prototyping, while typography and some UI elements are derived from the design system I developed in the previous assignment.</p><p>Although there may be gaps in the overall app, my primary focus is on comprehensively building the flow based on the three tasks mentioned in the assignment submission. The identified gaps primarily concern non-essential pages that will not disrupt the main flow expected from the app.</p><p>I began by developing components and then progressed page by page for each flow, addressing the gaps that would connect these flows and adding page titles. For each page, I start by developing the skeleton and then systematically build upon the elements I want, revising multiple times as needed based on the completion of other pages. To ensure a seamless flow, I conducted baseline prototyping and performed preliminary tests on the Figma app on my mobile device.</p><p>Once I confirmed the interactivity, I proceeded to address the points mentioned in the assignment description, such as visual hierarchy and organization. Following this, I began annotating to eliminate ambiguity and address any remaining questions.</p><p>I carefully incorporated the suggestions and made some minor revisions to increase clarity, such as adding labels to pages slated for deletion based on user feedback.</p><p>I believe this approach will form the foundation of the mobile web app I will be designing in the future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PTEzM8GMfB6pHPEg" /><figcaption>I used my paper prototyping image as a reference along with my mini component library for wireframing. I made multiple revisions on this page before transferring it to the final completion page.</figcaption></figure><h3>P9: Static Mockups.</h3><p>As a common practice, I usually review feedback before beginning work. This time, I received four major pieces of feedback to work upon. The first one suggests using a 6-column grid to evenly space both 3 and 2 column layouts. This became incredibly helpful as it provided me with more flexibility to place my UI elements around.</p><p>The second feedback concerns the complexity of the Selecting Options page, making it difficult to navigate visually. I attempted to address this by replacing it with an accordion to create a multicolumn layout. However, upon reflection, I realized it might be better to keep it as a single column to simplify the user’s navigation and selection process. Although I intend to gather more feedback on this layout decision through experimentation with multiple users.</p><p>The third feedback points out that bounding boxes are distracting, which were only introduced for the sake of wireframing. Although I had introduced subtle shadows for mockups, I reconsidered their necessity.</p><p>The last feedback suggests introducing a hatch button in the checkout process, which I implemented. This prompted me to rethink some of the naming choices for buttons, leading to revisions in the mockups.</p><p>After considering the feedback, I duplicated the wireframing page and decided to create mockups for the same set of tasks. One significant change based on peer feedback from the previous class was the removal of the zoom in/out functionality, which was deemed unnecessary for mobile screen interfaces. Therefore, I completely removed it this time, intending to incorporate it later when adding interactivity to the screens.</p><p>I followed a similar approach to the previous assignment, utilizing a mini-component library for complex UI elements or combinations of atomic elements. These atomic elements are derived from the design system from A6. Once I built the complex component mini library, I began incorporating them into the screens. The images were all sourced from copyright-free resources such as pexels.com, and the information presented was generated by my AI.</p><p>After replacing the wireframing elements with the current library components, I reviewed the visual hierarchy, considering factors such as whether to use outlined or filled buttons in certain places and how to elevate multiple UI elements that are overlapped. This was particularly relevant in the case of the cart summary, where I needed to demonstrate differences in levels for three elements.</p><p>Once I completed the entire process, I conducted a mini-prototype run to test the assignment tasks and identify any potential issues or confusion for users. After feeling satisfied, I rearranged the pages and prepared them for submission.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mf6ZopXk_G1AQwhK" /><figcaption>This is my playground screen, where I typically keep my work separate from my submission screen. Here, I develop the complex component library, create copies of my wireframes, and post feedback, allowing me to iterate on my designs. I utilize this space to make multiple revisions before transferring them to the final completion page.</figcaption></figure><h3>P10: Heuristic Evaluation.</h3><p>As a customary practice, I reviewed the feedback received on my previous changes, addressing all but one issue. I focused on enhancing readability and user experience, with particular emphasis on visual hierarchy. This involved increasing button height, relocating icon buttons for improved accessibility, and adjusting background colors for better visual organization within the UI elements. While the payment screen and file/page deletion functionality saw some improvements, there remains room for further enhancement.</p><p>After duplicating the existing screen, I incorporated the feedback and carefully reviewed the task. Despite my familiarity with the task, which may have introduced bias, I conducted a thorough heuristic evaluation and iteratively refined the design.</p><p>For the evaluation process, I structured a framework to systematically identify and document issues. Through several iterations, I identified areas where presentation could be improved.</p><p>Additionally, I utilized online resources for preliminary evaluation. A website guided me through a series of questions, generating a heuristic evaluation report. While somewhat limited in usefulness, it prompted valuable self-reflection during the evaluation process.</p><p>Throughout the evaluation, I meticulously paused at each screen to identify potential heuristic violations, referring to the framework of heuristic principles. Once issues were identified, I focused on devising solutions, drawing upon UX laws and principles to inform my feedback for the next iteration.</p><p>Despite initial obstacles, the heuristic evaluation provided valuable insights into nuanced issues and underscored the importance of continual design improvement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eniM2TLyEcHUyfnp" /><figcaption>This is my documentation screen, where I generated documents for heuristic evaluation. This time, I included components that I use for mockups on the same page. I refined the mockups based on previous assignments. For quick reference, I also added a frame with heuristic evaluation guidelines to review within the same document</figcaption></figure><h3>P11: Interactive Mockups.</h3><p>I approached the heuristics evaluation as a feedback loop, using it to guide my implementation of fixes suggested by the evaluation. This process helped me streamline some of the unnecessary internal flows, such as deletion, and instead incorporated more standard methods of segregation.</p><p>Additionally, I made other fixes such as adding an undo alert for native file uploads, enhancing visual hierarchy, and refining various screen UI elements, including the payment screen.</p><p>For this assignment, I also included intermediate screens to complete interactions that weren’t specified in the static mockups.</p><p>Given the complexity of managing 33 screens, I opted to prototype from the component level wherever possible to avoid redundancy. I ensured that all close and cancel buttons (or similar buttons) were coded to have backward functionality, simplifying prototyping due to its dynamic nature.</p><p>Regarding page transitions, I predominantly used slide-in animations for navigating to the next steps, with the previous slide transitioning out in a different direction. For keyboard interactions, I employed overlay functionality to ensure ease of use, allowing users to close the keyboard by touching outside its area.</p><p>Furthermore, I introduced minor interactions such as customized toggle buttons for checkboxes within the components. While most interactions were straightforward, some, like implementing timer interactions, required more intricate solutions. For instance, I played with layer names to create different states and establish interactive connections for smooth transitions.</p><p>In conclusion, I believe the product now closely resembles the final vision I intended to showcase. It’s remarkable that even after numerous iterations, there’s still room for improvement at every step. While the UI elements are largely finalized, I anticipate minimal changes in layout moving forward, with a focus on optimizing the three major task flows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FxQfamLalKGs2lCA" /><figcaption>This screenshot represents my final prototype screen, encompassing all flows and interactions. I find it visually striking, particularly with the intricate connections between each screen.</figcaption></figure><h3>P12: Draft Case Study.</h3><p>The entire process of crafting the UX case study was truly rewarding as it allowed me to reflect on months of work, transforming it into a meaningful prototype through multiple revisions based on feedback and design evaluations. This document became an invaluable tool in drafting the study, helping me construct the narrative that delved into the obstacles and new learnings, which I might have otherwise forgotten.</p><p>To begin drafting, I opened the portfolio entries and accessed all my files, conveniently stored in the same folder but on different pages. For visuals, I utilized pictures from portfolio entries and some taken from old assignments.</p><p>I was initially concerned about how to structure the case study. While I had worked on a few studies in the past, they lacked depth and mostly focused on UI elements like typography and screen explanations. This time, I wanted to create a more comprehensive study that encapsulated the true essence of the semester-long process. Despite not finding the exact portfolio study I was looking for after browsing through multiple UX designer portfolios, I stumbled upon a Medium article outlining the essential components needed for the study.</p><p>With that information, I outlined the structure. For mockups, I used the Art Generator plugin to generate visually appealing iPhone mockups. I opted to stick to a grid of 6 for consistency throughout the study and began designing it on Figma. I chose a dark background shade to contrast with the mostly white screens. To maintain consistency, I reused the design system I had in place for the prototype.</p><p>To ensure that users could skim through the content in 1 minute, I included a lot of visuals and bolded certain text in larger paragraphs to highlight key points. I added appropriate headings in each section for additional clarity, and for a five-minute read, I aimed to keep it concise and engaging by summarizing the entire process in a few points.</p><p>I believe this draft is a good starting point, and I look forward to collecting more feedback in class and making further iterations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*loTEHx3JxhHcaxuX" /><figcaption>This screenshot showcases my playground, where I had the final mockups, wireframes, and screen mockups lined up, all of which I added to the case study frame. Having everything in one place was tremendously helpful, as it allowed me to easily generate screen mockups.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1b673673ce1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/design-bootcamp/learning-to-design-ux-case-study-b1b673673ce1">Learning to design UX case study</a> was originally published in <a href="https://medium.com/design-bootcamp">Bootcamp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Observations]]></title>
            <link>https://shelcia.medium.com/observations-9b7dc8c320ea?source=rss-dd838a6f81c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b7dc8c320ea</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[observation]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[ux-research]]></category>
            <category><![CDATA[ux-design]]></category>
            <dc:creator><![CDATA[Shelcia David]]></dc:creator>
            <pubDate>Mon, 03 Feb 2025 13:49:39 GMT</pubDate>
            <atom:updated>2025-02-03T13:49:39.738Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nG18a2VXpOpyof31K3uKTg.png" /></figure><p>Observations can be so beneficial in UX research. In our last week’s UX studio activity, I had the opportunity to observe a classmate’s apartment search process, and it was a fascinating experience.</p><p>What stood out to me is there’s so much more that users would interact with, which, as a UX designer, I cannot completely comprehend or know beforehand without meticulous research.</p><p>With the activity and the assignment that followed, I had the opportunity to observe three people in total, who I know to varying degrees. This ranged from someone I merely attend classes with to someone I’ve known for over five years. Surprisingly, all three users managed to surprise me with their approaches to apartment searching. Interestingly, the one whose behavior closely matched mine was someone I only attend classes with.</p><p>Apartment searching on websites has evolved significantly in recent years, yet there is still room for improvement. I’ve gathered many valuable insights from users, such as:</p><ol><li>Pinning the user’s location on a map and displaying listings based on it.</li><li>Incorporating an integrated tracking mechanism or tool so that users don’t have to rely on external applications like Excel.</li><li>Expanding filtering options for users who want to delve deeper into their search.</li><li>Providing more transparent listings regarding availability, amenities, and virtual tours.</li><li>Including Google reviews directly on the site.</li><li>Ensuring that users do not have to disclose their phone number for contacting properties, addressing privacy concerns.</li></ol><p>I also had the opportunity to learn that even though some measures have been taken to improve UX, it doesn’t automatically translate to a good customer experience if the service is not implemented properly. I bring this up because there are many listings that have been leased for the season, yet they still appear as available because the property management or landlord might not have updated them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zOIKmjmVagZI8t_AuwqwYA.jpeg" /><figcaption>User looking for a new apartment on Facebook</figcaption></figure><blockquote>In essence, “Observations” underscores the dynamic nature of UX research and the need for ongoing adaptation and enhancement in the world of digital apartment searching. It provides a valuable perspective on the user’s journey, the designer’s role, and the potential for further improvements in this ever-evolving field.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b7dc8c320ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Backend-Free Form with Airtable API]]></title>
            <link>https://shelcia.medium.com/building-backend-free-form-with-airtable-api-9a5f572889a5?source=rss-dd838a6f81c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a5f572889a5</guid>
            <category><![CDATA[airtable]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[forms]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Shelcia David]]></dc:creator>
            <pubDate>Sat, 18 May 2024 14:01:44 GMT</pubDate>
            <atom:updated>2024-05-30T18:35:38.524Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction:</strong></h3><p>Imagine you’re polishing your personal portfolio, and suddenly the thought of adding a contact form pops into your mind. But wait, you don’t want to fuss over setting up a backend server or rely on third-party applications. Fear not, for there’s a seamless solution at your fingertips — the Airtable API! In this journey, we’ll explore how to integrate a contact form into your frontend using Airtable, granting you the power to collect messages without breaking a sweat over backend complexities.</p><h4>Prerequisites:</h4><p>Before embarking on this adventure, ensure you’re equipped with two essential tools:</p><ul><li><em>React </em>— the trusty framework for frontend wizardry,</li><li><em>Airtable account</em> — the vault where your form submissions will reside. With these in hand, you’re ready to dive into the magic of frontend development.</li></ul><blockquote>Note: you can skip airtable setup to get to code.</blockquote><h4>Airtable Setup</h4><p>Create your base in Airtable, including fields such as name, email, phone number, and message. After setting up the base, we will need to access its endpoint.</p><p><strong>Follow the screenshots below to access the API Endpoint and Personal access token:</strong></p><ol><li>Go to the Developer Hub by clicking on your profile avatar in the right pane.</li></ol><figure><img alt="Go to Developer hub on right pane on clicking your profile avatar." src="https://cdn-images-1.medium.com/max/1024/1*7bzBlCTFPYcA5BXF4BGh_Q.png" /><figcaption>Go to Developer hub on right pane on clicking your profile avatar.</figcaption></figure><p>2. Then, click on Developer Docs in the left pane.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1XPpANVRzF7tR3f9kkBH6w.png" /></figure><p>3. Then, click on API Docs under Web API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PfHAXMZwhmxz7Ragu6bajw.png" /></figure><p>4. Under Introduction, choose the base name you just created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HJyqUxmZKAjI9JkdcSsa1w.png" /></figure><p>4. Within the documentation, find the POST request to create a new record.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ods5Q_rbnJUWb4Z7-wuhw.png" /></figure><p>Now, let’s obtain your personal access token.</p><ol><li>Go to the Developer Hub by clicking on your profile avatar in the right pane.</li></ol><figure><img alt="Go to Developer hub on right pane on clicking your profile avatar." src="https://cdn-images-1.medium.com/max/1024/1*7bzBlCTFPYcA5BXF4BGh_Q.png" /></figure><p>2. Within Personal Access Token, click on Create Access Token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AfjiCjHsbqAFGmyJNs1g3A.png" /></figure><p>3. Give it a name and ensure your base is included within the access permissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5zb9RDKggX3KBUI5GiedVA.png" /></figure><p>4. Select all the appropriate permissions required to read and write to the base.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LFU-dpZFsiam6RSwGrp0vg.png" /></figure><p>Finally, click on Create Token and make sure to copy it and store it in a safe place. We will be adding it later in the .env file in our code.</p><h3>Code</h3><p>Let’s embark on our coding escapade! We’ll begin by setting up a React component for our contact form. This form will capture user input and gracefully whisk it away to the welcoming embrace of Airtable, all without the need for a backend server.</p><ol><li>Let’s import <em>React</em> and <em>usestate</em>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lKQSto_OyVZHTp5ISBfZrA.png" /></figure><p>2. Within the functional component, we will set up the state to hold all the form data and its handler function (which will be invoked onChange events and store the data in formData).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GuxOM0lAfu6SG1u2C8Aujg.png" /></figure><p>3. Now let’s create a handler for when users submit the data. It should send the form details to Airtable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ue2EytC5B7lfjpH7F9_NSg.png" /></figure><p>4. Add the form, and your component is completed.</p><pre>const AirtableContactForm = () =&gt; {<br>  const [formData, setFormData] = useState({ name: &#39;&#39;, email: &#39;&#39;, message: &#39;&#39; });<br><br>const handleChange = (e) =&gt; {<br>    setFormData({ ...formData, [e.target.name]: e.target.value });<br>  };<br>  const handleSubmit = async (e) =&gt; {<br>    e.preventDefault();<br>    try {<br>      const response = await fetch(&#39;YOUR_AIRTABLE_API_ENDPOINT&#39;, {<br>        method: &#39;POST&#39;,<br>        headers: {<br>          &#39;Content-Type&#39;: &#39;application/json&#39;,<br>          Authorization: &#39;Bearer YOUR_AIRTABLE_API_KEY&#39;,<br>        },<br>        body: JSON.stringify({ fields: formData }),<br>      });<br>      if (response.ok) {<br>        // Data successfully stored in Airtable!<br>        console.log(&#39;Message sent successfully!&#39;);<br>        setFormData({ name: &#39;&#39;, email: &#39;&#39;, message: &#39;&#39; }); // Clear form fields<br>      } else {<br>        // Oops! Something went wrong<br>        console.error(&#39;Failed to send message&#39;);<br>      }<br>    } catch (error) {<br>      console.error(&#39;Error:&#39;, error);<br>    }<br>  };<br>  return (<br>    &lt;form onSubmit={handleSubmit}&gt;<br>      &lt;label&gt;<br>        Name:<br>        &lt;input type=&quot;text&quot; name=&quot;name&quot; value={formData.name} onChange={handleChange} /&gt;<br>      &lt;/label&gt;<br>      &lt;label&gt;<br>        Email:<br>        &lt;input type=&quot;email&quot; name=&quot;email&quot; value={formData.email} onChange={handleChange} /&gt;<br>      &lt;/label&gt;<br>      &lt;label&gt;<br>        Message:<br>        &lt;textarea name=&quot;message&quot; value={formData.message} onChange={handleChange} /&gt;<br>      &lt;/label&gt;<br>      &lt;button type=&quot;submit&quot;&gt;Send&lt;/button&gt;<br>    &lt;/form&gt;<br>  );<br>};<br>export default AirtableContactForm;</pre><h3>Conclusion:</h3><p>Voila! You’ve just unlocked the secret to creating a fully functional contact form without the hassle of backend setup. With React as your trusty ship and Airtable API as your compass, you can confidently sail through the vast ocean of frontend development, collecting messages with ease. So go ahead, enhance your personal portfolio, and let the messages flow in — all without breaking a sweat over backend worries.</p><blockquote>Happy coding!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a5f572889a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ethics in UX: Dark History]]></title>
            <link>https://shelcia.medium.com/ethics-in-ux-dark-history-dc23ed58bc6b?source=rss-dd838a6f81c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc23ed58bc6b</guid>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[user-experience-design]]></category>
            <category><![CDATA[ethics]]></category>
            <category><![CDATA[user-interface]]></category>
            <category><![CDATA[user-research]]></category>
            <dc:creator><![CDATA[Shelcia David]]></dc:creator>
            <pubDate>Thu, 29 Feb 2024 13:37:32 GMT</pubDate>
            <atom:updated>2024-02-29T13:37:32.466Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is a part of my class Assignment at </em><a href="https://www.wisc.edu/"><em>UW Madison.</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*e1hF7lM7EHBSbYM0" /><figcaption>Photo by <a href="https://unsplash.com/@nate_dumlao?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Nathan Dumlao</a> on <a href="https://unsplash.com/photos/children-on-brown-soil-Xavq7lKj5j8?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a> — Indian Kids</figcaption></figure><p>In the last class, the discussion of real-life examples of <strong><em>‘Unethical Research</em></strong>’ intrigued me the most. Consequently, I decided to delve deeper into numerous such incidents and explore the dark history of ethics in UX, particularly during the 20th century. One incident that particularly captured my attention was something that occurred back in my home country during a government emergency period. It rapidly shifted from being framed as “we are conducting this extensive experiment for the collective good” to becoming associated with coercion and sterilization camps.</p><h4>A Case Study — The Indian Sterilization Camps (1970s-1980s, India)</h4><p>I was not yet born when this occurred in India, but I still heard about the horrors and panic it caused from my grandparents. What started as a ‘well-intentioned program’ eventually delved into population eugenics.</p><p><strong>Background: The Family Planning Program in India</strong></p><p>In the 1970s and 1980s, India faced the challenge of overpopulation, and the government launched a massive family planning program to address this issue. As part of the program, sterilization was promoted as a primary method of contraception. <em>The campaign aimed to provide monetary incentives to individuals, especially men, who opted for sterilization.</em> Unfortunately, this well-intentioned effort quickly spiraled into a series of unethical practices, leading to the establishment of <strong>sterilization camps</strong>.</p><p><strong>Ethical Dilemma:</strong></p><ol><li><strong>Coercion and Lack of Informed Consent:</strong> In many cases, individuals were pressured or coerced into undergoing sterilization procedures, often without fully comprehending the consequences.</li><li><strong>Quantitative Targets Over Quality:</strong> The government set ambitious sterilization targets, incentivizing medical professionals to prioritize <em>quantity over quality</em>. This metric-driven approach incentivized hasty procedures and neglect of proper medical protocols, compromising the safety and well-being of individuals.</li><li><strong>Vulnerable Populations</strong>: The sterilization camps primarily targeted vulnerable populations, such as those from <em>low-income backgrounds, rural areas, and marginalized communities</em>.</li><li><strong>Lack of Accountability:</strong> Medical professionals and authorities often went unpunished for unethical practices, leading to a lack of accountability.</li></ol><p>The key is to always prioritize user welfare, informed consent, inclusivity, and ethical responsibility in the design process.</p><p><strong>Other Documented Studies:</strong></p><p>In <strong>Peru</strong>, the government implemented a family planning program in the 1990s, which led to allegations of forced sterilizations. In <strong>China</strong>, there have been reports of forced sterilizations as part of the country’s one-child policy, which was in place for several decades. In the <strong>United States</strong>, there have been instances of sterilizations performed on marginalized and vulnerable populations, such as the forced sterilization of Native American women in the mid-20th century and the eugenics movement in the early 20th century.</p><blockquote>As a UX Designer, it is crucial to embrace inclusive design, obtain informed consent from users, take accountability, and practice transparency.</blockquote><p><strong>References:</strong></p><p><a href="https://www.bbc.com/news/world-asia-india-30040790">India&#39;s dark history of sterilisation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc23ed58bc6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Surveys — Non Response Bias]]></title>
            <link>https://shelcia.medium.com/surveys-non-response-bias-39d4ac69a13e?source=rss-dd838a6f81c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/39d4ac69a13e</guid>
            <category><![CDATA[user-stories]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[user-research]]></category>
            <category><![CDATA[surveys]]></category>
            <category><![CDATA[user-experience-design]]></category>
            <dc:creator><![CDATA[Shelcia David]]></dc:creator>
            <pubDate>Wed, 21 Feb 2024 13:42:02 GMT</pubDate>
            <atom:updated>2024-02-28T00:28:39.970Z</atom:updated>
            <content:encoded><![CDATA[<h3>Surveys — Non Response Bias</h3><blockquote>Understanding Non Response Bias while conducting UX research surveys</blockquote><p><em>This is a part of my class Assignment at </em><a href="https://www.wisc.edu/"><em>UW Madison.</em></a></p><figure><img alt="Screenshot of the survey conducted as part of assignment understanding user’s interaction with housing search platform" src="https://cdn-images-1.medium.com/max/1024/1*Ok8DZYhB_jBIw33NrIovdg.png" /><figcaption>Screenshot of the survey conducted as part of assignment understanding user’s interaction with housing search platform</figcaption></figure><p><strong><em>Surveys</em></strong> play a crucial role in collecting data and insights from a targeted group of individuals, providing valuable information for research, decision-making, and understanding public opinion. I noticed that with surveys are very useful, there could be <strong>potential for bias</strong>. While surveys aim to capture a some kind of representative structure, various factors can introduce bias and affect the accuracy of the results.</p><p>I noticed a major bias when conducting surveys for the assignment. Our primary goal was to understand how users interact with an apartment searching website.</p><h4><strong>Non-Response Bias:</strong></h4><p>Some users resort to skimming through the survey as they don’t want to add more cognitive load, resulting in improperly filled-out responses. We often received “N/A” for text field questions, and for ranking questions, the majority of responses defaulted to the pre-set list.</p><p>This behavior highlights the challenge of survey response quality when participants feel overwhelmed or rushed. Skimming through a survey can lead to incomplete or superficial responses, limiting the depth of insights that can be derived from the data.</p><h4>What could have been done ?</h4><p>To mitigate these biases, we could have reduced the number of text field questions or any other type of questions that require users to put in extra effort. Additionally, providing a more detailed description of how the data will be utilized and ensuring that the survey is always anonymous can help improve response quality.</p><p>Including an option like “prefer not to say” when asking personal questions is always recommended.</p><p>Furthermore, it’s important to interpret survey results with caution, taking into account the limitations and potential biases inherent in the data collection process.</p><blockquote>In summary, surveys are powerful tools for gathering information, but it is crucial to be aware of the potential biases and limitations involved in their design and interpretation. <strong><em>Combining survey findings with other research methods can enhance the validity and reliability of the insights gained.</em></strong></blockquote><p><strong>Additional Findings Related to UX:</strong></p><ol><li><strong>Is Coffee stirrer also meant to be a straw ?</strong></li></ol><p>Personally, I use a coffee stirrer as a straw as well, but apparently, it was never intended to be used in that way.</p><p>This sentence expresses the personal habit of using a coffee stirrer as a straw, despite the fact that it was not originally designed for that purpose. The word “apparently” suggests that the information about its intended use comes from external sources or general knowledge, indicating a contrast between personal usage and the intended purpos</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y_jBLaeVCohyfqN-KtfYVQ.png" /></figure><p><strong>2. Canva: Missing Appropriate Feedback</strong></p><p>The dot is meant to disappear when the message is viewed by the user. However, it only disappears when I reload the page, which makes me think that the developers haven’t been mindful about the feedback or that it could be considered a very low priority on the business level and thus ignored.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*NiOzcfMq36R__55okReCiA.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39d4ac69a13e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apartment Hunting — UX Study]]></title>
            <link>https://medium.com/design-bootcamp/apartment-hunting-ux-study-39096379b30b?source=rss-dd838a6f81c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/39096379b30b</guid>
            <category><![CDATA[user-interface]]></category>
            <category><![CDATA[user-research]]></category>
            <category><![CDATA[study]]></category>
            <category><![CDATA[user-experience-design]]></category>
            <category><![CDATA[user-experience]]></category>
            <dc:creator><![CDATA[Shelcia David]]></dc:creator>
            <pubDate>Sat, 17 Feb 2024 14:41:26 GMT</pubDate>
            <atom:updated>2024-02-22T00:10:48.628Z</atom:updated>
            <content:encoded><![CDATA[<h3>Apartment Hunting — UX Study</h3><h4>A Qualitative and Quantitative UX Research</h4><p><em>This is a part of my class Assignment at </em><a href="https://www.wisc.edu/"><em>UW Madison.</em></a></p><p><strong>Role:</strong> UX researcher</p><p><strong>Members</strong>: Chris, Alex, Shelcia</p><p><strong>Tools:</strong> FigJam, Figma, Google Docs, Qualtrics and Tableau</p><p><strong>Project timeline</strong>:</p><p><em>Overall: 10 weeks</em></p><ul><li>Discussing the problem — 1 week</li><li>User Interviews — 1 week</li><li>Contextual Inquiry — 1 week</li><li>Survey — 1 week</li><li>Designing UX Experiment — 1 week</li><li>Affinity Mapping — 1 week</li><li>Drafting Persona — 1 week</li><li>Journey Mapping — 1 week</li><li>HEART Framework — 1 week</li><li>Documentation — 1 week</li></ul><h3>Objective</h3><p>The objective of the research journey and subsequent UX design initiative is to enhance the apartment-hunting experience for students at Madison by developing a significantly improved, user-friendly platform. The goal is to streamline the housing search process, simplifying it and providing users with easy access to accurate information. The overarching vision is to ensure a seamless user experience, enabling users to effortlessly comprehend and navigate through all available housing information.</p><h4>Key Components of the Objective:</h4><ol><li><strong>User-Centric Design:</strong> Prioritize user needs, motivations, and grievances in the current apartment-search endeavors. The design should address common pain points and offer solutions that enhance the overall user experience.</li><li><strong>Platform Enhancement:</strong> Develop a user-friendly platform that significantly improves the apartment-hunting experience. This includes streamlining the search process, simplifying navigation, and ensuring easy access to accurate and relevant housing information.</li><li><strong>Competitive Analysis: </strong>Utilize insights from competitive analysis of existing platforms such as Apartments.com, Google, Zillow, and Apartment Finder. Identify unique features and strengths to optimize the new housing search platform and exceed user expectations.</li><li><strong>Metrics and Evaluation: </strong>Utilize the HEART framework for measurement, focusing on metrics related to Happiness and Task Success. The goal is to reduce frustration in finding an apartment, decrease the time spent on the housing search, and enhance overall user satisfaction and engagement.</li><li><strong>Continuous Improvement:</strong> Establish a foundation for continuous improvement by analyzing survey results, affinity maps, and journey maps. Iterate on the design based on user feedback and evolving user needs.</li></ol><p>By achieving these objectives, the project aims to create a housing search platform that not only meets but exceeds the expectations of students at Madison, providing them with a seamless, enjoyable, and efficient experience throughout their apartment-hunting journey.</p><h3>Research Journey</h3><p>We embarked on our research journey by gaining a deep understanding of the scope of the problem at hand. In addressing the issue, we employed various methods to gather information from users, including user interviews, contextual inquiries with ‘think out loud’ sessions and surveys. With the data in hand, we began comprehending the goals of the experiment, and we designed the UX experiment. Analyzing the collected data, we proceeded to extract valuable insights and organized them through affinity mapping. Once we grasped the major themes underlying the problem’s scope, we utilized persona and journey mapping to delve further into the nuances of user pain points, touch points, unique goals, frustrations, and areas of unique opportunities for improvement. Finally, we immersed ourselves in the HEART framework to comprehend the metrics and goals of users throughout their journey, using it as a tool for measurement.</p><figure><img alt="Research Journey" src="https://cdn-images-1.medium.com/max/838/1*8hLH_hMQ1uTwP6hWWgN09w.png" /><figcaption>Research Journey</figcaption></figure><h3>Problem statement</h3><p>With a growing influx of students from diverse backgrounds enrolling at Madison each semester, securing appropriate accommodations has emerged as a crucial issue. As a team, our focus centered on comprehending the requirements, motivations, and grievances of students in their current apartment-search endeavors. Our goal was to identify <strong><em>opportunities for enhancing and innovating the housing search process.</em></strong></p><figure><img alt="Understanding the Problem Statement" src="https://cdn-images-1.medium.com/max/1024/1*xiChMqLukvM9kHDWFA2qaA.png" /><figcaption>Understanding the Problem Statement</figcaption></figure><h3><strong>Goal</strong></h3><p>The vision is to enhance the apartment-hunting experience by developing a significantly improved, user-friendly platform. The aim is to <strong><em>streamline the search process, dedicating efforts to simplifying it and offering users easy access to accurate information</em></strong>.</p><blockquote>The goal is to ensure a seamless user experience, enabling users to effortlessly comprehend and navigate through all available housing information.</blockquote><h3>Target Market and Competitive Analysis</h3><p>In our analysis, we have identified <strong>unique features and strengths of existing platforms</strong> such as <em>Apartments.com, Google, Zillow, and Apartment Finder</em>. Understanding these distinctions is crucial for optimizing our new housing search platform to meet and exceed user expectations.</p><figure><img alt="Target Market and Competitive Analysis for Apartments.com, Google, Zillow, and Apartment Finder" src="https://cdn-images-1.medium.com/max/1024/1*frwUk29PTQ3jzvirvSaxlw.png" /><figcaption>Target Market and Competitive Analysis for <em>Apartments.com, Google, Zillow, and Apartment Finder</em></figcaption></figure><h3>User Research Plan and Methodologies</h3><h4>Research Questions</h4><blockquote>How can we improve the housing hunting experience?</blockquote><blockquote>What are common pain points when searching for an apartment?</blockquote><p>To answer these questions, we employed the following methodologies:</p><ol><li><strong>User Interviews:</strong> We interviewed 9 people to understand their experiences with house hunting</li><li><strong>Contextual Inquiry: </strong>We observed and gathered insights from participants as they navigated apartment search platforms and verbalized their thoughts and actions. This provided us the <em>valuable insight</em> into their search process.</li><li><strong>Surveys:</strong> We will distribute surveys to a wider audience to gather quantitative data about apartment search preferences and pain points.</li></ol><h3><strong>User Interviews</strong></h3><blockquote>Sample Size: <strong>9 participants</strong></blockquote><h4>Goal of the Interview</h4><p>The goal of the interview is to gather insights about users’ experiences, attitudes, and interactions with apartment searching platforms. We aim to understand their <strong><em>motivations, pain points, and suggestions for improving the user experience</em></strong>. By exploring their apartment search journey, we can identify opportunities to enhance the existing product or service.</p><h4>Method of Interviewing</h4><p>We conducted individual in-person or virtual interviews with participants, depending on their availability and preferences. The interviews followed a <strong><em>semi-structured approach</em></strong>, combining open-ended questions with follow-up probes to elicit detailed responses and personal anecdotes.</p><p>We then synthesized the thoughts and methods into <strong><em>20 questions</em></strong>.</p><p><strong>Model Questionnaire:</strong> <a href="https://shelcia.notion.site/Model-Questionnaire-ee19a62aee6e42a1aa5015ebfb0a5738?pvs=4">https://shelcia.notion.site/Model-Questionnaire-ee19a62aee6e42a1aa5015ebfb0a5738?pvs=4</a></p><h3><strong>Contextual Inquiry</strong></h3><blockquote>Sample Size: <strong>6 participants</strong></blockquote><h4>Observation Focus</h4><p>We delved into the needs, motivations, and dissatisfactions of students concerning their current housing-finding experiences in a new location. Our goal was to understand how they would approach this process from scratch in a new location and pinpoint potential areas for improvement.</p><h4>Sub Categories</h4><ul><li>How has their overall experience been in finding housing?</li><li>Do they have any specific criteria when searching for a new place?</li><li>Are they satisfied with their current living environment?</li><li>How is their interaction with the landlord or property manager?</li><li>Any other insights?</li></ul><h4>Observation Methods</h4><p>We employed ethnographic interviewing and ‘think out loud’ techniques during the interviews. Additionally, at times, we posed questions based on our assumptions derived from user actions to clarify our understanding. Our interviews were conducted partly in person and partly in a virtual setting.</p><h4>Data Collection</h4><p><strong>Using phones:</strong> We used phones as cameras to capture photos or videos of the user’s experience while going through the housing process.</p><p><strong>Desktop Usage:</strong> When user uses desktop computer, we took screenshots and recorded the screen as necessary to capture their digital interactions and activities.</p><p><strong>Handwritten Notes:</strong> We took handwritten notes to document details of the user’s experience. This includes their comments, reactions, and any other important observations.</p><h4>Takeaways</h4><ul><li><strong>Benefits:</strong> Offers insights into users’ thought processes during the search.</li><li><strong>Limitations:</strong> No non-verbal behavior observations or real-time actions were considered.</li></ul><h3>Survey</h3><blockquote>Sample Size: <strong>32 participants</strong></blockquote><h4>Recruitment Plan</h4><p>Our survey recruitment plan involved posting it in various club group chats, specifically targeting our key demographic — <strong><em>college students in Madison</em></strong>. Leveraging these group chats was expected to provide us with access to a large pool of potential participants.</p><h4>Key Topics to be covered</h4><ul><li>Apartment Searching Process end to end</li><li>Living experience currently</li></ul><p><strong>Survey Link:</strong> <a href="https://uwmadison.co1.qualtrics.com/jfe/form/SV_0AO5Bq1KdK0kLYO">https://uwmadison.co1.qualtrics.com/jfe/form/SV_0AO5Bq1KdK0kLYO</a></p><p><strong>Survey Results:</strong> <a href="https://drive.google.com/file/d/1yC9h6EGfAQhZwD62cq__0Bj7srFuJ_p2/view?usp=sharing">UXSurveyReport.csv</a></p><h4>Takeaways</h4><ul><li><strong>Benefits:</strong> With the survey, we were able to collect data from a larger group compared to interviews.</li><li><strong>Limitations: </strong>Non-response biases, which may lead to skewed results (which i have detailed in my other article — <a href="https://medium.com/@shelcia/surveys-non-response-bias-39d4ac69a13e">https://medium.com/@shelcia/surveys-non-response-bias-39d4ac69a13e</a> ).</li></ul><figure><img alt="Key Takeaways from Survey" src="https://cdn-images-1.medium.com/max/1024/1*Co5PTAzNStO_8Zxdmn8Jdw.png" /><figcaption>Key Takeaways from the Survey</figcaption></figure><h3>Affinity Map</h3><p>With the collected data, we collaboratively drafted affinity maps in FigJam.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yETplJs2iJjmHBYrUzYLBA.png" /><figcaption>Affinity Mapping</figcaption></figure><p>Based on the affinity maps, We identified <strong>11 themes</strong> and corresponding user needs. The affinity map helped us consolidate information and develop detailed user personas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3NQmasBkGYwUI7Ce6rWuXg.png" /><figcaption>Affinity Map — Themes</figcaption></figure><h3>Personas</h3><p>Utilizing insights from the affinity map, we crafted personas representing key demographics, goals, needs, challenges, and behaviors observed during the study. These personas offered a focused and humanized perspective, guiding the development of solutions to address the diverse needs of our user groups. The personas we developed include:</p><ol><li><strong>Domestic Student Apartment Seeker: </strong>Cornelius values the ability to contact landlords, view apartment locations on a map, and find affordable housing close to his work.</li><li><strong>International Student Apartment Seeker:</strong> Priya faces informational challenges as an international student searching for an apartment in Madison.</li></ol><figure><img alt="Persona — Domestic Student Apartment Seeker" src="https://cdn-images-1.medium.com/max/1024/1*uRmysg7m5cGeUJW9LYMx9g.png" /><figcaption>Persona — <strong>Domestic Student Apartment Seeker</strong></figcaption></figure><figure><img alt="Persona — International Student Apartment Seeker" src="https://cdn-images-1.medium.com/max/1024/1*PrCxY11fieNaLth-EpISYg.png" /><figcaption>Persona — <strong>International Student Apartment Seeker</strong></figcaption></figure><h4>Reflections</h4><p>We found the process of implementing our data into a table to be <strong><em>smooth</em></strong>. The categories we selected for analyzing goals, challenges, needs, and behaviors aligned well for creating a persona. The most challenging aspect was the narrative format of the persona, as we had to condense all the information into a logical structure. When creating personas for international students, which constitute a significant portion of our participants, it took some time to merge the frustrated, needs, and behaviors into a concise and meaningful result. Eventually, we achieved clarity and cohesion in the persona development process.</p><h3>Journey Mapping</h3><p>Afterwards, we mapped out the user journey based on the insights gathered from our research. This process aided us in comprehending the user’s experience, allowing us to pinpoint pain points and identify opportunities for improvement.</p><h4>Creating Journey Map</h4><p><strong>Defining Stages</strong></p><p>Identified <strong>key stages in the apartment-searching process</strong>, ranging from the initial awareness of the need for housing to the final decision and move-in.</p><p><strong>Persona Alignment</strong></p><p>Based on the users we interviewed and observed, our persona pertains to <strong>younger adults</strong> at the <strong>University of Wisconsin-Madison</strong>.</p><h4>Understanding Pain Points and Identifying Opportunities</h4><p><strong>Highlighting Pain points</strong></p><p><strong>Identify pain points or challenges</strong> that users encountered at each stage. These obstacles included confusing rental processes, limited housing options, or unclear communication.</p><p><strong>Amplifying Opportunities</strong></p><p>For each stage, we carefully <strong>analyzed touchpoints</strong>, <strong>identified</strong> <strong>pain points</strong>, and <strong>assessed the frustrations</strong> that hindered users’ goals. We then <strong>synthesized this information</strong> to understand if there are any opportunity areas for us to explore.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gbGiyMnAts9KW9DN9WgSvw.png" /><figcaption>Journey Mapping</figcaption></figure><h4><strong>Reflections</strong></h4><ol><li><strong>Enhanced User Clarity:</strong> Cornelius’s persona provides essential demographic details, aiding in a better understanding of the user’s context, needs, and behaviors.</li><li><strong>Goal Identification:</strong> The persona clearly outlines Cornelius’s goals, focusing on finding an affordable apartment near his new job, providing a clear direction for the journey map.</li><li><strong>Stage-Focused Journey:</strong> The user journey highlights each stage, emphasizing sub-goals, thoughts, emotions, and actions. Identifying pain points as opportunities streamlines discussions and maintains a concentrated focus on addressing specific issues at each stage.</li><li><strong>Persona Depth:</strong> While basic demographic information is included, deeper insights into Cornelius’s motivations and preferences would enhance the understanding of his apartment hunting journey.</li><li><strong>Incomplete Narrative: </strong>Highlighting common emotions at each stage in the journey map may overlook certain emotions, potentially leaving gaps in the complete narrative of the user’s journey.</li><li><strong>Diverse Paths:</strong> The user journey map amalgamates experiences, presenting cohesive patterns. However, individual deviations may not be prominently emphasized, allowing for potential variations in paths.</li></ol><h3>HEART framework</h3><p>To measure our success, we have set metrics based on the <strong><em>HEART</em></strong> framework:</p><ol><li><strong>Happiness:</strong> Reduce frustration in finding an apartment.</li><li><strong>Task success: </strong>Reduce the time spent on finding housing and signing a lease.</li></ol><figure><img alt="Analysis for Happiness" src="https://cdn-images-1.medium.com/max/1024/1*IRPTRAxiMEywDG7j73rVcQ.png" /><figcaption>Analysis for Happiness</figcaption></figure><figure><img alt="Analysis for Task Success" src="https://cdn-images-1.medium.com/max/1024/1*mxE9NquO_31kMiR0mJ2iig.png" /><figcaption>Analysis for Task Success</figcaption></figure><h4>Reflection</h4><p>The chosen metrics under the <strong><em>“Happiness”</em></strong> category align well with the goal of reducing frustration in finding an apartment. One goal that stands out is the focus on reducing frustration and making the house searching process less overwhelming. By tracking metrics such as transfer rate from searching to be a tenant, success rate to reach the official website, button clicks rate, and bounce rates, we can gain more insights into how enjoyable the journey was for users.</p><p>Additionally, I think the metrics related to user satisfaction and engagement are crucial for assessing the overall success of the website. These metrics will help us gauge the level of user engagement and identify opportunities to enhance the user experience.</p><p>Overall, the goals, metrics, and signals are selected to provide us with a comprehensive approach to evaluating the success of our project as they cover various aspects of user experience, satisfaction, engagement, and efficiency. I believe that by leveraging this framework, we could immensely improve the various facets of the user experience on the website.</p><h3>Next Steps</h3><p><strong>Prototyping: </strong>Drawing from the opportunity areas we identified, we can prototype various ideas for websites aimed at enhancing the apartment-finding experience.</p><p><strong>A/B Testing: </strong>We will conduct an experiment to test various aspects of apartment-hunting websites. This process will help validate our research findings and determine which features should be prioritized for our prototypes.</p><figure><img alt="A/B Testing" src="https://cdn-images-1.medium.com/max/1024/1*FCtUWV_tzLSPSQxObmtHeg.png" /><figcaption><strong>A/B Testing</strong></figcaption></figure><h3>Experiment Mockup</h3><p><strong>Figma — For drawing two different prototypes</strong></p><ul><li><a href="https://www.figma.com/file/XL9Mf1Tdmzjm3HHaHd3vbl/LIS-611-A6-Experiment?type=design&amp;node-id=10%3A495&amp;mode=design&amp;t=Qj1P8ji6hSeIm6B3-1">https://www.figma.com/file/XL9Mf1Tdmzjm3HHaHd3vbl/LIS-611-A6-Experiment?type=design&amp;node-id=10%3A495&amp;mode=design&amp;t=Qj1P8ji6hSeIm6B3-1</a></li></ul><p><strong>Maze — For the experiment</strong></p><ul><li>Group A: <a href="https://t.maze.co/198544230">https://t.maze.co/198544230</a></li><li>Group B: <a href="https://t.maze.co/198564412">https://t.maze.co/198564412</a></li></ul><figure><img alt="Experiment Mockups" src="https://cdn-images-1.medium.com/max/1024/1*nN_yLm76llQDXdvy629G5Q.png" /><figcaption>Experiment Mockups</figcaption></figure><h3>Conclusion</h3><p>Our research journey involved conducting insightful interviews and contextual inquiries with students actively engaged in the search for apartments in Madison, WI. To distill the wealth of information gathered, we employed affinity diagramming, crafted personas, and meticulously mapped the intricate nuances of the apartment hunting experience in a comprehensive journey map.</p><h4>Key findings include:</h4><ol><li><strong><em>Inaccuracies in Apartment Listings:</em></strong> A significant challenge surfaced as students navigated through inaccuracies in apartment listings. This discrepancy added a layer of complexity and uncertainty to their search process.</li><li><strong><em>Overwhelming Nature of Apartment Hunting:</em></strong> The apartment hunting journey emerged as a formidable task, characterized by the overwhelming array of locations and amenities that students had to meticulously consider. The sheer volume of choices posed a substantial challenge.</li><li><strong><em>Multiple Website Consultation:</em></strong> Many students adopted a multi-platform approach, consulting various websites to compile information on location, reviews, and the legitimacy of prospective apartments. This highlighted the fragmented nature of available resources.</li><li><strong><em>Communication Hurdles with Landlords or Property Managers:</em></strong> Several students encountered difficulties in maintaining timely and effective communication with landlords or property managers. This aspect of the process posed a notable hurdle in their overall apartment hunting experience.</li></ol><blockquote>In essence, our findings underscore the intricate challenges that students face in the apartment hunting landscape. By uncovering these key insights, we lay the groundwork for informed solutions aimed at enhancing the overall experience and addressing the specific pain points identified in the journey of finding suitable accommodations.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39096379b30b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/design-bootcamp/apartment-hunting-ux-study-39096379b30b">Apartment Hunting — UX Study</a> was originally published in <a href="https://medium.com/design-bootcamp">Bootcamp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>