<?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 Alessandro Cristofori on Medium]]></title>
        <description><![CDATA[Stories by Alessandro Cristofori on Medium]]></description>
        <link>https://medium.com/@compatt?source=rss-95bee74e704d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*d0vEf-Pl2QutO0qlp8lI_Q.jpeg</url>
            <title>Stories by Alessandro Cristofori on Medium</title>
            <link>https://medium.com/@compatt?source=rss-95bee74e704d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:36:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@compatt/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[Case Study: Nocto, personalising the path to better sleep]]></title>
            <link>https://compatt.medium.com/case-study-nocto-personalising-the-path-to-better-sleep-0e8a5e1a1df5?source=rss-95bee74e704d------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e8a5e1a1df5</guid>
            <category><![CDATA[case-study]]></category>
            <category><![CDATA[bootcamp]]></category>
            <category><![CDATA[ironhack]]></category>
            <dc:creator><![CDATA[Alessandro Cristofori]]></dc:creator>
            <pubDate>Sat, 24 May 2025 14:58:16 GMT</pubDate>
            <atom:updated>2025-05-24T14:58:16.891Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5fK13flxTEkN-yCzXURv0w.png" /></figure><p>As part of Project 4 in the Ironhack UX/UI Bootcamp, our team was challenged to design a wellness-focused digital product by applying the full Design Thinking process – from empathising with users to testing high-fidelity prototypes. The final deliverable is a prototype of a native mobile app, designed specifically for the iOS platform.<br>In exploring various aspects of wellness we identified sleep as a critical area. <br>Below you will see the various steps that led to the creation of Nocto, a concept for a personalised sleep wellness app built around customised bedtime routines.</p><p><strong>Secondary Research &amp; Competitor Analysis</strong></p><p>We began with secondary research, focusing on adults aged 20–40, in two main areas:</p><ul><li>Sleep issues in healthy adults.</li><li>Effectiveness of existing digital sleep products.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q_F9T-APz8VLx_3ttF29cA.png" /><figcaption>Sleep issues in healthy adults — Secondary research main findings</figcaption></figure><p><strong>Qualitative &amp; Quantitative research</strong></p><p>Based on our secondary research, we proceeded with additional investigation through both qualitative and quantitative methods. We conducted user interviews with 8 individuals aged 20 to 40 and collected 31 responses from an online survey.<br>The goal of this research was to either validate or challenge our secondary findings. We were particularly interested in exploring:</p><ol><li>The real impact of stress on the ability to fall asleep</li></ol><p>2. The extent to which screen use and digital devices interfere with healthy sleep habits</p><p>3. The reasons users abandoned digital sleep solutions they had tried in the past.</p><p>These insights were critical for shaping our understanding of user needs and pain points, and guided the next phases of our design process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8riWtjqe_zWuga8MQABr0g.jpeg" /><figcaption>Qualitative &amp; Quantitative research main findings</figcaption></figure><p><strong>Problem definition</strong></p><p>The stages of our secondary research, user interviews, and survey responses revealed a clear behavioural pattern underlying users’ struggles to fall asleep and maintain healthy sleep habits.</p><p>It all begins with racing thoughts and anxiety — mental tension that builds up during the day. When users go to bed and attempt to fall asleep, they find themselves overwhelmed by these thoughts. As a coping mechanism, many instinctively reach for their phone, a deeply ingrained habit in current day-to-day lifestyle.</p><p>However, rather than calming the mind, screen use — especially passive scrolling — overstimulates the brain, making it even harder to fall asleep. This increases frustration and restlessness.</p><p>Some users turn to digital solutions for help, such as sleep apps or guided meditations. But while these tools can be effective, they often demand consistency and commitment, which users struggle to maintain. Over time, this loss of motivation feeds into further disappointment, looping them back to the starting point of the cycle — unable to sleep, anxious, and reaching again for their screen.</p><p>This vicious loop is not just a matter of poor sleep — it reflects a broader challenge around digital habits, stress, and sustainable behaviour change.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Paoryq6veqT7H-4Xi3LEQ.jpeg" /><figcaption>User Journey</figcaption></figure><p>The behavioural pattern described above reveals multiple user pain points and design opportunities for a digital solution. These range from addressing the immediate effects of struggling to fall asleep — such as anxiety and restlessness — to tackling the underlying causes like stress and unprocessed thoughts.</p><p>The identification of our users’ problem can be then stated as follows:</p><blockquote><em>When our users reach bedtime, they want to have a consistent &amp; easy to follow routine so that they can reduce stressful thoughts disconnecting from screens.</em></blockquote><p><strong>Ideation part I — From lo-fi to concept testing</strong></p><p>Looking more comprehensively at our problem statement we identifies two types of digital interventions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IIVv-jdz9IUc6-W4E7veDw.jpeg" /></figure><p>Our group then used the Crazy 8s method to rapidly “sketch-storm” a wide range of digital solution concepts. <br>The ideas we generated spanned both categories — short-term relief (“plasters”) and long-term support (“vitamins”) — reflecting diverse approaches to improving sleep.</p><p>At the end of the Crazy 8s session, we conducted a dot-voting exercise to evaluate which concepts best addressed the problem within the time constraints of the project.<br>We chose to prioritise a solution that focused on building and reinforcing a bedtime routine. The selected concept involved a series of simple, actionable tasks for the user to follow each night, supported by timely notifications. These reminders would encourage users to reduce screen time, stay engaged with the routine, and gradually improve their ability to fall asleep.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vr_eixB_ZYfIL2kUTsNw6Q.jpeg" /><figcaption>Task flow with relative lo-fi app screens</figcaption></figure><p>We then concept tested our low-fidelity prototype. The feedback we gathered informed several key improvements during the next stages of the design process.<br>One major takeaway was the demand for a more personalided experience. We addressed this by introducing a refined post-routine survey, allowing users to reflect on their experience each night.<br>Another recurring theme from user feedback was the desire for greater engagement through gamification. In response, we designed a level-based system, where users can progress by consistently completing bedtime routine tasks — helping to turn healthy sleep habits into a rewarding journey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*amNvaCTjuCOVnWCbxoOWNQ.jpeg" /><figcaption>Integration of concept tests results into the app’s design</figcaption></figure><p><strong>Ideation part II — From the moodboard to usability testing</strong></p><p>For the creation of the moodboard, each group member proposed their own visual direction. We then used dot voting to select the most fitting concept.<br>The chosen moodboard emphasised a dark-themed interface, aimed at minimising screen light stimulation before bed. It also featured nighttime illustrations, including elements like sheep and sheep-counting. This choice was not only relevant to the idea of falling asleep, but also symbolically reinforced the app’s core message: consistency and commitment. Counting sheep represents a repetitive, calming activity — perfectly aligned with the app’s goal of helping users build and stick to a bedtime routine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1JXrI9AHghPcGQIsGSgkAw.png" /><figcaption>App’s moodboard and style tile</figcaption></figure><p>The next step in our ideation process was the creation of the high-fidelity prototype, built around the previously defined task flow. Once the prototype was complete, we conducted usability testing to validate the user experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*BfXoL7jJOzaw8odt1rnkYA.gif" /><figcaption>HI-FI prototype walk throguh</figcaption></figure><p>We invited four users to interact with our Figma prototype and asked them for open-ended feedback on the app’s usability and overall impression. The feedback revealed several valuable insights.<br>Testers generally found the core concept strong and relevant, confirming the potential of the app. However, they also pointed out areas where the app lacked visual appeal and user engagement.</p><p>Some screens were perceived as text-heavy, making them less inviting. Additionally, the personalisation aspect — implemented through a post-routine survey — was seen as too passive; users suggested a more dynamic and tailored approach.<br>The gamification features were understood and appreciated, but most testers felt they were too subtle to sustain long-term engagement and motivation to stick with the routine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oCkEkGk_QSfE0KK939Xvog.jpeg" /><figcaption>Usability tests results and next app’s design iterations suggestions</figcaption></figure><p><strong>Conclusions and takeaways</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eDSEShzRWBuxczQwF6bxWw.png" /></figure><p><strong>1.Reaching the Usability Testing Stage Was a Key Milestone<br></strong>Successfully completing the full design process — including usability testing — was a major achievement. It provided valuable insights into user behaviour and helped us identify clear opportunities for improvement in future iterations.</p><p><strong>2. Importance of Engagement Features: A Lesson Learned</strong><br>One of the key takeaways was the absence of engagement features like progress statistics, which we had considered in earlier stages but did not implement. Their omission proved significant, highlighting the importance of reinforcing motivation and user retention in wellness-focused apps.</p><p><strong>3. Designing for Digital Detachment Requires Careful Balance</strong><br>When creating a product meant to reduce screen dependency, it’s crucial to avoid overwhelming users with excessive text or forced interactions. In our case, there’s substantial room for improvement — such as exploring AI-driven sleep coaching — while maintaining the core structure of routine-based tasks and consistency, which we found essential for promoting healthy sleep habits.</p><p><strong>Bibliography references</strong></p><p>¹ Okuda, M., Noda, A., Iwamoto, K., Nakashima, H., Takeda, K., Miyata, S., Yasuma, F., Ozaki, N., &amp; Shimouchi, A. (2021). <em>Effects of long sleep time and irregular sleep–wake rhythm on cognitive function in older people</em>. Scientific Reports, 11, Article 7039.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e8a5e1a1df5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Case Study: mobile app redesign — Audible]]></title>
            <link>https://compatt.medium.com/case-study-mobile-app-redesign-audible-07a5c1190dff?source=rss-95bee74e704d------2</link>
            <guid isPermaLink="false">https://medium.com/p/07a5c1190dff</guid>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[case-study]]></category>
            <category><![CDATA[ux-research]]></category>
            <category><![CDATA[ironhack]]></category>
            <category><![CDATA[bootcamp]]></category>
            <dc:creator><![CDATA[Alessandro Cristofori]]></dc:creator>
            <pubDate>Sat, 05 Apr 2025 21:58:04 GMT</pubDate>
            <atom:updated>2025-04-06T23:06:08.938Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*IuWe6riCgRkK3oLRVl0A6g@2x.jpeg" /></figure><p>The third individual project at the Ironhack UX/UI Bootcamp focused on redesigning specific elements of a mobile app based on Nielsen’s usability principles.<br>The task involved identifying usability issues aligned with these principles and redesigning relevant parts of the app to address them.<br>For anyone unfamiliar with Nielsen’s 10 usability heuristics — or if you just need a quick refresher — I recommend this <a href="https://www.youtube.com/watch?v=cTtc90jCULU&amp;list=PLJOFJ3Ok_idtb2YeifXlG1-TYoMBLoG6I">series of YouTube short videos</a>, which explains each principle with practical examples.</p><p><strong>Heuristic Analysis and identification of user experiences issues</strong></p><p>The first task in this project was to compare the user experience of a real mobile app against Nielsen’s principles — an approach known as heuristic analysis. For this, I chose Audible, a well-known audiobook app, as the subject of my evaluation.<br>I selected Audible because I’m a frequent user and had already noticed several aspects of the experience that felt lacking, even without being familiar with Nielsen’s principles. These initial impressions were later validated through the heuristic analysis.<br>I navigated the sections of the app I typically use during a standard “read-a-book” workflow, identifying principle violations along the way. In total, the analysis of this task flow revealed eight usability issues.<br>For the sake of brevity, I will highlight only those issues that were later addressed in the redesign.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zWZmvWN3mprRP60milgbEQ.jpeg" /><figcaption>Usability issues found in Audible that were then chosen to be part of the redesign</figcaption></figure><p><strong>Competitors analysis</strong></p><p>To complement the heuristic analysis, I evaluated how competitors compared to Audible in terms of user experience and to gather additional inspiration for the app redesign. I selected two other audiobook apps — Everand and Libby — and performed the same task flow on each, assessing the presence of usability issues and the overall experience through the lens of Nielsen’s principles.<br>Both apps generally offered a superior user experience, particularly with respect to Principle 9: “<em>Help users recognise, diagnose, and recover from errors.</em>” Libby, in particular, delivered notably stronger results in this area.<br>A standout feature in both competitors is the ability to track recent activity on the listening timeline. This enables users to return to their previous position after an accidental tap, helping them avoid unwanted playback and recover from mistakes quickly and intuitively. As Audible lacks this functionality, again in line with Nielsen’s ninth principle, I identified it as a significant user experience issue.</p><p><strong>Prioritisation</strong></p><p>The next step in the analysis involved summarising the issues in a table to assess their severity and the ease with which they could be resolved. This helped prioritise which issues to address during the redesign process, by balancing two key factors: the perceived severity (the higher the severity, the higher the priority) and the perceived ease of resolution (the more difficult an issue is to fix, the lower its priority, and vice versa).</p><p>It’s worth mentioning issue #3: “Chapters presented as long scrollable lists — too lengthy for books with many chapters.” Although initially considered a high priority, further reflection on real-world use cases led to its removal from the redesign. Books with over 90 chapters are relatively uncommon, and addressing this issue may not have significantly improved the typical user experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e0XdN3ROIXXTC_5LJj8w6Q.jpeg" /></figure><p><strong>Redesign</strong></p><p>An important objective of the redesign task was to gain experience with advanced Figma features, such as the use of styles, components, and Auto Layout.</p><p>To help maintain a consistent visual language throughout my redesign, I created a style tile. This summarised the overall look and feel of the app, listing all colours and typography used, and showcasing some of the key components featured in the interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VCGR2oVNqgc16t2akbdz3Q.jpeg" /></figure><p>Below, I will walk through each of the app screens I redesigned, explaining the changes made and the reasoning behind them:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9sSMWaPg69Ur_CW4QdM6Mg.jpeg" /></figure><p>To enhance the user experience, I changed the text on the ‘+ Clip’ button. The original label, with only a plus sign, was unclear — it didn’t clearly convey the action of adding a bookmark, lacked visibility, and could easily be mistaken for a button to access the bookmarks list.<br>I decided it was more appropriate to use a descriptive label that reflects the button’s actual function, so I updated the text to “Add Bookmark.”<br>Additionally, when a bookmark is created, a bookmark icon is placed on the playback timeline. Tapping this marker allows the user to jump directly to the saved point and resume playback from there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CZPFaqrRB2tQVoo9CQp9DA.jpeg" /></figure><p>On the screen displaying bookmarks, there is a lengthy list that includes details about the location of each bookmark. However, it does not provide users with an indication of where these bookmarks are positioned along the playback timeline. A visual representation would be more informative and would align with the approach used on other screens of the app to show the current state of book playback.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QMAFY2zA1gkkG9fnjHXOGw.jpeg" /></figure><p>Along with the enhancements to the bookmarks placement and representation, I added a button to the add bookmark toast notification. This feature enables users to undo a saved bookmark, removing it immediately without needing to access the bookmark management section of the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_xmx8NOG7CyIaUo09Imy9g.jpeg" /></figure><p>In the redesing of the library summary screen I included a coloured background to highlight, between the user’s book library, which one is being currently played. Although this is marked in the card component below I thought it was not really that evident.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DCuZT3937FkEWpGXjwuHOw.jpeg" /></figure><p>For the redesign of the accidental skip prevention, whenever there is a change in the timeline playback component, a pop-up appears in the middle of the screen, informing the user of the latest recorded position before the change. The pop-up lasts for just a few seconds, and if clicked, it allows the user to go back or forward to the latest recorded point. This same point is also marked on the playback timeline with a blue dot, enabling the user to return to the last recorded position when the pop-up disappears. Competitors’ solutions vary, typically keeping only one timeline movement in memory. I borrowed the concept from the audiobooks app Everand, using the same idea but recording up to the last three recorded timeline positions. In my redesign concept, I reduced the number to just one, as three positions were deemed too many, potentially causing cluttering and accessibility issues on the timeline playback component, which already includes bookmarks.</p><p><strong>Conclusions and Takeaways</strong></p><p>The majority of this project involved a technical task where I gradually applied the concepts of advanced Figma editing. I focused on understanding auto layout, recognising its potential, and its similarity to the flex CSS model, which will be beneficial during the app development phase.</p><p>The feature prioritisation stage helped me understand that what initially seemed like an easy redesign task was not the case, particularly with the list of chapters. I eventually dropped the redesign of that screen due to time constraints. If I were to continue developing the redesign, it would certainly be a focus area, with the production of low/mid-fidelity wireframes to ensure effective usability testing in the redesign.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=07a5c1190dff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Case Study: Saphirêve, design and branding of a natural cosmetics e-commerce]]></title>
            <link>https://compatt.medium.com/case-study-saphir%C3%AAve-design-and-branding-of-a-natural-cosmetics-e-commerce-82286dd39f51?source=rss-95bee74e704d------2</link>
            <guid isPermaLink="false">https://medium.com/p/82286dd39f51</guid>
            <category><![CDATA[ecommerce-website-design]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[case-study]]></category>
            <category><![CDATA[ironhack]]></category>
            <category><![CDATA[ux-research]]></category>
            <dc:creator><![CDATA[Alessandro Cristofori]]></dc:creator>
            <pubDate>Wed, 26 Mar 2025 18:02:16 GMT</pubDate>
            <atom:updated>2025-03-26T18:02:16.755Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bq3Ppo_ltnaWJVxHTgDayQ.jpeg" /><figcaption>Image Credits: Sarah Dorweiler — Unsplash</figcaption></figure><p>This case study details the UX/UI design process for Saphirêve, a cosmetic e-commerce brand transitioning from Instagram-only sales to a dedicated online store, aiming to establish a distinct digital brand identity.</p><p>The UI development went through multiple stages, incorporating both User Experience (UX) research and User Interface (UI) design practices. The result is a redesigned product purchase flow, refreshed branding, and a demonstration of a mobile-responsive layout for a key website page.</p><p>Let’s dive into the different stages of the process.</p><p><strong>Stakeholder interview</strong></p><p>We began by interviewing Saphirêve’s business owner, gaining valuable insights into the brand’s vision, the inspiration behind its products, and the strategies to maximise sales while staying true to the essence of Saphirêve. The interview also provided key elements that required special attention in the next stage of UI design.</p><p>Below are some of the questions we asked:</p><p><em>“If your business was a person, how would you describe them?”</em></p><p><em>“What do you consider to be your customers’ current needs and pain points?”</em></p><p><em>“Which are in your opinion the ‘plus points’ and the ‘minus points’ of the idea around your product in comparison to other competitors?”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VE_ke_wqxNVQXfvdABjzFg.jpeg" /><figcaption>Summary of stakeholder’s interview responses</figcaption></figure><p><strong>Competitors Analysis</strong></p><p>The insights gathered from our stakeholder interview guided the next stage: competitor analysis. This analysis aimed not only to find design inspiration for the UI but also to understand how established e-commerce competitors addressed the challenges identified in our interview.</p><p>Rather than limiting our research to the competitors suggested by our stakeholder, we broadened our scope, ultimately narrowing our focus to three competitors that offered the most effective design solutions for the issues we identified.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GgVM52aTZFp6ruGmoCBxgQ.jpeg" /><figcaption>Competitors analysis against stakeholders criteria</figcaption></figure><p><strong>Users’ survey</strong></p><p>Although our stakeholder interview and competitor analysis provided valuable insights, we needed to conduct further research to validate or challenge some of our assumptions. For instance, do detailed ingredient descriptions play a key role in determining a product’s perceived naturalness? Do the stated benefits of a cosmetic product significantly influence purchase decisions?</p><p>Additionally, we wanted to gather insights from potential users about the visual and tactile aspects of an authentically natural cosmetic product. What does it look like? How can packaging and color choices convey a sense of naturalness? We believed that the findings from this research would be essential in shaping the UI design of our solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zGlMtcFM-SpdCPIKmSzHCg.jpeg" /><figcaption>Users’ survey results</figcaption></figure><p><strong>User persona and problem statement</strong></p><p>The definition of our user persona was heavily inspired by insights from the user survey. One key takeaway was that when users approach natural skincare, it’s not just about a product being marketed as 100% natural. Consumers who prioritise natural products tend to examine ingredient lists carefully and have a strong understanding of what qualifies as truly natural.</p><p>When shopping online, these users enjoy discovering new products, even from well-known brands. However, they are unlikely to make a purchase unless they can see a complete ingredient list, clear indications of expected results, and high-quality images of the product.</p><p>With these insights in hand, we drafted our user persona.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iacwEwuyv92geCKQR51KJA.jpeg" /></figure><p>And our problem statement</p><blockquote>“ <strong>Young adults that choose what to put on their skin carefully need a way to find a real natural cosmetic brand that displays clearly their ingredients, because most of the so called “natural” cosmetics aren’t really using 100% natural ingredients and hide them.</strong>”</blockquote><p><strong>Feature Prioritisation</strong></p><p>Feature prioritisation was guided by insights from the previous steps, particularly the gaps and areas for improvement identified in the competitor analysis. We used the MoSCoW method to structure our approach, focusing on two main objectives: maximising the website’s conversion rate and addressing the key pain points of our user persona.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TTYN0MBeoNHcPfEQbs6qPg.jpeg" /><figcaption>MoSCoW diagram</figcaption></figure><p>What went out from the MoSCoW process was the importance of establishing in later ideation iterations how to design products filtering, the group work agreed the functionality needed to be thought through carefully to balance usefulness and exceptional user experience allowing the user to finely target their product needs but at the same time not too include too many detailed filtering option, this could confuse the user and mislead their research.</p><p><strong>Ideation — Task Flow to Mid-Fi Sketches</strong></p><p>We focused on a single product purchase flow, covering the entire journey — from the homepage to category selection (e.g., body, face, etc.), product selection, and finally, adding the product to the cart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UlmkeXILIKG4ghNbLIQIgA.jpeg" /><figcaption>Solution task flow</figcaption></figure><p>Based on the task flow outlined above, we designed our low-fidelity wireframes. Each team member created their own drafts, primarily focusing on the Home Page, Product Categories Page (with filtering options), and Product Details Page (featuring accurate ingredient descriptions).</p><p>During this phase, we explored several innovative approaches to designing the Must-Have features identified in the prioritization stage. One team member, in particular, stepped outside the conventional e-commerce framework, proposing unique design solutions that not only captured visitors’ attention but also addressed key research findings — such as effectively conveying the naturalness of the products, displaying high-quality images, and providing detailed ingredient descriptions.</p><p>To enhance ingredient transparency, we introduced floating elements around a large product image, with popups appearing on click to reveal in-depth ingredient details. Another standout idea, which was quickly embraced by the team, was a horizontally scrolling homepage section. This section features a grid of card elements that blend product category images with evocative natural visuals, reinforcing the organic essence of the brand and its ingredients.</p><p>To align with our user persona’s preference for social media communication and information gathering, we integrated an Instagram feed into the homepage. This feed showcases Saphirêve’s Instagram content and aggregates posts using the #saphivere hashtag, promoting community engagement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cgubo2CJ2d6tJQsfdegR_A.jpeg" /><figcaption>Mid-Fi Home page (left) Products page (centre) Product Detail page (right)</figcaption></figure><p><strong>UI Design — From the Mood board to the prototype</strong></p><p>The key requirements that guided our mood board research were derived from our stakeholder interview and later validated by the user survey. To effectively convey the natural essence of the products, we focused on nature-inspired colours — favouring a limited palette of soft, muted tones over bold or overly vibrant hues</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*47NKvEKPemQ7BJ-W0bxKew.jpeg" /></figure><p>While defining the website’s overall look and feel, we conducted usability testing on the mid-fidelity prototype. The test results provided valuable insights into whether our design was heading in the right direction, particularly in terms of product display.</p><p>Users generally responded positively to the homepage layout, the use of large images, and the product details page. However, some areas needed improvement. Interviewees found the homepage tagline too long and confusing, they felt that the multiple filter buttons on the product page were overwhelming, noted inconsistencies in the layout across different pages and suggested to include a direct interaction button on the social media feed section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j5zWm2Oel3tgys_bdjPRlA.jpeg" /><figcaption>Some of the issues highlighted with usability testing</figcaption></figure><p>Following the usability test, we addressed the identified issues through a further iteration, implementing the following changes to enhance the user experience:</p><ul><li>We reduced the size of the tagline text to create a clearer visual hierarchy, ensuring it was subordinate to the section titles. Simultaneously, we increased the spacing between all section titles on the home page for improved readability.</li><li>We integrated in the social media section a button to directly follow Saphirêve’s Instagram account.</li><li>We redesigned the filtering functionality, streamlining the process by replacing multiple buttons with a single button. This button now triggers a pop-up side pane, centralising all filtering options and allowing users to apply filters as needed.</li></ul><p>We addressed the feedback regarding general website inconsistencies by implementing a more cohesive design during the creation of the high-fidelity wireframes. Given the positive reception of the product details page design, we extended this aesthetic to the home page. This involved utilising card elements and an asymmetric image layout, which allowed for the incorporation of larger, more impactful images.</p><p>We initially attempted to apply the same redesign process to the categorised products page, however, we found the resulting layout unsatisfactory, particularly concerning the space allocated to product images and their brief descriptions. We reasoned that users on this page might be more inclined to purchase items if they didn’t need to scroll extensively. Moreover, our competitors predominantly employed a traditional layout for their categorised product pages. Consequently, we retained the existing design, opting for a familiar approach.<br>A variation on this page’s design could be a valuable subject for further usability testing in future design iterations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cedAEo_23-FLf9OINJya0A.jpeg" /><figcaption>Final solution Hi-Fi wireframe</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b9YKDPNVRErrnaQwJa27Lg.jpeg" /><figcaption>Responsive design example</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.figma.com%2Fproto%2F1O0Pt3Dn9aNan13jKjku7u%2FP2---Barcelona%3Fpage-id%3D2%253A4134%26node-id%3D11424-2762%26viewport%3D1059%252C350%252C0.14%26t%3DjMQiNloMzV30tRkR-1%26scaling%3Dmin-zoom%26content-scaling%3Dfixed%26starting-point-node-id%3D11424%253A2762&amp;type=text%2Fhtml&amp;schema=figma&amp;display_name=Figma&amp;src=https%3A%2F%2Fwww.figma.com%2Fembed%3Fembed_host%3Dcdn.embedly.com%26embed_origin%3Dcdn.embedly.com%26url%3Dhttps%3A%2F%2Fwww.figma.com%2Fproto%2F1O0Pt3Dn9aNan13jKjku7u%2FP2---Barcelona%3Fpage-id%3D2%253A4134%26node-id%3D11424-2762%26viewport%3D1059%252C350%252C0.14%26t%3DjMQiNloMzV30tRkR-1%26scaling%3Dmin-zoom%26content-scaling%3Dfixed%26starting-point-node-id%3D11424%253A2762" width="800" height="450" frameborder="0" scrolling="no"><a href="https://medium.com/media/168dba5781560c017eae016f54c10db3/href">https://medium.com/media/168dba5781560c017eae016f54c10db3/href</a></iframe><p><strong>Takeaways and lessons learnt</strong></p><ul><li>I find our final design aesthetically appealing and more engaging than most of our live e-commerce competitors, particularly in terms of look and feel.</li><li>This project was a valuable learning experience, helping me identify my strengths and weaknesses in the design process. While I think my research skills positively contributed to the project, my teammates contributed excellent and original UI ideas that I hadn’t considered.</li><li>The project’s tight deadlines required us to skip certain research phases, such as user journey mapping. However, the pre-existing research on surveys and competitors provided a solid foundation for our design process. Given the successful outcome, I believe the omitted research wouldn’t have significantly enhanced the final design. I’m curious to see if this holds true in future e-commerce design projects.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82286dd39f51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Designing a solution to connect young people to cultural heritage — Case study]]></title>
            <link>https://compatt.medium.com/designing-a-solution-to-connect-young-people-and-cultural-heritage-case-study-57e294eb6ca6?source=rss-95bee74e704d------2</link>
            <guid isPermaLink="false">https://medium.com/p/57e294eb6ca6</guid>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[ironhack]]></category>
            <category><![CDATA[case-study]]></category>
            <dc:creator><![CDATA[Alessandro Cristofori]]></dc:creator>
            <pubDate>Mon, 10 Feb 2025 18:53:19 GMT</pubDate>
            <atom:updated>2025-02-11T16:40:45.773Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L0N0S7sWfOrAcu_vLiyjkg.jpeg" /></figure><h3>Designing a solution to connect young people to cultural heritage — Case study</h3><p>For our first group project in the UX/UI Bootcamp at Ironhack, we were tasked with addressing a “wicked problem” by designing a two-part solution — both digital and non-digital. The design challenge can be summarised as follows:</p><blockquote>How Might We help museums and other public institutions bring people closer and fulfil their mission to preserve and activate cultural heritage in the 21st century?</blockquote><p>The solution was designed following user-centered design principles, progressing through iterative stages — from research to concept testing. This article not only describes how the process unfolded but also highlights the main challenges, outcomes, and key lessons learned.</p><p><strong>Secondary Research</strong></p><p>The secondary research phase involved analyzing academic papers and official statistics to gather data on cultural engagement and accessibility. We focused on key terms such as “culture,” “cultural heritage,” “access to cultural heritage sites,” “museum visit frequency,” “museum attractiveness,” and “cultural education.”<br>We then summarised our findings and organised them visually on a digital post-it board. To refine our focus, we filtered out duplicate topics and grouped the post-its based on trends that best represented our wicked problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qafz2iuRE7gekhfGvjbCGQ.jpeg" /><figcaption>Clustered post-it from our secondary research</figcaption></figure><p>Two key findings of our secondary research showed that:</p><ol><li>Young people are not as uninterested in culture or visiting cultural heritage sites as we initially thought. While trends show that people aged 16 to 35 visit museums less frequently than older age groups¹, the difference is not that significant.</li><li>Case studies show that museum initiatives designed to engage young audiences have successfully achieved their goal².</li></ol><p><strong>CSD Matrix, users’ interviews and User Persona</strong></p><p>Our findings helped us refine the scope of our product design. We decided to focus exclusively on one age group — school leavers aged 20 to 30 — while removing the role of educational institutions. We also chose museums as the only cultural heritage sites to focus on and based the product’s non-digital component on best practices from our case studies.<br>With this in mind, we filtered our secondary research findings and discussed key certainties, assumptions, and doubts within the group. These discussions shaped our user interview questions, designed to either confirm or challenge our ideas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hvti2Zk5iFjElO9EEi4j1A.jpeg" /><figcaption>Distilled version of our CSD Matrix</figcaption></figure><p>The CSD matrix informed us about the three main topics’ areas that guided the design of the interview questions.</p><ul><li>PREFERENCE OF USE OF TECH/SOCIAL MEDIA FOR INTERACTIONS WITH THE ENVIRONMENT AND PEOPLE</li><li>DISCONNECTION FROM FAMILY/TRADITION — PREFERENCE OF GLOBAL CULTURE</li><li>ROLE OF FAMILY IN PASSING DOWN CULTURAL HERITAGE</li></ul><p>We interviewed five people from our selected age group, and the first interview helped us further refine the scope of our design.<br>We realised that while questions about the role of families were relevant to the problem, they could add unnecessary complexity to later stages of the process. As a result, we decided to remove that topic from the interview, narrowing it down to six core questions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-P8IjUlqjEYXd2H_E_HIUg.jpeg" /></figure><p>The interviews confirmed most of our secondary research findings on social media and technology-related topics. However, one key difference emerged: a preference for in-person guided tours over fully digital museum experiences.<br>The most valuable insights came from the interview introduction. Open-ended questions revealed that high ticket costs can discourage museum visits, while unclear or uncontextualised descriptions of exhibits negatively impact the overall experience.<br>Based on the interview results and the subsequent affinity diagram, we developed our User Persona.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QpxlGBf2RJYmqEblI8u0Hg.jpeg" /></figure><p><strong>Problem Statement</strong></p><p>The subsequent steps implied the statement of a defined problem on the basis of our User Persona and previous research. We dropped the cost aspect, focusing on one specific dimension of the problem, coming up with the below statement.</p><blockquote>How might we make museum visits more engaging for young adults to help them connect with art on a deeper level and spark a lasting cultural conversation ?</blockquote><p><strong>Ideation</strong></p><p>The ideation of our solution used the Crazy 8 method. We initially went for a solution combining elements from two solutions emerged during the brainstorm:</p><blockquote>An algorithm based mood board feed (similar to Pinterest) where users can select images. Images are linked to the reservation of in-person specific events related to that piece of art or aesthetic represented in the selected image.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AjY8AMwkr8-EdeOi5q6UGg.jpeg" /><figcaption>First round of ideation for our solution</figcaption></figure><p>The first round of ideation seemed promising, however the “feed” part was not totally convincing. We partially redefined the solution using again the Crazy 8 method, coming up with our definitive design:</p><blockquote>Museum events finder mobile app for guided personalised visits/experiences, adaptable to users’ interests and language</blockquote><p>We first designed the task flow, then each group member sketched their own lo-fi design. Afterward, we used dot voting to select the design to move forward with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rVgdVTjAWDH3l9wm6MZQEw.jpeg" /><figcaption>Task flow of our solution</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u3EN9zdTLSeVb6S2iQ1rlg.jpeg" /><figcaption>Lo-fi sketches</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*E68QhHsPr3nQGWqHVct72w.gif" /><figcaption>Lo-fi prototype</figcaption></figure><p>In designing the lo-fi prototype, we focused on the core problem statement, emphasising engagement in the museum experience. Guided museum visits are first selected by theme, with the initial screen displaying nearby events. This allows users to match with a guide based on their interests, helping to spark curiosity and engagement.<br>The final digital solution also includes an in-app purchasing section to ensure guides receive compensation.</p><p><strong>Concept Testing</strong></p><p>The concept testing phase mainly focused on our problem statement, expanding it with our User Persona’s goals and challenges. First, we tested the app’s recognisability by asking if interviewees could distinguish our solution from a basic museum ticketing app. Next, we evaluated whether our solution effectively creates engaging cultural experiences by asking if they found it interesting, if they would hire a guide for a museum visit, and if the non-digital aspect helped improve engagement. We also checked whether the app could reduce language barriers in museums and, finally, whether users would be willing to pay a guide fee in addition to the museum ticket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9RUkuox8ejuzgVxVBxe_Qw.jpeg" /><figcaption>Concept test questions</figcaption></figure><p>The interviews confirmed that our design effectively increases engagement with museums and culture, particularly in guided experiences. Interviewees also appreciated how the digital solution helps overcome language barriers.<br>However, a key concern was the pricing communication — many found it unclear whether the fee covered just the museum ticket or the entire experience. Cost remained a crucial factor, with some interviewees stating they would skip a museum visit or choose a traditional experience if the price was too high.<br>If our solution moves toward becoming a marketable product, pricing and cost transparency should be a primary focus.</p><p><strong>Learning points</strong></p><p>I believe the entire solution design process was carried out accurately and effectively. The team did a great job staying focused on the initial problem statement, carefully identifying which elements to keep and which to remove at each stage. This is reflected in the final solution.</p><p>One possible improvement could have been an additional round of Crazy 8 brainstorming. I think we could have refined the part of the solution that captures users’ attention digitally. While basing engagement on museum events is not an inaccurate approach, we might have developed a stronger, more solid idea.</p><p>Our interview process provided valuable insights, especially from the open-ended introduction questions. Allowing interviewees to freely share their thoughts gave us useful information to refine our research and improve the solution.</p><p><strong>Bibliography references</strong></p><p>¹ Rachel Tait, Angela Kail, Jennifer Shea, Rosie McLeod, Nicola Pritchard, Fatima Asif: How can we engage more young people in arts and culture? A guide to what works for funders and arts organisations [London]: New Philanthropy Capital. (Tait 2019)</p><p>² Institute for Community Research &amp; Development and Arts Connect with Historic England: Young People’s Engagement with Heritage — Tacking Inequality &amp; Other Opportunities for Public Policy [Wolverhampton]: University of Wolverhampton. (uncited authors 2023)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57e294eb6ca6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wireframing challenge: Skyscanner]]></title>
            <link>https://compatt.medium.com/wireframing-challenge-skyscanner-a81d51ce591e?source=rss-95bee74e704d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a81d51ce591e</guid>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[ux-ui-bootcamp]]></category>
            <category><![CDATA[ironhack-prework]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[wireframing]]></category>
            <dc:creator><![CDATA[Alessandro Cristofori]]></dc:creator>
            <pubDate>Sat, 28 Dec 2024 05:39:56 GMT</pubDate>
            <atom:updated>2024-12-28T05:39:56.805Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xX0vLw2CYXF4EZV5HcjMSw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@socialcut?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">S O C I A L . C U T</a> on <a href="https://unsplash.com/photos/aerial-view-of-airplane-wing-96A9UTFAMUM?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>For the wireframing exercise of the Ironhack UX/UI bootcamp pre-work I chose to analyse the tasks involving the booking of a flight ticket on Skyscanner. This mobile app scans through the internet in search of different travel solutions based on different user defined factors like cost, travel duration, etc. The outcome of this challenge will be a series of lo-fi wireframes of the user flow based on the screenshots of the app. This article describes the workflow and how the wireframed screens relate to each task.</p><p>I chose Skyscanner because I am a heavy user of the app, I often travel by plane and it is my “go to” when searching for travel options. The feature I like most about the app are the extensive filtering and sorting options, allowing the quick comparison of ticket prices against flights duration and take off/landing times. <br>In addition, I always use Skyscanner when I need to rent a car, its aggregating functionality is useful when searching for a rental solution in heavily touristic places where the presence of a large number of providers makes it very difficult to compare prices across different websites.</p><h4>Task analysis</h4><p>Booking a flight ticket in the Skyscanner mobile app involves 6 steps. The user’s goal, the purchase of the ticket, is not accomplished in the app but it is delegated to the provider website offering the chosen ticket solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*9FCnsxbc-2ID2gdPqGi_RQ.jpeg" /><figcaption>Wireframes overview of the flight ticket booking workflow</figcaption></figure><p><strong>Screen 1- Task: choose the type of search</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*jPajHxTmVgKh7s0hOmJzyQ.jpeg" /></figure><p>Skyscanner isn’t just a search &amp; compare tool for flight tickets. With the app is possible to plan a complete holiday including airport transfers, hotels, holiday experiences, travel tips, etc. The first screen redirects the user to the app sections for each one of these options. On the first screen we can see the cards containing travel tips and the footer with the user defined features such as favourite searches and price drops notifications.</p><p>The user taps on the ‘Voli’ (flights) button.</p><p><strong>Screen 2 — Task: select departure airport</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*GaVTJTnPH32dlmAbPxm3SQ.jpeg" /></figure><p>Selecting the ‘Flights’ button on the first screen we are taken to the departure airport selection page. On the top part of the page we can see a text input, the user can input either the name of a city, the name of an airport or the IATA code of the required airport.<br>The page shows search suggestions based both on the latest searches and on the user&#39;s location, finding the closest airport.<br>In the design of my wireframe I decided to highlight the search suggestions considering these as core app UX features. <br>Differently, I simplified the icons and textual elements for the search results because I think that the style of the text as well as the details about the search results will be defined at a later stage respect the lo-fi prototype.</p><p>The user selects ‘Milan’ as their departure airport.</p><p><strong>Screen 3— Task: select arrival airport</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*uQ2QBB1hj7lfgdF_pCwbFg.jpeg" /></figure><p>Selecting the departure airport will automatically take the user to the following screen where another task is presented, the selection of the arrival airport.<br>Functions and related UI components are the same as the previous screen, also for this wireframe I explicitly specified the search suggestions sections based on recent, most travelled destinations and the ‘Everywhere’ function that allows to browse for flights without specifying a travel destination.</p><p>The user selects ‘Bali’ as their arrival airport.</p><p><strong>Screen 4 — Task: select travel dates</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*igQH8ftsamaXqzTgw2mSjw.jpeg" /></figure><p>The wireframe I designed simplifies the calendar component and specifies what are its distinctive features, the ability to know the price of each flight leg and the cheapest price preview upon selection of the travel dates. I decided to specify the ‘Continue’ button since tapping on the button is mandatory to continue the work flow of the app.</p><p>The user taps on the ‘Continue’ button.</p><p><strong>Screen 5 - Task: select travel solution</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*He7IYQS2gh7TT5mnQ-qFrQ.jpeg" /></figure><p>In this screen we are presented with the flights search results. The travel solutions are split in cards by travel times, duration, and cheapest cost preview. In this screen we have buttons to sort the results on different options and to change the travel specifications. On the cards there are buttons to share and to favourite a particular travel solution.<br>In the wireframe I designed most of the features of the original app are retained, in the end the result can’t be defined as lo-fi. At the same time, the design of this wireframe was a fast process since I reused most the components of the previous screens.</p><p>The user selects the first travel option in the list.</p><p><strong>Screen 6 — Task: select travel solution price</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*D3a9o_cwaD0noeGtXfc3lQ.jpeg" /></figure><p>On the top of this screen we can see a summary of the selected travel option, further down a list of the different rates offered by the providers. The selection of one rate option will redirect the user to the provider booking website, opening a web page in the app.<br>The wireframe for this screen can’t be defined as a strict lo-fi but since most of the components share the same design with the previous it was quite straightforward to make.</p><p>The users select the first travel option in the list and they are taken to the provider external website, once the purchase is completed, accomplishing the goal, the user will be redirected back to Skyscanner.</p><p><strong>What I have learnt from the challenge</strong></p><p>The wireframe prototypes I designed are maybe too detailed to be defined lo-fi and probably the exercise took longer than required for the objective.<br>On the other hand, I noticed that while progressing with the design of the wireframes page by page I was getting the job done progressively quicker, this is because I kept an inventory of the page elements and resused them.<br>The task could have been quicker if I had avoided to style some components, for example rectangles corners and icons. At the same time, the rationale behind this choice was to style those components that have a specific function that I predict will hardly change in subsequent prototype iterations. I look forward to finding out if this reasoning will be validated by the bootcamp modules regarding this topic.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a81d51ce591e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Design Thinking Challenge: City Mapper]]></title>
            <link>https://compatt.medium.com/design-thinking-challenge-city-mapper-c83495831729?source=rss-95bee74e704d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c83495831729</guid>
            <category><![CDATA[design-thinking]]></category>
            <category><![CDATA[ux-research]]></category>
            <category><![CDATA[ux-ui-bootcamp]]></category>
            <category><![CDATA[ironhack-prework]]></category>
            <dc:creator><![CDATA[Alessandro Cristofori]]></dc:creator>
            <pubDate>Sat, 21 Dec 2024 19:00:03 GMT</pubDate>
            <atom:updated>2024-12-21T19:00:03.652Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8JbNz84MTtg_maH-KqAcZQ.jpeg" /></figure><p>The message from the splash screen is very clear, City Mapper is “The ultimate transport app”. It is not a recent fact that transport planning apps have become an integral part of our everyday life, they have made our displacement more effective and informed. At the same time transport planning apps market has increased and currently offering a product that stands out of the crowd has become extremely challenging.</p><p>Why should City Mapper be the ultimate? What really makes it the “look-no-further” choice in terms of transport app on your personal device? Is there any margin of improvement for the current app user experience? Are there any flaws?</p><p>The exercise described in this article does not intend by any means to answer the above questions but explores potential solutions or improvements to the app user experience for one particular user’s problem, in-app tickets purchase, in a predominantly tourists-oriented area such as the South of Gran Canaria.<br>In this part of the island there is just one public transport operator (Guaguas Global) offering a mobile app that currently does not allow in-app tickets purchase.</p><h4>Interviews to users</h4><p>The interviews conducted to gather the main pain-points were made to passengers while waiting for the bus at two stops “San Fernando” and <br>“Faro de Maspalomas”, the first one frequented by a mix of residents and tourists while the second one primarily by tourists. The interview involved six individuals (three residents and three tourists) aiming to provide a comprehensive analysis of travel itineraries and tariffs variation between residents and non-residents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*dSjI2O24c4rmmjCiCStlQA.png" /><figcaption>Location of the users’ interviews bus stops</figcaption></figure><p>The interview questions were:</p><ul><li><em>What is your travel destination today? Is it a return or one way trip? If you are returning in this area are you getting off at the same stop on your way back?</em></li><li><em>What process did you go through to buy the bus ticket?</em></li><li><em>Are you a resident/frequent traveller card owner? How did you find the ticket purchasing or card top up process?</em></li><li><em>How do you think the current tickets purchasing process could be improved? Any ideas or suggestions.</em></li></ul><p>The summaries of the answers to the questions are:</p><ol><li>All tourists users travelled either to Maspalomas beach or other touristic destinations on the island, most tourists reference points for bus stops are either shopping centres or their holiday hotel, with trips returning to the same bus stop. Locals either travel back to bus stops located outside the touristic areas or towns located on the south of the island in the immediate interior, these were mostly home-work or home-beach commuters.</li><li>All tourists users buy the ticket directly on board, they say the destination and pay the fare directly to the driver either in cash or with card. Having the exact fare amount in cash is not mandatory but it may happen that change is not available. Some users reported that payments made through card are sometimes rejected and when paying in cash they didn’t receive any change because it wasn’t available, causing frustration. Some tourists reported communications issues with the driver at the moment of saying the travel destination or understanding the fare price, either because they couldn’t speak any English or Spanish or felt uncomfortable trying it in a foreign language. All residents interviewed used the residents card that allows users to travel for free. Even if using this card when getting on the bus the destination must be specified to the driver and the card validated, just like any other contactless card.</li><li>As said, all residents interviewed used a residents card to travel. Since February 2023 public bus transport is free on the island for residents making more than 15 bus journeys monthly, for this reason cards have to be monthly re-validated. Monthly validation can’t be done online or on the bus but only at certain bus stations located across the island. The process of residents transport cards acquiring and validation was generally described as cumbersome and old-fashioned.</li><li>Both tourists and residents agreed on the fact that the entire fare purchasing process should be handled by a mobile app, the reasons given by the different users group differed. Tourists would find it easier and less stressful planning their journey ahead of time, with a clear understanding of the fare price, and avoiding hasty searches for alternative payment methods in case of no change available or rejection of card payments. Residents say that they would benefit from an in-app residents card use monitoring and monthly validation process. That would allow them to track the number of journeys left to keep the free fares perk and avoid the travel to the bus station offices for the renewal.</li></ol><h4>Problems definition</h4><p>If we have got to define in a few statements which are the main problems faced by users we could say that:</p><p><em>“Tourists find it hard to spatially locate the origin/destination bus stop and to get an idea of the expected fare amount since their spatial reference points are either touristic attractions, names of known beaches, hotels or commercial activities.”</em></p><p><em>“Tourists find it hard to communicate in a foreign language, to speak to the driver or to understand the fare prices.”</em></p><p><em>“Tourists have sometimes issues with rejected card payments, issues with cash payments are less frequent but not receiving change or giving up the bus ride because of lack of payment options causes frustration.”</em></p><p><em>“Residents using the free-transport card find it hard to keep track of the card usage and to monthly renew the card for extending the benefit of fare exemption.”</em></p><h4>Ideation</h4><p>The very first screen should ask the user what is the main language they want to set up the app to, not only English and Spanish must be included but also German, French and Scandinavian languages will have to be supported.</p><p>Having an initial screen that differentiates between a tourist or a resident user for that session. The choice will trigger two different app user journeys.</p><p>On the resident app user journey, a map locating the nearest bus stops that the user can select as starting point might be needed. A search bar should also be included to allow the user to search for a particular reference point such as a hotel, a beach, a tourist attraction, etc. Pinpointing on the map will automatically calculate the journey from/to the closest bus stop.</p><p>Fare prices must be stated clearly before the purchase and there must be the possibility to complete the electronic payment directly from the app. The completion of the purchase will result in an paperless ticket to scan on the drivers device, so that the destination doesn’t have to be verbally specified to the driver.</p><p>The residents card application part will have to state the number of journeys made to date in the current month, displaying a progress bar before the amount of 15 is reached.</p><p>For residents card we may think of a similar function to the one we think for tourists for setting the travel arrival bus stop, rather being spoken to the driver.</p><h4>Prototype</h4><p>For a matter of brevity I prototyped the tourist user journey simplifying some steps but including the fundamental features designed to respond to the identified solutions such as landmarks/hotels search, multiple electronic payment methods and clear specification of the travel destination on the ticket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sG3ML7ZhsGvaLQ91pansSw.jpeg" /><figcaption>Prototype of payment process for a tourist user</figcaption></figure><h4>Key learning points</h4><p>Clear communication is crucial for understanding the tourist needs and for making an individual feel at ease when travelling.</p><p>Even in a self-enclosed and relatively small transport network such as the one on the island of Gran Canaria there is still a lot of room for improvement for the integration of a payment system in the current app.</p><p>Prototyping the app user journey for residents, which I though was initially easier, might instead be more complex than expected. The navigation functionalities must be retained in case the user in question might not be able to use the travel card, similarly an additional app user journey should be prototyped for the management of the travel card.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c83495831729" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build a Cloud-Hosted Vector Tiles Map Web App in React — Part III]]></title>
            <link>https://medium.com/swlh/how-to-build-a-cloud-hosted-vector-tiles-map-web-app-in-react-part-iii-d9eab854b553?source=rss-95bee74e704d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9eab854b553</guid>
            <category><![CDATA[heroku]]></category>
            <category><![CDATA[web-app-development]]></category>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[elastic-beanstalk]]></category>
            <dc:creator><![CDATA[Alessandro Cristofori]]></dc:creator>
            <pubDate>Mon, 25 Jan 2021 23:02:00 GMT</pubDate>
            <atom:updated>2021-01-29T22:36:36.789Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CwO4XVfkaccsdO_KwtVz8Q.jpeg" /><figcaption>Excerpt of Italian telephone area codes map</figcaption></figure><h3>How to Build a Cloud-Hosted Vector Tiles Map Web App in React — Part III</h3><p>App deployment</p><p>In this section we’ll be look at deploying our application to a cloud web application hosting platform, so that it can be publicly accessible without having the overhead to setup a web server. There are a number of cloud solutions available that offer this service, the two examples I will provide here are Amazon AWS Elastic Beanstalk (EB) and Heroku. The former offers a free access tier for 12 months while the latter is entirely free.</p><p><strong>Deploy to AWS EB</strong></p><p>There a various ways to deploy a web application to AWS, in this example we will use AWS web interface and will upload the production source code, there are a lot of methods to accomplish this task, for example with the EB CLI or building a pipeline from our local git repository to the AWS environment. This approach is probably the less automated but will help us to understand how AWS deploys the components of our code. When you feel you understood how a NodeJS application is managed in EB then you can consider using one of the alternative suggested methodologies</p><p>The steps we need to take are:</p><ol><li>Build the production source code of our web app.</li><li>Create an EB Node environment and a web application with our own code.</li><li>Set the environment variables and deploy.</li></ol><p><strong>Build the production source code of our web app</strong></p><p>In our package.json file we already have the script that will build and package our application and we already have our webpack configuration file. The build process will transpile the jsx files, include the javascript code in index.html and put the built application in the build folder. From server.js Express will serve the content of this folder as static files when we will request content from the site root. All requests to the /tileserver route will be handled by the server side taking care of tiling the json source files just as we did in development. The difference in production is that we no longer two web servers for client and server code but only one web server (offered by AWS EB) that will run both at the same time. In the terminal do a npm run build and check that the build folder gets populated with the production files. The Node environment in EB needs a command to start the application once it will be uploaded. Since we upload the already bundled code all we need to do is to call a node process on the environment to run our code in server/index.js. In our project root folder we create a process file containing the instruction to execute in the environment when the bundle will be uploaded. The file will be called Procfile and the content will be just a simple line.</p><pre>web: node src/server/index.share.js</pre><p><strong>Create a Node.js environment and a web application with our own code</strong></p><p>The next step consists of packaging our application using zip the root folder to be uploaded to EB, in Windows be careful to zip just the folder content otherwise sending the whole folder to the zip utility will create a zip folder with the root folder, such level of nesting won’t be the same expected by node and our application won’t build on the server. Provided that you already have an Amazon AWS account (if not you can set one up one <a href="https://aws.amazon.com/free/?trk=ps_a131L0000085DtUQAU&amp;trkCampaign=acq_paid_search_brand&amp;sc_channel=ps&amp;sc_campaign=acquisition_UK&amp;sc_publisher=google&amp;sc_category=core&amp;sc_country=UK&amp;sc_geo=EMEA&amp;sc_outcome=Acquisition&amp;sc_detail=amazon%20aws&amp;sc_content=Amazon%20AWS_e&amp;sc_matchtype=e&amp;sc_segment=433803620876&amp;sc_medium=ACQ-P|PS-GO|Brand|Desktop|SU|AWS|Core|UK|EN|Text&amp;s_kwcid=AL!4422!3!433803620876!e!!g!!amazon%20aws&amp;ef_id=CjwKCAiAr6-ABhAfEiwADO4sfZEpBUmUOhZY3HX6nf60whtgAxOsw5-2UTy6fCNs5mpZtJdozrH3SxoCxXAQAvD_BwE:G:s&amp;s_kwcid=AL!4422!3!433803620876!e!!g!!amazon%20aws&amp;all-free-tier.sort-by=item.additionalFields.SortRank&amp;all-free-tier.sort-order=asc">here</a>), access the AWS management console, at the search bar at the top of the page type “Elastic Beanstalk” and click the Elastic Beanstalk icon from the menu to access the EB configuration page. Click on the button on the right to create a new environment and when asked which environment tier we want to create select “Web Server Environment”. In this page we have to give our environment a name, I chose “S3VectorTiles-env”, we select Node.js as an environment platform and we give our application a domain, if we want. When asked which code we want to run in our application we select “upload your code” and we select to upload our code, which is the zip file we’ve just created, the upload will last a few minutes and if everything goes ok then your screen will look as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sEiGzLqOA-XxKN33KAnPpg.png" /><figcaption>Upload of user application code to AWS Elastic Beanstalk</figcaption></figure><p><strong>Set the environment variables and deploy</strong></p><p>Before running the creation process we will define the environment variables, click on “Configure more options”. This will open the configuration properties window, on the “Software” menu click on the edit button and scroll down to Environment Properties, here you will define your variable as in the image below, here you will paste the AWS credentials and settings we defined in part I of the tutorial. When done click on apply, the environment will take a few moments to update the set properties.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Lhwl8MgxjCdpojDkiNjDw.png" /><figcaption>Definition of environment variables</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mAAwv0keV_-ozO6VJavKog.png" /><figcaption>Link to access our newly created application</figcaption></figure><p>Click on “Create environment” button at the bottom of the page to start the deployment process, the environment creation will complete after a while. When the process is finished we will see that EB created our environment and a sample application running on it. We can access the application clicking on the link highlighted in blue. If everything is ok you will be able to see the map displaying as the in image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EPdSFznHO_M8jCK70Ziz_w.jpeg" /></figure><p><strong>Deploy to Heroku</strong></p><p>As for Heroku, the free tier for app hosting is always free, no credit card details required. The web apps deployed in Heroku will run on Linux containers called dynos. The free tier Heroku plan will give us 1 web dyno with 512 MB shared memory across all apps we will deploy in that single dyno, for building a light-weight prototype like ours is more than ok. Also, free tier plan web dynos will go in “sleep” mode after 30 minutes of non-usage, if there is no web traffic on the app. Differently respect to the EB example this time we will use the Heroku CLI to create our web app.</p><p>The steps we need to take are:</p><ol><li>Install the Heroku CLI and create a Heroku web app locally.</li><li>Set up the environment variables, push the code up to the Heroku remote and deploy the application.</li></ol><p><strong>Install the Heroku CLI and create a Heroku app locally</strong></p><p>I find the Heroku documentation for setting up a web app particularly accurate, if something is not clear with my explanation I recommend you read this <a href="https://devcenter.heroku.com/articles/git">tutorial</a>, we will use git to deploy our web app. According to your operating system there are different methods of installing the Heroku CLI, you can download it from <a href="https://devcenter.heroku.com/articles/heroku-cli">here</a>. Assuming your code is initialised as a git repository and you have logged in with the Heroku CLI heroku login, go with your terminal to the root folder level and type heroku create &lt;optional: &quot;name-of-your-app&quot;&gt;. You can choose a name for your app, in case you don’t specify a name Heroku will give your app a default name chosen by Heroku. Creating an app locally with Heroku will automatically link it to a remote Heroku repository which will be the “launch pad” for our deployment later. If your app is in good shape and you can start it in development mode commit it to your local git repository, the committed version is the one that will be deployed to the Heroku environment.</p><p><strong>Set up the environment variables, push the code up to the Heroku remote and deploy the application</strong></p><p>We can setup our environment variables locally in out CLI, these values are passed on to the remote environment where we will run the web app and will picked up by the code. To set them up on the terminal type heroku config:set ENV_NAME=ENV_VARIABLE , so for our application what we need to set up are the following variables</p><pre>heroku config:set AWS_REGION=your_region<br>heroku config:set BUCKET_NAME=your_bucket_namr<br>heroku config:set NODE_ENV=production<br>heroku config:set PORT=80<br>heroku config:set S3_ACCESS_KEY_ID=your_S3_access_key_id<br>heroku config:set S3_RESOURCE_NAME=name_of_json_file.json<br>heroku config:set S3_SECRET_KEY=your_S3_secret_key</pre><p>Finally, we deploy our application just pushing our code to the Heroku remote repository, in your terminal at the root folder level do a npm push heroku master. The terminal will push the code up and run the command in the Proc file we defined earlier, it will work in Heroku too. The terminal will inform you on how the process is going and after a few minutes. If everything is deployed ok we will get the “build succeeded” message and the url where to reach our newly created web app, the result will be the same map we saw in the previous example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*oKAr3cTdiPDCKtL21g5SXA.jpeg" /><figcaption>Heroku app successfully deployed</figcaption></figure><p><strong>Conclusion</strong></p><p>First of all a big thank you for following this tutorial until the end. There are a lot of steps to follow but once you learned the process next time it will be easier to transform your thoughts into a publicly available space on the web. I also hope the explanations were clear and succeeded to let you appreciate how the single components work. A few more considerations have to be made on the tools I used and discovered. First of all the easiness of the vector tile server set up, geojson-vt is great, I can’t say yet how well it could work on a big scale projects but surely expressed its potential for this small application, which could be perfect to present quickly even complex spatial data. The second point I’d like to make is about the comparison between the two hosting platforms, AWS Elastic Beanstalk and Heroku. The first is one of the countless resources in the Amazon Web Services world. In case you wanted to expand your application or build bigger things it will be easier to find and arrange all the additional bits (Networks, VMs, storage, etc.) you will require, of course it will have a cost. As for Heroku instead what I really liked is the completeness and accurateness of its documentation, the real-free pricing tier for web app hosting and the easiness of use. If you need to build a simple web app without having particular prior knowledge in regards and you don’t want to worry about the potential costs this is the way to go. Hope you enjoyed this tutorial and see you soon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9eab854b553" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/how-to-build-a-cloud-hosted-vector-tiles-map-web-app-in-react-part-iii-d9eab854b553">How to Build a Cloud-Hosted Vector Tiles Map Web App in React — Part III</a> was originally published in <a href="https://medium.com/swlh">The Startup</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 Build a Cloud-Hosted Vector Tiles Map Web App in React — Part II]]></title>
            <link>https://medium.com/swlh/how-to-build-a-cloud-hosted-vector-tiles-map-web-app-in-react-part-ii-9c3d10e9e2f0?source=rss-95bee74e704d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c3d10e9e2f0</guid>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[vector-tiles]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[express]]></category>
            <category><![CDATA[openlayers]]></category>
            <dc:creator><![CDATA[Alessandro Cristofori]]></dc:creator>
            <pubDate>Mon, 25 Jan 2021 22:57:37 GMT</pubDate>
            <atom:updated>2021-01-29T22:36:10.624Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q8_Ux5DFs0wRlAP11EwsAA.jpeg" /><figcaption>Excerpt of Italian telephone area codes map</figcaption></figure><h3>How to Build a Cloud-Hosted Vector Tiles Map Web App in React — Part II</h3><p>App design</p><p>In this part of the tutorial we will focus on writing the code of our web app, assuming we already have a React app in development mode (created in the first section), we will first design the server side code and then the mapping part on the client side, the finished code for this section can be found <a href="https://github.com/ale-cristofori/s3-vector-tiles/tree/client-side-code">here</a>.</p><p>Before proceeding, let’s have a look at the project folder structure to see where we are going to place the files that we will create.</p><pre>root-folder/<br>    public/<br>       index.html - this is where React will render<br>    src/<br>        client/<br>            components/<br>                App.jsx - React app wrapper<br>                ...more client code<br>        index.js - React instantiation / app entry point for Webpack<br>        server/<br>            here we will place our server code<br>        styles/<br>            here we will place our sass code<br>    babel.config.json<br>    package.json<br>    webpack.config.js<br>    Procfile - process file to be run on the environment</pre><p><strong>Design you server side code</strong></p><p>The server of our application will handle requests/responses of the app bundle and the vector tiles using Express. The workflow is based on a Node example you can find <a href="http://richorama.github.io/2019/02/05/roll-your-own-vector-tile-service/">here</a>, with Express it will be easier to expand our app in case we wish to include more API endpoints later.</p><p>First, let’s install Express and CORS with npm install --save express cors in your terminal.</p><p>We then install the dependencies to turn our source data into vector tiles and send them to the client in Protocol Buffer format PBF, if you want to discover more about PBF have a look at <a href="https://developers.google.com/protocol-buffers">this article</a> to start with. Our native GeoJSON data will be tiled with <a href="https://github.com/mapbox/geojson-vt">geojson-vt</a> and subsequently serialised to PBF using <a href="https://github.com/mapbox/vt-pbf">vt-pbf</a> which wraps the <a href="https://www.npmjs.com/package/pbf">pbf</a> library implementation to work with MapBox vector tiles. The usual terminal command to install these dependencies will be npm install --save geojson-vt vt-pbf.</p><p>Finally, the last required dependency is the <a href="https://aws.amazon.com/sdk-for-javascript/">AWS SDK for JavaScript</a>, serving as the code interface to access datasets in S3 buckets. Install it with npm install --save aws-sdk.</p><p>Let’s create a file called index.js in our server folder that will look like follows, if you downloaded the starter pack from git hub this file is already included.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef46259c2859592b5e3d194ece29a1c6/href">https://medium.com/media/ef46259c2859592b5e3d194ece29a1c6/href</a></iframe><p>For displaying the data stored in the S3 bucked you will have to replace the values between &lt;&gt; with your credentials and Amazon AWS region, we set those up in part one of this tutorial.</p><p>The built code will be placed by Webpack in the build folder when making a production bundle. On top of it, we will have a route for serving the vector tiles, the endpoint will be:</p><pre>http://&lt;domain-name&gt;/tileserver/?z={zoom-level}&amp;x={tile x index}&amp;y={tile y index}.pbf</pre><p>For those who are not experienced in how tiled data works this is a brief explanation. Our client side mapping library OpenLayers will take care of making the requests to the server, working out z, x and y for us and filling the query strings with these values. When the server starts geojson-vt creates the tileIndex variable, this is in fact a grid made of our sliced GeoJSON, our tiles. Each tile can be located on the grid as it will be assigned an x, y and z value, the first two are the positions of the tile on the respective axis and the third is the zoom level at which the tile will render. When we request the data, geojson-vt calculates which tiles will be displayed from the provided z, x, and y. We will receive the tiles as “chunks” of pbf data that OpenLayers will parse and render on the map at the right place.</p><p>To test that everything works as expected navigate to the server folder and from your terminal run node index.js, if our NodeJs application started correctly we should see the message of the app listening on the port, 5000 in our case. The app will not start immediately but only after the data has been tiled and this may take a few seconds.</p><p><strong>Design your front end code</strong></p><p>Let’s start with creating a simple base map, including OpenLayers in our dependencies, from your terminal do an npm install — save ol. Since we use React we will wrap the OpenLayers code in a functional component, having there both HTML and state management. There are various examples on the web on how to set up OpenLayers in React, I based mine on <a href="https://taylor.callsen.me/using-openlayers-with-react-functional-components/">this</a> because it is simple and well documented. Inside the client folder create a components folder, here we will create a file that will hold our client side logic, we will call it MapComponent.jsx.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/61f1ada078cf869fe62e05173b62ffd4/href">https://medium.com/media/61f1ada078cf869fe62e05173b62ffd4/href</a></iframe><p>Notice how working with hooks slightly changes how we instantiate the OpenLayer Map object in a functional component; we call a useEffect hook, followed by an empty array as second argument. This ensures the hook is called only once and when the component will mount. We use the setMap hook after the map instantiation, creating an accessible reference in the state in case we applied changes to the map object later on, using another useEffect hook for example. You can notice that we haven’t yet created the HTML reference node that OpenLayers needs to attach the map to. React has a hook for it, useRef replacing theReact.createRef method used in component classes. Notice the url endpoint to get the vector tiles, in our simple example we will run client and server code from the same server, that’s why we don’t need the specify an absolute url. Besides, notice how the order of the query string parameters (z,x,y) is the same as specified in server/index.js.</p><p>If we want to expand our app later it will be good to create a parent that will wrap the map together with more components, this will our App component. After this we need to create our app entry point for both React and Webpack client/index.js, and the the HTML file where the whole application will render public/index.html</p><pre>App.jsx<br>import React from &#39;react&#39;;<br>import MapComponent from &#39;./MapComponent&#39;;</pre><pre><em>const</em> title = &#39;Welcome to Vector Tiles Map&#39;;<br>export default <em>function</em> App () {<br>    return (<br>        &lt;div&gt;<br>            {title}<br>            &lt;<em>MapComponent</em> /&gt;<br>        &lt;/div&gt;);<br>}</pre><pre>//index.js<br>import &quot;../styles/style.scss&quot;;<br>import React from &#39;react&#39;;<br>import ReactDOM from &#39;react-dom&#39;;<br>import App from &#39;./components/App&#39;;</pre><pre>ReactDOM.render(<br>    &lt;<em>App</em> /&gt;,<br>    document.getElementById(&#39;app&#39;)<br>);</pre><pre>//this line is needed for having Hot Module Replacement while in dev mode<br>module.hot.accept();</pre><pre>//index<br>&lt;!DOCTYPE html&gt;<br>    &lt;html lang=&quot;en&quot;&gt;<br>    &lt;head&gt;<br>        &lt;meta charset=&quot;UTF-8&quot;&gt;<br>        &lt;title&gt;S3 Vector Tiles&lt;/title&gt;<br>    &lt;/head&gt;<br>    &lt;body&gt;<br>        &lt;div id=&quot;app&quot;&gt;&lt;/div&gt;<br>    &lt;/body&gt;<br>&lt;/html&gt;</pre><p>And finally we will create a style.scss file inside the styles folder that will contain the sass styles definition for our application, we will define here the OpenLayers map height and width.</p><pre>//style.scss<br>body {<br>    <em>font-family</em>: $font;<br>    <em>color</em>: $primary-color;<br>    <em>margin</em>: 0;<br>    .map {<br>        <em>width</em>: 100%;<br>        <em>height</em>: 100vh;<br>    }<br>}</pre><p><strong>Run the App in development mode</strong></p><p>Now that we have a client and server code base we can serve our app in development mode and see how it looks like. To do this we need the follow these steps:</p><ol><li>Install and configure Babel to transpile our React code from jsx to js.</li><li>Have Webpack to bundle up our client code.</li><li>Have Webpack dev server to run our bundle.</li><li>Have Nodemon to run our server code.</li><li>Set up Webpack dev server to proxy every request from the client to the server that will run on a different port.</li></ol><p>Instructions about how to install and configure Webpack dev server and Babel are not part of this tutorial. You can find a lot of examples online (<a href="https://www.valentinog.com/blog/webpack/">like this one</a>) or you can clone <a href="https://github.com/ale-cristofori/s3-vector-tiles/tree/client-side-code">my example repository</a> from GitHub. In the examples below I will just put the parts of a webpack.config.js and package.json that will change using the files you can find in part one as base. Replace the relevant parts and you will able start your application. Remember you need to install nodemon, from your terminal do an npm install --save-dev nodemon first. Client code (webpack-dev-server) will run on port 3000, server code (express) will run on port 5000.</p><p><strong>NOTE for those who work on Windows</strong>: I designed this app on Windows and I couldn’t use the &amp;&amp; notation to run dev-server and dev-client at the same time as I would do on Linux with npm run dev-server &amp;&amp; npm run dev-client. I will need a couple of additional configuration steps, install <a href="https://github.com/kimmobrunfeldt/concurrently#readme">concurrently</a>, from the terminal npm install --save-dev concurrently, and get the client code to run only when the server is ready to accept requests.</p><p>Our server code will connect to S3 and make the vector tiles, by the time this happens our dev server will have started already. If we left it like that the browser would open with an empty base map, since the tiled features would not be ready yet. What we want instead is the front end code to run only when the tiles are ready. In our help comes <a href="https://www.npmjs.com/package/wait-on">wait-on</a>, a multiplatform library that will npm run dev-server only when the server (the nodemon process) is ready to listen on port 5000. To install it, from your terminal run npm install — -save -g wait-on and see how to use it in the example below</p><pre>// webpack.config.js<br>...<br>devServer: {<br>    contentBase: path.resolve(__dirname, &#39;./build&#39;),        <br>    open: true,         <br>    hot: true,        <br>    port: 3000,        <br>    proxy: {<br>        &#39;/tileserver&#39;: &#39;http://localhost:5000&#39; <br>    }<br>}<br>...</pre><pre><em>package.json<br>...<br>&quot;scripts&quot;</em>: {<br>    <em>&quot;test&quot;</em>: &quot;npm run test&quot;,<br>    <em>&quot;dev-server&quot;</em>: &quot;nodemon ./src/server/index.js&quot;,<br>    <em>&quot;dev-client&quot;</em>: &quot;webpack serve --mode development --config ./webpack.config.js&quot;,<br>    <em>&quot;start&quot;</em>: &quot;nodemon   ./node_modules/concurrently/bin/concurrently.js \&quot;npm:dev-server\&quot; \&quot;npm:dev-client-wait\&quot;&quot;,<br>    <em>&quot;build&quot;</em>: &quot;webpack --mode production --config ./webpack.config.js&quot;,<br>    <em>&quot;dev-client-wait&quot;</em>: &quot;wait-on tcp:5000 &amp;&amp; npm run dev-client&quot;<br>},<br>...</pre><p>Now it is time to run our application in development mode, navigate to your project root folder and do an npm start, after some time the browser page will open and you should see the OSM base map with our tiled vector layer overlay.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*agKNF4WFTvPBCh1IBf0Xaw.jpeg" /><figcaption>App running in development mode</figcaption></figure><p>If this is what you see then, congratulations, you are running your own vector tiled server sourcing data from an S3 bucket.</p><p>But we do not want to keep all this good stuff for us, do we? We want to publish our work, share our map ideas or present a technical prototype. This is exactly what we are going to do in the <a href="https://compatt.medium.com/how-to-build-a-cloud-hosted-vector-tiles-map-web-app-in-react-part-iii-d9eab854b553">next section</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c3d10e9e2f0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/how-to-build-a-cloud-hosted-vector-tiles-map-web-app-in-react-part-ii-9c3d10e9e2f0">How to Build a Cloud-Hosted Vector Tiles Map Web App in React — Part II</a> was originally published in <a href="https://medium.com/swlh">The Startup</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 Build a Cloud-Hosted Vector Tiles Map Web App in React — Part I]]></title>
            <link>https://medium.com/swlh/build-a-vector-tiles-reactjs-app-with-elastic-beanstalk-part-i-b31405ccf93a?source=rss-95bee74e704d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b31405ccf93a</guid>
            <category><![CDATA[elastic-beanstalk]]></category>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[geojson]]></category>
            <category><![CDATA[s3-bucket]]></category>
            <dc:creator><![CDATA[Alessandro Cristofori]]></dc:creator>
            <pubDate>Mon, 25 Jan 2021 22:49:03 GMT</pubDate>
            <atom:updated>2021-01-29T22:35:35.834Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f02bCkrpTd5BS-AEEvztaQ.jpeg" /><figcaption>Excerpt of Italian telephone area codes map</figcaption></figure><h3>How to Build a Cloud-Hosted Vector Tiles Map Web App in React — Part I</h3><p>App setup</p><p>The map is the starting point of every story I have written so far. I enjoy making them, with alternating results, I enjoy share them and learn something new at the same time. In this tutorial, I will show you how I set up a complete NodeJS map web application using two different hosting platforms (Amazon AWS Elastic Beanstalk and Heroku). We will supply the spatial data in vector tiles through our own purpose-built tile server with <a href="http://expressjs.com/">Express</a> and Mapbox <a href="https://github.com/mapbox/geojson-vt">geojson-vt</a>, a library that generates vector tiles from GeoJSON. We will also build a simple interface using React and OpenLayers.</p><p>Building such an application is not too complicated but requires a lot of preparation steps, that’s why I decided to split it into three parts. If you already know how to scaffold a React app and have an S3 bucket/AWS user you’d want to jump to the <a href="https://compatt.medium.com/how-to-build-a-cloud-hosted-vector-tiles-map-web-app-in-react-part-ii-9c3d10e9e2f0">second part</a> where we will start putting some code together.</p><p><strong>Bootstrapping the App</strong></p><p>Since we design both server and client code and we need a minimal app setup, we will not use create-react-app this time, we will create a node project, install Webpack with the required configuration for development/production, and the Babel loaders for React. I will save you the details of building a React boilerplate and just describe the project folder structure and include package.json, webpack.config.js and babel.config.js. You can get a complete explanation of a Node/React app setup looking at some online tutorials, my example is based on <a href="https://www.robinwieruch.de/webpack-setup-tutorial/">this</a> and <a href="https://www.valentinog.com/blog/webpack/">this</a> which I found complete, easy to implement and up-to-date.</p><pre>root-folder/<br>    public/<br>       index.html - this is where React will render<br>    src/<br>        client/<br>            components/<br>                App.jsx - React app wrapper<br>        index.js - React instantiation / app entry point for Webpack<br>        server/<br>        styles/<br>    babel.config.json<br>    package.json<br>    webpack.config.js</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/01cd638d25ff39d7119813c21144d801/href">https://medium.com/media/01cd638d25ff39d7119813c21144d801/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6d020913e64d4dfde9443a395a11d906/href">https://medium.com/media/6d020913e64d4dfde9443a395a11d906/href</a></iframe><pre>// babel.config.json<br>{<br>  <em>&quot;presets&quot;</em>: [&quot;@babel/preset-env&quot;, &quot;@babel/preset-react&quot;]<br>}</pre><p>You can also clone the starter kit for this project from <a href="https://github.com/ale-cristofori/s3-vector-tiles/tree/starter-kit">GitHub</a>, locally run npm install to install dependencies and then run npm start, if everything is set up correctly a test app page should open in your default browser showing a message saying “Welcome to React”.</p><p><strong>Set up your AWS account and upload data to S3</strong></p><p>If you don’t have an Amazon Web Services (AWS) account already, then you can set one up directly from their AWS <a href="https://aws.amazon.com/">home page</a>. The features we will use for this tutorial are included in the free tier plan for an initial period of 12 months, after this limit the normal usage pricing plan will apply. Amazon’s services pricing is based on usage, in order to run an hosted web app (the service is called Elastic Beanstalk, EB) the costs involved is for the virtual machine instance where the app is hosted (Amazon EC2), the size and access frequency to the space where we will store our data (Amazon S3). The 12 months free tier usage limits EC2 without load balancing is 750 hours per month; the 12 months free tier for an S3 standard storage is 5GB / 20000 GET requests and 2000 PUT requests. In our example we will not use load balancing and predict less requests than the limit, we can fairly say that the app will have no costs for the first 12 months.</p><p>Once your AWS account is set up, head to the AWS management console and on the search bar type “S3” this will open the S3 management console. Here we click on “Create Bucket”, you will have to choose a name (for this project it will be called “geodata-italy”). On this settings page you will have to select your preferred AWS region and define the access policies to your bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4fACzLuUXJ2xSkFzA_LZnw.png" /><figcaption>S3 bucket access policies setup page</figcaption></figure><p>In my case I left the default choices, blocking public access to the bucket, I will create a read-only user with dedicated S3 bucket access policies later on. Once the bucket is created it will appear on your bucket list and we will be able to upload our test data.</p><p>For this example I provide some WGS84 GeoJSON Italian administrative boundaries, the geometries contain a fairly large number of vertices. when serving vector data of such type in WFS we would already start to see some performance drops, this will enable to assess the benefit of tiled Vector data. The test data sample can be downloaded <a href="https://drive.google.com/file/d/1SjjQn3y71VMV228ubhDaZy4aJYycl9zF/view?usp=sharing">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Y3taUHO_pAzHCcHMYzNMw.png" /><figcaption>S3 bucket upload file page</figcaption></figure><p>On the S3 buckets list page click on the upload button and the upload page will open, here we can add the file. When the file is uploaded the next action is to create a read-only user for the bucket and generate the bucket ID and the secret key, we will use these credentials to access the data stored in the bucket from the app.</p><p>On the main AWS management console select IAM (Identity and Access Manager) and when the page will open select “Users” on the left pane. On the Users page click on “Add User”, give the user a name (for example data-reader) and in the radio button below select “Programmatic Access”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*hTLmXtAyFKfQ1LWTtFHuqg.png" /><figcaption>AWS Identity and Access Manager — assign read-only policies to a group</figcaption></figure><p>On the next page click on “Create New Group” and give it a name (example S3-read-only), when selecting the access policies for this group choose those providing read-only access to the bucket. Review the group policies before completing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*wPC9zH0rM2PBW1aITCF9Fg.png" /><figcaption>User creation page — get your Security Credentials here</figcaption></figure><p>When redirected to the users’ list page, select the user you have just created and on the user details window select the “Security Credentials” tab, here click on the “Create access key” button to get the two values. Store the credentials since you won’t be able to see them again and we will need them later on.</p><p>This completes the setup of our app components and data setup, in the <a href="https://compatt.medium.com/how-to-build-a-cloud-hosted-vector-tiles-map-web-app-in-react-part-ii-9c3d10e9e2f0">next section</a> we will see how to create the code of the web app.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b31405ccf93a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/build-a-vector-tiles-reactjs-app-with-elastic-beanstalk-part-i-b31405ccf93a">How to Build a Cloud-Hosted Vector Tiles Map Web App in React — Part I</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A simple dashboard using React hooks and D3]]></title>
            <link>https://medium.com/swlh/a-simple-dashboard-using-react-hooks-and-d3-6ff197e7ea74?source=rss-95bee74e704d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ff197e7ea74</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[d3js]]></category>
            <category><![CDATA[hooks]]></category>
            <category><![CDATA[dashboard]]></category>
            <dc:creator><![CDATA[Alessandro Cristofori]]></dc:creator>
            <pubDate>Sun, 31 May 2020 20:58:29 GMT</pubDate>
            <atom:updated>2020-05-31T21:08:43.174Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*3KpeUDL8vQErUbAt6obGKA.png" /></figure><h3>A simple dashboard using React hooks and D3 — Part III</h3><h4>The Line Chart Component</h4><p>The Line Chart component is basically a line connecting a series of dots placed on the coordinate system of our svg canvas. In this example, on the x axis we have the years referred to the sales of items and on the y axis we have the amount of sales for that year. On top of the line we will plot the dots in correspondence with their x,y position, the dots fill colour will be white except for the minimum and maximum y value, these will be red and green respectively. Let’s have a look at the code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bafa018a3f673abd96a81710c1c816a6/href">https://medium.com/media/bafa018a3f673abd96a81710c1c816a6/href</a></iframe><p>Translated in React and svg, the LineChart component will combine the Line and the Dots components. The first one is a &lt;path&gt; element which x,y coordinates are adequately scaled to our data with d3, the second component encapsulates an array of &lt;circle&gt; elements placed on top of these coordinates, hence they will be scaled in the same way as our line. The react components have their own useEffect hook that will fire up a method to animate the svg element inside them, using the d3 DOM manipulations methods and transitions. Our LineChart component will have its own data source in a separate file, the props passed from the parent App will update the props on the children component that will in turn trigger the useEffect hook and the animations, the same way we designed it for Our Donut and Slice components.</p><p>While the process of animation of the Line component <a href="https://medium.com/p/1eca02ea0d18#5f95">is not much different than the </a><a href="https://medium.com/p/1eca02ea0d18#5f95">Slice component</a> (d3 updating the d attribute of the our path svg element) when we will animate the Dots we will have to follow a slightly different process. The animateDots function expects both the group &lt;g&gt; svg element, containing all our &lt;circles&gt; together, and the selectedData containing the array of data which is updated on each slice selection.</p><pre>const animateDots = (xScale, yScale, dotsContainer, dotsColour, selectedData) =&gt; {<br>    const dotsCoords = selectedData.map( (item, index) =&gt; { <br>        return {<br>            x: (xScale(index) * 0.10), <br>            y: (yScale(item.measure) * 0.10)}<br>        });<br>        <br>    const dots = dotsContainer.selectAll(&#39;circle&#39;);</pre><pre>    dots.each(function (d, i) { <br>        select(this)<br>            .transition()        <br>            .duration(650)        <br>            .attr(&quot;cx&quot;, dotsCoords[i].x)<br>            .attr(&quot;cy&quot;, dotsCoords[i].y)<br>            .attr(&quot;fill&quot;, getDotColour(i))<br>            .attr(&quot;stroke&quot;, dotsColour)<br>            .attr(&quot;stroke-width&quot;, 0.150)<br>    });</pre><pre>}</pre><p>Since we expect the number of dots to be the same as the number of data items, we first iterate/map our data in the dotsCoords variable; calculating the updated x,y coordinates for each data item using the xScale and yScale functions. Secondly, using the d3 function selectAll(&#39;circle&#39;) we select all &lt;circles&gt; in our group and we iterate through them, again using the each function of d3. We will apply the new coordinates in dotsCoords to the cx and cy properties of &lt;circle&gt; matching the index of each element in both arrays, each has as second argument the index of each item in the selected group.</p><p>The Line chart component contains more text and colour definitions for its children components, as the process of creating and updating these is the same as we used for both the Bar and Donut component you can have a look at how these is made to get an idea of how the animations work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ff197e7ea74" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/a-simple-dashboard-using-react-hooks-and-d3-6ff197e7ea74">A simple dashboard using React hooks and D3</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>