Skip to content

mironovGIB/typescript-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Group-IB logo

Test assignment (Typescript)

Your goal is to implement a frontend of a notification system based on Server-Sent Events (SSE) technology, following the restrictions and design layout described below.

You may use this project template with prepared webpack config, eslint config and tsconfig.

You also need to use a backend server that implements sending messages using SSE technology. Documentation on how to start the server and how to work with it is described here.

Messages like this one come from the backend:

{
  "msg_id": "1231-123123-123213-1232",
  "time": 1678454378,
  "msg": "This is notification message"
}

Application layout design is described here. Please try making it as close to the layout as possible, but you don't have to follow the prototype exactly.

Restrictions

  • Use Typescript (no JS)
  • Use dependesies listed in package.json, don't install something else
  • Write code according to the eslint config
  • Build via webpack with ts-loader (just use predefined configs)

Main tasks (implement first)

All of the following main tasks must be completed for the test assignment to be considered completed:

  • Implement 2 pages according to layout
  • The maximum number of messages simultaneously displayed on the page is regulated by the "notifications count" parameter
  • Messages can be placed at the top left (Position 1) or right (Position 2) (messages grow downwards). And at the bottom left (Position 3) or right (Position 4) edge (messages grow upwards). The position of messages on the page is regulated by the "notifications position" parameter
  • The message should disappear from the screen after the timeout specified by the parameter "notifications disappear time"

Additional tasks (implement at will)

All of the following additional tasks are optional, but give additional points. Each additional task will be evaluated separately, but they must be done in the order described below, as some tasks are interdependent. The more additional tasks will be done the higher the final score. Additional tasks:

  • The message can be closed by clicking X in the upper right corner of the message
  • If you hover over a message, its timeout is reset, and while the focus is on the message, it does not disappear. As soon as the focus goes away, the timeout countdown starts again
  • If the messages do not fit on the screen, then show the maximum number of messages that can be FULLY rendered on the page, the oldest messages are truncated
  • If multiple browser tabs are open, closing a message propagates to all currently open tabs (when closing a message, it disappears on all tabs)
  • Changing the settings is applied immediately on all tabs (without reloading)

If any part of the task is not clear - please do not hesitate to contact us with your questions, we are always happy to help and explain.

About

Test assignment for frontend developer role in Group-IB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published