<?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 Norman Steger on Medium]]></title>
        <description><![CDATA[Stories by Norman Steger on Medium]]></description>
        <link>https://medium.com/@norman.comsysto?source=rss-49cedab53c64------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1-_XhzeerK3Hmpy4Y7yMlA.png</url>
            <title>Stories by Norman Steger on Medium</title>
            <link>https://medium.com/@norman.comsysto?source=rss-49cedab53c64------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 19:51:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@norman.comsysto/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[WebAR in eCommerce: How to bring the retail experience to the living room]]></title>
            <link>https://medium.com/comsystoreply/webar-in-ecommerce-how-to-bring-the-retail-experience-to-the-living-room-a1190efd3fa0?source=rss-49cedab53c64------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1190efd3fa0</guid>
            <category><![CDATA[threejs]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[online-shopping]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <dc:creator><![CDATA[Norman Steger]]></dc:creator>
            <pubDate>Mon, 29 Jun 2026 13:49:33 GMT</pubDate>
            <atom:updated>2026-06-29T13:54:05.445Z</atom:updated>
            <content:encoded><![CDATA[<h3>WebAR in eCommerce: Bringing the retail experience to your living room</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*aNo1AATHbNz1H99tGjgk0w.png" /><figcaption>Collage Images by <a href="https://unsplash.com/@lotusdnp?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Lotus Design N Print</a> and <a href="https://unsplash.com/@rahuulmiishra?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Rahul Mishra</a> on <a href="https://unsplash.com/photos/white-wooden-coffee-table-near-white-sofa-WgkA3CSFrjc?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Imagine shopping for furniture without ever stepping into a store: Placing that perfect armchair in your living room virtually, spinning it to see how it fits, and getting a true sense of style and space.</p><p>In a recent two-day lab, we set out to bring this next-generation shopping experience to life. By combining <strong>Three.js</strong>, <strong>TypeScript</strong>, and the power of AR on the <strong>iPhone</strong> we explored the challenges and opportunities of augmented reality in e-commerce.</p><h3>The Challenge: Visualizing furniture in your home</h3><p>Furniture shopping is often a tale of uncertainty. Will the colours match? Does the bookshelf fit against the wall? Our goal was simple:</p><p>Let customers “try before they buy” by placing 3D models of furniture directly into their living spaces using AR technology.</p><p>Our Technology Stack</p><ul><li><strong>WebXR: </strong>While WebXR is not a technology per se, it is a standard that is currently being developed, which aims to improve AR and VR compatibility over the different ecosystems. To cite the WebXR GitHub page:</li></ul><blockquote>This API aims to provide foundational elements to do all of the above [AR, VR, Mixed Reality…]. And since we don’t want to be limited to just one facet of VR or AR (or anything in between) we use “X”, not as part of an acronym but as an algebraic variable of sorts to indicate “Your Reality Here”.</blockquote><ul><li><strong>Three.js:</strong> We relied on this powerful 3D JavaScript engine to render realistic furniture models and manage the virtual scene.</li><li><strong>TypeScript:</strong> Ensured our code was robust and maintainable, providing type safety and improved development speed.</li><li><strong>iPhone 15 Pro:</strong> Leveraging the iPhone’s sensor array, we brought the experience to a device a lot of shoppers already own. One limitation we encountered on iOS is that the Safari browser does not yet implement the WebXR standard. This meant our AR-Experience was only usable with the “<a href="https://apps.apple.com/us/app/webxr-viewer/id1295998056">WebXR Viewer</a>” App.</li></ul><h3>Feature Overview</h3><p><strong>1. Seamless Furniture Selection:</strong> <br>Users can browse a diverse catalog — sofas, chairs, tables, and more.</p><p><strong>2. Place, move, rotate:</strong> <br>With a tap, any furniture piece is anchored in the user’s real environment, so they will be kept locked in place no matter which angle the user chooses or which direction the camera moves. Intuitive gestures allow users to move and rotate objects, providing full control in arranging their living space virtually.</p><p><strong>3. True-to-Life Scaling:</strong> <br>Getting the size right matters! We tried to carefully select models scaled as close to their real-world dimensions as possible, giving users an accurate sense of how each piece would fit in their space.</p><h3>Cross-Device Insights: iPhone 15 Pro vs Meta Quest 3</h3><p>In the beginning, we didn’t focus on any specific device, expecting that the WebXR standard would be implemented equally across platforms. However, once we started working on object movements, we realized the differences were too vast to cover both systems within our timebox. We therefore decided to continue with the more common hardware only.</p><p>Testing on the iPhone felt natural; users could simply use touch to drag and rotate furniture — a flow already familiar to millions. This immediacy is crucial for mass adoption.</p><p>With Meta Quest 3, the spatial computing possibilities were exciting. However, the input methods — gestures and controllers — were less intuitive for casual shoppers. The learning curve is steeper, and while the immersion is unmatched, it’s clear that for now, most shoppers prefer the simpler experience offered by their phones.</p><h3>Why not Android?</h3><p>The answer is simple— at the time of doing our lab we didn’t have any Android based device at our disposal that could provide a comparable set of sensory features to the iPhone.</p><p><strong>That is not to say that our prototype wouldn’t work on Android devices just as well. </strong>The only prerequisites are a good LiDAR sensor (for measuring proximity to the camera) and a WebXR-capable app that can easily access the device’s APIs. Feel free to <a href="https://github.com/comsysto/ar-shop">try it out for yourself!</a></p><h3>Diving into the Code</h3><p>First of all, let’s give credit where credit is due. We didn’t start the project entirely from scratch. Instead, we used the great <a href="https://github.com/sopra-steria-norge/get-started-with-ar-web/"><strong>Get Started with AR Web</strong></a> project by Adrian Sandaker as our boilerplate. Check out his related <a href="https://medium.com/sopra-steria-norge/get-started-with-augmented-reality-on-the-web-using-three-js-and-webxr-part-1-8b07757fc23a">Medium article</a> on the topic if you want to learn more about it.</p><h4><strong>Here’s the steps we’re gonna go over:</strong></h4><ol><li><strong>Preparing the landing page</strong></li><li><strong>Establishing a connection</strong></li><li><strong>Making a scene</strong></li><li><strong>Adding UI Controls</strong></li><li><strong>Adding a visual grid plane and collision controls</strong></li><li><strong>Loading 3D Objects into the scene</strong></li><li><strong>Adding object placement controls</strong></li></ol><h4><strong>1. Preparing the landing page</strong></h4><p>First things first — we need an index page that will serve as the entry point for our application, providing the starting point for all subsequent AR interactions.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot; dir=&quot;ltr&quot;&gt;<br>  &lt;head&gt;<br>    &lt;title&gt;WebXR App&lt;/title&gt;<br>    &lt;meta charset=&quot;UTF-8&quot; /&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;<br>    &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;ie=edge&quot; /&gt;<br>  &lt;/head&gt;<br><br>  &lt;body&gt;<br>  <br>    &lt;!-- Container for XR DOM Overlay elements --&gt;<br>    &lt;div id=&quot;xr-ui-container&quot;&gt;&lt;/div&gt;<br><br>    &lt;!-- Container to host the tunneled camera feed --&gt;<br>    &lt;div id=&quot;app-root&quot;&gt;<br>      &lt;a href=&quot;https://fliesentisch.loca.lt&quot;&gt;tunnel&lt;/a&gt;<br>    &lt;/div&gt;<br>  <br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><p>When a website tries to access your camera to grab its live feed and stream it to the frontend, your browser (or more specifically the WebRTC API) requires you to establish a secure and encrypted communication channel.</p><p>One way of achieving this is to host your WebApp on a server and make it accessible via an SSL secured domain. There are also ways to “fake” such an SSL connection with a locally running webapp using self-signed certificates. Due to the uncertainty of this approach however, we instead chose to use the <a href="https://www.npmjs.com/package/localtunnel">localtunnel</a> NPM package, a little library that leverages a public service to expose your local port to the open web, making it accessible via an SSL secured public domain.</p><p>Secondly, we will need to define a container hosting our UI interface, allowing us to interact with the stream.</p><p>Once both container and localtunnel are set up, we can spin up our application, open WebXR Viewer on the iPhone, navigate to <a href="https://fliesentisch.loca.lt/">https://fliesentisch.loca.lt</a> and start the user journey!</p><h4>2. Establishing the connection</h4><pre>// index.ts<br><br>function initializeXRApp() {<br>  const { devicePixelRatio, innerHeight, innerWidth } = window;<br><br>  // Create a new WebGL renderer and set the size + pixel ratio.<br>  const renderer = new WebGLRenderer({ antialias: true, alpha: true })<br>  renderer.setSize(innerWidth, innerHeight);<br>  renderer.setPixelRatio(devicePixelRatio);<br><br>  // Enable XR functionality on the renderer.<br>  renderer.xr.enabled = true;<br><br>  // Add it to the DOM.<br>  document.body.appendChild( renderer.domElement );<br><br>  // Create the AR button element, configure our XR session, and append it to the DOM.<br>  document.body.appendChild(ARButton.createButton(<br>      renderer,<br>      {<br>        requiredFeatures: [&quot;hit-test&quot;],<br>        optionalFeatures: [&quot;dom-overlay&quot;],<br>        domOverlay: { root: document.body },<br>      },<br><br>  ));<br><br>  // Pass the renderer to the createScene-function.<br>  createScene(renderer);<br><br>  // Display a welcome message to the user.<br>  displayIntroductionMessage();<br>}</pre><p>As shown in our code block, in order to render a UI that is able to interact with the camera feed, we can make us of Three.js’s WebGLRenderer object. After providing it with the necessary information about the input devices size and pixel ratio we can easily attach it to the website’s DOM, where it will help us render overlaying UI controls as well as 3D objects in the viewport. Another important detail is to enable the immersive AR feature renderer.xr, so an interaction with the camera feed can actually happen.</p><h4><strong>3. Making a scene</strong></h4><p>In the example above you may have noticed the <strong>createScene</strong> function. This is where the actual magic of Three.js happens:</p><pre>// scene.ts<br><br>const scene = new Scene()<br>let activeModel: Object3D;<br><br>export function createScene(renderer: WebGLRenderer) {<br>    const camera = new PerspectiveCamera(<br>        70,<br>        window.innerWidth / window.innerHeight,<br>        0.02,<br>        20,<br>    )<br><br>    const renderLoop = (timestamp: number, frame?: XRFrame) =&gt; {<br>        if (renderer.xr.isPresenting) {<br>            renderer.render(scene, camera);<br>        }<br>    }<br>    renderer.setAnimationLoop(renderLoop);<br>}</pre><p>This is a boiled down version of the base function. Let’s unpack it:</p><ol><li>Create a Scene: First, we need to create a new scene where we can later load virtual cameras, UI elements, and 3D objects.</li><li>Define a Camera: Next, we define a camera to add to our scene, specifying its initial dimensions and position. It’s important to note that this camera has nothing to do with your phone’s physical camera feed — it is merely a virtual camera, serving as a perspective root once we start placing 3D objects and a surface grid to the scene.</li><li>Establish a Render Loop: Finally, we set up a render loop. This forms the foundation for animating 3D objects, such as the pieces of furniture that customers can place and arrange within the scene.</li></ol><h4><strong>4. Adding UI Controls</strong></h4><p>In order to give users a way to select a desired piece of furniture, we need to provide the corresponding UI elements. To achieve this, we’ve prepared a UIControls method, which initializes both a drawable menu and selectable buttons displaying thumbnails of the available furniture pieces:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fY7HU6z_S6L8KSrw5iUl7g.jpeg" /></figure><p>To add the menu drawer and the buttons, we used a the old-school approach of creating the DOM elements using the browser’s Document API and populating them with related CSS classes before adding them directly to the DOM:</p><pre>// controls.ts<br><br>export function UIControls(renderer: WebGLRenderer) {<br>    let controlsPanel: HTMLDivElement | null = null;<br><br>    function createControlsPanel() {<br>        controlsPanel = document.createElement(&quot;div&quot;);<br>        const controlsDrawer = createControlsDrawer();<br>        controlsPanel.setAttribute(&quot;class&quot;, &quot;controls-panel&quot;);<br><br>        document.body.appendChild(controlsPanel);<br>        controlsPanel.appendChild(controlsDrawer);<br><br>        // The createIconButtons method generates the buttons<br>        // and appends them to the controlsDrawer.<br><br>        createIconButtons([<br>            &quot;table_fliesen&quot;,<br>            &quot;table_dark_mahagony&quot;,<br>            &quot;table_giotto&quot;,<br>            &quot;table_white_marble&quot;<br>        ]);<br><br>        createIconButtons([<br>            &quot;sofa_dark_grey&quot;,<br>            &quot;sofa_old&quot;,<br>            &quot;sofa_royal&quot;<br>        ]);<br><br>        createIconButtons([<br>            &quot;sideboard_charocal&quot;,<br>            &quot;sideboard_concrete&quot;,<br>            &quot;sideboard_light_wood&quot;,<br>            &quot;sideboard_oak&quot;,<br>        ]);<br>    }<br><br>    function removeControlsPanel() {<br>        if (controlsPanel) {<br>            document.body.removeChild(controlsPanel);<br>            controlsPanel = null;<br>        }<br>    }<br>}</pre><p><strong>You can take a detailed look at the </strong><a href="https://github.com/comsysto/ar-shop/blob/main/src/controls.ts"><strong>controls.ts</strong></a><strong> file to see the implementation of each available UI element and how it is being added to the DOM.</strong></p><p>In our example we are utilizing the CSS class references to add basic CSS transitions, animating the drawer as it expands and minimizes within the viewport.</p><p>As you can see, we also defined methods to add and remove the controls panel. We can use these methods to attach them to the start and end of our VR session, so that both the initialization as well as the cleanup are properly taken care of:</p><pre>// controls.ts<br><br>export function UIControls(renderer: WebGLRenderer) {<br><br>    // ... createControlsPanel()<br><br>    // ... removeControlsPanel()<br><br>    renderer.xr.addEventListener(&quot;sessionstart&quot;, () =&gt; {<br>        document.body.classList.add(&quot;vr-active&quot;);<br>        createControlsPanel();<br>    });<br><br>    renderer.xr.addEventListener(&quot;sessionend&quot;, () =&gt; {<br>        document.body.classList.remove(&quot;vr-active&quot;);<br>        removeControlsPanel();<br>    });<br>}</pre><p>Finally, all we need to do is to initialize our UIControls class and pass our renderer:</p><pre>// scene.ts<br><br>// initializing the scene...<br><br>export function createScene(renderer: WebGLRenderer) {<br>    // adding the camera...<br><br>     UIControls(renderer);<br><br>    // starting the render loop...<br>}</pre><h4><strong>5. Adding a visual grid plane and collision control</strong></h4><p>Before you enable the user to virtually place 3D furniture into their living room, you want to make sure that your app correctly recognizes virutal spacing restrictions to avoid that fancy new couch to clip into a wall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7zMq0dc2kg0atfBt-WwCWQ.jpeg" /><figcaption>The circle indicates the detected space boundaries for collision control</figcaption></figure><p>Luckily, Three.js yet again provides us with way to easily access the XRReferenceSpace taken via the Device API from our camera feed, which allows us to implement a XRHitTest to tell us where the boundaries of our room are:</p><pre>// hitTest.ts<br><br>let hitTestSource: XRHitTestSource;<br>let hitTestSourceRequested = false;<br><br>export function handleXRHitTest(<br>  renderer: WebGLRenderer,<br>  frame: XRFrame,<br>  onHitTestResultReady: (hitPoseMatrix: Float32Array) =&gt; void,<br>  onHitTestResultEmpty: () =&gt; void,<br>) {<br><br>    // get scene and space references<br>    const referenceSpace = renderer.xr.getReferenceSpace();<br>    const session = renderer.xr.getSession();<br><br>    let xrHitPoseMatrix: Float32Array | null | undefined;<br><br>    // pass the reference space as hit test source<br>    if (session &amp;&amp; hitTestSourceRequested === false) {<br>        session.requestReferenceSpace(&quot;viewer&quot;).then((referenceSpace) =&gt; {<br>                session<br>                    .requestHitTestSource({ space: referenceSpace })<br>                    .then((source) =&gt; {<br>                        hitTestSource = source;<br>                    });<br>        });<br><br>        hitTestSourceRequested = true;<br>    }<br><br>    // perform the hit test <br>    if (hitTestSource) {<br>        const hitTestResults = frame.getHitTestResults(hitTestSource);<br><br>        if (hitTestResults.length) {<br>            const hit = hitTestResults[0];<br><br>            if (hit &amp;&amp; hit !== null &amp;&amp; referenceSpace) {<br>                const xrHitPose = hit.getPose(referenceSpace);<br><br>                if (xrHitPose) {<br>                    xrHitPoseMatrix = xrHitPose.transform.matrix;<br>                    onHitTestResultReady(xrHitPoseMatrix);<br>                }<br>            }<br>        } else {<br>            onHitTestResultEmpty();<br>        }<br>    }};</pre><p>While this may look a little confusing at first, it makes a lot of more sense once we use it to view a grid plane on flat surfaces into our scene:</p><pre>// scene.ts<br><br>// initializing the scene...<br><br>export function createScene(renderer: WebGLRenderer) {<br>    // adding the camera...<br><br>    // adding ui controls...<br><br>    const planeMarker = createPlaneMarker();<br>    scene.add(planeMarker);<br><br>    const renderLoop = (timestamp: number, frame?: XRFrame) =&gt; {<br>        if (renderer.xr.isPresenting) {<br>            if (frame) {<br>                // perform a hit test<br>                handleXRHitTest(renderer, frame, (hitPoseTransformed: Float32Array) =&gt; {<br>                    if (hitPoseTransformed) {<br>                        // once a surface is detected, show the grid plane<br>                        planeMarker.visible = true;<br>                        planeMarker.matrix.fromArray(hitPoseTransformed);<br>                    }<br>                }, () =&gt; {<br>                    // hide the plane if no restricitve surface can be detected<br>                    planeMarker.visible = false;<br>                })<br>            }<br>            renderer.render(scene, camera);<br>        }<br>    }<br><br>    renderer.setAnimationLoop(renderLoop);<br>}</pre><p><strong>Note: </strong>This is a crucial part of the whole user experience. <strong>The more advanced the sensors on your device’s camera are, the better the results. </strong>In our tests, the iPhone 15 Pro’s sensors proofed to be superior over other iOS or android devices we had at hand at the time of development.</p><h4><strong>6. Loading 3D Objects into the scene</strong></h4><p>Before we load a 3D asset into the scene, there are a few prerequisites it needs to meet:</p><ul><li><strong>File Format:</strong> While various file formats exist for 3D model assets, we’ve found that <a href="https://en.wikipedia.org/wiki/GlTF"><strong>GLTF</strong></a><strong> </strong>is the most suitable for our use case, as it is portable and optimized for use in web-based contexts.</li><li><strong>Model Dimensions:</strong> The dimensions of the model are stored in its model data and play a crucial role in how much virtual space it will occupy in the 3D scene. Placing a huge table inside a tiny room may not be ideal, and due to our collision hit test, the app might not even allow the user to load and place it in the first place. Of course, there are ways to control the dimensions of a loaded object programmatically, but to stay true to a real-life representation, we recommend that the source model’s dimensions be as close to the real object as possible.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zrFqlEr_kMrwZmY2pCv3Ig.jpeg" /><figcaption>Placing objects into the room with adherence to space limitations and lighting</figcaption></figure><ul><li><strong>Color and Lighting:</strong> During implementation, we noticed that the rendered brightness and contrast of the 3D models do not necessarily harmonize with the surrounding lighting conditions. In other words, assets that appear brighter in the preview may look much darker once loaded into the scene, or vice versa. Make sure to thoroughly test your assets before using them. Optionally, you can leverage Three.js’s ability to adjust lighting properties on 3D objects for a more realistic representation, or set appropriate ambient lighting for your scene (as we did).</li></ul><p>Now let’s take a look on how we can load our first 3D furniture object into the scene:</p><pre>// scene.ts<br>import {GLTF, GLTFLoader} from &quot;three/examples/jsm/loaders/GLTFLoader&quot;;<br><br>// initializing the scene...<br><br>export function createScene(renderer: WebGLRenderer) {<br>    // adding the camera...<br><br>    // adding ui controls...<br><br>    // add ambient lighting<br>    const ambientLight = new AmbientLight(0xaaaaaa, 2.0);<br>    scene.add(ambientLight);<br><br>    // initialize the GLTF object loader<br>    const gltfLoader = new GLTFLoader();<br><br>    // load a 3D tile table into the scene<br>    gltfLoader.load(&quot;../assets/models/fliesentisch.glb&quot;, (gltf: GLTF) =&gt; {<br>        activeModel = gltf.scene.children[0];<br>        activeModel.translateY(-5000)<br>        activeModel.scale.add(new Vector3(-0.5, -0.5, -0.5))<br>        activeModel.translateY(activeModel.scale.z)<br>        scene.add(activeModel)<br>    });<br><br>    // adding the plane...<br><br>    // starting the render loop...<br>}</pre><p>Boom! You’ve just placed your first 3D object into your scene. Note that we added the object to the scene before we started the render loop and any collision handling can happen — this is simply a sanity check to confirm that our object placement works.</p><h4>7. Adding object placement control</h4><p>Last but not least, we need to enable our users to place 3D objects themselves and move them freely within the boundaries of the available virtual space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EG_JzM72U-tbdZrCFacCFg.jpeg" /><figcaption>Touch controls allow you to swipe and pinch to control rotation and object size. Swipe free icon by <a href="https://www.flaticon.com/authors/ilham-fitrotul-hayat"><strong>Ilham Fitrotul Hayat</strong></a></figcaption></figure><p>Let’s set up the base for the touch controls:</p><pre>// scene.ts<br><br>// initializing the scene...<br>export function createScene(renderer: WebGLRenderer) {<br>    // adding the camera...<br><br>    // adding ui controls...<br><br>    // add ambient lighting...<br><br>    // add touch input event listeners<br>    renderer.domElement.addEventListener(&quot;touchstart&quot;, (event) =&gt; {<br>        touchStartX = event.touches[0].clientX;<br>        activeModelIsBeeingDraged = true<br>    });<br>    // rotate model by moving finger left/right<br>    renderer.domElement.addEventListener(&quot;touchmove&quot;, event =&gt; {<br>        let deltaX = (touchStartX - event.touches[0].clientX) * 0.01;<br>        touchStartX = event.touches[0].clientX;<br>        activeModel.rotateZ(deltaX);<br>    });<br>    renderer.domElement.addEventListener(&quot;touchend&quot;, () =&gt; activeModelIsBeeingDraged = false);<br><br>    let activeModelIsBeeingDraged = false;<br>    let touchStartX = 0;<br><br>    // adding the plane...<br><br>       const renderLoop = (timestamp: number, frame?: XRFrame) =&gt; {<br>        if (renderer.xr.isPresenting) {<br><br>            // toggling the plane grid...<br><br>            // update the model position on touch drag<br>            if (activeModelIsBeeingDraged &amp;&amp; planeMarker.visible) {<br>                activeModel.position.setFromMatrixPosition(planeMarker.matrix)<br>                activeModel.translateZ(activeModel.scale.z)<br>            }<br>            renderer.render(scene, camera);<br>        }<br>    }<br>    renderer.setAnimationLoop(renderLoop);<br>}</pre><p>As you can see, we’ve set up listeners for the touch events, allowing us to detect touch drag inputs.</p><p>We listen for those events inside the render loop in order to update both the position of a 3D object within the scene as well as its rotation.</p><p>Next, we want the scene to load a new object once the user taps on a specific model in our UI drawer. To make things easier for ourselves, we first add an <strong>addModel</strong> method that helps us replace an already loaded model with a new one, so we don’t overpopulate the available virtual space:</p><pre>// scene.ts<br><br>let activeModel: Object3D;<br><br>export function addModel(newModel: Object3D) {<br>    scene.remove(activeModel);<br>    activeModel = newModel;<br>    scene.add(newModel)<br>}<br><br>// initializing the scene...</pre><p>Now all we need to do is have our UI controls call this function with the new object each time the user makes a selection:</p><pre>// controls.ts<br><br>export function UIControls(renderer: WebGLRenderer) {<br><br>  // create drawer<br><br>  // create ui controls<br><br>  function selectModel(category: string, model: string) {<br>    const gltfLoader = new GLTFLoader();<br><br>    // dynamically load object by category and model name<br>    gltfLoader.load(&quot;../assets/models/furniture/&quot; + category + &quot;/&quot; + model + &quot;.glb&quot;, (gltf: GLTF) =&gt; {<br>        let newModel = gltf.scene.children[0];<br><br>        // initialize bounding box and size vector<br>        const box3 = new Box3();<br>        const size = new Vector3();<br><br>        box3.expandByObject(newModel);<br>        box3.getSize(size);<br><br>        // limit the object dimensions to a maximum <br>        // required for oversized models<br>        let maxDimension = Math.max(size.x, size.y, size.z);<br><br>        const max = new Vector3(maxDimension, maxDimension, maxDimension);<br>        newModel.scale.divide(max);<br><br>        newModel.translateY(newModel.scale.z)<br>        newModel.translateY(-5000)<br><br>        // load model into the scene<br>        addModel(newModel)<br>    });<br>  }<br><br>   // remove drawer<br>}<br></pre><p>And that’s about it! Now the user can dynamically select furniture models from our UI panel and — once the application picked up the room’s boundaries — place them virtually into their camera feed by tapping on the desired location in the room.</p><p><strong>Of course this is but a break down of our example implementation. There’s a lot more details to discover — check out the GitHub Repository for the full implementation code: </strong><a href="https://github.com/comsysto/ar-shop"><strong>https://github.com/comsysto/ar-shop</strong></a></p><h3>What we’ve learned</h3><ul><li><strong>There are few UX standards in AR: </strong>The way we designed it was to make it feel most natural to us, not necessarily by following common standards</li><li><strong>Web Technologies Rock:</strong> Three.js and TypeScript allowed us to rapidly prototype and iterate — even across very different hardware platforms.</li><li><strong>AR is Here, But Best on Phones (For Now): </strong>Headsets are coming, but today’s mainstream AR shopping belongs on mobile devices. WebXR aims to be a standard, but does not gurantee compability across devices. Especially if you use a niche feature like handtracking.</li></ul><h3>What’s next?</h3><p>We’re excited by the results and the overwhelmingly positive feedback from initial testers. In future iterations, we hope to:</p><ul><li>Expand the furniture catalog, including customizable color and fabric options</li><li>Add social sharing to let users show off their new “virtual rooms”</li><li>Explore ways to make headset AR input more intuitive</li></ul><h3>Conclusion</h3><p>In just two days, we proved that with the right tech stack and a focus on user experience, AR furniture shopping can be fast, fun, and accessible. As AR continues to evolve, we’re committed to bringing ever-more magical shopping moments to everyone’s living room. Watch this space!</p><p><strong>Have thoughts or want to try out our demo? Get in touch — we’d love your feedback!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1190efd3fa0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/comsystoreply/webar-in-ecommerce-how-to-bring-the-retail-experience-to-the-living-room-a1190efd3fa0">WebAR in eCommerce: How to bring the retail experience to the living room</a> was originally published in <a href="https://medium.com/comsystoreply">comsystoreply</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Becoming Accessible — Part II: The Developer’s Toolbox]]></title>
            <link>https://medium.com/comsystoreply/becoming-accessible-part-ii-the-developers-toolbox-a1f04ab9c7fd?source=rss-49cedab53c64------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1f04ab9c7fd</guid>
            <dc:creator><![CDATA[Norman Steger]]></dc:creator>
            <pubDate>Thu, 17 Oct 2024 08:36:32 GMT</pubDate>
            <atom:updated>2024-10-18T08:04:42.817Z</atom:updated>
            <content:encoded><![CDATA[<h3>Becoming Accessible — Part II: The Developer’s Toolbox</h3><figure><img alt="Person with robotic arm holding a smartphone" src="https://cdn-images-1.medium.com/max/1024/1*if9cPdM7f0NF1HJ_1qi7mw.jpeg" /><figcaption>Image by Yaroslav Shuraev: <a href="https://www.pexels.com/de-de/foto/person-smartphone-technologie-bildschirm-7688767/">https://www.pexels.com/de-de/foto/person-smartphone-technologie-bildschirm-7688767/</a></figcaption></figure><p>In <a href="https://medium.com/comsystoreply/becoming-accessible-part-i-obligation-and-potential-724c5be6a729"><strong>Becoming Accessible Part I: Obligation and Potential</strong></a> we’ve touched on the <a href="https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX%3A32019L0882"><strong>EU Directive on the accessibility requirements for products and services</strong></a>, coming into force on the 28th of June 2025, which legally obligates website owners to make their services more available to users with disabilities. We’ve also talked about how to assess potentials of your webapp for target groups with permanent or temporary disabilities — one of them being to make use of tools such as <strong>Google Lighthouse</strong>.</p><p>This time around I want to show you how easy it is to:</p><ul><li>make accessibility checks part of your <strong>development workflow</strong></li><li>catch accessibility issues early <strong>as you write code</strong></li><li>prevent them from <strong>making it to production</strong> in the first place.</li></ul><p>In particular we’ll be looking at:</p><ul><li><strong>Axe DevTools </strong>— A sophisticated alternative to Google Lighthouse</li><li>Write more accessible markup with the help of <strong>ESLint</strong></li><li>Make your UI component unit tests test for accessibility violations using <strong>Jest</strong></li><li>Have your automated UI browser tests detect accessibility issues using <strong>Playwright</strong> or <strong>Cypress</strong></li></ul><h3>Axe DevTools</h3><p>A popular alternative to Lighthouse which provides you with a variety of different tools to test for accessibility is <a href="https://www.deque.com/axe/">Axe</a>. Axe can be used both as a <a href="https://chromewebstore.google.com/detail/axe-devtools-web-accessib/lhdoppojpmngadmnindnejefpokejbdd?utm_source=deque.com&amp;utm_medium=referral&amp;utm_campaign=axe_hero">browser extension</a>, enabling a dedicated tab in your browser’s developer tools, or as an <a href="https://www.npmjs.com/package/axe-core">NPM package</a> directly within your node based application.</p><p>The browser extension will enable you to analyze either the full page or specific user flows for accessibility issues:</p><figure><img alt="Chrome developer tools Axe extension tab" src="https://cdn-images-1.medium.com/max/1024/1*vl447MvP3YkrWdkX6oQ7rg.png" /><figcaption>click to enlarge</figcaption></figure><p>This will generate a report similar to Google Lighthouse, listing all found issues on your page as well as providing you with suggestions on how to solve them:</p><figure><img alt="Example: Accessibility scan report from Axe Chrome extension" src="https://cdn-images-1.medium.com/max/1024/1*ilyiealNbk3FyWNl3iQxDg.png" /><figcaption>click to enlarge</figcaption></figure><p>If you use Axe-Core as an NPM package in your project, while in development mode, convenient warnings will show up in your JavaScript console whenever issues on the currently rendered page are being detected:</p><figure><img alt="Example: Accessibility issues detected in currently rendered page by Axe-Core NPM package" src="https://cdn-images-1.medium.com/max/1024/1*fn09EDimpVsMG-bQ686NEA.png" /><figcaption>click to enlarge</figcaption></figure><p>However — identifying and fixing existing issues is only half the cake. To keep your webapp accessible as it changes and grows it is important to make early issue detection part of your ongoing development cycle. Due to the rich ecosystem of modern dev tooling, there are a couple of ways how you can ensure that. Let’s take a look at some of them:</p><h3>Linter plugins</h3><p>Linters are a well known tool to help you to ensure code quality during development via static code analysis. Extending them with sufficient accessibility plugins however will also support you in writing more semantically correct markup and thus prevent a lot of issues that would otherwise be detected by accessibility scanners after the implementation.</p><p>As one of their tools, axe also provides a plugin for ESLint, which is one of the most widely used linters in the JavaScript / TypeScript world. For applications build in React (or React based frameworks such as Next) there’s an preconfigured <a href="https://www.npmjs.com/package/eslint-plugin-jsx-a11y">eslint-plugin-jsx-a11y</a> that enables static AST checks for accessibility in JSX elements:</p><figure><img alt="Example: ESLint CLI output for accessibility issues found by eslint-plugin-jsx-a11y" src="https://cdn-images-1.medium.com/max/1024/1*WPhWwJHFPBIJCa9P68F2DQ.png" /><figcaption>click to enlarge</figcaption></figure><p>Combining this with an accompanying ESLint IDE plugin will even indicate such semantic issues in your JSX elements as you implement them:</p><figure><img alt="Example: ESLint IDE output for accessibility issues found by eslint-plugin-jsx-a11y" src="https://cdn-images-1.medium.com/max/1024/1*Rvcu-D8aCMFbMG0u_nryuQ.png" /><figcaption>click to enlarge</figcaption></figure><p>Similar plugins are also available for applications written in Vue, such as the <a href="https://github.com/vue-a11y/eslint-plugin-vuejs-accessibility">eslint-plugin-vuejs-accessibility</a>.</p><p>Unfortunately, at the time of writing this post, I wasn’t able to find a comparable configuration package for Angular. This doesn’t mean however that you can’t also configure your ESLint to apply accessibility rules to your Angular application — you can absolutely do so, as there are templates with related rules. It will just take a bit of manual configuration. Guides like these can help you along to achieve a similar result:</p><ul><li><a href="https://dev.to/bitovi/angular-a11y-eslint-rules-2fjc">Angular A11y ESLint Rules</a></li><li><a href="https://medium.com/@danioropezasoria/accessibility-linters-for-angular-applications-224983a27b77">Accessibility Linters for Angular applications</a></li></ul><h3>Unit Testing</h3><p>Unit Tests are the most easily achievable way to ensure your app’s components do what they’re supposed to do. But did you know that you can also test for accessibility?</p><p>Similar to ESLint, popular test runners like Jest provide you with a plugin system so you can start using A11y related test matchers immediately. Here’s an example using the <a href="https://www.npmjs.com/package/jest-axe">jest-axe</a> plugin with <a href="https://testing-library.com/docs/react-testing-library/intro/">React Testing Library</a>:</p><pre>import { render, waitFor } from &quot;@testing-library/react&quot;;<br>import ChatGPTChat from &quot;@/app/chat-gpt/page&quot;;<br>import { axe, toHaveNoViolations } from &quot;jest-axe&quot;;<br><br>describe(&#39;ChatGPT Page&#39;, () =&gt; {<br>  it(&quot;ensures the rendered page is accessible&quot;, async () =&gt; {<br>    const { container } = render(&lt;ChatGPTChat /&gt;);<br>    const results = await axe(container);<br>    await waitFor(() =&gt; {<br>      expect(results).toHaveNoViolations();<br>    });<br>  });<br>});</pre><p>In case of violations your test will then fail with a hint at the affected elements and how to fix the issue:</p><figure><img alt="Example: Failing Jest Unit test wiht accessibility violations CLI output" src="https://cdn-images-1.medium.com/max/1024/1*IQTOE4LqHyMmpXYP9jUfUg.png" /><figcaption>click to enlarge</figcaption></figure><h3>UI Testing</h3><p>Testing your frontend using automated browser tests is a good way to ensure that your user flows work as intended in integration. As this also requires you to run your application in a browser environment, it also enables you to catch accessibility issues in the context of a fully rendered page.</p><p>Similar to Jest, UI test runners such as Playwright enable you to make use ofe Axe’s testing tool plugins to run static page analysis in your automated browser tests. Check out <a href="https://playwright.dev/docs/accessibility-testing">Playwright’s Accessibility testing documentation</a> for more information.</p><p>A popular alternative to Playwright is Cypress. At the time of writing this blog post however,<a href="https://www.cypress.io/blog/introducing-cypress-accessibility"> Cypress Accessibility Test Automation</a> is still in Early Access. If you’re interested, go ahead and join the waiting list for a chance to be among the first candidates to check it out!</p><figure><img alt="Blind man using a reading assistant to read a webpage in braille" src="https://cdn-images-1.medium.com/max/1024/1*S2gwOe3K2P06n5BDN0vNCw.jpeg" /><figcaption>Image by Mikhail Nilov: <a href="https://www.pexels.com/de-de/foto/mann-sonnenbrille-sitzung-sitzen-6981103/">https://www.pexels.com/de-de/foto/mann-sonnenbrille-sitzung-sitzen-6981103/</a></figcaption></figure><h3>User Tests</h3><p>Last but not least, ensuring true accessibility can best be verified by having actual affected users interact with your application and provide you with first-hand feedback for specific use cases.</p><p>In case you don’t have such a testing group available however, you can also simulate related use cases by defining user flows that limit the interaction with your app to a specific use case. Examples being:</p><ul><li>Navigate your application using <strong>only keyboard </strong>input</li><li><strong>Use voice</strong> as an alternative input method on text inputs</li><li>Access your app using a <strong>screen reader</strong></li><li>Use media elements with <strong>sound disabled</strong></li><li>View your UI in <strong>poor light conditions</strong> (i.e. direct sunlight, or low contrast display settings)</li></ul><p>Researching <strong>common disabilities </strong>will help you get inspiration of which use cases to look out for.</p><h3>Conclusion</h3><p>As you can see, making your application more accessible isn’t hard — even if it’s an existing one. By identifying low-effort issues with high-impact and tackling them early, you’re can easily enable more people to make use of your services and thus provide a better user experience overall.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1f04ab9c7fd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/comsystoreply/becoming-accessible-part-ii-the-developers-toolbox-a1f04ab9c7fd">Becoming Accessible — Part II: The Developer’s Toolbox</a> was originally published in <a href="https://medium.com/comsystoreply">comsystoreply</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Becoming Accessible — Part I: Obligation and Potential]]></title>
            <link>https://medium.com/comsystoreply/becoming-accessible-part-i-obligation-and-potential-724c5be6a729?source=rss-49cedab53c64------2</link>
            <guid isPermaLink="false">https://medium.com/p/724c5be6a729</guid>
            <dc:creator><![CDATA[Norman Steger]]></dc:creator>
            <pubDate>Tue, 08 Oct 2024 08:32:44 GMT</pubDate>
            <atom:updated>2024-10-18T08:04:08.943Z</atom:updated>
            <content:encoded><![CDATA[<h3>Becoming Accessible — Part I: Obligation and Potential</h3><figure><img alt="A judges hammer next to a document on accessibility directives" src="https://cdn-images-1.medium.com/max/1024/1*q5dZAMJvahGxDtOYzGHDsw.png" /></figure><p>When developing web apps, more and more website owners have to comply with internationally recognized standards, such as the <a href="https://www.w3.org/WAI/standards-guidelines/wcag/">WCAG 2</a>, to comply with legal requirements. Studies show that as of now up to 96% of the worlds top million websites do not provide their audiences with a sufficiently accessible user experience (Source: <a href="https://webaim.org/projects/million/">WebAIM</a>).</p><p>In the EU, legal obligation to provide a fully accessible user experience only applies to state-funded web services and those representing organs of the public sector.</p><p><strong>This status quo is about to change with the </strong><a href="https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX%3A32019L0882"><strong>EU Directive on the accessibility requirements for products and services</strong></a><strong>, coming into force on 28th June of 2025.</strong></p><p>The aim of this directive is to improve the availability of such products and services to a growing number of people with disabilities in the market, who, up until now, where all too often treated as insignificant minorities by website owners.</p><h3>The neglected child of User Experience</h3><figure><img alt="A black duckling amidst a group of yellow ducklings." src="https://cdn-images-1.medium.com/max/1024/1*xHSrG1bMAOdzgzcxHDuY-A.png" /></figure><p>With that in mind, let’s address the elephant in the room:</p><p><strong>What keeps companies from providing accessible user experiences in the first place?</strong></p><p>As often with complex questions, there’s not a single simple answer to it but rather a multitude of possible reasons.</p><p>Not having to follow a requirement legally often leads to an effect that is commonly described by a popular german idiom as:</p><blockquote>“Where there’s no plaintiff, there’s no judge.”</blockquote><p>This becomes especially apparent in a numbers driven market economy, where a projection for the Return of Investment (<a href="https://de.wikipedia.org/wiki/Return_on_Investment">ROI</a>) does not justify the efforts necessary to reach the goal. But how can you even start assessing this?</p><p>Well, there are a couple of sources that can give you a general idea, such as:</p><ul><li><a href="https://www.destatis.de/EN/Themes/Society-Environment/Health/Disabled-People/_node.html"><strong>Statistics of disabled people living in Germany</strong></a> by the Federal Statistical Office (destasis.de)</li><li><a href="https://www.consilium.europa.eu/en/infographics/disability-eu-facts-figures/#:~:text=In%202022%2C%2027%25%20of%20the,people%20adults%20in%20the%20EU."><strong>Disability in the EU: Facts and figures</strong></a> by the Council of the European Union</li></ul><p>Depending on the markets you’re targeting, these statistics can already give you a general idea on the amount of people that you may still deny a proper access to your products and services.</p><h3>Accessibility benefits everyone</h3><figure><img alt="A woman with a broken arm using a laptop." src="https://cdn-images-1.medium.com/max/1024/1*yptTJEyIhx9jBr9FU_nIuA.png" /><figcaption>What if you can’t use your hands?</figcaption></figure><p>In another example, <a href="https://abilitynet.org.uk/news-blogs/research-shows-businesses-lose-17-billion-ignoring-accessibility-needs#:~:text=The%202016%20version%20of%20the,grown%20to%20%C2%A317.1%20billion"><strong>The Click-Away Pound Report</strong></a> by UK disability and diversity consultancy Freeny Williams, shows that businesses in the UK alone lose up to 17 billion british pound (about 20 billion Euro) by ignoring accessibility needs. This can be the result of considering inclusive design to be nothing more but an external edge case.</p><p>However, making your app more accessible, does not only benefit permanently disabled people — it may also help users with temporary challenges in specific circumstances, such as:</p><ul><li>Poor <strong>lighting conditions</strong> (for reading)</li><li>Unfavourable <strong>sound environment</strong> (for audio / video consumption)</li><li>Working with <strong>limited movability</strong> (i.e. temporary injuries, not being able to use your hands)</li><li>Utilising <strong>non-visual output</strong> devices to read information from your app (i.e. using screen readers or voice assistants)</li></ul><p>This slide by Vitaly Friedman’s (Smashing Magazine) on the topic of Inclusive Design illustrates this very nicely:</p><figure><img alt="A table showing permanent, temporary and situational disabilites affecting different senses." src="https://cdn-images-1.medium.com/max/1024/1*gKe_lu1sh5t98w1HseXcTA.png" /><figcaption>Source: Inclusive Design Patterns for 2025 by Vitaly Friedman / Smashing Magazine: <a href="http://smashed.by/design-patterns-2025"><strong>smashed.by/design-patterns-2025</strong></a></figcaption></figure><p><strong>As any person in your target audience may become subject to one or more of these limiting circumstances, your product should be able to support them to get the best experience possible given their situation.</strong></p><h3>How accessible is your digital service?</h3><p>Before you can take measures to improve, you first need to find out, what you’re lacking. <a href="https://developer.chrome.com/docs/lighthouse/overview">Google Lighthouse</a> is but one of many popular tools that can help you to get a better understanding about obvious accessibility issues of your website.</p><p>If you use Google Chrome or a Chromium based browser, Lighthouse is already right at your fingertips. Hidden in the browser’s <a href="https://developer.chrome.com/docs/devtools?hl=de">developer tools</a>, the “Lighthouse” tab provides you with the possibility to scan your page for a variety of factors, such as SEO, performance or accessiblity.</p><figure><img alt="Chrome developer tools Lighthouse Tab: How to setup a scan for accessibility" src="https://cdn-images-1.medium.com/max/1024/1*mI--4VMEzC3XLgN1axjJhQ.png" /><figcaption>click to enlarge</figcaption></figure><p>The generated report tells you exactly how well your page applies accessibility standards and also points you towards insufficiently implemented elements, so you know exactly where to look for optimization potentials.</p><figure><img alt="Example: Chrome Lighthouse Accessibility Report" src="https://cdn-images-1.medium.com/max/1024/1*CJcBsahYk2Z8CV6GbxKukA.png" /><figcaption>click to enlarge</figcaption></figure><p>If you’re not comfortable with using your browser’s developer tools, Lighthouse is also available as a convenient browser extension for both <a href="https://chromewebstore.google.com/detail/lighthouse/blipmdconlkpinefehnmjammfjpmpbjk">Chromium based browsers</a>, as well as <a href="https://addons.mozilla.org/de/firefox/addon/google-lighthouse/">Firefox</a>.</p><h3>Conclusion</h3><p>Making your user experience more accessible will eventually benefit all of your users. The earlier you start assessing your lacks and potentials, the earlier will you be able to not only comply with the upcoming EU directive, but also to be reach more users and get ahead of the competition.</p><p>If you’re interested in learning which <strong>technical measures</strong> you can take to not only improve the accssibility of your webapp but also to avoid related issues before they can make it to production, make sure to check out <a href="https://medium.com/comsystoreply/becoming-accessible-part-ii-the-developers-toolbox-a1f04ab9c7fd"><strong>Becoming Accessible Part II: The Developer’s Toolbox</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=724c5be6a729" width="1" height="1" alt=""><hr><p><a href="https://medium.com/comsystoreply/becoming-accessible-part-i-obligation-and-potential-724c5be6a729">Becoming Accessible — Part I: Obligation and Potential</a> was originally published in <a href="https://medium.com/comsystoreply">comsystoreply</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Design + Code = ❤️ — How to bridge the gap with Figma and Storybook]]></title>
            <link>https://medium.com/comsystoreply/design-code-%EF%B8%8F-how-to-bridge-the-gap-with-figma-and-storybook-41719ff44ade?source=rss-49cedab53c64------2</link>
            <guid isPermaLink="false">https://medium.com/p/41719ff44ade</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[figma]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[storybook]]></category>
            <dc:creator><![CDATA[Norman Steger]]></dc:creator>
            <pubDate>Fri, 03 May 2024 11:37:33 GMT</pubDate>
            <atom:updated>2024-05-03T11:37:33.831Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>We’ve integrated Figma with Storybook to improve design and development collaboration in our internal projects. Here’s how we did it.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gt4i2aHg9TgJSczk0QdhOQ.png" /><figcaption>Base Photo by Ann H: <a href="https://www.pexels.com/photo/yellow-jigsaw-puzzle-piece-3482442/">https://www.pexels.com/photo/yellow-jigsaw-puzzle-piece-3482442/</a></figcaption></figure><p>Joining a project as a frontend engineer to help craft a user-friendly UI is not easy. In the best case scenario, there is already a committed UX design team in place, providing you with all the UI components you need, as well as their technical and visual documentation you need as a developer.</p><p>In a lot of cases however these preconditions are not given. Also there are always bumps along the way when it comes to communicating changes.</p><p>But do not falter, brave frontend warrior, there are tools out there that shall help you achieve greatness. Here’s a step-by-step guide on how to give both your development and your design team a kick-start into your new UI project.</p><h3>Understanding the challenges</h3><p>Before suggesting a solution, we first need to understand the challenges we’re facing. A couple of them are quite common in modern frontend projects:</p><h4><strong>Creating a shared base for your UI</strong></h4><p>In order to not reinvent the wheel each time you develop a new UI, it’s important to provide all involved parties with a shared base for collaboration. A UI library can serve this purpose, being the common ground for discussion among business stakeholders, development and design teams.</p><h4>Avoiding communication gaps</h4><p>Different teams tend to choose different tools to create UI components. A design team might not be involved in the code and its technical details too much, choosing Figma as the popular choice to collaborate on design files.</p><p>Development teams on the other hand do not necessarily focus on the look and feel as much as they care about the technical implementation of UI components and how to access them. Storybook is but one of many tools that can help to create both a technical documentation as well as providing an ordered overview as to what components are actually available and ready to use.</p><p>Luckily, both of these tools provide the possibility to plug-in to each other in order to bridge potential gaps between the teams and their tools of choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Nl6EawxNya0GGYEo" /><figcaption>Photo by Kampus Production: <a href="https://www.pexels.com/photo/people-in-a-business-meeting-6829519/">https://www.pexels.com/photo/people-in-a-business-meeting-6829519/</a></figcaption></figure><h4>Establish Best Practices</h4><p>Best practices live in both worlds as well. UI designers may take care about their components being accessible, responsive and match the overall design system. Having a checklist for this in place is helpful not only for the design team but for development reviews as well.</p><p>Frontend developers care about the same things, but from a different angle: What is the code value for this colour? What breakpoint values will a UI change its appearance? What are the spacing rules in the layout and how can I access its values? What is the font family for this headline?</p><p>Furthermore, both teams want to ensure that the components are tested and reviewed properly. The following steps will help you to recreate our setup so your team will have an easier time tackling those challenges.</p><h3>Step 1: Setting up Figma</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q0NGXz3FtA3K8kghu2NuMw.png" /></figure><p><a href="https://figma.com/">Figma</a> has become the de facto industry standard for creating compelling user interfaces. It enables designers, developers and stakeholders to easily collaborate on the design process for a product and its UI components.</p><p>If you want to get started with a small team, only using the most essential features, Figma provides you with a generous free plan out of the box. The precondition for it to be valuable right from the start is keeping structure.</p><p>If you create a new design file and share it amongst members of your teams, make sure to use frames, folders, variables and components in a sensible manner. This will help others having an easier time finding what they’re looking for in your Figma file and it will help you linking individual design frames to specific Storybook stories further down the road.</p><h3>Step 2: Setting up Storybook</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RCwEKmCIzZiC-KH3_dA_sA.png" /></figure><p><a href="https://storybook.js.org/">Storybook</a> is a powerful and highly customisable way to cataloging your UI component collection in a visual manner, providing both visual examples and technical documentation of their different use cases. Setting up a basic storybook project only takes a few minutes, thanks to the Storybook CLI — <a href="https://storybook.js.org/docs/get-started/install">see here</a>.</p><h4>What’s a story?</h4><p>Think of a story as a documentation of you UI component and its different states and capabilities. Each variation may be represented by a dedicated paragraph that demonstrates how your component looks and behaves, given a specific control configuration (properties).</p><h4>Integration with Figma</h4><p>In addition, you can install plugins, such as the<a href="https://storybook.js.org/blog/figma-plugin-for-storybook/"> Figma plugin for Storybook</a>, to create a design tab in your component story that shows the respective component design files in Figma. This way, developers don’t need to search long for the Figma specifications of a component, being able to see it directly in Storybook and used the linked reference to jump directly to Figma to inspect details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LwNXh35zdW76QYsOWhTikA.png" /></figure><p>By enabling this, design values are at the developers finger tips and potential derivations of the component implementation compared to the design file will become much easier to spot.</p><h3>Step 3: Implementing Best Practices</h3><p>Establishing best practices can help you to make your collaboration process more transparent and less error prone. Here are but a few examples you can make use of to make the best of your Figma+Storybook setup:</p><h4><strong>Enable Messenger Notifications</strong></h4><p>Using instant messaging as the central platform for quick communication has become a standard in most product development teams. Tools such as Slack or Microsoft Teams help you keep track of updates in your organisation and get in touch with others fast.</p><p>When working on implementation details of your product however, it makes sense to keep communication close to the context. Similar to code collaboration platforms like GitHub, where developers contribute and review each others work before moving on the next stage, Figma also enables collaborators to leave comments in design files and directly mention other users to request feedback.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hA95hsPnWZLUjCY-reViNQ.png" /></figure><p>As you can imagine however, having different platforms for communication used by different teams creates boundaries that information can easily get lost in. To avoid this, tools like Figma or Github enable you to integrate with your organisations central instant messenger, so you can connect your personal account and don’t miss out on new comments and mentions on either platform.</p><h4><strong>Example: Figma Notification</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H46Dy_tMQ_1mb_j-cSsqvg.png" /></figure><h4><strong>Example: GitHub Notification</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dVn4J30_0eZWIAPodh54Xw.png" /></figure><h4><strong>Provide Test Coverage</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*xcPhK1ixix00inCjSN0L-A.png" /></figure><p>Being able to access the test coverage of existing components will establish transparency about its current capabilities and provides a base for discussing gaps and potentials. The <a href="https://storybook.js.org/integrations/">Storybooks addon ecosystem</a> provides various integrations with common test runners, such as <a href="https://storybook.js.org/addons/@storybook/addon-jest">Jest</a> or <a href="https://github.com/krzysztofradomski/storybook-addon-vitest">Vitest</a> (the screenshot above shows an example of the latter).</p><p>Don’t let cases be a developer-only domain — involve business and design stakeholders as well!</p><p><strong>Design Reviews</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*5dqLEvkKjmLRb00E" /><figcaption>Photo by <a href="https://unsplash.com/@kobuagency?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">KOBU Agency</a> on <a href="https://unsplash.com/photos/two-women-talking-while-looking-at-laptop-computer-7okkFhxrxNw?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>Before shipping to production, make sure to bring design and development together for a final review of the implementation. Experiencing the live interaction of your UI components together might provide valuable insights for future improvement and can even catch bugs and design flaws before they reach the end user. This is yet another step of ensuring product quality through close collaboration.</p><h3>Conclusion</h3><p>As you can see, creating a common ground for design and development teams to collaborate on isn’t as hard as it might seem. Using it frequently to discuss new solutions and communicate changes can become a key factor to reduce friction, saving effort and time in the process and thus enabling you to ship engaging experiences to your users faster.</p><p><strong>If you’d like to know more about how to make the process of building great, scalable products with your teams, make sure to check out the </strong><a href="https://delta-comsysto-reply.de/en/"><strong>DELTA framework</strong></a><strong> by Comsysto and get in touch with us!</strong></p><p>This blogpost is published by <a href="https://legal.comsysto.com/comsystoreply.de/en/impressum/">Comsysto Reply GmbH</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41719ff44ade" width="1" height="1" alt=""><hr><p><a href="https://medium.com/comsystoreply/design-code-%EF%B8%8F-how-to-bridge-the-gap-with-figma-and-storybook-41719ff44ade">Design + Code = ❤️ — How to bridge the gap with Figma and Storybook</a> was originally published in <a href="https://medium.com/comsystoreply">comsystoreply</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[6 Steps to Glory: How to build better products using BDD]]></title>
            <link>https://medium.com/comsystoreply/6-steps-to-glory-how-build-better-products-using-bdd-91ee6ced1ab?source=rss-49cedab53c64------2</link>
            <guid isPermaLink="false">https://medium.com/p/91ee6ced1ab</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[design-thinking]]></category>
            <category><![CDATA[test-driven-development]]></category>
            <category><![CDATA[bdd]]></category>
            <category><![CDATA[behavior-driven-dev]]></category>
            <dc:creator><![CDATA[Norman Steger]]></dc:creator>
            <pubDate>Wed, 03 Apr 2024 08:32:41 GMT</pubDate>
            <atom:updated>2024-04-08T13:19:39.088Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Building real-world apps can be hard. Making your end users love using them can be even harder. Behaviour Driven Development (BDD) is but one discipline that can help you get there — if you do it right.</strong></p><p>But what is Behaviour Driven Development anyway? You might have heard that term once or twice in the past. It is often used in the same context with terms like “Cucumber” or “Gherkin Syntax”, or “Automated Acceptance Tests”.</p><p>But what if I told you that BDD is much more than just that?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/0*l8TG4HbqWCJPrLrU.jpg" /><figcaption>You take the blue pill, the story ends. You wake up in your bed and believe whatever you want to. You take the red pill, you stay in Wonderland, and I show you how deep the rabbit hole goes.</figcaption></figure><p>When we look at how Wikipedia defines Behaviour Driven Development we stumble upon this very interesting statement:</p><blockquote>In software engineering, behaviour-driven development (BDD) is an agile software development process that encourages collaboration among developers, quality assurance testers, and customer representatives in a software project.</blockquote><blockquote>It encourages teams to use conversation and concrete examples to formalize a shared understanding of how the application should behave.</blockquote><p>For a long time, I didn’t follow these principles myself. I started out by building web applications based on my own experiences and expectations, without collaborating with any relevant party right from the start. Doing so, I might have had the best intentions in mind, but eventually I ended up crashing and burning, because I just wasn’t able to provide value to end users. The reasons for that were various:</p><ul><li>I did not understand who the users were and what their problem was</li><li>Users didn’t understand the product I built for them or how it would help them to solve their problem</li><li>It didn’t solve any problem for them at all</li><li>The product was barely usable (poor user experience)</li></ul><p>With those being just a few examples: I don’t want you to make the same mistakes I did. So listen up, chap! Here are my six steps to glory on how BDD can help you build a project your users will love:</p><ul><li><a href="#a3b0"><strong>Step 1: Design Thinking</strong></a></li><li><a href="#64c3"><strong>Step 2: Develop a Common Language</strong></a></li><li><a href="#2d32"><strong>Step 3: User Flow Scenarios</strong></a></li><li><a href="#acc6"><strong>Step 4: Testing Behaviour in Unit Tests</strong></a></li><li><a href="#eb0b"><strong>Step 5: Run Automated Acceptance Tests</strong></a></li><li><a href="#d82a"><strong>Step 6: Measure &amp; Learn</strong></a></li></ul><h4>Disclaimer</h4><p><em>I will be listing a couple of tools and methodologies in the steps below. Those are merely examples that I have found to be helpful in the past. Some of these tools and services may require you to create an account or a subscription to use them.</em></p><p><em>Please note that neither myself or Comsysto Reply is sponsored by any of these companies. There are many other options out there that you may use as an alternative — feel free to do your own research and let me know what your tools of choice are!</em></p><h3>Step 1: Design Thinking</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*rLNiRbEf8NnATsjT" /></figure><p>Every solution starts with a problem. And it is vital for you to understand that problem before you attempt to come up with any proposal for a solution. But as the late Steve Jobs used to say:</p><blockquote>“Great things in business are never done by one person. They’re done by a team of people.”</blockquote><p>This is why it is not only vital to you but also to every other party involved in designing and building a product, to create a common understanding about the user, their problem and how to solve it. Here’s the concept in a nutshell:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EjeFopp-QkOi8w6L.png" /><figcaption>Source: <a href="https://www.maqe.com/insight/the-design-thinking-process-how-does-it-work/">https://www.maqe.com/insight/the-design-thinking-process-how-does-it-work/</a></figcaption></figure><p><strong>Design Thinking helps you to:</strong></p><ol><li>understand who your users are</li><li>facilitate a common understanding of the problem they might have</li><li>generate ideas and prototypes to tackle the problem</li><li>put them to the test by confronting your end users with your ideas and prototypes</li><li>repeat that process until you end up with something useful for the user</li></ol><p>Following this principle from the very beginning of product development will be a corner stone to build something that your users will truly love to use. And at the end of the day that is (or should be) also at the heart of your businesses interests.</p><h3>Step 2: Develop a Common Language</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*spSpyLJsnicKPKrm" /><figcaption>Photo by <a href="https://unsplash.com/@nxvision?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Nigel Tadyanehondo</a> on <a href="https://unsplash.com/photos/youll-get-it-eventually-neon-sign-on-wall-pXf4OH65OhE?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>Did you ever join a new company or team and then ended up being confused about the terminology that is being thrown around in conversations about the product?</p><p>That might be due to an established language that has developed among the parties involved. Which <strong><em>is</em></strong><em> </em>a good thing, <strong><em>but</em></strong>: For the same reasons as having a common understanding about the product and solution, it is also crucial to have a common understanding about the terminology that is being used across teams and stakeholders that work on the same product.</p><p><strong>Why is that important?</strong></p><p>There are a couple of examples that might fall in the same “category” of terminology, which — if taken individually — do differ significantly in the context of the product. Let’s say we want to build a multichannel E-Commerce platform. A common example for related terminology that might be used are <strong>User Personas</strong>.</p><p>Here are a few examples:</p><ul><li>B2C customers</li><li>B2B customers</li><li>Account Managers</li><li>Distribution Managers</li></ul><p>Depending on their role, users might have completely different motivations and goals when interacting with your product. You need to keep that in mind when you start talking about your users.</p><p>Another common example would be<strong> App pages</strong>, like:</p><ul><li>Home- or Landing Page</li><li>Product Detail View (PDV)</li><li>Product List View (PLV)</li><li>etc.</li></ul><p>Abbreviations in this example might be completely customary to your organisation. It is important though for everyone to be on the same page (pun intended 😛), once such terms or abbreviation are being used. Does everyone have the same page in mind, when you’re talking about the “Landing Page”? Or are there different understandings? Make sure there aren’t by defining and documenting such terms.</p><h3><strong>Step 3: User Flow Scenarios</strong></h3><p>Understanding how users interact with your product in order to reach a specific goal is essential to providing value.</p><p>Using a common language to describe user flows will not only help you to understand them but also to make them reproducable. It shouldn’t matter if you are a software engineer, UX designer, QA tester or product owner. Looking at the definition of a feature, everyone of you should be able to understand and recreate the behaviour of how a user is supposed to interact with a specific feature in your product.</p><p>Using “Gherkin” Syntax would be one example of how to achieve that:</p><blockquote><strong><em>GIVEN</em></strong> I am on <a href="http://www.my-app.de/home">http://www.my-app.de/home</a> <br><strong><em>AND</em></strong> I use a smartphone device <br><strong><em>AND</em></strong> my browser language is english <br><strong><em>WHEN</em></strong> I click on the „Get started“ button <br><strong><em>THEN</em></strong> I see a list of all available product categories</blockquote><p>Prefer to be explicit rather than implicit when writing a scenario using Gherkin syntax. Even at this stage, little details can make quite a difference in ending up with the same result in the end:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h1c9E1joEZmRWA-QhrAoNA.png" /></figure><p>Still don’t like Gherkin? Make up your own Syntax! Whatever works for you and your team - just make sure it follows the same principles to establish a reproducible process description:</p><blockquote><strong>Scenario:</strong><br><em>DEVICE</em> desktop ultra wide screen <br><em>NAVIGATE</em> <a href="https://www.my-app.de/products/tv">https://www.my-app.de/products/tv</a> <br><em>CLICK</em> product tile „Philips TV XSHL990“ <br><strong>Expectation:</strong><br><em>NAVIGATE TO </em><a href="https://www.my-app.de/products/philips/tvs/philips-tv-smartxshl990">https://www.my-app.de/products/philips/tvs/philips-tv-smartxshl990</a></blockquote><p>Also — and this is an important one<strong> </strong>— user flow scenarios should derive from <strong>asking your users </strong>how they expect the product to work. Not the business. Now, you might not want to hear this, but: If you are a software engineer, UX designer, QA tester or product owner, working on the product, you might have an expectation of how a user should interact with a feature, but more often than not you’re probably not a user within the target group yourself. You’re part of the business side.</p><p>The people that are actually suppose to use your product and generate (or save) revenue on the other hand — those are users — the ones you should be worried about when describing the behaviour of interacting with your product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SvSz8Rig6d04NQGftDdSmg.png" /></figure><p>Yes. All of these. User flow scenarios help you to define them and make them reproducible. What you want to eventually end up with is something that you can use as a form of <strong>acceptance criteria</strong> in your user stories:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bkE2fe42Fh63bm9k.png" /><figcaption>Source: <a href="https://medium.com/@nic/writing-user-stories-with-gherkin-dda63461b1d2">https://medium.com/@nic/writing-user-stories-with-gherkin-dda63461b1d2</a></figcaption></figure><h3>Step 4: Testing Behaviour in Unit Tests</h3><p>Did you know that you can use your user flow scenarios and transfer them directly into your UI unit tests? At least some of them you can. And it will also help you foster the right mindset for test-driven development when approaching the implementation of features. Isn’t that great?</p><p>Here’s an example of what test case definitions could look like in your code (using TypeScript syntax with Jest):</p><pre>describe(&#39;Product List&#39;, () =&gt; {<br><br>  it(&#39;loads a list of product categories on init&#39;, () =&gt; {});<br><br>  it(&#39;loads a list of products when clicking on a product category&#39;, () =&gt; {});<br><br>  it(&#39;shows an error notification if product categories can not be loaded&#39;, () =&gt; {});<br><br>  it(&#39;shows an error notification if product list can not be loaded&#39;, () =&gt; {});<br>});</pre><p>Most commonly you will find two different types of assertions you can cover within such test cases - those that have a direct impact on what the user sees vs those that verify the behaviour under the hood:</p><pre>showAllTvsButton.click();<br><br>// non-visual: expect API requests to have been fired<br>expect(ProductApi.getProductList).toHaveBeenCalledTimes(1);<br>expect(ProductApi.getProductList).toHaveBeenCalledWith({ categoryId: &#39;123-tv&#39;});<br>    <br>// visual: expect the view to have changed<br>expect(listContainer.querySelector(&#39;.product-tile&#39;)).toHaveLength(5);</pre><p>Making sure that your unit tests cover what is essential to your user flow scenarios to work is not only a great way of applying BDD principles to the lowest level of your development process, it also serves as a valuable piece of documentation, as other developers can easily read from your test cases what your code should be doing and thus how it is supposed to provide value to your feature unit.</p><h3>Step 5: Run Automated Acceptance Tests</h3><p>Not every possible flaw within a user journey implementation can be covered by UI unit tests. The nitty-gritty of short-comings in a user journey often happen on a higher level — in between the interaction of various components, pages and app states. To cover these gaps, integration and end-to-end tests are commonly used to validate that all parts of a system work together seamlessly and by that, ensure the desired outcome of a user flow scenario across different steps of the journey.</p><p>A couple of examples for popular tools to automate such tests in the browser are:</p><ul><li><a href="https://www.cypress.io/">Cypress</a></li><li><a href="https://testcafe.io/">TestCafé</a></li><li><a href="https://playwright.dev/">Playwright</a></li></ul><p>As the line between what is considered to be an integration test and what is considered to be an E2E test can become blurry depending on the specific use case, we don’t want to get too deep into their separation in the context of BDD.</p><ul><li>Want to call real server endpoints from your browser UI to cover every possible flaw in one go? Go for it!</li><li>Want to isolate the UI from the server to make sure the front-end does what it’s supposed to do independent of the back-end? That might also be a valid approach</li></ul><p>No matter what testing strategy you choose, the one thing you should always care most about is that your acceptance criteria is being met and your test setup provides everything that is necessary to meet that requirement. So for the sake of simplicity, we will refer to both of these approaches simply as automated acceptance tests (AATs).</p><p>Here’s a practical example of an AAT specification, using the <a href="https://github.com/badeball/cypress-cucumber-preprocessor">cypress-cucumber-preprocessor</a> plugin in Cypress:</p><pre>Feature: Product List <br><br>GIVEN I am on http://www.my-app.de/products<br>AND I am using a smartphone device<br>AND my selected language is english<br><br>  Scenario: Poroduct List loads succesfully<br><br>  WHEN I click on the &quot;Get started&quot; button<br>  THEN I see a list of all available product categories<br><br>  Scenario: Product List can not be loaded<br><br>  WHEN I click on the &quot;Get started&quot; button<br>  THEN I see an error notification telling me that hte product list can not be loaded</pre><p>This translates to the following test implementation code:</p><pre>import { When, Then, Given } from &quot;@badeball/cypress-cucumber-preprocessor&quot;;<br><br>Given(&#39;I am on &quot;&quot;&#39;, (url) =&gt; {<br>  cy.visit(url);<br>});<br><br>And(&#39;I am using a smartphone device&#39;, () =&gt; {<br>  cy.viewport({ widht: 320, height: 480 });<br>});<br><br>And(&#39;my selected language is english&#39;, () =&gt; {<br>  cy.get(&#39;.languages &gt; .english-language&#39;).click();<br>});<br><br>Then(&#39;I see a list of all available product categories&#39;, () =&gt; {<br>  cy.get(&#39;.product-category&#39;).should((list) =&gt; {<br>     expect(list).to.have.length(6);<br>     expect(list[0]).to.have.text(&#39;Best Sellers&#39;);<br>     expect(list[1]).to.have.text(&#39;Women&#39;);<br>     expect(list[0]).to.have.text(&#39;Men&#39;);<br>     //etc...<br>  });<br>});</pre><p>Bonus: These blocks can easily be reused across your test cases!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JcTtiMguImk7ghu29msm7g.png" /></figure><p><strong>If you’ve already followed all the previous steps, the good news is: You’re already half-way there!</strong></p><p>Since user flow scenarios are supposed to be a direct reflection of the acceptance criteria from the user’s perspective, you can easily transfer them into your AAT test cases. One way to do this is to use Cucumber Plugins to enable you to describe test cases in Gherkin syntax. Such plugins are available for most popular test runners such as Cypress, TestCafé or Playwright. Using them makes requirement loss in translation even less likely. And as a nice side-effect: It makes your test cases transparent even to less technical team members.</p><h3>Step 6: Measure &amp; Learn</h3><p>Once you’ve followed all previous BDD principles during your implementation phase, the last piece of the puzzle is to keep an eye on what is happening when real users interact with your product. This will help you to improve the user’s experience along the way and can be achieved on multiple levels:</p><ul><li><a href="#95d0">User Tracking</a></li><li><a href="#e45a">Error Monitoring</a></li><li><a href="#4fda">A/B Testing</a></li><li><a href="#20af">Browser and Device Testing</a></li><li><a href="#53f3">Talk to your users</a></li></ul><h4>User Tracking</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ig7-cozV48JPgmFw" /><figcaption>Photo by Pixabay: <a href="https://www.pexels.com/photo/gray-and-black-laptop-computer-265087/">https://www.pexels.com/photo/gray-and-black-laptop-computer-265087/</a></figcaption></figure><p>While the term itself has become quite heavily loaded with privacy concerns — for good reasons I may add — the ability of tracking your users behaviour in a live product is still a vital form of direct feedback to foster improvement. The key here is to ensure anonymity and transparency for your end users. Agreeing to collecting user data, be it personalised or not, should always be a choice that you should enable your users to provide explicitly rather than implicitly.</p><p>Tools to track your users are various. Some popular examples might be:</p><ul><li><a href="https://marketingplatform.google.com/about/analytics/">Google Analytics</a></li><li><a href="https://newrelic.com/lp/browser-monitoring">New Relic Browser Monitoring</a></li><li><a href="https://go.pendo.io/">Pendo</a></li></ul><p><strong>But what exactly can you learn from your users using these tools?</strong></p><ul><li>What pages do you users visit most?</li><li>How do your users interact with your app / feature?</li><li>What browser / device / version do they use?</li><li>What times are your users most active?</li><li>Where do your users come from?</li><li>Depending on privacy level: <br> What age / gender / etc. are your users?</li></ul><p>These are just a few examples that may help you optimize the user experience of your product.</p><p>That being said, even if a user agrees, there might be hidden disagreements in the form of active ad blockers that can still prevent you from collecting data.</p><p>Always keep that in mind while looking at the numbers. Again — explicitly asking your users to disable their ad blocker in order to improve their user experience in the long run can go a long way in terms of establishing trust.</p><h4>Error Monitoring</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*nWqFs8mrXwK20oJQ" /><figcaption>Photo by <a href="https://unsplash.com/@davfts?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">David Pupăză</a> on <a href="https://unsplash.com/photos/text-heNwUmEtZzo?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>Errors that happen within your system may not always be captured by user tracking tools. Everything from an internal server exception, to a corrupted UI state caused by a JavaScript error, or a HTTP exception response due to a crooked validation may occur completely hidden from your watchful eye if you don’t setup sufficient monitoring.</p><p>Here are a few choices that can help you catch such issues:</p><ul><li><a href="https://sentry.io/">Sentry</a> (Browser)</li><li><a href="https://newrelic.com/platform">New Relic</a> (Server)</li><li><a href="https://www.datadoghq.com/">Datadog</a> (Cloud)</li></ul><p>Monitoring errors both on the client and on the server side will eventually help you detect road blocks that your users run into frequently and how to resolve them. Less errors = less friction in the user journey = happier users.</p><h4>A/B Testing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qAb6XUzrZ2-UCDLT" /><figcaption>Photo by Pixabay: <a href="https://www.pexels.com/photo/yellow-and-black-2-way-signage-272254/">https://www.pexels.com/photo/yellow-and-black-2-way-signage-272254/</a></figcaption></figure><p>Testing out new features with real users can be done both in the concept phase (design thinking) as well as in the post-implementation phase. A/B Testing is a common practice to enable only specific users to access new features within your product so you can monitor the impact and improve the experience before rolling it out to everyone in your user base.</p><p>Implementing an A/B testing process in your product can be a custom built solution (which is the approach that I’ve mostly taken in the past). However, it is worth mentioning that there are also vendors that are offering out-of-the-box solutions that help you with implementing an A/B test flow and related analytics in your product, such as:</p><ul><li><a href="https://posthog.com/ab-testing">Posthog</a></li><li><a href="https://ablyft.com/">ABlyft</a></li><li><a href="https://www.kameleoon.com/">Kameleeon</a></li></ul><p>Personally, I couldn’t make any experiences with these tools yet but if you do, please share your thoughts in the comments!</p><h4>Browser and Device Testing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dZgDfuSahkYbpoRE" /><figcaption>Photo by Pixabay: <a href="https://www.pexels.com/photo/macbook-and-ipad-on-desk-207589/">https://www.pexels.com/photo/macbook-and-ipad-on-desk-207589/</a></figcaption></figure><p>Users access your product using different types of interfaces. These usually include a various range of different browsers, operating systems, devices and related versions. These differences can come with quirks that affect the experience for your users based on the browser, device and viewport of choice.</p><p>Having a process in place to test your product via different interfaces can help you catch compatibilty issues, as well as variations in behaviour and performance. Here again, there are different tools that can help you achieve that without having to keep an armada of different devices at your desk that you have to keep up to date by yourself:</p><ul><li><a href="https://www.browserstack.com/">BrowserStack</a></li><li><a href="https://smartbear.com/product/testcomplete/">SmartBear TestComplete</a></li></ul><h4>Talk to your users!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*K5SW3n_gkxvt9KvZ" /><figcaption>Photo by Armin Rimoldi: <a href="https://www.pexels.com/photo/serious-young-diverse-men-using-laptop-5553922/">https://www.pexels.com/photo/serious-young-diverse-men-using-laptop-5553922/</a></figcaption></figure><p>All the tooling in the world will not replace direct user feedback. Observing your users as they interact with your product and having them thinking out loud what they’re experiencing helps you see the application through their eyes.</p><p>Of course, verbal feedback is always subject to personal perception, but it also tells your more about how your users <strong><em>feel</em></strong> about using your product than any abstracted set of data can ever do.</p><p>And feeling — or the power of emotional attachment to a product or brand, to put it in different words — is a powerful ally in fostering word of mouth marketing.</p><h3>Conclusion</h3><p>As you can see there are many ways to apply BDD principles to the development cycle of your product. While any of those steps can be used independently from each other, it’s worth to keep in mind that they are designed to compliment each other so to maximize the benefit you may draw from them.</p><p>Also if you’re familiar with <a href="https://agilemanifesto.org/">agile software development</a> and the principles of the <a href="https://theleanstartup.com/principles">lean startup</a>, you may have noticed that the concepts behind those steps are merely derivations of just that— build, measure, learn, repeat. Always keep this sequence in mind, when in doubt.</p><p>Let me know how you apply BDD in your project and what you’ve found worked best for you! Also, if you want to know more about how you can make your product a success, please check out the<a href="https://delta-comsysto-reply.de/en/"> DELTA framework by Comsysto</a> and reach out to us!</p><p>And please make sure to leave a 👏🏻 and share this article with your friends and colleagues 😉</p><p>This blogpost is published by <a href="https://legal.comsysto.com/comsystoreply.de/en/impressum/">Comsysto Reply GmbH</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91ee6ced1ab" width="1" height="1" alt=""><hr><p><a href="https://medium.com/comsystoreply/6-steps-to-glory-how-build-better-products-using-bdd-91ee6ced1ab">6 Steps to Glory: How to build better products using BDD</a> was originally published in <a href="https://medium.com/comsystoreply">comsystoreply</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>