<?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 Jessica Wu on Medium]]></title>
        <description><![CDATA[Stories by Jessica Wu on Medium]]></description>
        <link>https://medium.com/@jessicawu.9898?source=rss-4c0792859736------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*aAqiZKbXROxwzP9IkKq1Ew.jpeg</url>
            <title>Stories by Jessica Wu on Medium</title>
            <link>https://medium.com/@jessicawu.9898?source=rss-4c0792859736------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:36:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jessicawu.9898/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[Inbox: Powering our Front-End through a Data-Driven Model]]></title>
            <link>https://medium.com/hootsuite-engineering/inbox-powering-our-front-end-through-a-data-driven-model-716d3f636109?source=rss-4c0792859736------2</link>
            <guid isPermaLink="false">https://medium.com/p/716d3f636109</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Jessica Wu]]></dc:creator>
            <pubDate>Fri, 24 Apr 2020 19:22:50 GMT</pubDate>
            <atom:updated>2020-04-24T19:22:50.811Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How data feeds into our product’s front-end architecture via GraphQL queries</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cr0-1H7XqXId3sBy49e7_g.png" /></figure><p>Hootsuite Inbox is a product that allows customers to engage with their audiences through several various social media platforms: all in one consolidated place. Every day, Inbox handles around 20k inbound and outbound messages across a set of different social networks such as Facebook, Twitter, and LinkedIn. To manage such large flows of data, we maintain what we call a <em>data-driven</em><strong> </strong>approach that leverages GraphQL queries to communicate with and power our React front-end. In this article, I will walk through how this front-end orchestration works its wonders for Inbox.</p><h3>Laying out the Pieces</h3><p>To start off, I’ll define a simplified front-end representation of Inbox in order to abstract away some of the specific contextual details and make it easier to familiarize with.</p><pre>import React from &#39;react&#39;<br>import ...</pre><pre>export class <strong>SimpleInbox</strong> extends React.Component {<br>  <strong>render</strong>() {<br>    return (<br>        &lt;Container&gt;<br>          &lt;ConversationsList /&gt;     // the list of all conversations<br>          &lt;SelectView&gt;              // the currently selected one<br>            &lt;Header /&gt;<br>            &lt;Content /&gt;<br>          &lt;/SelectView&gt;<br>        &lt;/Container&gt;<br>    )<br>  }<br>}</pre><p>Let’s also define how the Content component is structured:</p><pre>import ...</pre><pre>export const <strong>Content </strong>= ({ content }) =&gt; {<br>    const { elements, text } = content <br>    <strong>return</strong> (<br>        &lt;Container&gt;<br>            &lt;TextWithElements {... { elements, text }} /&gt;<br>        &lt;/Container&gt;<br>    )<br>}</pre><p>In Inbox, and as with many other products, there are stylistic distinctions that apply to a visual component based on the set of data received. The way you would render plain text that makes up a message very likely differs from the way you would render its associated author’s name. This is especially the case if there are other intentions or actions that are linked to that component, such as being able to click on a name and navigate to that user’s profile. That being said, it seems to be the most intuitive to have the front-end respond instinctively to handle these differences in data. Perhaps it would help to think of the front-end structure as an “empty shell” that exists for the retrieved data to populate and define behaviour for. This is exactly the data-driven model that serves as the fundamental backbone of our Inbox front-end. Essentially, we have our GraphQL back-end handle all the data, and then propagate it up to the front-end to fill in the spaces.</p><h3>Shaping our Data: Leveraging GraphQL</h3><p>A powerful advantage of <a href="https://graphql.org/">GraphQL</a> is the ability to declaratively fetch data in the shape that you ask for and know in confidence that you can always expect it to return predictable results. This is perfect for abstracting away complex backend details from the front-end since all we need to know is the schema definition.</p><p>Let’s refer back to our simplified representation. Say we want to render the original, top-level message of a selected conversation. This message will contain regular text but also a <em>link</em> and a <em>username mention</em> that needs to be stylized accordingly. How should we approach this in a data-driven way?</p><p>Defining a schema to represent how we want to shape this data might be a good start:</p><pre># provides information about the message content<br>type <strong>Content</strong> {<br>  text: String<br>  elements: [TextElement]<br>}</pre><pre># specifies the type of text element and its stylistic properties<br>type <strong>TextElement</strong> {<br>  start: Int<br>  length: Int<br>  tone: Tone<br>  action: Action<br>}</pre><p>Let’s consider this example message:</p><pre>&quot;Hey <strong>@jessica</strong>, check out this cool article! <strong>medium.com/123</strong>&quot;</pre><p>The Content type contains the entire message as text, but also stylized elements that correspond to sections of that text that are special such as <strong>@jessica</strong> and <strong>medium.com/123 </strong>.</p><p>These elements are of type TextElement and have indices that represent their start position in the text and the length that they span. They also have a tone to represent how we want it stylized and an action that we associate them with. For the username handle, we expect to be able to click it and open profile details, and for a link we expect it to open up that link.</p><p>Here, we’ll focus on three cases of a TextElement:</p><ul><li><strong><em>simple plain text:</em></strong> tone will be Normal and action will be <em>no action</em></li><li><strong><em>link:</em></strong> will have tone Special and action will be an openLinkAction</li><li><strong><em>mention:</em></strong> will also have tone Special and action will be an openProfileAction</li></ul><p>With that set in place, we can query for these exact pieces of data and then wire up our components to handle the cases respectively. We can enhance this querying logic by using GraphQL <em>fragments</em>, which are constructed sets of fields that you can reuse in your queries. You can envision them to be kind of like helper functions. Fragments are useful for grouping up fields that are commonly fetched for together, or for simply reducing complexity in components that would require fetching from multiple sources. An otherwise convoluted query with repetitive fields can be streamlined by allowing the use of many fragments combined within a single fetch call.</p><p>Here is an example of how we would query for our message:</p><pre>query <strong>getSelectedMessage</strong>($messageId: String!) {<br>  conversation(messageId: $messageId) {<br>    ...contentFragment<br>  }<br>}</pre><pre>fragment <strong>contentFragment</strong> on Content {<br>  text<br>  elements {<br>    ...textElementFragment<br>  }<br>}</pre><pre>fragment <strong>textElementFragment</strong> on TextElement {<br>  start<br>  length<br>  tone<br>  action {<br>    ...//some other fragment for action<br>  }<br>}</pre><h3>Filling in Our Front-End “Shell”</h3><p>Once we have our queries set up and fetching the data that we need, it’s time to consider how we want to handle this data through the front-end.</p><p>Diving back into theContent component that we introduced at the beginning, we have a TextWithElements component nested within it.</p><pre>const <strong>Content </strong>= ({ content }) =&gt; {<br>    const { elements, text } = content <br>    <strong>return</strong> (<br>        &lt;Container&gt;<br>            &lt;TextWithElements {... { elements, text }} /&gt;<br>        &lt;/Container&gt;<br>    )<br>}</pre><p>In this TextWithElements component, we can define a function, replaceElements, that will map over each text element and replace it with its respective styling applied.</p><pre><br>const <strong>TextWithElements </strong>= ({ elements, text }) =&gt; {<br>  if (text == null) return null<br>  if (elements == null || (!elements.size &amp;&amp; !elements.length))<br>    return &lt;span <strong>aria-hidden</strong>&gt;{text}&lt;/span&gt;<br>  return <strong>replaceElements</strong>(elements, text).<strong>map</strong>((component, i) =&gt;<br>      React.<strong>cloneElement</strong>(component, { key: i }),<br>  )<br>}</pre><pre>const <strong>replaceElements </strong>= ...<br>  // function that then takes the GraphQL data that we provide and  maps it to the corresponding Element</pre><pre>const <strong>Element </strong>= ({ action, text, tone }) =&gt; {<br>  if (<br>    tone === Tones.SPECIAL &amp;&amp;<br>    action &amp;&amp;<br>    action.__typename === OpenLinkAction.TYPE<br>  ) {<br>    return <strong>LinkElement</strong>({ action, text, tone })<br>  } else if (<br>    tone === Tones.SPECIAL &amp;&amp;<br>    (action &amp;&amp; action.__typename === OpenProfileAction.TYPE)<br>  ) {<br>    return &lt;<strong>Mention</strong> {...{ action, text, tone }} /&gt;<br>  } else if (action == null &amp;&amp; tone != null) {<br>    return <strong>DefaultTextElement</strong>({ text, tone })<br>  }<br>  return <strong>UnknownElement</strong>()<br>}</pre><p>The specific implementation details of the function are removed in order to decouple from its underlying complexity. However, you can see that based on the action and tone props that are received, we return either a link element, a mention element, or a default text element. Similarly, this can be applied with any spread of data: we can fill in our front-end components by asking for exactly what we need and nothing more or less. The beauty of this all comes down to that aspect of being able to define the structure of our data. This is in comparison to standard REST where often times you need to make several calls to different endpoints just to fetch a complete set of data for a component. Not to mention, with the fixed data structure of these endpoints, you’ll most likely also end up fetching for a lot of excess, unnecessary fields.</p><h3>Concluding Thoughts</h3><p>Hootsuite Inbox is a data-driven product that is powered by GraphQL. Our front-end architecture relies on these queries to process and display hundreds of thousands of messages every single day. We talked about how being able to declare the shape of your data responses through GraphQL is a valuable asset to Inbox. But as with anything, there are always drawbacks. If you have a large schema, maintaining it can become difficult as you start to develop complex relationships such as nesting and recursion within your GraphQL types. With REST, each individual endpoint is reasonably isolated, making it easier to work in changes and identify issues, whereas with GraphQL you’ll need to carefully ensure that your schema is well-designed or risk encountering some massive headaches.</p><p><em>Thanks for reading!</em></p><p><strong>About the Author</strong></p><p><a href="https://www.linkedin.com/in/jvssicawu/">Jessica</a> is a software developer co-op on the Engage team at Hootsuite. She is a 4th year computer science student at the University of British Columbia. When she’s not studying or working, she finds excitement in organizing and participating in hackathons from all over.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=716d3f636109" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hootsuite-engineering/inbox-powering-our-front-end-through-a-data-driven-model-716d3f636109">Inbox: Powering our Front-End through a Data-Driven Model</a> was originally published in <a href="https://medium.com/hootsuite-engineering">Hootsuite Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Designing cmd-f, Vancouver’s first all-female* hackathon]]></title>
            <link>https://medium.com/nwplusubc/designing-cmd-f-vancouvers-first-all-female-hackathon-9d25afe16a0b?source=rss-4c0792859736------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d25afe16a0b</guid>
            <category><![CDATA[behind-the-scenes]]></category>
            <category><![CDATA[design-process]]></category>
            <category><![CDATA[branding]]></category>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Jessica Wu]]></dc:creator>
            <pubDate>Tue, 13 Aug 2019 00:02:14 GMT</pubDate>
            <atom:updated>2019-08-13T00:24:50.476Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0oQ524xd_UesR7agr_DQeg.png" /></figure><h4>Branding and design direction for a first-iteration hackathon</h4><p><em>This past March, we welcomed cmd-f: Vancouver’s first all-female* hackathon. Held at the University of British Columbia, this 24-hour event sought to establish a stronger sense of community for passionate and curious women* in tech. Learn more about what went down during the weekend of cmd-f by reading this </em><a href="https://medium.com/nwplusubc/cmd-f-2019-18ee3f6bb2ed"><em>article</em></a><em>.</em></p><p><em>The cmd-f team would like to acknowledge that “female” or “women” is not an accurate description for many people and it may make some feel unwelcome. We use * to specifically and intentionally include cis and trans women, as well as non-binary, agender and intersex people.</em></p><p>Last fall, I was recruited onto the cmd-f team as the sole designer. As a subgroup of the nwPlus team, I was well aware of the high caliber designs that had already been demonstrated through <a href="https://medium.com/nwplusubc/designing-nwhacks-2018-86561c753451">nwHacks 2018</a>. I instantly felt the pressure that came with having to design for an entirely new hackathon, especially since I had such high expectations to meet. Despite my initial doubts, I decided that this would be a valuable opportunity to refine my design skills while contributing to a platform that resonated with me. Here’s my experience designing for a first-iteration hackathon.</p><h4>The cmd-f Team</h4><p><a href="https://www.linkedin.com/in/allison-chiang/">Allison Chiang</a>, <a href="https://www.linkedin.com/in/anlin-chen/">Anlin Chen</a>, Avery Brown, Rebecca Roth, <a href="https://www.linkedin.com/in/xofeoz/">Zoe Fox</a> and <a href="https://www.linkedin.com/in/jvssicawu/">me</a> :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W5C0CvD6k7N-RY918Rd-yg.png" /><figcaption>Vector illustrations of the team made for Slack profile pictures</figcaption></figure><p>As a small team, everyone worked together on event logistics and sponsorship communications, while I primarily focused on the design aspects.</p><h4>Establishing the design direction</h4><p>Although we wanted to appeal to an all-female* demographic, we wanted to do so in a way that would not propagate any traditional gender stereotypes. Before leaping into designing, we looked to existing female* hackathons around the world for inspiration. Some notable ones were <a href="https://ellehacks.com//2018/index.html"><strong>Elle Hacks</strong></a>, <a href="https://www.athenahacks.com/"><strong>AthenaHacks</strong></a>, and <a href="https://gotechnica.org/"><strong>Technica</strong></a>. I particularly liked the ones that avoided pink as a focal colour choice, but rather blended or incorporated it with other hues when used. Analyzing these hackathons helped us navigate towards the design direction that we wanted to pursue: one that would not need to emphasize or categorize femininity. We wanted cmd-f to be presented as any other awesome hackathon would.</p><h4>Logo</h4><p>Before I had joined the team, Zoe had taken on the first attempts at creating the logo. Since our name was cmd-f, it came as no surprise that we wanted to tie the Mac command symbol (⌘) into the design (sorry Windows) 😅 The concern with this design was the resemblance of the <em>f</em> to the Facebook logo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*vH8n0nUC3zySeo89j0r-Tg.png" /><figcaption>First logo design</figcaption></figure><p>I experimented with this concept a bit more, this time introducing a cube shape inspired by keyboard keycaps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KCRrdP5r3ycZhwEUYE5VNQ.png" /><figcaption>Inspired by square keycaps</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*Az6EiA3t5KYKu10pkU5puQ.png" /><figcaption>More variations, this one adopts an nwPlus colour palette and is more rectangular in length</figcaption></figure><p>The <em>f</em> in the command symbol was then dropped to reduce clutter and redundancy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wlDY96ilSJTObiLcIJCYiA.png" /><figcaption>More unused variations</figcaption></figure><p>After all these design iterations, we finally arrived at our resulting logo: a simple black and white keycap design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*ijn13lvFBCZvg9_QXKwdhg.png" /><figcaption>The winning contestant</figcaption></figure><h4>Colour palette</h4><p>While I was testing out different colour schemes, the team really liked the combination of colours below, so it became the starting point of cmd-f’s colour palette. The pink-orange-teal trio checked off all the boxes for looking refreshing and pleasing, while straying away from being too feminine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*W0eU0E1_Q6aU_JDIjsq3ug.png" /></figure><h4>Designing the Graphics</h4><p>As someone who came from a background in digital raster illustration, vectors were something I definitely did <em>not</em> have the most familiarity with. Finding an intuitive program for the creation of these vector designs was essential. <a href="https://figma.com/"><strong>Figma</strong></a> and <a href="https://www.designer.io/en/"><strong>Gravit Designer</strong></a> became my go-to applications to use.</p><p>The more “complex” vector graphics such as the logo and main visual elements were created with Gravit Designer, as it offers a crucial skew tool that isn’t available yet on Figma. This skewing was necessary to obtain the angle and perspective of the logo and its components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T842htQlzq30sAND.png" /><figcaption>Gravit Designer workspace (transform skew tool on right panel)</figcaption></figure><p>I was first introduced to Figma by my team, and it is undeniably one of the greatest design tools that I have ever encountered, allowing for real-time collaboration on design files. This made it really easy for me to communicate design changes to my team and for anyone on the team to step in and see the work in progress. If it hadn’t been for the unavailable skew feature, I would have probably done everything on Figma. Most of our marketing and promotional material was done through it, as were our website mock-ups.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/0*BZW7p75FqZmZQ-_b.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dkskkBIALVPJPzBcbvfd3w.png" /><figcaption>Everyone at nwPlus loves Figma 😍</figcaption></figure><p>Next, the most important part of the website was going to be the top of the landing page aka the first part that the user would see when they landed on the website. Our goal was to saturate this section with a welcoming and female*-empowering energy, so Anlin suggested the idea of having a female* hacking away on a laptop atop of the logo. I also wanted to present the hackathon as a comfortable environment to be in, hence the addition of the pillows and blanket to achieve a cozy impression.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/0*CFOpKGlra50vs9Nu.png" /><figcaption>The main graphic: a female* hacker at work</figcaption></figure><h4>Posters</h4><p>We made physical posters to hang up around campus but didn’t get the chance to put many up. After all, we didn’t really rely on it as an effective marketing strategy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jImEvVOEDNpZuUMM.png" /></figure><h4>Stickers</h4><p>For stickers, I had the logo and a few hexagon-shaped explorations in mind. I created a separate isometric “work office” vector illustration as the background. Avery also had a go at creating a cmd-f panda bear sticker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Zn3m8bv1ZgEqLyyr.png" /><figcaption>Sticker explorations</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*40jCjw_v3UBxsIRl.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*iXi92jL9UoOuz8p2.jpeg" /><figcaption>The final sticker designs</figcaption></figure><h4>Event Signage</h4><p>A few samples of how our signage designs looked like. These feature an overlay of tiles created by Zoe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/0*1BJBp_vDj7IaUpBP.png" /></figure><h4>Snapchat filter</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/0*MG7wtMAW8JWodTuf.png" /><figcaption>Created a snapchat filter for fun</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0TdJb60kxdrtek1H.png" /><figcaption>Snapchat stats 🤔</figcaption></figure><h4>Ceremony Slides</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ioqh-1D98GoHfaUt.png" /></figure><h4>Takeaways</h4><p>Designing for a new hackathon is difficult. Despite beginning these efforts nearly 6 months in advance, we encountered many setbacks because almost the entire team consisted of first-time hackathon organizers. We were all learning together along the way, but I can honestly say that I am super lucky to have had the opportunity to work with such a supportive and accomplished team of women* to bring cmd-f to life. Without them, I’m not sure it would be the same.</p><p>In spite of the difficulties, designing for cmd-f was tremendously rewarding. It’s a really exhilarating feeling to see your designs on the back of an individual’s laptop. Reflecting back, there was so much more that I could have done, but that just means I have a lot to improve on and learn about in terms of design. Using this mentality as motivation, I’m looking forward to delivering even greater experiences as a designer for the upcoming year. Here’s to the next iteration of cmd-f! 👏</p><p><em>Thanks for reading!<br>Words by </em><a href="https://medium.com/@jessicawu.9898"><em>Jessica Wu</em></a><em>, 2019/2020 Design Director</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/125/0*fCTu3Qon3JKAnLbJ.png" /><figcaption><strong>nwPlus</strong> <strong>UBC</strong> — the tech community you love behind UBC Local Hack Day, nwHacks, and cmd-f<br>Stay in touch: <a href="https://twitter.com/nwplusubc"><strong>Twitter</strong></a><strong> | </strong><a href="https://www.facebook.com/nwplusubc/"><strong>Facebook</strong></a><strong> | </strong><a href="http://instagram.com/nwplusubc"><strong>Instagram</strong></a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d25afe16a0b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nwplusubc/designing-cmd-f-vancouvers-first-all-female-hackathon-9d25afe16a0b">Designing cmd-f, Vancouver’s first all-female* hackathon</a> was originally published in <a href="https://medium.com/nwplusubc">nwPlus</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>