core: English relative date filters read wrong in describeView

Open Beginner friendly
#925 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript

Research direction

The wrong phrases come from DESCRIBE_LABELS.en.ranges and the relative labels; until #798 lands, start in describe.js where describeView builds the date filter text. Reproduce by describing a view with a relative date filter for this year, 2 months back and 1 day ahead. Done when the three phrases read "Date is in this year", "Date is before the last 2 months" and "Date is in the next day", with a test for each relative range.

Written by the indexing model from the issue text.

Description

area:core bug

describeView (pivotkit-core) writes broken English for relative date filters:

  • "Date is in the this year"
  • "Date is in the before 2 months"
  • "Date is in the next 1 day"

The MCP server and the CLI show these words to people and models.

Fix the English phrases (DESCRIBE_LABELS.en.ranges and relative, once #798 lands; describe.js until then): "Date is in this year", "Date is before the last 2 months", "Date is in the next day". Add tests for each relative range.

Found while building #798.

Dominant language
JavaScript
Stars
1
Forks
1
Avg merge
2h 59m
Merged PRs (30d)
404

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 eizedev/pivotkit

All issues in eizedev/pivotkit

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.