Duration limit customisation

Open
#381 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
32/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, node.js

Research direction

Start by locating the Facts.activeVisitors and DomainStatistics.durations API resolvers and the Settings panel sections around Events and Permanent Tokens. Trace how settings are stored and consumed, then verify that a persisted duration value with the requested range and units affects both resolvers and is presented clearly in the UI.

Written by the indexing model from the issue text.

Description

🐣 Is your feature request related to a problem? Please describe.

I'm confused when I see long duration in stats and it just gone.

💡 Describe the solution you'd like

I would like to have an option to set another duration limit. After code analysis, I know the limit is 30 minutes.

The perfect solution would have dedicated section in Settings panel, between Events and Permanent Tokens sections.
The section should have nice UI, including:

  • integer value range input from 1 to 60
  • switch/select for unit - minutes or hours

As far I noticed, the change will have an impact in API resolvers:

  • Facts.activeVisitors
  • DomainStatistics.durations

❓ Describe alternatives you've considered

Minimal solution could be by adding environment variable.
But I'm not a big fun of this approach as it's not intuitive and needs documentation reading.

📋 Additional context

In my case, I have tutorial like contents on my pages so the reader could need more time to spend at my pages than half an hour.
This caused by they need to read an article first, understand it and try to apply the solution to own project.
It's time consuming and I feel 30 minutes is too short for this scenario.

I need to change it, perhaps a few times, and figure out the best duration limit for me.
I can involve to implement this feature :)

Dominant language
JavaScript
Stars
4.7k
Forks
386
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from electerious/Ackee

All issues in electerious/Ackee

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.