Implementation of Schedules and Timelines

Rate this content

Planby is a React based component for a quick implementation of Schedules, Timelines, Electronic Program Guide, Music/Sport events, Calendar Planner  and many more ideas.  It uses a custom virtual view which allows you to operate on a really big number of data. The component has a simple API that you can easily integrate with other third party UI libraries. The component theme is customised to the needs of the application design.

6 min
23 Oct, 2023

AI Generated Video Summary

Today's Talk focuses on implementing schedules and timelines using the PlanBy component. PlanBy is a React-based tool that offers a simple interface and features like sidebar, timeline, layout, and live program refreshing. It uses a custom virtualized view to handle large amounts of data efficiently. The component allows for easy customization and can be used to build schedulers, conference agendas, TV guides, and more. Installation is straightforward, requiring only a few components, one hook, and two wrappers.

1. Introduction to Timelines and PlanBy Component

Short description:

Today I'm going to talk about how to implement schedules and timelines. Timelines are simple tools that display time, cyber, and content. Users can view future and past events horizontally and vertically. The user perspective focuses on time, cyber, and content. Without optimization, having many elements on the website can cause performance issues and crashes. Positioning programs in the layout can also be problematic. Good and bad solutions depend on project goals and user interaction. The PlanBy component is a React-based tool for implementing timelines quickly and simply.

Hi everyone. Today I'm going to talk about how to implement schedules and timelines. I'm sure each of us has faced a number of problems with timelines. My name is Karol Kozer. I am senior software engineer and I am the creator of PlanBy and OpenSource project.

Let me say a few words about timelines. Timeline is a really simple tool that displays time, cyber and content. At the top, we have a timeline with time. On the left there is a sidebar listing the providers. In the middle, there is a layout with events positioned in a timeline. Basically, users have the possibility to view all future and past events for all given providers, both horizontally and vertically.

Let's take a look at what problems we have with timelines. Let's focus on how it looks from the user perspective. The user can see only the time, cyber and the content. Basically, the user can move around the layout, both horizontally and vertically to see future and past events. I would like to also mention that our user doesn't care about the technical implementation and solution in our app.

Let me cast some light on how it works under the hood. Without any optimization and performance solutions, we can have, let's say, 5,000 elements on the website. The most important thing in this type of feature is performance versus really big data on the website. Basically, keeping all the elements without any optimization and performance solutions on the page can lead to terrible slowdowns of the application, which eventually caused the browser to crash. Also the positioning of all programs in the layout seems simple, but sometimes could also be problematic.

Let's focus on the following question. Are they good and bad solutions? I would say that this is a really complex topic and it only depends on what would you like to achieve or what is the right solution for your project. Also, you have to keep in mind how to quickly interact with the user. You have to think about features like filters, reminders, modal and many, many more. Finally, I would like to introduce you to the plan by component. The definition of plan by is quite straightforward. Plan by is a React-based component that lets you implement your own timeline so fast and simple. That's the whole definition, nothing crazy. Plan by is developed with React and TypeScript with minimal amount of resources.

2. PlanBy Component Features and Installation

Short description:

Plan by uses a custom virtualized view to handle large amounts of data and position elements in the schedule. It renders only visible elements, making it faster and more efficient. The component has a simple interface with features like sidebar, timeline, layout, and live program refreshing. You can customize the layout and easily build schedulers, conference agendas, TV guides, and more. Installation is straightforward, requiring only a few components, one hook, and two wrappers.

Plan by uses a custom virtualized view, or you can call it timeline virtualized, which allows you to operate on a really big amount of data and position all the elements in your schedule out of the box. And this is really, really cool.

Next, I would like to focus on how plan by works. Basically, Plan by only renders the elements which are visible to the user and performs all calculations in the background. When the users scrolls down or to the right, Plan by is refreshing the view with only visible elements to the user. All the elements outside of the layout are not included in the HTML structure, making the Plan by component much faster and more efficient.

Plan by has a simple interface and includes all the necessary features like sidebar, timeline, layout, and live program refreshing. In addition, there is an optional feature allowing to hide any element you don't want to include in the layout. Basically, component has a really simple API that allows you to implement your own items along with your preferences. You can use plan by styles components to develop main features, you know, or make custom styles in line with the chosen design.

Let's take a look what we can build with plan by. Using plan by you can build wherever you want, schedulers, conference, music events, TV guides, calendar planners, and many, many more ideas. The installation of the component is really easy. You just need to install the package using yarn or npm. The setup is very simple and minimalistic. The setup is very simple and minimalistic. I really like that. All you need to do is to import a few components, one hook and two wrappers. And that's it. Let's hold the setup. This is really, really simple, and you can create beautiful schedules like this one in a few minutes. Thank you very much for your time and see you at React Advanced London.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

TechLead Conference 2023TechLead Conference 2023
35 min
A Framework for Managing Technical Debt
Let’s face it: technical debt is inevitable and rewriting your code every 6 months is not an option. Refactoring is a complex topic that doesn't have a one-size-fits-all solution. Frontend applications are particularly sensitive because of frequent requirements and user flows changes. New abstractions, updated patterns and cleaning up those old functions - it all sounds great on paper, but it often fails in practice: todos accumulate, tickets end up rotting in the backlog and legacy code crops up in every corner of your codebase. So a process of continuous refactoring is the only weapon you have against tech debt.In the past three years, I’ve been exploring different strategies and processes for refactoring code. In this talk I will describe the key components of a framework for tackling refactoring and I will share some of the learnings accumulated along the way. Hopefully, this will help you in your quest of improving the code quality of your codebases.

