ampproject / ampproject/amphtml

New variable to determine direction of 'manualAdvance' storyAdvancementMode

Open
#33,582 1 comment 0 reactions 0 assignees View on GitHub
P3: When Possible Stale Type: Feature Request WG: stories
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

Currently, there is no easy way to distinguish between a 'manualAdvance' going to the next page or previous page (forwards or backwards).

There is `storyPageId` and `storyPreviousPageId` to be able to determine direction, but you don't always have all the context necessary at the reporting end.

Perhaps `${manualAdvanceDirection}` could be introduced with values 'left' or 'right' (or something similar).

Contributor guide

Open the contributing guide

Research direction

Start by tracing the storyAdvancementMode manualAdvance path and the existing storyPageId and storyPreviousPageId reporting values. Determine where direction can be exposed and verify that manual advances consistently report a clear forward or backward value; the issue does not name a file or test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.