Skip to content

Custom context menus #33

@viktor-yakubiv

Description

@viktor-yakubiv

Good enhancement for the Reader we may already implement is context-driven help. When a user selects the text during reading, the context menu below is shown in a second above the selected text (or below the text if there is not enough free space).

Annotating context menu

The menu design includes the annotation colors and primarily was designed for annotating. Although, the first line of the menu is useful even without annotation functionality and may include:

  • copying the text
  • searching in web
  • searching in Wikipedia (see below 👇)

Also, where is possible we can append the menu by contextual wikification. For example, when there exists a corresponding Wikipedia page for the selected text (when a couple of words selected only) we show a term description above the menu.

It would be nice to add 'Search in CORE option too. However, this should be investigated more deeply because people would not like to change the context when they are reading the paper.

Inspiration

The context menu feature is borrowed from Google Play Books app for Android. You may find how it works if install the app and in the reading mode select the text.

The wiki-notification may be explored on any Wikipedia page when you hover on any link. You will see the brief description of the term you are pointing at.

Open questions

  1. How triggering a menu can be implemented in the React flow?
  2. How the menu look can be customized?
  3. Where the menu actions should be stored and how the data should update?
  4. How actions should be performed?

More sketches

Let me know if you need more sketches. I will append these below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions