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

KAAV-1473 Aikataulun muokkaus #437

Open
wants to merge 277 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
277 commits
Select commit Hold shift + click to select a range
9e761fd
bug fix
henrihaapalasiili Jun 18, 2024
7d3a7db
KAAV-1473 add date and validate new date by range to each other and p…
henrihaapalasiili Jun 19, 2024
f3260a5
KAAV-1473 fixed logic for showing vis groups and showing data inside …
henrihaapalasiili Jun 20, 2024
bd0832c
KAAV-1473 remove from timeline and data
henrihaapalasiili Jun 20, 2024
d104e25
KAAV-1473 bug fix
henrihaapalasiili Jun 24, 2024
fa2b4e6
KAAV-1473 generate all values to vis timeline
henrihaapalasiili Jun 25, 2024
c1a8551
KAAV-1473 range indicator line between range and point vis elements
henrihaapalasiili Jun 26, 2024
401b1bd
KAAV-1473 fixed duplicate css
henrihaapalasiili Jun 26, 2024
87783bd
KAAV-1473 add logic adjustment
henrihaapalasiili Jun 27, 2024
e4b7e75
KAAV-1473 removed value from loop not needed
henrihaapalasiili Jun 27, 2024
6941e4e
debug
henrihaapalasiili Jun 27, 2024
43f6ded
KAAV-1473 add new sub phase to add show value for correct row
henrihaapalasiili Jun 28, 2024
fc974e7
KAAV-1473 add new lautakunta fixes
henrihaapalasiili Jul 1, 2024
e53ba27
KAAV-1473 typo fix
henrihaapalasiili Jul 1, 2024
8ff5f19
KAAV-1473 add logic calculation change
henrihaapalasiili Jul 1, 2024
ea1d239
KAAV-1473 remove changes and debug
henrihaapalasiili Jul 2, 2024
fd9f78f
KAAV-1473 calendar fixes and debug
henrihaapalasiili Jul 3, 2024
89e5bbd
remove debug
henrihaapalasiili Jul 3, 2024
5290969
KAAV-1473 remove local deadline data when deleting group
henrihaapalasiili Jul 3, 2024
25dfc52
KAAV-1473 allow remove only on groups that are not confirmed
henrihaapalasiili Jul 3, 2024
8bb9db9
KAAV-1473 Added groups that are unremovable from vis timeline
henrihaapalasiili Jul 3, 2024
64071d9
KAAV-1473 disable calendar when dates confirmed, disabled dates modif…
henrihaapalasiili Jul 4, 2024
d29d769
KAAV-1473 holiday dates
henrihaapalasiili Jul 5, 2024
27dcb46
KAAV-1473 bug fixes to holiday logic
henrihaapalasiili Jul 5, 2024
7bc76f0
KAAV-1473 date validation rules for deadline inputs
henrihaapalasiili Jul 8, 2024
a61281c
KAAV-1473 info texts notifications for add button
henrihaapalasiili Jul 8, 2024
286b90c
bugfix
henrihaapalasiili Jul 8, 2024
b590447
Exception input value generate rule on ehdotus määräaika because keys…
henrihaapalasiili Jul 9, 2024
90ce31f
KAAV-1473 translation fixes, zoom buttons visible fix, hide add butto…
henrihaapalasiili Jul 9, 2024
a5a8bb2
KAAV-1473 show the ongoing phase when timetable is opened and collaps…
henrihaapalasiili Jul 9, 2024
0a53148
KAAV-1473 princibles and draft not showing form values when project h…
henrihaapalasiili Jul 11, 2024
acfd94b
KAAV-1473 hide esillaolo or lataukunta from add menu in certain phase…
henrihaapalasiili Jul 11, 2024
0229ea3
KAAV-1473 keep track on timeline group collapse state
henrihaapalasiili Jul 12, 2024
7a9494c
KAAV-1473 bug fixes
henrihaapalasiili Jul 16, 2024
c07148e
KAAV-1473 bugfixes for add timeline
henrihaapalasiili Jul 16, 2024
52b7264
KAAV-1473 grouped-sections as its own section with groups and subgrou…
henrihaapalasiili Jul 17, 2024
8652cdc
Add holidays to calculating next dates when adding values, fix double…
henrihaapalasiili Jul 18, 2024
71899c4
KAAV-116 Fix visibility day count field styling (#470)
eemeli-kukkonen-siili Jul 17, 2024
898dc88
KAAV-1473 made calendar editing on timeline more stable and cleaner a…
henrihaapalasiili Jul 19, 2024
4c893a8
KAAV-1893 fixed L sized timetables not opening
henrihaapalasiili Aug 19, 2024
d0cc113
KAAV-1888 disable adding new board deadline to timetable if board dec…
henrihaapalasiili Aug 19, 2024
0dee180
KAAV-1849 KAAV-1888 confirm board button not appearing fix, more term…
henrihaapalasiili Aug 20, 2024
17a8510
KAAV-1888 if there is no selection in board decided field and deadlin…
henrihaapalasiili Aug 20, 2024
36c12fa
KAAV-1849 possibility to add more then one board deadline in ehdotus …
henrihaapalasiili Aug 20, 2024
37431ac
KAAV-1473 timeline ehdotus new nahtavaillaolo not showing up fix
henrihaapalasiili Aug 21, 2024
fb399c8
KAAV-1894 Add correct amount of days to viimeistään_lausunnot field w…
henrihaapalasiili Aug 21, 2024
ad9288e
KAAV-1911 Calendar component shows month that is set in calendar comp…
henrihaapalasiili Aug 21, 2024
da08033
KAAV-1911 Calendar component shows month that is set in calendar comp…
henrihaapalasiili Aug 21, 2024
839df5c
KAAV-1473 make it possible to remove princebles timeline first phase
henrihaapalasiili Aug 26, 2024
2ac87d4
KAAV-1473 vis timeline to show correct symbols on timeline when savin…
henrihaapalasiili Aug 27, 2024
bc2d0cc
KAAV-1473 fixed issues on timeline
henrihaapalasiili Aug 27, 2024
9e090ed
KAAV-1473 add to timeline logic changed and distances between phases …
henrihaapalasiili Aug 28, 2024
6d0b60b
KAAV-1473 distances fix
henrihaapalasiili Aug 28, 2024
576013e
KAAV-1473 After lautakunta 1 there is no määräaika so show only one s…
henrihaapalasiili Aug 30, 2024
eea3a0c
KAAV-1473 delete luonnos groups fix
henrihaapalasiili Sep 2, 2024
872b71e
KAAV-1473 fixed some phases showing maaraika calendar fields when the…
henrihaapalasiili Sep 2, 2024
f31a7d6
KAAV-1473 add regex to take into account esillaolo uudelleen nahtavil…
henrihaapalasiili Sep 3, 2024
beb0b1b
KAAV-1437 fixed regex vulnerabiity
henrihaapalasiili Sep 3, 2024
b6755fe
KAAV-1473 esillaolo dates moving compared to values inside them and o…
henrihaapalasiili Sep 10, 2024
5602d3b
KAAV-1473 changes for classNames, add span for styling, add classes f…
MinnaSiili Sep 4, 2024
4da4312
KAAV-1473 add style fixes for v1.1
MinnaSiili Sep 4, 2024
1cb7f72
KAAV-1473 add class for styling
MinnaSiili Sep 10, 2024
0250003
KAAV-1473 add styles for VisTimeline
MinnaSiili Sep 10, 2024
7a4f8d2
KAAV-1473 add styles for VisTimeline right side panel
MinnaSiili Sep 10, 2024
a5c3fd1
KAAV-1473 remove duplicate selector
MinnaSiili Sep 10, 2024
10e3330
KAAV-1473 nahtavillaolo xs-m calendar moving logic with minimuims etc
henrihaapalasiili Sep 10, 2024
affce3c
KAAV-1473 filtered readonly values from calendar dispatct because not…
henrihaapalasiili Sep 11, 2024
92eb57c
KAAV-1473 Nahtavillaolo XS-M logic
henrihaapalasiili Sep 11, 2024
263daff
KAAV-1473 Lautakunta to land on lautakuntapaiva when changing määräa…
henrihaapalasiili Sep 12, 2024
150199b
KAAV-1473 move other groups forward when moving previous group to min…
henrihaapalasiili Sep 16, 2024
0b05539
KAAV-1916 Fix error toast on successful deadline save
eemeli-kukkonen-siili Sep 12, 2024
691f3be
KAAV-1473 Fix updating form values on project save
eemeli-kukkonen-siili Sep 13, 2024
52a1cfc
KAAV-1473 distance changes with miniums when adding and editing calen…
henrihaapalasiili Sep 19, 2024
c5e2534
KAAV-1473 modify translations to be as designed
MinnaSiili Sep 16, 2024
169522c
KAAV-1473 change info-box icons
MinnaSiili Sep 16, 2024
9367a86
KAAV-1473 add style fixes for side modal and info-boxes
MinnaSiili Sep 16, 2024
4553bfd
KAAV-1473 add class for past items, add styles for past items, add mi…
MinnaSiili Sep 16, 2024
3f4acf8
KAAV-1473 add menu-open class functionality
MinnaSiili Sep 16, 2024
6989877
KAAV-1473 remove console.log
MinnaSiili Sep 16, 2024
57de012
KAAV-1473 bugfixes for date moving logic
henrihaapalasiili Sep 20, 2024
302a39b
KAAV-1473 lausunnot viimeistään freezes view fix
henrihaapalasiili Sep 20, 2024
d122982
KAAV-1473 add translations for disabled remove button tooltip
MinnaSiili Sep 20, 2024
a029f42
KAAV-1473 add styles for disabled remove button tooltip
MinnaSiili Sep 20, 2024
781df25
KAAV-1473 add functionality for disabled remove button tooltip
MinnaSiili Sep 20, 2024
7167c88
KAAV-1473 calendar not updating correctly bug fixes
henrihaapalasiili Sep 23, 2024
5ed3a41
KAAV-2017 Remove legacy code saving unchanged values as null
eemeli-kukkonen-siili Sep 23, 2024
84adde3
KAAV-1473 timeline and calendar OAS phase values no showing up bug fix
henrihaapalasiili Sep 23, 2024
1583807
KAAV-1473 vis items and groups combination logic change to work with …
henrihaapalasiili Sep 24, 2024
923d9b5
KAAV-1473 confirm dates to disable date editing from confirmed group
henrihaapalasiili Sep 25, 2024
15ac894
KAAV-1473 Today button in timeline to keep the correct zoom level
henrihaapalasiili Sep 25, 2024
bc78ef4
KAAV-1473 fix group label formatting
MinnaSiili Sep 25, 2024
45e5882
KAAV-1473 change deadline items to start at the middle of the day, fi…
MinnaSiili Sep 25, 2024
bc50fd1
KAAV-1473 add style fixes
MinnaSiili Sep 25, 2024
4e4df32
KAAV-1473 groups to not show in vistimeline if group has not been add…
henrihaapalasiili Sep 25, 2024
b997614
KAAV-1473 add fix for visibility of non-working days at the calendar
MinnaSiili Sep 26, 2024
70244a2
KAAV-1473 add fix for group labels
MinnaSiili Sep 26, 2024
397c5fc
KAAV-1473 reset timetable data when closing without saving, lautakunt…
henrihaapalasiili Sep 27, 2024
c088fc5
KAAV-1473 add fix for board item line height
MinnaSiili Sep 27, 2024
b2585ea
KAAV-1473 add fix for vis items generation in case of undefined date
MinnaSiili Sep 27, 2024
29ade03
KAAV-1473 lautakunta to keep the constant distance between määräaika …
henrihaapalasiili Sep 29, 2024
36443f3
KAAV-1473 timeline phase start and end growing logic when other dates…
henrihaapalasiili Oct 1, 2024
543388d
KAAV-2016 add fixes for SonarCloud Quality Gate problems, regex errors
MinnaSiili Sep 30, 2024
3ddbea2
KAAV-2046 add fixes for SonarCloud Quality Gate problems, PropTypes
MinnaSiili Sep 30, 2024
2dd2c8a
KAAV-2046 add fixes for SonarCloud Quality Gate problems,more PropTyp…
MinnaSiili Sep 30, 2024
82cd9d1
KAAV-1473 change label text for vaiheen kesto
MinnaSiili Oct 1, 2024
8407541
KAAV-2016 add fixes for SonarCloud Quality Gate problems, reduce cogn…
MinnaSiili Oct 1, 2024
8e23972
KAAV-1473 extra safety checks to please SonarCloud
henrihaapalasiili Oct 1, 2024
3c41cf5
KAAV-2046 add fixes for SonarCloud Quality Gate problems, PropTypes
MinnaSiili Oct 1, 2024
49ab514
KAAV-2046 add fixes for SonarCloud Quality Gate problems
MinnaSiili Oct 1, 2024
1a49062
KAAV-2046 add fixes for SonarCloud Quality Gate problems, issues in V…
MinnaSiili Oct 1, 2024
e5a8457
KAAV-1473 extra safety checks to please SonarCloud
henrihaapalasiili Oct 1, 2024
8dcdff4
KAAV-1473 timeline start phase moving logic adjustment
henrihaapalasiili Oct 1, 2024
969ea5e
KAAV-1473 timeline start phase disabled calendar dates fix
henrihaapalasiili Oct 1, 2024
83519cb
KAAV-1473 timeline tarkistettu ehdotus lautakunta 3 to not crash when…
henrihaapalasiili Oct 1, 2024
f298074
KAAV-1437 disabled datest to range from current date to 20 years past…
henrihaapalasiili Oct 2, 2024
eec1e32
KAAV-1473 timeline after new lautakunta added change selecting logic …
henrihaapalasiili Oct 2, 2024
05e7e72
KAAV-1473 esillalo dates not to push dates below minium phase distance
henrihaapalasiili Oct 2, 2024
c42944d
KAAV-1924 Add info box for preliminary dates
eemeli-kukkonen-siili Oct 2, 2024
6565ae3
KAAV-1473 timeline max amount to show instead of needs confimation if…
henrihaapalasiili Oct 3, 2024
ae045bc
KAAV-1473 timeline if no minium distance for added group is set then …
henrihaapalasiili Oct 3, 2024
5a35453
KAAV-1473 cleaner and more understandable version of disabled date lo…
henrihaapalasiili Oct 4, 2024
dfdecf0
KAAV-1473 charat error fix
henrihaapalasiili Oct 4, 2024
487844e
KAAV-1473 remove lausunnot viimeistään from section attributes distan…
henrihaapalasiili Oct 4, 2024
2b2ce7a
KAAV-1473 timeline error messages to be more specific and help seeing…
henrihaapalasiili Oct 4, 2024
e739f57
KAAV-1473 cleaned code, fixed some bugs releated to adding calculatio…
henrihaapalasiili Oct 6, 2024
ad2277c
KAAV-1473 add timeline group logic fixes
henrihaapalasiili Oct 8, 2024
ca99ac5
KAAV-1473 adding updates
henrihaapalasiili Oct 8, 2024
f3ab8f1
KAAV-1473 timeline add group logic bug fixes
henrihaapalasiili Oct 9, 2024
8528069
Move dates and add dates moving logic to acually work and not to land…
henrihaapalasiili Oct 10, 2024
54b1570
KAAV-1473 add confirmed icon for elements with confirmed dates
MinnaSiili Oct 10, 2024
b1ae935
KAAV-1473 fix security hotspot
MinnaSiili Oct 10, 2024
9847985
KAAV-1473 add green checkmark-icon
MinnaSiili Oct 10, 2024
077f7d8
KAAV-1473 hyvaksymis and voimaantulo timeline editing fixes
henrihaapalasiili Oct 11, 2024
7322d88
KAAV-2071 fix typo
MinnaSiili Oct 11, 2024
f584c8c
KAAV-1473 add more baseKeys, fix bug in confirmationKey creation
MinnaSiili Oct 11, 2024
65ae48a
KAAV-1473 fixes to hyvakyminen timeline logic
henrihaapalasiili Oct 11, 2024
81263d4
KAAV-1473 voimaantulo logic modifications
henrihaapalasiili Oct 15, 2024
527d95d
KAAV-1437 minium and constant legths modifications
henrihaapalasiili Oct 15, 2024
246b1e2
KAAV-1473 removed buggy code
henrihaapalasiili Oct 15, 2024
9e75065
KAAV-1473 changed not used variables or imports to warning so testing…
henrihaapalasiili Oct 16, 2024
5bf20d4
KAAV-1473 removed not needed code that messed calculation
henrihaapalasiili Oct 17, 2024
bc43e2a
KAAV-1473 Voimaantulo logic fix, cleaned code
henrihaapalasiili Oct 18, 2024
3ed2042
KAAV-1473 add style fixes for timetable-danger-modal
MinnaSiili Oct 17, 2024
03834df
KAAV-1473 remove duplicate rule from styles
MinnaSiili Oct 17, 2024
224a72a
KAAV-2102 Set visibility of subgroups based on bool values (#486)
eemeli-kukkonen-siili Oct 18, 2024
4a8d0b2
KAAV-1473 minium distance/constant distnace logic fixes
henrihaapalasiili Oct 18, 2024
ded0f98
KAAV-1473 filter keys that are hidden from ui and do not increase val…
henrihaapalasiili Oct 21, 2024
8457bb5
KAAV-1473 move deadline visibility parsing to separate util function
eemeli-kukkonen-siili Oct 21, 2024
9825e1b
KAAV-2133 Add visibility bool subgroup on removal
eemeli-kukkonen-siili Oct 21, 2024
c4435b0
KAAV-1473 timeline standard distances logic modifications
henrihaapalasiili Oct 24, 2024
937aebf
KAAV-2128 Show confirmation status to all users, not just admin
eemeli-kukkonen-siili Oct 23, 2024
159d547
KAAV-1473 when XS,S,M are generated they are calculated with wrong da…
henrihaapalasiili Oct 25, 2024
508e0b1
KAAV-1473 timeline alkaa logic modification
henrihaapalasiili Oct 25, 2024
c87c3d0
KAAV-1473 periaatteet wrong date to compare for disabled dates fix
henrihaapalasiili Oct 25, 2024
57632bc
KAAV-1473 timeline määräaika-lautakunta distance fix
henrihaapalasiili Oct 28, 2024
3d980d1
KAAV-1473 fixed timeline move logic lautakunta allowed date was from …
henrihaapalasiili Oct 28, 2024
567feb6
KAAV-1473 fixed timeline OAS adding distances and temp fixed logic th…
henrihaapalasiili Oct 28, 2024
d7c8c03
KAAV-1473 add z-index for colored phase lines
MinnaSiili Oct 29, 2024
62ffa8e
KAAV-1473 change text formatting to be as designed, refactor formatti…
MinnaSiili Oct 29, 2024
be84e9b
KAAV-1473 remove bottom line from side modal top part
MinnaSiili Oct 29, 2024
ca28e2a
KAAV-1473 add fix for text formatting function
MinnaSiili Oct 29, 2024
44658da
KAAV-1473 added missing parameter to moveDateToDirection and fixed en…
henrihaapalasiili Oct 29, 2024
9d1771e
KAAV-1473 modified timeline intervals calculating
henrihaapalasiili Oct 31, 2024
0283e91
KAAV-2046 add SonarCloud fixes: reduce duplicated code
MinnaSiili Oct 29, 2024
e27c5fc
KAAV-1564 add style fixes for gant view
MinnaSiili Oct 31, 2024
4134b5d
KAAV-2083 Fix lautakunta-päätös-tab for non-admin users
eemeli-kukkonen-siili Oct 31, 2024
f1a49e2
KAAV-1473 timeline date logic modifications
henrihaapalasiili Nov 4, 2024
f95a517
KAAV-1473 timeline date logic modifications
henrihaapalasiili Nov 4, 2024
e30e568
KAAV-1473 modified timelien logic
henrihaapalasiili Nov 5, 2024
6213ca0
KAAV-1473 fixed date moving had always add as true but should have false
henrihaapalasiili Nov 5, 2024
47fd146
KAAV-1473 accidentally left testing /fake to saveProjectTimetable
henrihaapalasiili Nov 5, 2024
7557f0e
KAAV-1473 fixed ehdotus alkaa 2 does not find disabled dates and crashes
henrihaapalasiili Nov 5, 2024
79a3849
KAAV-1473 SonarCloud fix TypeError can be thrown as formValue might b…
henrihaapalasiili Nov 5, 2024
ee10de8
KAAV-1567 add translations
MinnaSiili Nov 5, 2024
a9f2a6c
KAAV-1473 switch to hds notifications
MinnaSiili Nov 5, 2024
e36153e
KAAV-1473 add fix for small and tiny modal heights
MinnaSiili Nov 5, 2024
e2bd45d
KAAV-1567 add info text to side modal
MinnaSiili Nov 5, 2024
6933a01
KAAV-1567 add fixes to side modal structure, add new class for stylin…
MinnaSiili Nov 5, 2024
a2d5583
KAAV-1567 add style fixes for timeline modification side modal
MinnaSiili Nov 5, 2024
840e29a
KAAV-1473 date moving logic adjustment
henrihaapalasiili Nov 6, 2024
a241127
KAAV-1473 timetable lausunnot input to save changed date
henrihaapalasiili Nov 6, 2024
39d0a2f
KAAV-1473 timeline lausunnot dates dates to never be smaller then sam…
henrihaapalasiili Nov 7, 2024
7b3a73b
KAAV-1473 removed faulty condition from timeline moving
henrihaapalasiili Nov 7, 2024
36750a6
KAAV-1473 added phases not showing up after reload, +1 to minium dist…
henrihaapalasiili Nov 7, 2024
2ad2f86
KAAV-1473 improve date validation toasters, widen all toasters
MinnaSiili Nov 7, 2024
7bb259c
KAAV-1473 modify getErrorMessage to get the date from the error
MinnaSiili Nov 7, 2024
3695f4a
KAAV-1567 add minor style fixes to side modal
MinnaSiili Nov 7, 2024
5dbb810
KAAV-1567 add fix for custom input field behavior
MinnaSiili Nov 7, 2024
75b5b41
KAAV-1567 fix side modal close button visibility when scrolling down
MinnaSiili Nov 7, 2024
1b2f432
KAAV-1567 remove excess information from timeline side modal
MinnaSiili Nov 7, 2024
69bd04c
KAAV-1567 add more minor style fixes to side modal
MinnaSiili Nov 7, 2024
0b5f2c3
KAAV-1473 fixed sonarcloud issue Unexpected shorthand margin after ma…
henrihaapalasiili Nov 7, 2024
72addb3
KAAV-1473 changed back info instead of error color in date validation…
henrihaapalasiili Nov 8, 2024
61dbebd
KAAV-2073 Remove manual adding of visGroups, use generateVisItems ins…
eemeli-kukkonen-siili Nov 6, 2024
7e44fcf
KAAV-2073 Add style fixes to buggy vis groups
eemeli-kukkonen-siili Nov 8, 2024
5c0ef4a
remove unused import
eemeli-kukkonen-siili Nov 8, 2024
fe29c56
KAAV-1564 add sticky header for group-labels
MinnaSiili Nov 8, 2024
fe1dc2b
KAAV-1473 fix info-toastr className
MinnaSiili Nov 8, 2024
5aaea20
KAAV-1564 add fixes for font-weights and margins
MinnaSiili Nov 8, 2024
f6de0d1
KAAV-1564 fix today-button functionality
MinnaSiili Nov 8, 2024
580fae3
KAAV-1473 fixed regex removing kerrosalatiedot
henrihaapalasiili Nov 8, 2024
cab7a29
KAAV-1473 fixed timeline correct values to show regex, fixed luonnos …
henrihaapalasiili Nov 11, 2024
2bb2c75
KAAV-1564 in a month-view switch day number to be first and separate …
MinnaSiili Nov 8, 2024
8336cbf
KAAV-1564 add style fixes for timeline
MinnaSiili Nov 8, 2024
25766c0
KAAV-1473 fixed timeline ehdotus L-XL lautakunta not getting added to…
henrihaapalasiili Nov 11, 2024
9673b97
KAAV-1473 fixed attribute data timeline ehdotus filtering names
henrihaapalasiili Nov 11, 2024
9b62756
KAAV-2083 Remove superfluous period from deadline info text
eemeli-kukkonen-siili Nov 11, 2024
17054d4
KAAV-2205 set DeadlineInput type to text, convert date to hds format
eemeli-kukkonen-siili Nov 13, 2024
10e11ab
KAAV-1473 hover for vis items
henrihaapalasiili Nov 12, 2024
4f8b2b8
KAAV-1473 vis timeline item hover adjustments
henrihaapalasiili Nov 12, 2024
50a53d4
KAAV-1473 timeline cancelling changes sets attribute values to initia…
henrihaapalasiili Nov 13, 2024
863f970
KAAV-2083 prevent timetable validation on rte changes
eemeli-kukkonen-siili Nov 13, 2024
98c5ba6
KAAV-2317 removed tyhjenna aikataulut button
henrihaapalasiili Nov 15, 2024
89d8a48
KAAV-2152 change esilläolo to nähtävilläolo at ehdotus phase
MinnaSiili Nov 15, 2024
0b574cf
KAAV-1473 Deadline inputs to be disabled when phase is confirmed
henrihaapalasiili Nov 19, 2024
53256cf
KAAV-1473 confirming phase to disable deadline input modifications
henrihaapalasiili Nov 19, 2024
05fcd8a
KAAV-1473 when deleting a group from periaatteet or luonnos, it canno…
henrihaapalasiili Nov 20, 2024
8c053cf
KAAV-1473 test all save timetable
henrihaapalasiili Nov 20, 2024
9593bea
KAAV-1473 test all save timetable
henrihaapalasiili Nov 20, 2024
49bccc8
KAAV-1473 reverted tests
henrihaapalasiili Nov 20, 2024
83a4d91
KAAV-1473 timeline confirm group to disable only date inputs
henrihaapalasiili Nov 21, 2024
25a01f9
KAAV-1473 when adding periaatteet or luonnos first group, have no inf…
henrihaapalasiili Nov 21, 2024
7eee461
Adjust attribute_data for deadlines in saveProjectTimetable
Nov 21, 2024
ba60f4a
KAAV-1473 fix scrolling problem, add style fixes
MinnaSiili Nov 22, 2024
dc4c96c
KAAV-1473 add style fixes for side modal
MinnaSiili Nov 22, 2024
046879f
KAAV-1473 add class for months-view, prevent tooltip being visible ov…
MinnaSiili Nov 22, 2024
06e819b
KAAV-1473 fix vertical lines in month view
MinnaSiili Nov 25, 2024
fcf6e44
KAAV-2151 add temporary rule until we figure out how we can make .neg…
MinnaSiili Nov 25, 2024
15eb73d
KAAV-1473 fix phase ending to be at the end of the day
MinnaSiili Nov 25, 2024
bfb3a84
KAAV-1473 fix z-index issue and change border color
MinnaSiili Nov 25, 2024
9c5131f
KAAV-1473 timeline calendar disabled date fixes and maaraiaka to have…
henrihaapalasiili Nov 25, 2024
24e9c6d
Merge branch 'KAAV-1473' of https://github.com/City-of-Helsinki/kaava…
henrihaapalasiili Nov 25, 2024
acb8985
KAAV-1473 timeline calendar maaraika-lautakunta disabled dates fix
henrihaapalasiili Nov 26, 2024
9596168
KAAV-1473 timeline fixed clicking lock button raises error, disabled …
henrihaapalasiili Nov 28, 2024
d87ee87
KAAV-1473 timeline hid lock button because it is not part of 1.1
henrihaapalasiili Nov 28, 2024
c8afc03
KAAV-1473 timeline M ehdotus start date selection disableds too few d…
henrihaapalasiili Dec 2, 2024
35febf3
KAAV-1473 timeline when adding new phases get alkaa values from initi…
henrihaapalasiili Dec 3, 2024
07532a8
KAAV-1473 timeline update viimeistaan lausunnot date if paattyy is gr…
henrihaapalasiili Dec 3, 2024
bb3522c
KAAV-1473 timeline with new aikataulut Excel changes does not need +1…
henrihaapalasiili Dec 4, 2024
bdcd2e6
KAAV-1473 timeline hide add dialog modal if user modifies values from…
henrihaapalasiili Dec 4, 2024
b690f78
KAAV-2336 change names of elements, change structure of board element…
MinnaSiili Dec 5, 2024
83e8117
KAAV-2336 modify tooltips names, add z-index consideration
MinnaSiili Dec 5, 2024
703822d
KAAV-2336 add style fixes for tooltip, fix board styles after structu…
MinnaSiili Dec 5, 2024
640231c
KAAV-1473 remove duplicate rules from styles
MinnaSiili Dec 5, 2024
39ac60c
KAAV-1473 voimaantulo and hyväksyminen end dates to move
henrihaapalasiili Dec 9, 2024
4ed6753
Merge branch 'KAAV-1473' of https://github.com/City-of-Helsinki/kaava…
henrihaapalasiili Dec 9, 2024
5c152de
KAAV-1473 L-XL ehdotus end date to move next phase
henrihaapalasiili Dec 9, 2024
9573c05
KAAV-2385 Allow adding new nested groups after all nested groups have…
eemeli-kukkonen-siili Dec 11, 2024
a09edb3
Merge remote-tracking branch 'refs/remotes/origin/KAAV-1473' into KAA…
eemeli-kukkonen-siili Dec 11, 2024
47bf61f
KAAV-2367 Linear timeline fixes (#495)
eemeli-kukkonen-siili Dec 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.exports = {
],
"rules": {
"react/prop-types": 0,
"no-unused-vars": "warn",
},
globals: {
process: true,
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"is-url": "^1.2.4",
"leaflet": "^1.7.1",
"moment": "^2.29.1",
"moment-range": "^4.0.2",
"oidc-client-ts": "^3.0.1",
"proj4": "^2.7.2",
"proj4leaflet": "^1.0.2",
Expand Down Expand Up @@ -52,7 +53,10 @@
"reselect": "^4.1.7",
"sass": "1.69.4",
"semantic-ui-css": "^2.4.1",
"semantic-ui-react": "2.1.4"
"semantic-ui-react": "2.1.5",
"vis-data": "^7.1.9",
"vis-timeline": "^7.7.3",
"vis-util": "^5.0.7"
},
"resolutions": {
"crypto-js": "4.2.0",
Expand Down
36 changes: 30 additions & 6 deletions public/locales/fi/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,12 @@
"error": "Virhe: {{error}}",
"warning": "Päivitettyjen aikataulutietojen tallentaminen saattaa kestää hieman pidempään kun Kaavapino tekee laskutoimituksia.",
"estimated": "Kaavapinon arvio",
"project-stopped": "Projekti on toistaiseksi keskeytetty.",
"timeline-error": "Projekti ei ole ajan tasalla.",
"project-stopped": "Projekti on keskeytetty",
"project-stopped-text": "Projekti vastuuhenkilö on keskeyttänyt projektin toistaiseksi. Hän voi aktivoida projektin uudelleen muokkausnäkymästä.",
"timeline-error": "Projekti ei ole ajan tasalla",
"timeline-error-text": "Projektin vastuuhenkilön tulee päivittää aikataulu.",
"timelime-modal-error-text-1": "Seuraavien päivämäärien siirtäminen ei ole mahdollista, koska minimietäisyys viereisiin etappeihin on täyttynyt.",
"timelime-modal-error-text-2": "Siirrä ensiksi muita etappeja.",
"months": {
"jan": "Tammi",
"feb": "Helmi",
Expand All @@ -96,15 +100,28 @@
"shown": "nähtävillä",
"reset-project-deadlines": "Tyhjennä aikataulut",
"reset-confirm-dialog-title": "Aikataulujen uudelleen luominen",
"reset-confirm-dialog-question": "Oletko varma, että haluat luoda aikataulut uudestaan? Tapahtumaa ei voi perua."
"reset-confirm-dialog-question": "Oletko varma, että haluat luoda aikataulut uudestaan? Tapahtumaa ei voi perua.",
"dates-are-preliminary": "Aikataulutiedot ovat alustavia, kunnes ne on vahvistettu.",
"cancel-confirmation":"Peruuta päivämäärien vahvistus",
"confirm-dates":"Vahvista päivämäärät",
"dates-confirmed":"Aikataulutiedot on vahvistettu.",
"new-esillaolo":"Lisää uusi esilläolo",
"delete-esillaolo":"Poista esilläolo",
"delete-first-esillaolo":"Ensimmäistä esilläoloa ei voi poistaa.",
"delete-first-lautakunta":"Ensimmäistä lautakuntaa ei voi poistaa.",
"delete-first-nahtavillaolo":"Ensimmäistä nähtävilläoloa ei voi poistaa.",
"timeline-group-header": "Vaiheiden etapit",
"modify-timeline":"Muokkaa aikataulua"
},
"common": {
"cancel": "Peruuta",
"save": "Tallenna",
"save-timeline":"Tallenna aikataulu",
"continue": "Jatka",
"person":"Henkilö",
"unit":"Yksikkö tai tiimi",
"keyword":"Hakusana"
"keyword":"Hakusana",
"close":"Sulje"
},
"messages": {
"deadlines-successfully-saved": "Aikataulut tallennettu",
Expand Down Expand Up @@ -143,7 +160,11 @@
"addfield":"Kentän lisäys.",
"total":"Yhteensä",
"fields":"kenttää.",
"general-save-error":"Tallennus epäonnistui"
"general-save-error":"Tallennus epäonnistui",
"error-with-dates":"Päivämäärät tarkistettu:",
"fixed-timeline-dates":"Päivämäärät muutettu:",
"checking-dates":"Tarkistetaan päivämääriä",
"dates-confirmed":"Päivämäärät validoitu"
},
"floor-areas": {
"title": "Päivitä kerrosalatiedot",
Expand Down Expand Up @@ -238,7 +259,10 @@
"error-prevent-add":"Virhe lomakkeella estää lisäyksen",
"fieldset-info":"Yhteensä {{fieldAmount}} tietuetta.",
"no-fields":"Suodatinvalinnalla ei löytynyt tämän otsikon alta suodatettavia kenttiä.",
"link-to-map":"Linkki projektin karttapalveluun."
"link-to-map":"Linkki projektin karttapalveluun.",
"add-new-board":"Lisää uusi lautakunta",
"add-new-presence":"Lisää uusi esilläolo",
"add-new-review": "Lisää uusi nähtävilläolo"
},
"nav-header": {
"latest-update": "Viimeisin muokkaus: {{latestUpdate}}",
Expand Down
51 changes: 50 additions & 1 deletion src/actions/projectActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,56 @@ export const FORM_ERROR_LIST = "formErrorList"
export const RESET_FORM_ERRORS = "resetFormErrors"
export const GET_ATTRIBUTE_DATA = "getAttributeData"
export const SET_ATTRIBUTE_DATA = "setAttributeData"

export const FETCH_DISABLED_DATES_START = 'fetchDisabledDatesStart';
export const FETCH_DISABLED_DATES_SUCCESS = 'fetchDisabledDatesSuccess';
export const FETCH_DISABLED_DATES_FAILURE = 'fetchDisabledDatesFailure';
export const VALIDATE_DATE = 'validateDate';
export const SET_DATE_VALIDATION_RESULT = 'setDateValidationResult';
export const REMOVE_DEADLINES = 'removeDeadlines';
export const UPDATE_DATE_TIMELINE = "updateDateTimeline"
export const RESET_ATTRIBUTE_DATA = "resetAttributeData"
export const VALIDATE_PROJECT_TIMETABLE = "validateProjectTimetable"
export const UPDATE_PROJECT_FAILURE = 'updateProjectFailure';

export const updateProjectFailure = (errorData) => ({
type: UPDATE_PROJECT_FAILURE,
payload: errorData,
});
export const validateProjectTimetable = () => ({
type: VALIDATE_PROJECT_TIMETABLE
});
export const resetAttributeData = (initialData) => ({
type: RESET_ATTRIBUTE_DATA,
payload: {initialData},
});
export const updateDateTimeline = (field, newDate, formValues, isAdd, deadlineSections) => ({
type: UPDATE_DATE_TIMELINE,
payload: { field, newDate, formValues, isAdd, deadlineSections},
});
export const removeDeadlines = (deadlines) => ({
type: REMOVE_DEADLINES,
payload: deadlines,
});
export const setDateValidationResult = (valid,result) => ({
type: SET_DATE_VALIDATION_RESULT,
payload: {valid,result}
});
export const validateDateAction = (field,projectName,date) => ({
type: VALIDATE_DATE,
payload: {field,projectName,date}
});
export const fetchDisabledDatesStart = (startDate, endDate) => ({
type: FETCH_DISABLED_DATES_START,
payload: { startDate, endDate },
});
export const fetchDisabledDatesSuccess = (disabledDates) => ({
type: FETCH_DISABLED_DATES_SUCCESS,
payload: disabledDates,
});
export const fetchDisabledDatesFailure = (error) => ({
type: FETCH_DISABLED_DATES_FAILURE,
payload: error,
});
export const setAttributeData = (fieldName,data,formName, set, nulledFields,i) =>({
type: SET_ATTRIBUTE_DATA,
payload:{fieldName,data,formName, set, nulledFields,i}
Expand Down
3 changes: 3 additions & 0 deletions src/assets/icons/alert-icon-yellow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icons/checkmark-icon-green.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icons/icon-error-red.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/assets/icons/lock-blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/assets/icons/lock-open-blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/assets/icons/lock-open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/assets/icons/lock.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/assets/icons/plus-blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/assets/icons/plus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/assets/icons/trash-blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 80 additions & 0 deletions src/components/ProjectTimeline/AddGroupModal.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import React, { useEffect } from 'react';
import { change } from 'redux-form'
import { useDispatch } from 'react-redux';
import { EDIT_PROJECT_TIMETABLE_FORM } from '../../constants'
import { IconPlus,Button } from 'hds-react'
import { useTranslation } from 'react-i18next'
import PropTypes from 'prop-types'

const AddGroupModal = ({toggleOpenAddDialog,addDialogStyle,addDialogData,closeAddDialog, allowedToEdit, isAdmin, timelineAddButton}) => {
const {t} = useTranslation()
const dispatch = useDispatch();

const addNew = (addedKey) => {
if(addedKey){
dispatch(change(EDIT_PROJECT_TIMETABLE_FORM, addedKey, true));
if (addedKey.includes("jarjestetaan_ehdotus_esillaolo")) {
const parts = addedKey.split("_");
const index = "_"+ (parseInt(parts[parts.length - 1], 10));
dispatch(change(EDIT_PROJECT_TIMETABLE_FORM, "kaavaehdotus_uudelleen_nahtaville"+index.toString(), true));
}
closeAddDialog()
}
else{
closeAddDialog()
}
}

useEffect(() => {
if (timelineAddButton) {
if (toggleOpenAddDialog) {
timelineAddButton.classList.add("menu-open");
} else {
const timelineAddButtons = document.getElementsByClassName('timeline-add-button');
Array.from(timelineAddButtons).forEach(button => {
button.classList.remove("menu-open");
});
}
}
}, [toggleOpenAddDialog])

return (
<div className={toggleOpenAddDialog === true ? "vis-add-dialog" : "vis-hide-dialog"} style={addDialogStyle}>
{!addDialogData.hidePresence &&
<>
<Button size="small" disabled={!(addDialogData.showPresence && allowedToEdit)} className={addDialogData.showPresence && allowedToEdit ? '' : 'disabled'} variant="supplementary" onClick={() => addNew(addDialogData.nextEsillaolo)} iconLeft={<IconPlus />}>
{addDialogData.group.id === "Ehdotus" ? t('project.add-new-review') : t('project.add-new-presence')}
</Button>
{addDialogData.esillaoloReason && (
<span className='add-button-info'>
{addDialogData.group.id === "Ehdotus" ?
(addDialogData.esillaoloReason === "noconfirmation" ? "Kaavoitussihteerin tulee vahvistaa aikaisempi nähtävilläolo, jonka jälkeen voidaan lisätä uusi." : "Nähtävilläolojen maksimimäärä on saavutettu.") :
(addDialogData.esillaoloReason === "noconfirmation" ? "Kaavoitussihteerin tulee vahvistaa aikaisempi esilläolo, jonka jälkeen voidaan lisätä uusi." : "Esilläolojen maksimimäärä on saavutettu.")
}
</span>
)}
</>
}
{!addDialogData.hideBoard &&
<>
<Button size="small" disabled={!(addDialogData.showBoard && isAdmin)} className={addDialogData.showBoard && isAdmin ? '' : 'disabled'} variant="supplementary" onClick={() => addNew(addDialogData.nextLautakunta)} iconLeft={<IconPlus />}>
{t('project.add-new-board')}
</Button>
{addDialogData.lautakuntaReason && <span className='add-button-info'>{addDialogData.lautakuntaReason === "noconfirmation" ? "Kaavoitussihteerin tulee vahvistaa aikaisempi lautakunta, jonka jälkeen voidaan lisätä uusi." : "Lautakuntien maksimimäärä on saavutettu."}</span>}
</>
}
</div>
);
}

AddGroupModal.propTypes = {
toggleOpenAddDialog: PropTypes.bool,
addDialogStyle: PropTypes.object,
addDialogData: PropTypes.object,
closeAddDialog: PropTypes.func,
allowedToEdit: PropTypes.bool,
isAdmin: PropTypes.bool,
timelineAddButton: PropTypes.instanceOf(HTMLElement)
};

export default AddGroupModal;
Loading