Skip to content

Conversation

@omelao
Copy link
Contributor

@omelao omelao commented Jun 30, 2022

I don't know if we need to consider some conflict between Modified From/To and Modified Dropdown filters. I don't think it would be a problem. So this is it.

@omelao omelao linked an issue Jun 30, 2022 that may be closed by this pull request
@omelao omelao requested a review from ysbaddaden June 30, 2022 15:32
@diegoliberman
Copy link
Contributor

@omelao it could be useful to add a couple of screenshots in the PRs. Showing how it looked before the PR and how it will look after merging. This will help the reviewer and any watcher to (perhaps) spot issues in advance. We don't do this for all PRs, perhaps because we forget, or because we think it isn't necessary. :)

@omelao omelao force-pushed the 1598-show-date-last-modified-date-in-samples branch from 899caaa to 8f4469f Compare June 30, 2022 22:20
@omelao
Copy link
Contributor Author

omelao commented Jun 30, 2022

Before
image

After
image

@ysbaddaden ysbaddaden linked an issue Jul 1, 2022 that may be closed by this pull request
Copy link
Contributor

@ysbaddaden ysbaddaden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job! Just one big issue to fix; the rest is to improve things further.

That being said, I think we should have either a pair of from/to date selectors or a drodpown selector to select a range, but both is too much. What do you think @jkicillof and @diegoliberman?

@diegoliberman
Copy link
Contributor

diegoliberman commented Jul 1, 2022

That being said, I think we should have either a pair of from/to date selectors or a drodpown selector to select a range, but both is too much. What do you think @jkicillof and @diegoliberman?

I agree. The From - To is the most flexible option, so I would keep that. Sorry for the confusion, the dropdown was an alternative in case it was much easier to do.

cc @omelao

@jkicillof
Copy link

jkicillof commented Jul 1, 2022

Do we really need from/to? could a list of time spans be enough? something like last week, last month, last year. If we need and extra row to fit all the filters we could use something like this: collapsed, expanded and leave visible by default the most common ones. I don't know if this is already implemented somewhere.

@jkicillof
Copy link

A few style comments:

  1. Combo text should be black
    image
  2. Placeholder text should be grey like the label
    image

@diegoliberman
Copy link
Contributor

diegoliberman commented Jul 1, 2022

Do we really need from/to? could a list of time spans be enough? something like last week, last month, last year.

I prefer to be more flexible right now, and allow the user to select whatever range they need.

Co-authored-by: Julien Portalier <julien@portalier.com>
@omelao
Copy link
Contributor Author

omelao commented Jul 7, 2022

Do we really need from/to? could a list of time spans be enough? something like last week, last month, last year.

I prefer to be more flexible right now, and allow the user to select whatever range they need.

Yes, I think it's better too. Should I remove the Dropdown?

@diegoliberman
Copy link
Contributor

@omelao you can move ahead with deleting the dropdown. Let us know if you need anything. Thanks!

@omelao
Copy link
Contributor Author

omelao commented Jul 12, 2022

Yes I removed, I will just see if I can change the placeholder of a input date field.

@omelao omelao requested a review from ysbaddaden July 12, 2022 15:33
Copy link
Contributor

@ysbaddaden ysbaddaden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just left a few comments.

Carlos Zillner added 2 commits July 29, 2022 09:45
Checking if the parameter is present before
checking if it's inside the sort_column list
@omelao
Copy link
Contributor Author

omelao commented Jul 29, 2022

@straight-shoota @ysbaddaden what do you think about this comment?

/*
This is kind of a exception solution. Because input date's behavior are different.
Consider this points:

  • input date's placeholders doesn't work
  • even if at some point in the future it works, date format's depends of the browser and OS
  • CSS selectors like :empty, :valid, [value=''], :placeholder-shown doesn't work
  • Google Chrome has specific selector to coloring the content of this kind of fields, but other browser doesn't

Finally you can test if something changes on the future on this fiddle:
https://jsfiddle.net/omelao/hsk8vyax/15/
*/

Maybe I could put all of this on the fiddle, and just link the fiddle on the comment.

I was changing the color for Chrome only. So I removed
the webkit selector. I put a comment inside input date
javascript too, to describe the problem and prevent
other developers to waste time with this.
@omelao omelao merged commit 7100246 into main Aug 1, 2022
@omelao omelao deleted the 1598-show-date-last-modified-date-in-samples branch August 1, 2022 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show date last modified date in Samples

6 participants