React Summit 2023React Summit 2023
24 min
Debugging JS
As developers, we spend much of our time debugging apps - often code we didn't even write. Sadly, few developers have ever been taught how to approach debugging - it's something most of us learn through painful experience.  The good news is you _can_ learn how to debug effectively, and there's several key techniques and tools you can use for debugging JS and React apps.
React Advanced Conference 2022React Advanced Conference 2022
22 min
Monolith to Micro-Frontends
Many companies worldwide are considering adopting Micro-Frontends to improve business agility and scale, however, there are many unknowns when it comes to what the migration path looks like in practice. In this talk, I will discuss the steps required to successfully migrate a monolithic React Application into a more modular decoupled frontend architecture.
React Advanced Conference 2023React Advanced Conference 2023
22 min
Power Fixing React Performance Woes
Next.js and other wrapping React frameworks provide great power in building larger applications. But with great power comes great performance responsibility - and if you don’t pay attention, it’s easy to add multiple seconds of loading penalty on all of your pages. Eek! Let’s walk through a case study of how a few hours of performance debugging improved both load and parse times for the Centered app by several hundred percent each. We’ll learn not just why those performance problems happen, but how to diagnose and fix them. Hooray, performance! ⚡️
React Summit 2023React Summit 2023
24 min
Video Editing in the Browser
Video editing is a booming market with influencers being all the rage with Reels, TikTok, Youtube. Did you know that browsers now have all the APIs to do video editing in the browser? In this talk I'm going to give you a primer on how video encoding works and how to make it work within the browser. Spoiler, it's not trivial!

Workshops on related topic

React Summit 2023React Summit 2023
170 min
React Performance Debugging Masterclass
Featured WorkshopFree
Ivan’s first attempts at performance debugging were chaotic. He would see a slow interaction, try a random optimization, see that it didn't help, and keep trying other optimizations until he found the right one (or gave up).
Back then, Ivan didn’t know how to use performance devtools well. He would do a recording in Chrome DevTools or React Profiler, poke around it, try clicking random things, and then close it in frustration a few minutes later. Now, Ivan knows exactly where and what to look for. And in this workshop, Ivan will teach you that too.
Here’s how this is going to work. We’ll take a slow app → debug it (using tools like Chrome DevTools, React Profiler, and why-did-you-render) → pinpoint the bottleneck → and then repeat, several times more. We won’t talk about the solutions (in 90% of the cases, it’s just the ol’ regular useMemo() or memo()). But we’ll talk about everything that comes before – and learn how to analyze any React performance problem, step by step.
(Note: This workshop is best suited for engineers who are already familiar with how useMemo() and memo() work – but want to get better at using the performance tools around React. Also, we’ll be covering interaction performance, not load speed, so you won’t hear a word about Lighthouse 🤐)
React Summit Remote Edition 2021React Summit Remote Edition 2021
87 min
Building a Shopify App with React & Node
Shopify merchants have a diverse set of needs, and developers have a unique opportunity to meet those needs building apps. Building an app can be tough work but Shopify has created a set of tools and resources to help you build out a seamless app experience as quickly as possible. Get hands on experience building an embedded Shopify app using the Shopify App CLI, Polaris and Shopify App Bridge.We’ll show you how to create an app that accesses information from a development store and can run in your local environment.
JSNation 2022JSNation 2022
41 min
Build a chat room with Appwrite and React
API's/Backends are difficult and we need websockets. You will be using VS Code as your editor, Parcel.js, Chakra-ui, React, React Icons, and Appwrite. By the end of this workshop, you will have the knowledge to build a real-time app using Appwrite and zero API development. Follow along and you'll have an awesome chat app to show off!
GraphQL Galaxy 2021GraphQL Galaxy 2021
164 min
Hard GraphQL Problems at Shopify
At Shopify scale, we solve some pretty hard problems. In this workshop, five different speakers will outline some of the challenges we’ve faced, and how we’ve overcome them.

Table of contents:
1 - The infamous "N+1" problem: Jonathan Baker - Let's talk about what it is, why it is a problem, and how Shopify handles it at scale across several GraphQL APIs.
2 - Contextualizing GraphQL APIs: Alex Ackerman - How and why we decided to use directives. I’ll share what directives are, which directives are available out of the box, and how to create custom directives.
3 - Faster GraphQL queries for mobile clients: Theo Ben Hassen - As your mobile app grows, so will your GraphQL queries. In this talk, I will go over diverse strategies to make your queries faster and more effective.
4 - Building tomorrow’s product today: Greg MacWilliam - How Shopify adopts future features in today’s code.
5 - Managing large APIs effectively: Rebecca Friedman - We have thousands of developers at Shopify. Let’s take a look at how we’re ensuring the quality and consistency of our GraphQL APIs with so many contributors.
JSNation 2023JSNation 2023
57 min
0 To Auth In An Hour For Your JavaScript App
Passwordless authentication may seem complex, but it is simple to add it to any app using the right tool.
We will enhance a full-stack JS application (Node.js backend + Vanilla JS frontend) to authenticate users with One Time Passwords (email) and OAuth, including:
- User authentication – Managing user interactions, returning session / refresh JWTs- Session management and validation – Storing the session securely for subsequent client requests, validating / refreshing sessions
At the end of the workshop, we will also touch on another approach to code authentication using frontend Descope Flows (drag-and-drop workflows), while keeping only session validation in the backend. With this, we will also show how easy it is to enable biometrics and other passwordless authentication methods.