primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Calendar - add option to change step size in yearpicker

Open bjuergens opened this issue 9 months ago • 7 comments

Hi,

This is my first time contribution. I am not sure about the standard operating procedure. If I made a mistake, please point me in the right direction.

As suggested by the contribution-guidelines, I opened a discussion: https://github.com/orgs/primefaces/discussions/1780

After reading the text in the PR-template (see below), I am no longer certain such a discussion is necessary, since this is a small scale feature.

Feature Requests

Due to company policy, we are unable to accept feature request PRs with significant changes as such cases has to be implemented by our team following our own processes. Smaller scaled feature implementations such as adding a property to a component will be considered for merging.

I think this qualifies as "Smaller scaled feature implementations".


Here is what this PR does:

It changes the default step-size for the year picker from 10 to 20 [1]. And it adds a input-parameter to change the stepsize [2]

In the discussion I explain, why I think this feature is usefull. (But I guess it would be ok to let the discussion-page die, and instead move discussions here)

[1]:

grafik

[2]:

2024-05-01_17-42 yearpickerstep

bjuergens avatar May 01 '24 16:05 bjuergens

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview May 1, 2024 9:03pm

vercel[bot] avatar May 01 '24 16:05 vercel[bot]

Could you please confirm how this appears on mobile and tablet screens? I'm concerned that the default step size might cause some parts to be cut off.

RogueTea avatar May 01 '24 16:05 RogueTea

size 20 on firefox/galaxy s10: grafik

size 20 on chrome/galaxy s8 grafik

size 10 on firefox/galaxy s10: grafik

I feel like these buttons are too small to be comfortable on mobile. But I guess that would be a different issue.

bjuergens avatar May 01 '24 18:05 bjuergens

sorry for forcepushing.

I squashed some commits, that would add clutter individually. Also I forgot to setup name/mail for git on this machine, and I didn't want "Your Name " and "Your Mail" to pollute the history.

bjuergens avatar May 01 '24 21:05 bjuergens

Hi,

Could you please create an issue and link the PR with the issue?

cetincakiroglu avatar May 09 '24 08:05 cetincakiroglu

I can not create an issue (I think?). I can only report bugs. When I click the "feature request" button, I get redirected to the discussion page

grafik

bjuergens avatar May 14 '24 21:05 bjuergens

I completely missed the "open a blank issue" button, sorry.

I now made the issue, as requested: https://github.com/primefaces/primeng/issues/15634

bjuergens avatar May 21 '24 07:05 bjuergens

Hi,

Thanks for the effort and support, merging the PR and making it 10 as default value.

cetincakiroglu avatar May 30 '24 12:05 cetincakiroglu