<?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 Marina Eremina on Medium]]></title>
        <description><![CDATA[Stories by Marina Eremina on Medium]]></description>
        <link>https://medium.com/@marinaeremina?source=rss-9dc28a167b5d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mK8X_pqiItnAplGT60ml7w.png</url>
            <title>Stories by Marina Eremina on Medium</title>
            <link>https://medium.com/@marinaeremina?source=rss-9dc28a167b5d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 14:43:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@marinaeremina/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[Salesforce Employee Agent: What to Expect and How to Work With It]]></title>
            <link>https://medium.com/@marinaeremina/salesforce-employee-agent-what-to-expect-and-how-to-work-with-it-f4eafe332bc5?source=rss-9dc28a167b5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4eafe332bc5</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[salesforce-admin]]></category>
            <category><![CDATA[salesforce-agentforce]]></category>
            <category><![CDATA[customer-service]]></category>
            <dc:creator><![CDATA[Marina Eremina]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 10:29:31 GMT</pubDate>
            <atom:updated>2026-11-17T10:29:31.332Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uwo2YLtJxtFWPCbHgqanew.png" /></figure><p>Salesforce <strong>Employee Agent</strong> feels familiar if you’ve used <strong>AI chat tools</strong> like ChatGPT or Microsoft Copilot. You interact with it through a chat interface, ask questions and get responses. But while the experience has <strong>similarities</strong>, there are some <strong>important differences</strong> worth understanding.</p><h4>1. It’s an LLM-based conversational assistant.</h4><p>Employee Agent is an <strong>LLM-based conversational assistant</strong>, so many capabilities you’re used to from other AI chat tools are available <strong>out of the box</strong>.</p><p>You can ask it to:</p><ul><li>Draft or rewrite, translate customer emails.</li><li>Summarize information.</li><li>Answer questions and explain information.</li></ul><p>You don’t need a custom action for every writing or language-related task. These are <strong>general capabilities</strong> provided by the underlying language model.</p><h4>2. Employee Agent has access to Salesforce context.</h4><p>Unlike standalone AI chat tools, Employee Agent operates <strong>within your Salesforce session</strong>.</p><p>For example, it can:</p><ul><li>See the currently opened Salesforce record.</li><li>Access relevant CRM data according to your permissions.</li></ul><p>This means you can <strong>ask questions about the record</strong> you’re working on instead of manually copying information into a separate AI chat.</p><h4>3. Employee Agent’s highly configurable.</h4><p>Admins and developers can <strong>extend its capabilities</strong> with custom instructions and actions to support specific <strong>business processes</strong> and requirements.</p><p>The distinction is important: the LLM can help you understand information and prepare a response, while configured actions allow the agent to execute <strong>specific tasks in Salesforce</strong>.</p><p>This opens up possibilities beyond simply answering questions or generating text.</p><h4>4. Don’t expect exactly the same experience as ChatGPT or Copilot.</h4><p>Although the conversational experience is familiar, there are some differences worth keeping in mind.</p><ul><li><strong>No saved conversation history.</strong> Unlike ChatGPT or Copilot, Employee Agent doesn’t provide a list of previous conversations to return to.</li><li><strong>Clear history when switching topics.</strong> You know how, when you start discussing something completely different in the same ChatGPT or Copilot conversation, the LLM can sometimes get confused and mix up the context? The same principle applies here. Clear the chat history when moving to an unrelated task.</li><li><strong>Defined scope.</strong> Admins can restrict topics or types of requests that aren’t relevant to the agent’s intended purpose. So you generally can’t use it to chat about absolutely anything, as you might with a general-purpose AI assistant.</li></ul><h3>A familiar AI assistant with Salesforce capabilities</h3><p>Employee Agent <strong>combines familiar LLM capabilities with Salesforce context and configurable actions</strong>.</p><p>For <strong>users</strong>, it can help with everyday communication, information retrieval and routine activities. For Salesforce <strong>admins and developers</strong>, it offers a way to combine general LLM capabilities with custom actions and business process automation.</p><p>The real value comes from bringing these capabilities together in the place where customer service work already happens.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4eafe332bc5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce Agentforce: Best Learning Resources for Building Agents with AgentScript]]></title>
            <link>https://medium.com/@marinaeremina/salesforce-agentforce-best-learning-resources-for-building-agents-with-agentscript-c59f1fab293f?source=rss-9dc28a167b5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c59f1fab293f</guid>
            <category><![CDATA[resources]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-agentforce]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Marina Eremina]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 08:16:40 GMT</pubDate>
            <atom:updated>2026-10-28T08:16:40.814Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1_mFL9ZLsc-n8BonWXBi2w.png" /></figure><p><strong>AgentScript</strong> is Salesforce’s language for building Agentforce agents using a combination of <strong>deterministic logic</strong> and <strong>LLM</strong> <strong>reasoning</strong>.</p><p>If you’re new to building agents with AgentScript, this list is a good <strong>place to start</strong>. I’ve gathered useful resources, from Trailhead modules and video tutorials to code examples you can explore and learn from.</p><p>AgentScript is evolving quickly, and learning resources are still growing. This is a <strong>curated list</strong> that I’ll update as new resources become available. Advanced topics, like agents testing and analytics, are covered in a separate list.</p><h3>Start with Trailhead</h3><p>Trailhead is a great place to combine theory with hands-on practice.</p><ul><li><a href="https://trailhead.salesforce.com/content/learn/modules/agent-script-basics"><strong>Agent Script Basics</strong></a><strong> </strong>— Covers the fundamentals of AgentScript, including its structure, variables, and reasoning instructions. Probably the most beginner-friendly resource for getting started with AgentScript.</li><li><a href="https://trailhead.salesforce.com/content/learn/trails/become-an-agentblazer-champion"><strong>Agentblazer Trails</strong></a><strong> — </strong>Comprehensive learning paths that take you from Agentforce fundamentals to more advanced concepts and hands-on projects. Follow them in order: <a href="https://trailhead.salesforce.com/content/learn/trails/become-an-agentblazer-champion">Become an Agentblazer Champion </a>→ <a href="https://trailhead.salesforce.com/content/learn/trails/become-an-agentblazer-innovator">Become an Agentblazer Innovator</a> → <a href="https://trailhead.salesforce.com/content/learn/trails/become-an-agentblazer-legend">Become an Agentblazer Legend</a>.</li></ul><h3>Official developer documentation</h3><p>Beginner-friendly Salesforce documentation to help you get familiar with AgentScript and look up language features as you build your agents.</p><ul><li><a href="https://developer.salesforce.com/docs/ai/agentforce/guide/agent-script.html"><strong>Agentforce Developer Guide</strong></a> — The official Salesforce developer documentation for AgentScript, covering the basics, language features, variables, control flow, model configuration, and agent management.</li><li><a href="https://developer.salesforce.com/docs/ai/agentforce/guide/ascript-reference.html"><strong>Agent Script Reference</strong></a> — Language syntax, keywords, concepts.</li></ul><h3>Video tutorials</h3><p>Clear, practical explanations of AgentScript concepts you’ll want to revisit as you build your own agents.</p><ul><li><strong>Sharda Rao | </strong><a href="https://agentforcepartners.hubs.vidyard.com/watch/3rz2ncaYHSjpDJdRRgsurS"><strong>Agent Script Deep Dive Webinar Series (Part 1)</strong></a><strong> | </strong>Explains the anatomy of an AgentScript agent, how turns and loops work, and the concept of <strong><em>hybrid reasoning</em></strong>. A great resource for understanding how agents work under the hood, when they rely on LLM reasoning and when they follow deterministic logic, and how to combine the two effectively.</li><li><strong>Code with Sally | </strong><a href="https://www.youtube.com/playlist?list=PLeevJTFuNoIRUpaPgOa6moi6mayM1g_e7"><strong>AgentScript Series on YouTube</strong></a><strong> | </strong>Focuses on AgentScript fundamentals: learning the syntax, understanding the execution flow, and seeing how different language features are used when building agents.</li></ul><h3>Learn from working code examples</h3><p>Explore practical AgentScript patterns through code examples, from simple to more advanced.</p><ul><li><a href="https://developer.salesforce.com/sample-apps/agent-script-recipes"><strong>Agent Script Recipes</strong></a><strong> </strong>—<strong> </strong>Examples of AgentScript agents from Salesforce, from a minimal Hello World agent to more complex implementations. Explore patterns for working with variables, conditional logic, actions, subagent transitions and much more. Each example comes with a clear explanation of how it works.</li><li><a href="https://github.com/trailheadapps/agent-script-recipes"><strong>Agent Script Recipes GitHub repository</strong></a> — If you’re comfortable working in VSCode, check out the GitHub repository behind these recipes. It contains the same examples but is updated more frequently and includes additional data, such as AI authoring bundles and action metadata. You can explore the full sfdx project structure, study the code, and adapt the examples to your own agents.</li></ul><h3>The comprehensive reference</h3><p>Part of the <strong>Agentforce and Einstein Generative AI </strong>Salesforce Help documentation.</p><ul><li><a href="https://help.salesforce.com/s/articleView?id=ai.copilot_intro.htm&amp;type=5"><strong>Salesforce Help: Design and Implement Agents</strong></a><strong> </strong>— A broad collection of Salesforce Help articles covering the full agent development lifecycle, from design and building to testing, deployment, analytics, and monitoring.</li></ul><p><strong>My suggestion:</strong> Start with Trailhead, watch video tutorials, and then explore the recipes. Reading working scripts alongside the documentation is a useful way to <strong>connect the syntax with real agent behavior</strong>. And of course, balance learning from tutorials and documentation with hands-on practice. <strong>Building</strong> your own agents is the best way to learn 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c59f1fab293f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a React CRUD App on Salesforce with GraphQL]]></title>
            <link>https://medium.com/@marinaeremina/building-a-react-crud-app-on-salesforce-with-graphql-66b74634cb67?source=rss-9dc28a167b5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/66b74634cb67</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <dc:creator><![CDATA[Marina Eremina]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 06:58:25 GMT</pubDate>
            <atom:updated>2026-10-21T06:58:25.423Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*niKkstp6QOSwW3sZggU4gQ.png" /></figure><p>How much plumbing does a React CRUD App on Salesforce actually need?</p><p>I started with a <strong>prebuilt SFDX project containing a React app</strong>, generated with the Salesforce CLI. It comes with the React boilerplate and required dependencies already set up (check <a href="https://levelup.gitconnected.com/how-to-quickly-create-and-deploy-a-react-app-on-salesforce-359b799ebf91">here</a> how to quickly generate SFDX project with React uiBundle data). I then connected the project to a Salesforce sandbox.</p><p>The goal was simple: build a small React UI that could <strong>read and update real Salesforce Cases</strong>.</p><p>Basically, to build the integration, you just need:</p><h3>1. Generate the GraphQL schema</h3><p>First, generate the Salesforce GraphQL schema:</p><pre>npm run graphql:schema</pre><p>The schema is essentially describes the <strong>objects you can access and the queries you can make</strong> in the org.</p><h3>2. Define the GraphQL operations</h3><p>Using the schema, define the <strong>GraphQL operations</strong> the UI needs.</p><p>For my Cases app:</p><ul><li><strong>Queries:</strong> Get Cases, Get Case details</li><li><strong>Mutation:</strong> Update a Case</li></ul><h3>3. Generate TypeScript types</h3><p>Next, use GraphQL Code Generator to generate TypeScript types from the Salesforce schema and the operations:</p><pre>npm run graphql:codegen</pre><p>This gives the React app type-safe definitions that you can use in your React components for queries and mutations results without manually defining the data shapes.</p><h3>4. Setup GraphQL client</h3><p>To execute the queries and mutations, use the <strong>Data SDK (</strong><strong>@salesforce/platform-sdk)</strong>.</p><p>It includes a GraphQL client and handles authentication and CSRF token management.</p><h3>5. Build the UI</h3><p>From there, the <strong>AI coding tool</strong> handled most of the React implementation generating React components for all pages:</p><p><strong>Cases → Case details → Edit → Save</strong></p><p>And that’s where things got interesting.</p><p>The interesting part isn’t just GraphQL or React individually. It’s how well the pieces fit together:</p><ul><li><strong>React is extremely good at building the UI.</strong></li><li><strong>GraphQL is extremely good at fetching the data you need</strong>, including related data — you can fetch an account, its related cases, contacts, and more in a single query.</li><li><strong>AI coding agents are extremely good at generating the React boilerplate, GraphQL queries, and wiring the pieces together.</strong></li></ul><p>And <strong>Salesforce already provides the backend</strong>: the data model, relationships, authentication, permissions, validation, and APIs.</p><p>You can spend less time building the integration — and more time concentrating on UI/UX and deciding what data you want to show and how you want to show it.</p><p><strong>Resources:</strong><br><a href="https://developer.salesforce.com/docs/platform/multiframework/guide/reactdev-data-sdk-usage.html">Fetch data with Data SDK</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66b74634cb67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Formatting URLs in Agentforce agent response]]></title>
            <link>https://medium.com/@marinaeremina/formatting-urls-in-agentforce-agent-response-1716fa18a4d1?source=rss-9dc28a167b5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1716fa18a4d1</guid>
            <category><![CDATA[salesforce-agentforce]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[agentforce]]></category>
            <dc:creator><![CDATA[Marina Eremina]]></dc:creator>
            <pubDate>Sun, 18 Oct 2026 10:48:20 GMT</pubDate>
            <atom:updated>2026-10-23T09:24:02.939Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yRmydTlGNYQBFLvxjWbqBQ.png" /></figure><p>When building an Agentforce agent, small formatting details can make its responses easier to read and use.</p><p>I tested three ways to improve how an agent <strong>displays links</strong>: replacing raw URLs with descriptive labels, applying brand colors, and formatting links as call-to-action buttons.</p><p>All three use the same basic idea: <strong>give the agent explicit formatting instructions.</strong></p><h3>1. Replace raw URLs with descriptive labels</h3><p>Long URLs can make a response harder to scan. Instead, ask the agent to display a <strong>short, meaningful label</strong> while keeping the original URL as the link destination.</p><p>Add this instruction to the agent’s system instructions:</p><pre>URL formatting: Always display URLs as HTML anchor elements <br>using the format &lt;a href=&quot;URL&quot;&gt;Label&lt;/a&gt;, <br>where URL is the full address and Label is a short, <br>human-readable description. <br>Never display raw URLs as plain text.</pre><p>For example, instead of displaying a long order URL, the agent can return a link labeled <strong>Return Policy Details</strong>.</p><p><strong>Raw URL</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/0*wEIfLlOCj6TgAyS6.png" /></figure><p><strong>Descriptive link label</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/0*os31bY5GjFm1T3bj.png" /></figure><p>Add this instructions in the system block so that all subagents could reuse them, or in the individual subagent&#39;s instructions.</p><h3>2. Apply your brand color</h3><p>You can add a nice touch to the responses and make links match your company’s branding.</p><pre>URL formatting: Always use &lt;a href=&quot;URL&quot;&gt;Label&lt;/a&gt;, <br>where URL is the full address and Label is a short, <br>human-readable description. <br>Set the link text color to the brand color #HEXCOLOR.<br>Never display raw URLs as plain text.</pre><p>Replace #HEXCOLOR with your preferred brand color.</p><p>The result is still a regular link, but with styling that better fits your interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/0*peGkNNvvYqGuBzfD.png" /></figure><h3>3. Turn links into call-to-action buttons</h3><p>Sometimes a link represents the main action the user should take next. You can make it more prominent by asking the agent to display it as a <strong>call-to-action button</strong>.</p><p><strong>Option 1: Describe the desired style in plain English</strong></p><pre>URL formatting: Always render action links as HTML anchor <br>elements using &lt;a href=&quot;URL&quot;&gt;Label&lt;/a&gt;. <br>Use a short, action-oriented label, such as &quot;View Order Details&quot;. <br>Display the link as a call-to-action button on its own line. <br>Style the link using inline CSS: background color #75352A, <br>text color #FFFFFF, padding: 10px 16px and border-radius: 4px. <br>Never display raw URLs as plain text.</pre><p><strong>Option 2: Specify the HTML styling directly</strong></p><p>If you want more explicit control over the appearance, include the styling in the HTML element itself:</p><pre>URL formatting: Always render action links as HTML anchor elements <br>using &lt;a href=&quot;URL&quot; style=&quot;display: inline-block; background-color: #75352A; <br>color: #FFFFFF; padding: 10px 16px; border-radius: 4px; <br>text-decoration: none;&quot;&gt;Label&lt;/a&gt;. <br>Use a short, action-oriented label, such as &quot;View Order Details&quot;. <br>Place the button on its own line. <br>Never display raw URLs as plain text.</pre><p>The first version describes the desired appearance; the second provides the exact styling properties.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/0*MrEmpnB9hVIpymYI.png" /></figure><h4>A few things to keep in mind</h4><p>These examples are prompt-level formatting instructions, not a guarantee that every Salesforce interface will render the HTML as intended.</p><p>Always <strong>test the result in your actual Salesforce interface</strong>. The <strong>rendering component must support HTML and the relevant styling</strong> for the button to appear as intended.</p><p>If the HTML is displayed as plain text or the styling is stripped, changing the prompt alone may not solve the problem.</p><h3>Conclusion</h3><p>A descriptive label improves readability. Brand colors add visual consistency. A call-to-action button makes the next step more prominent.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1716fa18a4d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Quickly Create and Deploy a React App on Salesforce]]></title>
            <link>https://levelup.gitconnected.com/how-to-quickly-create-and-deploy-a-react-app-on-salesforce-359b799ebf91?source=rss-9dc28a167b5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/359b799ebf91</guid>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Marina Eremina]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 15:24:11 GMT</pubDate>
            <atom:updated>2026-10-16T15:24:11.709Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wD10316_J10tDVZGbnPfxA.png" /></figure><p>Salesforce provides <strong>CLI templates</strong> that can quickly scaffold a React application with a ready-to-run React/Vite setup.</p><p>There are two approaches:</p><ol><li>Generate a <strong>complete SFDX project</strong> with an internal React app.</li><li>Generate a <strong>React UI Bundle</strong> inside an existing SFDX project.</li></ol><p>Both give you React boilerplate that you can run, explore, customize, and deploy. The main difference is <strong>how much Salesforce setup is included</strong> and what you need to do before the app is available in the org.</p><h3>Prerequisites</h3><p>You’ll need:</p><ul><li>VS Code</li><li>Salesforce CLI (sf)</li><li>Salesforce Extension Pack</li><li>A Salesforce org, such as a Trailhead Playground</li><li>Node.js</li></ul><p>Check the CLI:</p><pre>sf --version</pre><p>Check your connected orgs:</p><pre>sf org list</pre><p>Set your default org:</p><pre>sf config set target-org=my-org</pre><h3>Option 1: Generate a complete SFDX project</h3><p>If you’re starting from scratch, you can generate a complete project using the reactinternalapp template:</p><pre>sf template generate project --name my-react-app --template reactinternalapp</pre><p>This creates a new Salesforce DX project with the React application and the Salesforce metadata needed for an internal React app.</p><p>Install the dependencies and start the React app locally:</p><pre>cd my-react-app<br>npm install<br>npm run dev</pre><p>You now have a prebuilt React application that you can explore and modify.</p><h3>Deploying the project</h3><p>From the project root:</p><pre># Build the production bundle (run command from <br># force-app/main/default/uiBundles/react-app-name)<br>npm run build<br># Deploy the production bundle (run from the SFDX project root)<br>sf project deploy start --source-dir force-app</pre><p>After deployment, assign the generated permission set to your user if required by the generated project — app appears in the App Launcher.</p><p>The advantage of this approach is that Salesforce gives you a more complete starting point. You’re starting with an application rather than just a UI Bundle.</p><h3>Option 2: Generate a React UI Bundle</h3><p>This approach is useful when you <strong>already have an SFDX project</strong> and want to add a React application to it.</p><p>From the root of your existing project:</p><pre>sf template generate ui-bundle --name ReactDemo --template reactbasic</pre><p>The bundle is created under:</p><pre>force-app/<br>└── main/<br>    └── default/<br>        └── uiBundles/<br>            └── ReactDemo/</pre><p>Inside you’ll find the React application.</p><p>Install the dependencies and run locally:</p><pre>cd force-app/main/default/uiBundles/ReactDemo<br>npm install<br>npm run dev</pre><p>This gives you the same basic experience you’d expect from a modern React/Vite application: start with working boilerplate and then build on top of it.</p><h3>Deploying the UI Bundle</h3><p>Go back to the SFDX project root and deploy the bundle:</p><pre># Build the production bundle (run command from <br># force-app/main/default/uiBundles/react-app-name)<br>npm run build<br># Deploy the production bundle (run from the SFDX project root)<br>sf project deploy start --source-dir force-app/main/default/uiBundles/ReactDemo</pre><p>However, this is where the two approaches differ. The reactbasic UI Bundle gives you the React application itself, but you need additional Salesforce metadata to expose it as an internal application:</p><ul><li>A CustomApplication under force-app/main/default/applications/</li><li>A reference from the application to the UI Bundle</li><li>A permission set that makes the application visible</li><li>Assignment of that permission set to your user</li></ul><p>Once that setup is deployed and the permission set is assigned, the React application becomes available through the Salesforce App Launcher.</p><h3>Which approach should you use?</h3><p>If you’re starting a <strong>new Salesforce project</strong>, the complete project template is the easier starting point. If you already have a Salesforce DX project and want to add React to it, use the UI Bundle.</p><p>Both approaches solve the same basic problem: <strong>get a working React application scaffolded quickly so you can start exploring and developing. </strong>The difference is<strong> where you start</strong> and <strong>how much Salesforce setup you have to do yourself</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=359b799ebf91" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/how-to-quickly-create-and-deploy-a-react-app-on-salesforce-359b799ebf91">How to Quickly Create and Deploy a React App on Salesforce</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Connect a Trailhead Org to Salesforce CLI]]></title>
            <link>https://medium.com/@marinaeremina/how-to-connect-a-trailhead-org-to-salesforce-cli-bc6278349891?source=rss-9dc28a167b5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc6278349891</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[agentforce]]></category>
            <category><![CDATA[salesforce-developer]]></category>
            <category><![CDATA[trailhead]]></category>
            <category><![CDATA[salesforce-agentforce]]></category>
            <dc:creator><![CDATA[Marina Eremina]]></dc:creator>
            <pubDate>Thu, 15 Oct 2026 14:04:31 GMT</pubDate>
            <atom:updated>2026-10-15T14:04:31.619Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m8BaJ8GQ2EO0H06w6qgNeA.png" /></figure><h4>Take Trailhead Learning beyond the browser</h4><p>Salesforce <strong>Trailhead</strong> is a great way to learn <strong>Agentforce</strong>. You can <strong>level up this experience</strong> by connecting your Trailhead org to Salesforce CLI and working with AgentScript metadata locally in VS Code. Here’s a <strong>quick setup</strong> flow for connecting a Trailhead Agentforce org to Salesforce CLI 👇</p><p><strong>Prerequisites</strong>:<br> • VS Code<br> • Salesforce CLI installed<br> • Trailhead org with Agentforce enabled</p><h4>Step 1. Open your Trailhead org</h4><p>Launch the Trailhead playground or developer org that you want to connect.</p><h4>Step 2. Find your username</h4><p>Profile → Settings</p><h4>Step 3. Set password (if not set already)</h4><p>Settings → Change My Password</p><h4>Step 4. Connect org via CLI</h4><p>Authenticate via browser, setting up alias for the org and providing your Trailhead org url:</p><pre># Authenticate with your Trailhead org<br>sf org login web --alias your-org-alias --instance-url https://your-org-name.develop.my.salesforce.com</pre><h4>Step 5. Verify connection</h4><p>Confirm that the org was added successfully:</p><pre>sf org list</pre><h4>Step 6. Set the default org</h4><p>To avoid specifying the org in every command, set it as the default target:</p><pre>sf config set target-org your-org-alias</pre><p><strong>Important</strong>: Use the Correct Login URL</p><p>Trailhead org URLs used for login usually look like:</p><p><a href="https://your-org-name.develop.my.salesforce.com/">https://your-org-name.develop.my.salesforce.com</a></p><p><strong>NOT</strong>:<br> • login.salesforce.com<br> • develop.lightning.force.com</p><p>Once connected, you can <strong>retrieve AgentScript metadata</strong> locally in VS Code, experiment faster, and work with Agentforce in a more <strong>development-oriented workflow</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc6278349891" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding OKLCH in CSS]]></title>
            <link>https://levelup.gitconnected.com/understanding-oklch-in-css-e69d765fb743?source=rss-9dc28a167b5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e69d765fb743</guid>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[color-theory]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ui]]></category>
            <dc:creator><![CDATA[Marina Eremina]]></dc:creator>
            <pubDate>Tue, 25 Nov 2025 16:56:33 GMT</pubDate>
            <atom:updated>2025-11-25T16:56:33.349Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn why OKLCH is a better choice for color management and see practical examples for real-world web design</h4><p>OKLCH (<strong>Ok</strong><em>lab</em><strong> L</strong><em>ightness</em>, <strong>C</strong><em>hroma</em><strong> </strong>and <strong>H</strong><em>ue) </em>is<em> </em>a color model that creates consistent, predictable colors across devices. Modern CSS supports OKLCH natively and it’s quickly becoming the go-to choice for designers and frontend developers.</p><h3><strong>What is OKLCH?</strong></h3><p>OKLCH is a <strong>perceptually uniform color model</strong> based on the Oklab space. OKLCH represents color using three <strong>intuitive components</strong>:</p><ul><li><strong>L — </strong>lightness</li><li><strong>C</strong> — chroma (intensity)</li><li><strong>H</strong> — hue (color angle)</li></ul><p>The key benefit: <strong>equal numerical changes produce equal perceived changes</strong>.</p><h3>How to Use OKLCH in CSS?</h3><p>You can use the oklch() function directly in CSS by specifying L, C and H parameters. An optional alpha parameter can be added for transparency:</p><pre>color: oklch(0.60 0.20 260); /* oklch(L C H) */<br>color: oklch(0.60 0.20 260 / 0.8); /* oklch(L C H / alpha) */</pre><h3>Exploring OKLCH with Intuitive Examples</h3><p>Let’s take a shade of blue: oklch(0.6 0.2 260) and see how tweaking each parameter affects the color.</p><h4>Lightness (L)</h4><p>Adjusting L changes <strong>brightness</strong> while keeping chroma and hue constant. L value ranges from 0 to 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1O68j1_7LT-NXwp4VGLf8w.png" /><figcaption>Variants of blue with different lightness values (L)</figcaption></figure><h4>Chroma (C)</h4><p>Adjusting C changes <strong>color intensity</strong>: from muted to vibrant. C ranges from 0 to theoretically unlimited vibrant colors, but in practice values above ~0.5 may not render well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NHmJwjgPF94305uX6Gd0pQ.png" /><figcaption>Variants with different color intensity (C)</figcaption></figure><h4>Hue (H)</h4><p>Adjusting H <strong>rotates the color around the color wheel</strong> while keeping lightness and chroma constant. H is measured in degrees from 0 to 360°.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8RrtVnH-K1gxQUjiDuO05A.png" /><figcaption>Variants with different hues (H)</figcaption></figure><h4>Transparency (Alpha)</h4><p>Varying alpha from fully transparent to fully opaque. Useful for overlays and subtle UI accents. Alpha ranges from 0 (transparent) to 1 (opaque).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-SLmHW_PTsuFX5VYSj83HA.png" /><figcaption>Variants with different transparency (alpha)</figcaption></figure><p>Now that we understand how each dimension works separately, let’s see why OKLCH is useful in real projects.</p><h3>Why It Matters</h3><h4><strong>1. Better Design Workflow</strong></h4><p>With the from() function in CSS, you can generate lightened, darkened or semi-transparent variations of a color from a single primary color:</p><pre>:root {<br>  /* Primary color */<br>  --primary: oklch(0.60 0.20 260);<br><br>  /* Derived colors based on --primary */<br><br>  /* Lighter: increase lightness */<br>  --primary-light: oklch(from var(--primary) calc(l + 0.20) c h);<br><br>  /* Darker: decrease lightness */<br>  --primary-dark: oklch(from var(--primary) calc(l - 0.20) c h);<br><br>  /* Example with partial transparency */<br>  --primary-transparent: oklch(from var(--primary) l c h / 0.6);<br>}</pre><p>This gives you a significant advantage: the primary color becomes a <strong>single source of truth</strong>.</p><p>Change one variable → update your entire palette.</p><h4><strong>2. Consistent Visuals</strong></h4><p>OKLCH separates color into <strong>human-meaningful dimensions</strong>. Therefore, accessibility (contrast, color distinction, states like hover/active) becomes much easier.</p><p><strong>Example: Focus &amp; Hover States</strong></p><p>To improve contrast for hover, you increase L slightly:</p><pre>--btn: oklch(0.55 0.14 255);<br>--btn-hover: oklch(from var(--btn) calc(l + 0.1) c h);</pre><p>This change affects the color in a <strong>visually consistent way</strong>. Increasing L always makes a color lighter, decreasing it makes it darker. This predictability is a big improvement over HSL, where changes in saturation or lightness can sometimes produce unexpected results.</p><p><strong>Example: Disabled vs. Active States</strong></p><p>Disabled states should be less intense but still readable. Reducing C achieves this instantly:</p><pre>--input: oklch(0.40 0.10 250);<br>--input-disabled: oklch(from var(--input) l calc(c - 0.08) h); /* faded */</pre><p><strong>Example: Data Visualization Colors</strong></p><p>Data visualization needs multiple colors with the <strong>same brightness and saturation</strong>, otherwise some colors look heavier or louder than others. With OKLCH it is enough to adjust the H parameter:</p><pre>/* Change H parameter */<br>--chart-1: oklch(0.70 0.16 30);<br>--chart-2: oklch(0.70 0.16 90);<br>--chart-3: oklch(0.70 0.16 150);<br>--chart-4: oklch(0.70 0.16 210);<br>--chart-5: oklch(0.70 0.16 270);</pre><p>Perfect for charts, maps and dashboards.</p><h4><strong>3. Works Great in Dark Mode</strong></h4><p>You can generate dark mode variations by adjusting <strong>only the </strong><strong>L parameter</strong>:</p><pre>:root {<br>  --color-bg: oklch(0.98 0.02 250);<br>  --color-text-700: oklch(0.20 0.02 250);<br>  --color-text-600: oklch(0.44 0.03 256.802);<br>  --color-blue: oklch(0.70 0.20 260);<br>}<br><br><br>.theme-light {<br>  --color-background: var(--color-bg);<br>  --color-text: var(--color-text-700);<br>  --color-subtext: var(--color-text-600);<br>  --color-primary: var(--color-blue);<br>}<br><br>.theme-dark {<br>  --color-background: oklch(from var(--color-bg) calc(l - 0.86) c h);<br>  --color-text: oklch(from var(--color-text-700) calc(l + 0.75) c h);<br>  --color-subtext: oklch(from var(--color-text-600) calc(l + 0.36) c h);<br>  --color-primary: oklch(from var(--color-blue) calc(l - 0.3) c h);<br>}</pre><p>These adjustments create a balanced, readable dark theme with minimal effort. Result looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*sQachZR4uvxa4XGfcLUEUQ.gif" /><figcaption>Theme toggle example</figcaption></figure><h3>Final thoughts</h3><p>OKLCH isn’t just a new color format, it’s a simpler mental model for color in the browser. If you care about accessibility, predictable palettes or just want nicer colors with less guessing, OKLCH is a smart choice to start using now.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e69d765fb743" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/understanding-oklch-in-css-e69d765fb743">Understanding OKLCH in CSS</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Deploy a Website to GitHub Pages (2025)]]></title>
            <link>https://levelup.gitconnected.com/how-to-deploy-a-website-to-github-pages-2025-aca56faeaa7d?source=rss-9dc28a167b5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/aca56faeaa7d</guid>
            <dc:creator><![CDATA[Marina Eremina]]></dc:creator>
            <pubDate>Wed, 10 Sep 2025 03:01:43 GMT</pubDate>
            <atom:updated>2025-09-10T03:01:43.120Z</atom:updated>
            <content:encoded><![CDATA[<h4>An easy guide to deploying a React app or a plain website and resolving routing issues on GitHub Pages</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*_DERa8bAaNxGbJaNi95InA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@ijeunes?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Sam Grozyan</a> on <a href="https://unsplash.com/photos/white-and-brown-cat-on-macbook-pro-hQPoYovqWR0?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>GitHub Pages is one of the simplest ways to host static websites and single-page applications directly from your GitHub repository. Whether it’s a portfolio or a small project, you can deploy your app in minutes.</p><p>This article will show you how to deploy your site step by step using the <strong>gh-pages</strong> package or <strong>GitHub Actions</strong>, and how to handle routing issues when working with single-page applications (SPAs).</p><h3><strong>1. </strong>Deploying with the gh-pages Package</h3><p>The <a href="https://github.com/tschaub/gh-pages"><strong>gh-pages</strong></a> package is great for <strong>quick manual deployments</strong>. It is the most fast and easy way to publish your repository to GitHub Pages without much setup.</p><p><strong>Step 1: Install </strong><strong>gh-pages</strong></p><pre>npm install gh-pages --save-dev</pre><p><strong>Step 2: Add a Deployment Script in the </strong><strong>package.json</strong></p><p>Now let’s add a script to <strong>build your app for production</strong> and <strong>deploy</strong> it. The gh-pages command needs to know which directory contains your production build. Use the -d flag to provide the build directory name (for example, Vite uses dist by default):</p><pre>// package.json<br>{<br>  &quot;scripts&quot;: {<br>    &quot;deploy&quot;: &quot;npm run build &amp;&amp; gh-pages -d dist&quot;<br>  }<br>}</pre><p><strong>Step 3: Run Deployment</strong></p><pre>npm run deploy</pre><p>This command builds your app from your local directory on the <em>currently checked-out branch</em> and pushes the output to the remote gh-pages branch. After that, you can go to <strong>Settings → Pages</strong> in your repository to view deployment details. Your published site will be accessible at username.github.io/your-repo-name.</p><h3>2. Deploying with GitHub Actions</h3><p><strong>GitHub Actions</strong> is another way to publish your site. It requires a bit more setup but gives you more flexibility. For example, you can run <strong>automated tasks</strong> like linting and tests before deploying.</p><p>To use this approach you need to create a <strong>workflow,</strong> which is basically a YAML file with instructions that define <strong>when the workflow should run</strong> (for example, when you push to a branch) and <strong>what steps it should perform</strong> (such as install dependencies, run tests or deploy).</p><p>GitHub looks for workflows in a .github/workflows directory in your repository. Add a .github/workflows directory and inside it create a new file. You can name it anything you like, for example deploy.yml.</p><p><strong>Example Workflow in </strong><strong>deploy.yml:</strong></p><pre>name: Deploy to GitHub Pages<br><br>on:<br>  push:<br>    # Run workflow on pushing or merging a pull request to master branch<br>    branches: [ &quot;master&quot; ] <br><br>jobs:<br>  deploy:<br>    runs-on: ubuntu-latest<br>    permissions:<br>      pages: write      # allow publishing to GitHub Pages<br>      id-token: write   # verify deployment source<br><br>    steps:<br>      # Get latest code<br>      - uses: actions/checkout@v4<br><br>      # Set up Node.js<br>      - name: Setup Node.js<br>        uses: actions/setup-node@v4<br>        with:<br>          node-version: 22<br>          cache: npm<br><br>      # Install dependencies and build<br>      - run: npm install<br>      - run: npm run build<br><br>      # Upload build folder (dist) as artifact<br>      - name: Upload build output<br>        uses: actions/upload-pages-artifact@v3<br>        with:<br>          path: dist # path to build output folder<br><br>      # Deploy to GitHub Pages<br>      - name: Deploy<br>        uses: actions/deploy-pages@v4</pre><p>This workflow will run each time after pushing or merging a pull request to master branch. It has one job called deploy which installs the project dependencies and runs build command to generate static files (located in the build folder for CRA or dist for Vite), and then publishes them to GitHub Pages.</p><h3>3. Handling Routing</h3><p>Routing is a common issue when deploying SPA created with React to GitHub pages because project sites are not hosted at the root username.github.io domain but under a URL path based on the repository name. The fix for this problem depends on the build tool or framework that you use.</p><p>✅ For <strong>Vite</strong> add base property in the vite.config.ts file:</p><pre>// vite.config.ts<br>export default defineConfig({<br>  plugins: [<br>    react(),<br>  ],<br>  base: `/your-repo-name/`,<br>});</pre><p>✅ For <strong>Next.js</strong> app set a basePath property in the next.config.ts file.</p><pre>// next.config.ts<br>module.exports = {<br>  basePath: &#39;/your-repo-name&#39;,<br>}</pre><p>✅ If you use <strong>Create React App</strong>, set a homepage property in package.json (<a href="https://create-react-app.dev/docs/deployment/#building-for-relative-paths">link</a>).</p><pre>&quot;homepage&quot;: &quot;https://username.github.io/your-repo-name/&quot;</pre><p>Hosting on GitHub Pages is simple and free, just pick the method that works best for you, follow the steps and it’s ready 🎉.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aca56faeaa7d" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/how-to-deploy-a-website-to-github-pages-2025-aca56faeaa7d">How to Deploy a Website to GitHub Pages (2025)</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Quick Beginner’s Guide to Easy End-to-End Testing with Cypress]]></title>
            <link>https://levelup.gitconnected.com/a-quick-beginners-guide-to-easy-end-to-end-testing-with-cypress-aa20c85d7834?source=rss-9dc28a167b5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa20c85d7834</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[cypress]]></category>
            <category><![CDATA[end-to-end-testing]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Marina Eremina]]></dc:creator>
            <pubDate>Tue, 10 Dec 2019 03:40:52 GMT</pubDate>
            <atom:updated>2019-12-10T03:40:52.786Z</atom:updated>
            <content:encoded><![CDATA[<h4>Automated testing that requires just basic JavaScript skills</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c_fvqZuQX19HlpZByG9ulQ.jpeg" /></figure><p>The goal of this article is to show how with very little effort, you can add useful end-to-end (E2E) tests to your project using <a href="https://www.cypress.io/">Cypress</a> even if you have not yet done any testing.</p><p>At the beginning of this article, I will discuss why <strong>writing E2E tests with Cypress can be easy for any developer who is familiar with the fundamentals of JavaScript</strong>. Then I will present a way to quickly get started with Cypress with the help of the official documentation which is written as an excellent tutorial and provides guidance for beginners.</p><p>Although the official documentation is perfect to get started with Cypress, it assumes that you already know certain testing tools and techniques. For developers that have no experience in testing yet, I will cover these aspects here so that you can fully understand the tutorials and start writing tests without problems.</p><p><em>This introductory article assumes that you have knowledge of JavaScript fundamentals and know how to use npm and the command line.</em></p><h3>What makes Cypress so unbelievably easy to use</h3><ul><li>Cypress <a href="https://docs.cypress.io/guides/overview/why-cypress.html#In-a-nutshell">documentation</a> is <strong>close to being perfect</strong>. You do not have to search for tutorials, the docs are great to get started with Cypress even if you have not done any E2E testing yet.</li><li>It is super <strong>intuitive to read and write tests</strong>. Basically, Cypress syntax reads just like English.</li><li>With Cypress <strong>you use JavaScript to write tests</strong>. If you have been coding with JavaScript only for a couple of months, you’ll still be able to use Cypress.</li><li>Cypress provides <strong>great error messages</strong> which clearly explain why your test did not work.</li><li>Cypress does not require any configuration.</li><li>Cypress has a beautiful and simple API.</li></ul><h3>How to quickly get started with Cypress</h3><p>You will find all that you need to start using Cypress in the Getting Started section of the official Cypress docs. The Getting Started section is written as a perfect tutorial. It nicely and clearly shows how to:</p><p><a href="https://docs.cypress.io/guides/getting-started/installing-cypress.html#Installing"><em>Install Cypress</em></a></p><p><a href="https://docs.cypress.io/guides/getting-started/installing-cypress.html#Opening-Cypress"><em>Open Cypress using the command line</em></a></p><p><a href="https://docs.cypress.io/guides/getting-started/writing-your-first-test.html#Add-a-test-file"><em>And add a test file</em></a></p><p>After these steps are finished everything is ready to start writing tests. The best way to learn it is described in the <a href="https://docs.cypress.io/guides/getting-started/writing-your-first-test.html#Write-a-real-test"><em>write a real test</em></a><em> </em>section of the docs.</p><p>Although this part of the documentation is made to be as approachable as possible, <strong>it assumes that you are familiar with certain testing tools and concepts</strong>. Let’s discuss them here first so that you can proceed with writing tests.</p><p>First of all, you should know <strong>methods which are used to organize and run tests</strong>. These methods come from <a href="https://mochajs.org/">Mocha</a>, a test runner that is bundled with Cypress.</p><p>describe(name, fn) groups together several related tests. It takes two arguments: the name of the test block and a function that contains individual tests created using the it() method.</p><p>it(name, fn) method contains an individual test. it() takes the name of the test as an argument and a function that contains the test.</p><p>These are two basic methods that are used to write tests. Cypress also borrows a set of other methods from Mocha which are called <a href="https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests.html#Hooks">hooks</a>: before(), after(), beforeEach() and afterEach(). The purpose of hooks is to run a function before or after running tests in the file.</p><p>Another concept that you should be familiar with is the <strong>test assertions and how they are used in testing</strong>.</p><p>In simple terms, <strong>test assertions are used to verify that the actual result is the same as the expected result</strong>. An assertion is passed correctly if the actual result matches the expected outcome, and it fails if these two results do not match.</p><p>Cypress bundles the <a href="http://chaijs.com/">Chai</a> assertion library to provide built-in assertions. Chai provides three different <a href="https://www.chaijs.com/guide/styles/">assertion styles</a>, which in essence present <strong>three ways to construct assertions</strong>.</p><p>The <em>assert style</em> is exposed through assert interface:</p><p>assert.equal(actualResult, expectation); // <em>check if the actual value is equal to the expected value</em></p><p>The <em>expect style</em> is exposed through expect interface:</p><p>expect(actualResult).to.include(expectation); // <em>verify that the actual result includes the expected value</em></p><p>And the <em>should style</em> which is exposed through should interface:</p><p>actualResult.should.have.lengthOf(expectation); // <em>verify that the actual result has expected length</em></p><p>Although these styles have some differences, it is essentially a matter of preference which one of them to use.</p><p>These three interfaces provide access to <em>chainers </em>(which in the examples above are equal, include, and lengthOf). <strong>Chainers are used to make a comparison between actual and expected values</strong>. <a href="https://docs.cypress.io/guides/references/assertions.html#BDD-Assertions">Here</a> you can find a reference to a list of available chainers with examples of their usage.</p><p>Although these three Chai interfaces can be used with Cypress, <strong>the most common way to create assertions is with the help of the </strong><strong>.should() method</strong> that is provided by tge Cypress API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*3xC0C64Ja4WZljfYUMEQQA.jpeg" /><figcaption>Example of .should() usage</figcaption></figure><p>In the example above cy is a <strong>global object that gives access to Cypress API methods</strong> (these methods are called <strong>commands </strong>in the official documentation). Commands are chainable which improves the readability of the tests.</p><p>The .should() method takes chainers and the expected value as arguments. Chainers are provided in a string form and can be any valid chainers that come from Chai.</p><p>Take a look at these <a href="https://docs.cypress.io/guides/references/assertions.html#Common-Assertions">examples of common assertions</a> to get a feeling of how they are used with Cypress.</p><p>Now when these topics are covered in the Cypress docs, you can start <a href="https://docs.cypress.io/guides/getting-started/writing-your-first-test.html#Write-a-real-test">writing real tests</a>. Since it is always best to learn by example, you can look for useful code snippets in the excellent <a href="https://docs.cypress.io/examples/examples/tutorials.html#Test-a-React-Todo-App">tutorial videos</a> provided by Cypress docs. These videos cover the most common use cases for writing tests and present an illustration of test-driven development.</p><p>And finally, optional but highly recommended: take a look at the <a href="https://docs.cypress.io/guides/core-concepts/introduction-to-cypress.html#Cypress-Can-Be-Simple-Sometimes">Introduction to Cypress</a> section to get an in-depth understanding of mechanics behind the Cypress tests.</p><p>Cypress is easy to learn and use which makes it a perfect E2E testing tool for beginners. What is even better, simplicity does not mean that Cypress capacities are restricted. It provides much more great features that you will be happy to discover after your testing experience advances.</p><p>If you develop an application and find yourself doing a lot of manual testing, you can also consider using Cypress as the main development browser. Take a look at this <a href="https://itnext.io/front-end-productivity-boost-cypress-as-your-main-development-browser-f08721123498">article</a> to see why it can be good to automate the most frequently executed test cases while developing a front-end application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa20c85d7834" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/a-quick-beginners-guide-to-easy-end-to-end-testing-with-cypress-aa20c85d7834">A Quick Beginner’s Guide to Easy End-to-End Testing with Cypress</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best Resources to Learn Functional Programming in JavaScript]]></title>
            <link>https://medium.com/dailyjs/best-resources-to-learn-functional-programming-in-javascript-39a6dea5cd7d?source=rss-9dc28a167b5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/39a6dea5cd7d</guid>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Marina Eremina]]></dc:creator>
            <pubDate>Wed, 23 Oct 2019 10:27:18 GMT</pubDate>
            <atom:updated>2019-10-23T10:27:18.253Z</atom:updated>
            <content:encoded><![CDATA[<h4>Master functional JavaScript from beginner to advanced with this list of selected online resources</h4><figure><img alt="A slightly opened laptop" src="https://cdn-images-1.medium.com/max/1024/1*-6JV_t-Zbgk4xHyUFyYsTg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@fantasyflip?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Philipp Katzenberger</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>JavaScript is a multi-paradigm programming language that among others supports functional style.</p><p>There is quite a large amount of resources on the Internet that one can use to learn concepts of functional programming and how to apply them in JavaScript. Since <strong>these online resources are intended for different audiences and composed with different levels of complexity</strong>, you may be forced to spend a lot of precious time on browsing and looking for articles and tutorials that fit your knowledge level and needs.</p><p><strong>In this article I want to present a list of online resources which in my own experience work best to learn functional JavaScript when you are completely new to it.</strong></p><p>I would recommend starting with <strong>brief introductions</strong> which describe fundamental functional programming concepts in a clear and beginner-friendly way. After learning the basics you can gradually proceed to <strong>advanced resources</strong> that cover functional programming techniques and present practical examples of modern functional JavaScript.</p><p>This article is mainly intended for JavaScript developers that are looking for <strong>the best way to learn functional programming</strong>. It can be also useful for developers that are familiar with functional programming fundamentals and looking for resources that provide <strong>examples of JavaScript code written in a functional style</strong>.</p><h3>Beginner-friendly introductions to functional programming</h3><p>Beginner-friendly introductions cover the basics of functional JavaScript in a clear and informative way. <strong>They are perfect to start with if you are completely new to functional programming</strong>.</p><p>These articles and talks discuss benefits of writing functional code and examine the difference between functional and object-oriented styles.</p><p>They cover the most important concepts of functional programming and make you familiar with language features and techniques used to write functional code. All these resources have simple code examples to illustrate the theoretical concepts.</p><p>After reading these articles and listening to talks, <strong>you will understand the core functional programming principles and get comfortable with the vocabulary</strong>. It is fine if not everything makes sense immediately, as soon as you learn further and start using functional concepts and techniques in practice, they will make perfect sense to you.</p><p><strong>1. </strong><a href="https://www.youtube.com/watch?v=e-5obm1G_FY"><strong>Learning Functional Programming with JavaScript</strong></a><strong> </strong>talk by <em>Anjana Vakil</em> at JSConf. One of the best beginner-friendly introductions to functional JavaScript, well-structured and clearly presented. It assumes no prior knowledge of functional programming.</p><p><strong>2. </strong><a href="https://flaviocopes.com/javascript-functional-programming/"><strong>An introduction to Functional Programming with JavaScript</strong></a> by <em>Flavio Copes. </em>This article covers functional programming concepts and techniques which are used to write functional code. It provides good code examples that make each concept easier to understand.</p><p><strong>3. </strong><a href="https://medium.com/javascript-scene/master-the-javascript-interview-what-is-functional-programming-7f218c68b3a0"><strong>Master the JavaScript Interview: What is Functional Programming?</strong></a><strong> </strong>by <em>Eric Elliott. </em>This article gives you <strong>insight into the essence of functional programming</strong>. It presents functional programming fundamentals in a clear, brief and comprehensive way. A must-read for anyone who wants to learn functional JavaScript.</p><p><strong>4. </strong><a href="https://www.youtube.com/watch?v=kkRyjXDpYqg"><strong>Functional Programming Fundamentals</strong></a><strong> </strong>talk by <em>Matthew Gerstman</em> at React NYC (if you prefer to read, look at this <a href="https://www.matthewgerstman.com/tech/functional-programming-fundamentals/"><strong>article</strong></a><strong> </strong>instead). This talk goes a little beyond the basics, but stays beginner-friendly and provides helpful code examples. Most importantly it also explains when functional programming can be most useful.</p><p><strong>5. </strong><a href="https://opensource.com/article/17/6/functional-javascript"><strong>An introduction to functional programming in JavaScript</strong></a><strong> </strong>by <em>Matt Banz. </em>Except for covering the functional programming concepts, this article gives you an idea to what extent you can apply them in the real-world JavaScript apps.</p><h3>Series of articles</h3><p>The series of articles cover the same theoretical concepts as brief introductions but <strong>in a broader and more detailed way</strong>. They provide <strong>plenty of helpful code examples</strong> to illustrate theoretical concepts. I would recommend starting with the series when you have already an understanding of the essence of functional style.</p><p><strong>1. </strong><a href="https://medium.com/javascript-scene/composing-software-the-book-f31c77fc3ddc"><strong>Blog post series on functional programming in JavaScript</strong></a><strong> </strong>by <em>Eric Elliott. </em>This in-depth series covers a large variety of basic and advanced functional programming techniques and how they apply to modern JavaScript.</p><p><strong>2. </strong><a href="https://medium.com/@cscalfani/so-you-want-to-be-a-functional-programmer-part-1-1f15e387e536"><strong>So You Want to be a Functional Programmer</strong></a><strong> </strong>by <em>Charles Scalfani. </em>An informative series of articles with code examples in JavaScript and Elm. All six parts of the series can be found <a href="https://medium.com/@cscalfani">here</a>.</p><p><strong>3. </strong><a href="https://medium.com/dailyjs/functional-js-1-introduction-7908bfe5ef8d"><strong>Functional JS</strong></a> by <em>Krzysztof Czernek. </em>This series is written in a beginner-friendly and descriptive way. The series has seven parts already published and is still in progress. Links to all published parts can be found <a href="https://medium.com/@krzysztof.czernek">here</a>.</p><h3>Practical guides</h3><p>Practical guides <strong>provide a minimum of theory and concentrate on code instead</strong>. They are useful when you have a good grasp of functional style and want to learn how functional programming concepts can be applied to your JavaScript programs. You will find here practical examples of how procedural or object-oriented code can be written in a functional style.</p><p><strong>1. </strong><a href="https://maryrosecook.com/blog/post/a-practical-introduction-to-functional-programming"><strong>A practical introduction to functional programming</strong></a><strong> </strong>by <em>Mary Rose Cook. </em>This article gives a great introduction to functional programming in general and demonstrates how the unfunctional code can be translated into functional style. The code examples in the article are in Python, but you can find all of them converted to JavaScript in this <a href="https://medium.com/@riteshkeswani/a-practical-introduction-to-functional-programming-javascript-ba5bee2369c2">gist article</a> written by <em>Ritesh Keswani</em>.</p><p>I believe it might be useful for you to take a look at the original article despite Python examples since it presents the functional techniques most clearly and concisely. In addition, it gives the best guide rope that helps you to proceed with further learning.</p><p><strong>2. </strong><a href="https://dev.to/nestedsoftware/basic-functional-programming-patterns-in-javascript-49p2"><strong>Basic Functional Programming Patterns in JavaScript</strong></a> by <em>Nested Software. </em>This article demonstrates how common procedural patterns can be replaced with functional ones in JavaScript.</p><p><strong>3. </strong><a href="https://www.youtube.com/watch?v=FYXpOjwYzcs"><strong>Functional Programming Basics In ES6</strong></a><strong> </strong>talk by <em>Jeremy Fairbank. </em>In this talk you will find a lot of examples of how functional programming techniques can be implemented in ES6.</p><p><strong>4. </strong><a href="https://www.youtube.com/watch?v=BMUiFMZr7vk&amp;list=PL0zVEGEvSaeEd9hlmCXrk5yUyqUag-n84&amp;index=2&amp;t=0s"><strong>Functional programming in JavaScript</strong></a> video series by <em>Fun Fun Function. </em>You’ll find here code examples of functional programming in JavaScript.</p><p><strong>5. </strong><a href="https://www.youtube.com/watch?v=bRlvGoWz6Ig"><strong>JavaScript Snake Game Tutorial Using Functional Programming</strong></a> video tutorial by <em>Christopher Okhravi. </em>This tutorial shows how to build a Snake Game in JavaScript in a functional style.</p><h3>Courses</h3><p>I think it is useful to mention some <strong>paid courses</strong> that can teach you functional programming in JavaScript. If taking a course is your preferred way to study or you want to deepen your knowledge of functional JavaScript then perhaps these courses could be suitable for you.</p><p>1. <a href="https://www.udemy.com/course/functional-programming-in-javascript-a-practical-guide/"><strong>Functional Programming in JavaScript: A Practical Guide</strong></a><strong> </strong>by <em>Steven Hancock</em>. This course presents functional programming principles and offers exercises for most of the theoretical concepts.</p><p><strong>2. </strong><a href="https://www.udemy.com/course/functional-programming-for-beginners-with-javascript/"><strong>Functional Programming For Beginners With JavaScript</strong></a><strong> </strong>by <em>James Moore. </em>Except for covering the theoretical concepts this course teaches you how to build front-end web applications in a functional style.</p><p><strong>3. </strong><a href="https://frontendmasters.com/courses/functional-javascript-v3/"><strong>Functional-Light JavaScript</strong></a><strong> </strong>by <em>Kyle Simpson. </em>A course for experienced JavaScript developers who want to learn advanced functional programming concepts.</p><p>Thanks a lot for reading this article, I hope you will find it useful. Learning functional programming can be challenging for beginners but all the effort you invest in studying will surely pay off.</p><p>I hope that the learning roadmap suggested in this article will help you to start studying functional JavaScript fast and effectively. It is likely that I missed some great learning resources, so feel free to suggest more of them in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39a6dea5cd7d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dailyjs/best-resources-to-learn-functional-programming-in-javascript-39a6dea5cd7d">Best Resources to Learn Functional Programming in JavaScript</a> was originally published in <a href="https://medium.com/dailyjs">DailyJS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>