-
Notifications
You must be signed in to change notification settings - Fork 0
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
1280: Simplified planning form. Added default value #112
Merged
Merged
Changes from 19 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
09e69b7
1280: Simplified planning form. Added default value
tuj d62a476
1280: Fixed issues with automatic reviews
tuj 093f643
1280: Fixed default provider issue
tuj 4d857ea
1280: Added error message when data provider does not support supplyi…
tuj a24fba8
1280: Removed unused getPlanningDataSprints
tuj 89f5b31
1280: Split planning into users and projects
tuj 43a2084
1280: Added redirect from planning index. Removed icons from navigati…
tuj cbb4501
1280: Added active class for current sprint
tuj 4e5a596
WIP
yepzdk e8a7204
Change colors
yepzdk 41fd037
1258: Setup font awesome icon loader
tuj d3edd2d
Styling
yepzdk ca3b090
Create scroll to sprint
yepzdk ebf3af1
Changelog
yepzdk e96cc87
Updates after review
yepzdk fc29077
Reuse users style on projects
yepzdk 3c081bc
Apply coding standars
yepzdk 52a88f5
Merge pull request #114 from itk-dev/feature/1258-optimize-planning-view
tuj 72c8b9a
Merge branch 'develop' into feature/1280-simplifying-planning-form
tuj 1a87f2d
Use understandable const names for target and first column
yepzdk 3df3ebe
Add todo
yepzdk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Controller } from "@hotwired/stimulus"; | ||
|
||
/** Scroll to active sprint in planning view */ | ||
export default class extends Controller { | ||
static targets = ["column"]; | ||
|
||
connect() { | ||
const activeColumn = this.columnTargets.find((el) => el.dataset.active); | ||
|
||
if (!activeColumn) { | ||
return; | ||
} | ||
|
||
const activeIndex = activeColumn.dataset.index; | ||
const scrollToIndex = Math.max(0, activeIndex - 1); | ||
const scrollToColumn = this.columnTargets.find( | ||
(el) => el.dataset.index == scrollToIndex, | ||
); | ||
const firstColumn = this.columnTargets.find( | ||
(el) => el.dataset.index == 1, | ||
); | ||
|
||
if (!scrollToColumn || !firstColumn) { | ||
return; | ||
} | ||
|
||
const { x } = scrollToColumn.getBoundingClientRect(); | ||
const { x: firstColumnX } = firstColumn.getBoundingClientRect(); | ||
|
||
scrollContainer.scrollTo(x - firstColumnX, 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Import the svg core library | ||
import { library, dom } from "@fortawesome/fontawesome-svg-core"; | ||
|
||
// Import the icons from the free solid package. | ||
import { | ||
faMaximize, | ||
faEyeSlash, | ||
faMinimize, | ||
} from "@fortawesome/free-solid-svg-icons"; | ||
|
||
library.add(faMaximize, faEyeSlash, faMinimize); | ||
dom.i2svg(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It took me a while to actually understand what's going on here.
is much easier to understand.
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.
Changed it. Thanks for the suggestion.