Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce ScheduleElement #101

Merged
merged 43 commits into from
Feb 21, 2023
Merged

Introduce ScheduleElement #101

merged 43 commits into from
Feb 21, 2023

Conversation

yhabteab
Copy link
Member

No description provided.

@cla-bot cla-bot bot added the cla/signed label Oct 25, 2022
@yhabteab yhabteab force-pushed the crontab-widget branch 2 times, most recently from 8441420 to fbb5638 Compare October 31, 2022 07:43
@nilmerg nilmerg added this to the v0.7.0 milestone Nov 8, 2022
@nilmerg nilmerg added the enhancement New feature or request label Nov 8, 2022
@yhabteab yhabteab force-pushed the crontab-widget branch 4 times, most recently from e80846c to 0da9cb2 Compare November 14, 2022 13:09
@yhabteab
Copy link
Member Author

Copy link
Contributor

@flourish86 flourish86 left a comment

Choose a reason for hiding this comment

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

I’m not sure, if this is a bug, but the occurences are displayed wrong or not set correctly:
Also the seconds seem to be ignored.
Screenshot 2022-11-17 at 16 42 58
The occurences should be 16:25:37, 16:26:37, 16:27:37

Screenshot 2022-11-17 at 16 44 44

Analogous are the other regular ones.

@flourish86
Copy link
Contributor

flourish86 commented Nov 17, 2022

  • Please preselect the option “Each” here and accordingly disable the inputs for the one, that is not selected.
    Screenshot 2022-11-17 at 16 46 24

  • Also for annually …
    Screenshot 2022-11-17 at 16 47 24

  • Besides that, either remove or enable the “Every” field.

But all in all it already looks pretty good. Thanks so far.

@yhabteab
Copy link
Member Author

I’m not sure, if this is a bug, but the occurences are displayed wrong or not set correctly:

You need to checkout this branch as well. Icinga/ipl-scheduler#12

Also the seconds seem to be ignored.

That's to be expected!

Copy link
Member

@nilmerg nilmerg left a comment

Choose a reason for hiding this comment

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

Additionally:

  • Please use the LESS variables of this library, not these by Icinga Web
  • Avoid unnecessary specificity
    • If unavoidable, keep the ruleset compact and put other rules (e.g. style) in less specific rulesets

asset/css/crontab.less Outdated Show resolved Hide resolved
asset/css/crontab.less Outdated Show resolved Hide resolved
@yhabteab
Copy link
Member Author

I don’t know why but when using @base-disabled instead of @disabled-gray as a text color doesn’t seem to work.
Bildschirm­foto 2022-11-18 um 16 22 54

@nilmerg
Copy link
Member

nilmerg commented Nov 18, 2022

I don't know as well, but if you take a look at the notice at the start of variables.less you can see you shouldn't use this directly anyway.

@flourish86
Copy link
Contributor

  • Please also change the occurences layout.

Rectangle

Having 3 occurences listed is also a lot less clear. While it makes sense for the custom options, it doesn’t for the less complex non custom ones.

  • So let’s strip them away for the non-custom ones and show only one occurence, since this is perfectly sufficient.

  • It would also make it more clear, to highlight the exact pieces of information, that are important, so it’s easier to grasp the difference.

Rectangle 2

Rectangle 3

@flourish86
Copy link
Contributor

flourish86 commented Nov 21, 2022

I’m not sure about the markup here, since it’s not valid html having different items than li in a ul, see here "Permitted content“ https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul.

Screenshot 2022-11-21 at 10 42 31

I think it’s totally possible to do it like this.

<ul>
  <li>
    <label>
      <input type=“checkbox”>
      …
    <label>
  </li>
…
</ul>

@yhabteab yhabteab force-pushed the crontab-widget branch 2 times, most recently from dea6d43 to 21fe5a8 Compare November 24, 2022 08:06
@cla-bot cla-bot bot removed the cla/signed label Nov 24, 2022
@bobapple
Copy link
Member

@cla-bot check

@cla-bot cla-bot bot added the cla/signed label Nov 24, 2022
@Icinga Icinga deleted a comment from cla-bot bot Nov 24, 2022
@nilmerg
Copy link
Member

nilmerg commented Feb 17, 2023

Please take a look at the tests. They fail for another reason now.

src/FormElement/ScheduleElement.php Outdated Show resolved Hide resolved
src/FormElement/ScheduleElement.php Outdated Show resolved Hide resolved
@yhabteab yhabteab requested a review from nilmerg February 17, 2023 12:26
Copy link
Member

@nilmerg nilmerg left a comment

Choose a reason for hiding this comment

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

Please allow configuration of id protection by an attribute, just like you did internally.

Copy link
Member

@nilmerg nilmerg left a comment

Choose a reason for hiding this comment

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

LGTM!

Should not be merged until Icinga/ipl-scheduler#25 is merged.

@nilmerg nilmerg merged commit 82fa21a into master Feb 21, 2023
@nilmerg nilmerg deleted the crontab-widget branch February 21, 2023 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants