Page MenuHomePhabricator

[web] Introduce navigation arrows
ClosedPublic

Authored by tomek on May 26 2022, 8:36 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 30, 11:16 PM
Unknown Object (File)
Sun, Jun 30, 6:54 PM
Unknown Object (File)
Wed, Jun 26, 9:35 PM
Unknown Object (File)
Wed, Jun 26, 10:06 AM
Unknown Object (File)
Mon, Jun 24, 9:00 PM
Unknown Object (File)
Sat, Jun 22, 10:05 PM
Unknown Object (File)
Fri, Jun 21, 7:55 PM
Unknown Object (File)
Fri, Jun 21, 7:55 PM

Details

Summary

Add arrows that allow users to navigate forward and backward in history.
https://www.figma.com/file/a1nkbWgbgjRlrOY9LVurTz/Comm-%2F-Desktop-app?node-id=1272%3A88750

arrows.png (468×812 px, 36 KB)

Test Plan

Open the app and check if arrows are displayed correctly.
Click right arrow - nothing should change.
Do a couple of tests by clicking left and right arrows, both in app and in the browser and by clicking some links. Everything should work.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.May 26 2022, 8:43 AM

Code looks good to go


I know these buttons are in the Figma designs, but isn't it redundant to include our own back/forward navigation buttons when the browser already provides a UI for that? I probably should have asked before work started/diffs were put up.

Left a note here on Linear: https://linear.app/comm/issue/ENG-1193#comment-d05aa9fb

This revision is now accepted and ready to land.May 27 2022, 10:12 AM

@atul's point is a valid one... we might want to hide these behind a flag for now, and reenable it for macOS / Windows when we get around to building out the Electron app

Hide arrows behind a flag

This revision was automatically updated to reflect the committed changes.