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

Submit timesheet rework #4

Open
wants to merge 15 commits into
base: development
Choose a base branch
from
Open

Submit timesheet rework #4

wants to merge 15 commits into from

Conversation

kobemertens
Copy link
Collaborator

@kobemertens kobemertens commented Dec 27, 2024

The timesheet submit buttons were causing issues because they cannot be reverted. This brings back the checkboxes instead.

@kobemertens kobemertens changed the base branch from master to development December 27, 2024 11:16
@kobemertens kobemertens requested a review from erikap December 27, 2024 11:19
app/components/timesheet-actions.js Outdated Show resolved Hide resolved
app/components/timesheet-actions.js Outdated Show resolved Hide resolved
app/components/timesheet-actions.js Outdated Show resolved Hide resolved
app/components/timesheet-actions.js Outdated Show resolved Hide resolved
app/components/timesheet-actions.js Outdated Show resolved Hide resolved
app/components/checkbox.gjs Outdated Show resolved Hide resolved
@kobemertens kobemertens requested a review from erikap December 30, 2024 10:11
@@ -95,6 +111,12 @@ const IconSvg = <template>
d='M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z'
clip-rule='evenodd'
></path>
{{else if (eq @skin 'info')}}
<path
Copy link
Member

Choose a reason for hiding this comment

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

Can you use icons from bootstrap-icons with svg-jar. Makes it more consistent/readable/maintainable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed in 6ac8db0


export default class CheckboxComponent extends Component {

onChange = (event) => {
Copy link
Member

Choose a reason for hiding this comment

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

Use active naming for action handler. E.g. change()

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed in 5362e77

});
@action
clickAbsence(checked) {
if (!checked) {
Copy link
Member

Choose a reason for hiding this comment

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

Nickpicking, but why checking the negative case while you have similar if-else branches (and in clickTimesheet the check is reversed)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed in 61a0b6c

@kobemertens kobemertens requested a review from erikap January 7, 2025 14:53
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