-
Notifications
You must be signed in to change notification settings - Fork 17
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
[OP#49859] add create work package form #500
Conversation
80a8a89
to
3ad1332
Compare
b93fe67
to
9faf221
Compare
9faf221
to
0a93e48
Compare
Note that the CI is failing currently because of: https://community.openproject.org/projects/nextcloud-integration/work_packages/50501 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
first quick review
I have gone through UI following figma. Some changes can be made to it to make it look nicer.
|
createWP.mp4Also Try this in your machine. |
Thanks. should be fixed now. Can you please recheck? |
10508c4
to
1359656
Compare
7aada3a
to
00889eb
Compare
7db3105
to
6a4c08a
Compare
I've also updated the PR with alphabetical sorting @SagarGi @individual-it please recheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
89079d2
to
1433dbb
Compare
@SagarGi @individual-it I've also updated this PR by fixing the auto-focus/auto-opening of the project selection dropdown menu when the work package creation/linking form is opened. @wielinde Whenever you have time you can test this PR. |
// when the modal opens the dropdown for selecting project gains focus automatically | ||
// this is a workaround to prevent that by bluring the focus and the enabling the dropDown that was | ||
// disabled initially in data | ||
if (this.$refs?.createWorkPackageProjectInput) { | ||
document.getElementById(`${this.$refs?.createWorkPackageProjectInput?.inputId}`).blur() | ||
this.noDropAvailableProjectDropDown = false | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SagarGi @individual-it this is sort of the workaround for disabling the autofocus when the modal comes into view. I know this is a "hack" but I also couldn't manage to do it in a very conventional way. I'm open to suggestion if anyone has a better way to do this.
aa15e0f
to
7dd3da4
Compare
839c914
to
f909591
Compare
Hey @SagarGi, while I was trying to debug why on my machine this PR does not work, I found that the current approach to fetch projects does not work well. The extra requests for fetching the storages per project were making troubles. When thinking about what you want to achieve it became apparent, that you should use the correct filters on the projects query in the first place and not fetch the storages at all.
Further, you want to make sure that the current user has the correct permissions on the selected projects.
We can filter on the available permission of a user in project with Unfortunately, we currently cannot filter for a condition that requires ALL permissions to be present (Equals All "&="). We only have an operator that hits when any of the permissions is present (Equals "="). We will provide that extra filter soon (@Kharonus is working on it). For the time being you can work with the "Equals" operator. It will show more projects than actually good, but we can change that quickly once we provide the "EqualsAll" operator. The new code could look somewhat like this:
And the function |
f909591
to
132df57
Compare
@wielinde I've updated the PR as per your comment can you please re-check and ensure that the recent changes are working as expected for you? |
d32526a
to
738fd12
Compare
Hey @SwikritiT, I played around with the work package creation form and it looked all pretty solid. I could not break it. Well done. One tiny detail: The submit button looks pretty "disabled"/"inactive" in dark mode. I looked at other places where and I think the caption text color "should" be white. Could it be that there is a wrong class applied? That style is also visible when the form is fully filled out. Apart from that, from a QA perspective that PR is good be merged into "master". |
200aa45
to
b00dc9b
Compare
add option for creating workpackage in the search input make the create workpackage sticky Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> test with iframe Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> handel creating and linking workpackage Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> handel linking multiple files to newely created work packages and fix some lint errors Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> uncomment the commented code Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> fix lint and other stuff Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> fix storage not linked error message display Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> add unit tests Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> add unit tests Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> fix tests Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> Add form for creating workpackage Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> add form validation endpoint Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> fetch assignee Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> fix UI and fix linting errors Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> fix style lint errors Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> fix filtering of the options Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> add create and link workpackage Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> make changes Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> handel valiation errors Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> display project hierarchy Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> fix project listing and make layout responsive Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> handel custom types Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> fix phpstan Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> fix phpstan Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> fix faiing phpunit tests Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> add phpunit tests Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> remove CSP listener Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> fix phpstan complains Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> add phpunit tests Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> add more tests Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> add vue unit tests Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> add ui unit tests Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> add more unit test Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> fix failing tests Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> remove some unneeded attributes Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> fix unit tests Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> add more cases Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> address reviews Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> address more reviews Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> fix type not changing Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> filter workpackages according to their storages Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> address more reviews Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> address reviews Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> remove leftovers Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> add placeholders Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> make some ui adjustments Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> sort project alphabetically Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> remove duplicate check Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> update url to direct to the workpackage creation form directly Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> add workaround for project dropdown gaining auto focus Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> fix unit tests and update snapshots Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
f5a6ee5
to
5696c71
Compare
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
5696c71
to
260ddf9
Compare
JS Code CoverageCoverage after merging feat/add-create-work-package-form into master will be
Coverage Report
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Related work package [OP#49859]: https://community.openproject.org/projects/nextcloud-integration/work_packages/49859
This PR implements the creation of the work package through nextcloud