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

Minor changes and bugfixes #33

Merged
merged 24 commits into from
Jan 14, 2025
Merged

Minor changes and bugfixes #33

merged 24 commits into from
Jan 14, 2025

Conversation

jeppekroghitk
Copy link
Collaborator

@jeppekroghitk jeppekroghitk commented Jan 13, 2025

Link to ticket

#3238

Description

The following changes has been made:

  • Made weekends optional when copying an entry forward.
  • Enter now submits the entry when creating or editing.
  • Only updating frontend when deleting timelog.

Screenshot of the result

N/A

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

If your code does not pass all the requirements on the checklist you have to add a comment explaining why this change
should be exempt from the list.

Additional comments or questions

If you have any further comments or questions for the reviewer please add them here.

@jeppekroghitk jeppekroghitk changed the title minor hotfixes Minor changes and bugfixes Jan 13, 2025
</div>
<div class="entry-copy-weekend-checkbox">
<input type="checkbox" name="entryCopyWeekend" id="entry-copy-weekend" />
<label for="entry-copy-weekend"><small>Inkluder weekender</small></label>
Copy link
Contributor

Choose a reason for hiding this comment

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

{{ __("Inkluder weekender") }}

<div class="entry-copy-overwrite-checkbox">
<input type="checkbox" name="entryCopyOverwrite" id="entry-copy-overwrite" />
<label for="entry-copy-overwrite"><small>Overskriv allerede registrerede felter</small></label>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

{{ __("Overskriv allerede registrerede felter") }}

@@ -707,10 +755,10 @@ jQuery(document).ready(function ($) {
</div>`;
},
option: function (item, escape) {
return `<div><span>${escape(item.text)} <span><i class="fa fa-angle-right fa-xs"></i> ${escape(item.projectName)} <small>(${escape(item.value)})</small> <small style="float: right;">${item.editorId === pluginSettings.userId ? '<i class="your-task far fa-user" title="To-do is assigned to you"></i>' : ""}(${escape(item.type)})</small></span></span></div>`;
return `<div><span>${escape(item.text)} <span><i class="fa fa-angle-right fa-xs"></i> ${escape(item.projectName)} <small>(${escape(item.value)})</small> <small style="float: right;">${item.editorId === pluginSettings.userId ? '<i class="your-task far fa-user" title="To-do is assigned to you"></i>' : ""}${item.type.toLowerCase() !== "task" ? `(${escape(item.type)})` : ""}</small></span></span></div>`;
Copy link
Contributor

Choose a reason for hiding this comment

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

what is this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's the html definition of the options in the to-do search dropdown. The addition lowercases the type name, because we had instances of to-dos with the type "Task" and "task", causing problems cause letter case was not taken into consideration.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

And! We only want to display types not equal to "task".

It clutters a lot with "task" written on every to-do, so we figured that it would be better just to print it on to-dos with another type than task.

Copy link
Contributor

@sinejespersen sinejespersen left a comment

Choose a reason for hiding this comment

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

small things, the item.type.toLowerCase() !== "task", does it take the subtask type into account?

@jeppekroghitk jeppekroghitk merged commit 611a2fb into develop Jan 14, 2025
11 checks passed
@jeppekroghitk jeppekroghitk deleted the minor-hotfixes branch January 14, 2025 11:08
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.

2 participants