Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
830 commits
Select commit Hold shift + click to select a range
ab59e61
updated version of digit component
Jan 22, 2025
c5dc7a8
Merge pull request #184 from egovernments/audit_fix_0.0.2
naveen-egov Jan 22, 2025
84d09e5
updates
nipunarora-eGov Jan 23, 2025
6bdddba
updated versions and other fixes
Swathi-eGov Jan 23, 2025
39d7a74
Merge branch 'develop-stable' into update-develop
Swathi-eGov Jan 23, 2025
95b4b24
Merge pull request #185 from egovernments/update-develop
Swathi-eGov Jan 23, 2025
05585b7
removed libraries modules. Updated local running flow
nipunarora-eGov Jan 23, 2025
59a8f3a
Merge branch 'develop-stable' of https://github.com/egovernments/DIGI…
nipunarora-eGov Jan 23, 2025
311429c
Create .gitignore
nipunarora-eGov Jan 23, 2025
5ee27ba
updates
nipunarora-eGov Jan 23, 2025
d9400ab
updated gitignore files
nipunarora-eGov Jan 23, 2025
a2979f0
Merge pull request #186 from egovernments/develop-stable
nipunarora-eGov Jan 23, 2025
29b17cc
updated component version
nipunarora-eGov Jan 23, 2025
aac7a05
Merge pull request #188 from egovernments/components-update
nipunarora-eGov Jan 23, 2025
3cb73b1
updated checkbox component - removed customlabelmarkup (#187)
Swathi-eGov Jan 23, 2025
6f25a1e
Checkbox update (#189)
Swathi-eGov Jan 23, 2025
068a8a8
Fixed Storybook audit points (#191)
Swathi-eGov Jan 28, 2025
e53f563
FEATURE/DUCE-213 : Integrating Iinboxsearchcomposer with new ui-compo…
Swathi-eGov Feb 4, 2025
ef658f0
initial commit
nipunarora-eGov Feb 5, 2025
7663b79
added review changes
Swathi-eGov Feb 5, 2025
bcc3a3d
Update index.js
nipunarora-eGov Feb 5, 2025
4ee45b5
reverted changes
nipunarora-eGov Feb 5, 2025
5e5c12c
Merge pull request #211 from egovernments/FEATURE/DUCE-217
nipunarora-eGov Feb 5, 2025
babd699
Merge branch 'develop-inbox-search-composer' of https://github.com/eg…
nipunarora-eGov Feb 5, 2025
dc07c52
Update package.json
nipunarora-eGov Feb 5, 2025
af2064a
Merge pull request #212 from egovernments/FEATURE/DUCE-213
nipunarora-eGov Feb 5, 2025
d411fc7
Update IndividualSearch.js
nipunarora-eGov Feb 5, 2025
8af3dd4
fixed language selection card alignment issue
Feb 7, 2025
5863d95
fixed utils dialog alignment issue
Feb 7, 2025
640a3ee
fixed language card padding
Feb 10, 2025
e899907
publish a new version with issues fixes
Feb 10, 2025
80aa558
Merge pull request #214 from egovernments/HCMPRE-2262-alignment-issues
naveen-egov Feb 10, 2025
ccb963a
added property to disabled sentence case in dropdown
Feb 10, 2025
a6674f5
added property to disabled sentence case in dropdown
Feb 10, 2025
b96de7a
fixed table null exception issue
Feb 10, 2025
06ac00e
Added Results Data Table
Swathi-eGov Feb 11, 2025
c3beca3
Merge pull request #215 from egovernments/DEVELOP-DUCE-213
Swathi-eGov Feb 11, 2025
1ac3479
fixed app integration issue
Feb 11, 2025
5177f46
fixed stepper length issue
Feb 11, 2025
7090772
Added Pagination props
Swathi-eGov Feb 11, 2025
5910cf1
Merge pull request #216 from egovernments/DEVELOP-DUCE213
Swathi-eGov Feb 11, 2025
406afcd
fixed sidebar not trigger rebuild on change language
Feb 12, 2025
54df6bc
fixed sidebar not trigger rebuild on change language
Feb 12, 2025
7eb024b
published a new version
Feb 12, 2025
14391b7
added content padding for pop up card
Feb 13, 2025
2e6a188
fixed dropdown text not getting clear after rerender
Feb 13, 2025
ec882a3
Added id for checkbox input (#218)
Swathi-eGov Feb 13, 2025
ba8349e
fixed stepper alignment issue
Feb 13, 2025
e3d2843
Updated Pagination
Swathi-eGov Feb 13, 2025
1cd3755
Merge pull request #219 from egovernments/DUCE-213-DEVELOP
Swathi-eGov Feb 13, 2025
b27ad08
edit row poc
nipunarora-eGov Feb 17, 2025
8bc8161
Merge branch 'FEATURE/DUCE-213' of https://github.com/egovernments/DI…
nipunarora-eGov Feb 17, 2025
8089243
Updated table, summary card and published new version
Feb 18, 2025
0a465c3
Update digit_table.dart
rachana-egov Feb 18, 2025
230f15b
Merge pull request #217 from egovernments/HCMPRE-2262-alignment-issues
naveen-egov Feb 18, 2025
0b6d417
Merge branch 'develop' of https://github.com/egovernments/DIGIT-UI-LI…
Feb 18, 2025
2731166
Fixed sort issue, added totalcount json path prop
Swathi-eGov Feb 18, 2025
92d91ce
Merge pull request #220 from egovernments/213DUCE
Swathi-eGov Feb 18, 2025
749641e
fixed path
Swathi-eGov Feb 18, 2025
0a9baa0
Merge pull request #221 from egovernments/213DUCE
Swathi-eGov Feb 18, 2025
a424f8d
updated Readme file
Feb 19, 2025
1b83a8d
updated doc link in stories
Feb 19, 2025
2c53e2f
updated images
rachana-egov Feb 19, 2025
bfad0d3
Updating the version and added documentation link (#223)
Swathi-eGov Feb 19, 2025
d49c59f
Updated readme file
Feb 19, 2025
0d21c42
Update introduction_story.dart
rachana-egov Feb 19, 2025
8add6fa
Merge pull request #222 from egovernments/readme_update
naveen-egov Feb 19, 2025
2b8e797
Update README.md
rachana-egov Feb 19, 2025
4112e91
Merge pull request #224 from egovernments/rachana-egov-patch-4
naveen-egov Feb 19, 2025
e1544be
Updated documentation link (#225)
rachana-egov Feb 19, 2025
b93ffcb
Updated pub file
Feb 19, 2025
a2c6a42
Merge pull request #226 from egovernments/readme_package
rachana-egov Feb 19, 2025
18f9317
Merge branch 'master' into develop
jagankumar-egov Feb 20, 2025
6f43784
Updated Formcomposer and other css changes
Swathi-eGov Feb 21, 2025
9a1b7ee
Merge branch 'develop' into FEATURE/DUCE-213
Swathi-eGov Feb 21, 2025
7acb2ee
Updated versions
Swathi-eGov Feb 21, 2025
ed53e69
Merge pull request #228 from egovernments/FEATURE/DUCE-213
nipunarora-eGov Feb 27, 2025
f9b89bb
Updated libraries version
Swathi-eGov Feb 27, 2025
9bbb9e0
Merge pull request #230 from egovernments/BUILD-ISSUE-CHECK
nipunarora-eGov Feb 27, 2025
13afcd7
updates to edit + config
nipunarora-eGov Mar 4, 2025
9b0425c
Added ResultsDataTable, Integrated InboxSearchComposer with DataTable…
Swathi-eGov Mar 7, 2025
c981cdd
edit row within InboxSearchComposer + Integration with FieldV1
nipunarora-eGov Mar 12, 2025
98c6e1c
Updated InboxSearchComposer
Swathi-eGov Mar 13, 2025
7f3ad04
Updated versions
Swathi-eGov Mar 13, 2025
43e3b4f
Updated Prop name
Swathi-eGov Mar 13, 2025
f60ccc5
Merge pull request #232 from egovernments/0.2.0-beta.2-stable
nipunarora-eGov Mar 13, 2025
62ce564
row edits and toggle
nipunarora-eGov Mar 19, 2025
d6a7f7f
Fixed multiple calls issue in InboxSearchLinks and onSUbmit function …
Swathi-eGov Mar 20, 2025
983507f
Update CHANGELOG.md
nipunarora-eGov Mar 20, 2025
9b8ea27
Merge pull request #233 from egovernments/0.2.0-beta.3-stable
nipunarora-eGov Mar 20, 2025
ff7170a
defaultvalues-issue-check
Swathi-eGov Mar 21, 2025
281dba0
updated versions
Swathi-eGov Mar 21, 2025
7c5426a
Merge pull request #234 from egovernments/0.2.0-beta.4-stable
nipunarora-eGov Mar 21, 2025
528f1cc
added tab search
Swathi-eGov Mar 26, 2025
cb3ede1
updated version
Swathi-eGov Mar 26, 2025
844d051
Merge pull request #236 from egovernments/0.2.0-beta.5-stable
nipunarora-eGov Mar 26, 2025
5b71a4f
inbox and form fixes
Swathi-eGov Mar 26, 2025
89f4b01
Merge pull request #237 from egovernments/0.2.0-beta.6-stable
nipunarora-eGov Mar 26, 2025
c66d772
Editable rows thru popup
nipunarora-eGov Apr 2, 2025
fab31f3
Update EditablePopup.js
nipunarora-eGov Apr 2, 2025
cc38977
Merge branch 'develop' of https://github.com/egovernments/DIGIT-UI-LI…
nipunarora-eGov Apr 2, 2025
1b1ffce
removed unnecessary data and fixed naming issue
Swathi-eGov Apr 2, 2025
90f99cd
updated configs with necessary comments
Swathi-eGov Apr 2, 2025
8917ed7
Resolved conflicts for edit row and edit popup
nipunarora-eGov Apr 2, 2025
ba77f20
updated version
nipunarora-eGov Apr 2, 2025
93d9475
Delete ResultsDataTable.js
nipunarora-eGov Apr 2, 2025
7b51a32
reverted changes to older table
nipunarora-eGov Apr 2, 2025
b960ed9
Update CHANGELOG.md
nipunarora-eGov Apr 2, 2025
b74a4ca
Update ResultsTable.js
nipunarora-eGov Apr 2, 2025
32790a7
Merge pull request #240 from egovernments/FEATURE/DUCE-233
nipunarora-eGov Apr 2, 2025
c8c1da3
Merge pull request #239 from egovernments/0.2.0-beta.7-stable
nipunarora-eGov Apr 3, 2025
3b715aa
Updated versions for stability
Swathi-eGov Apr 3, 2025
1b6cf41
Merge pull request #241 from egovernments/0.2.0-beta.8-stable
Swathi-eGov Apr 3, 2025
187bea1
FEATURE/HCMPRE-2662 : Added back button prop in formComposerV2 (#252)
Bhavya-egov Apr 15, 2025
ed86f32
Feature/hcmpre 2662 (#253)
Bhavya-egov Apr 15, 2025
c4d5de7
Feature/hcmpre 2662 (#254)
Bhavya-egov Apr 15, 2025
da3e635
Feature/hcmpre 2662 (#255)
Bhavya-egov Apr 16, 2025
a0c2b62
Feature/hcmpre 2662 (#256)
Bhavya-egov Apr 16, 2025
b33259f
Updated pop up and search bar
Apr 22, 2025
158bad6
updated tooltip
May 29, 2025
93ccc4d
Fixed components and published new version
Jun 27, 2025
d5c06a5
Fixed dropdown issue
Oct 3, 2025
f2ea300
Fixed dropdown seach issue
Oct 3, 2025
c7a5e33
Updated checkbox label to support markdown bold
Oct 17, 2025
3092682
Updated checkbox label to support markdown bold
Oct 17, 2025
0d90abc
Updated image upload and published new version
Oct 27, 2025
ee7a599
React version upgraded for the core packages of react from 17 to 19 w…
jagankumar-egov Oct 29, 2025
fd701b3
Updated fixes for storybook
jagankumar-egov Oct 30, 2025
e037376
fix storybook deployment
jagankumar-egov Oct 30, 2025
eb89ab4
removed certain unwanted files
jagankumar-egov Oct 30, 2025
6bf2388
Updated the readme content
jagankumar-egov Oct 30, 2025
a9830cb
Create CLAUDE_UNDERSTANDING_DOCUMENT.md
jagankumar-egov Oct 31, 2025
83c8157
BUGFIX/HCMPRE-2796 : Enhancements and bug fixes (#346)
Swathi-eGov Nov 13, 2025
5a28121
Allow workflow to continue on publish errors (#347)
jagankumar-egov Nov 14, 2025
5e915a7
Update version of digit-ui-components in README
jagankumar-egov Nov 14, 2025
b8e8ebc
Added icon mapping
Nov 17, 2025
eb099bd
Published new version
Nov 17, 2025
5fed2f8
BUGFIX/HCMPRE-3217 : updated react-hook-form Controller API from v6 …
Swathi-eGov Nov 26, 2025
5fd9669
Merge pull request #348 from egovernments/BUGFIX/HCMPRE-3217
ayubeemd Nov 26, 2025
6df1144
Added local also while converting date
Nov 26, 2025
18d2cba
FEATURE/HCMPRE-3399 : Added portal support in Dropdown/MultiSelectDro…
Swathi-eGov Nov 26, 2025
40efeb3
Merge pull request #349 from egovernments/FEATURE/HCMPRE-3399
ayubeemd Nov 26, 2025
472e1c6
Published new version
Nov 26, 2025
4821dbc
BUGFIX/HCMPRE-0000 : Fixed dropdown css issue and Added required prop…
Swathi-eGov Nov 27, 2025
e94fd79
Merge pull request #350 from egovernments/BUGFIX/HCMPRE-0000
ayubeemd Nov 27, 2025
6447c90
FEATURE/HCMPRE-0001 : Testing dropdown portal issue
Swathi-eGov Nov 27, 2025
cae0f69
Merge pull request #351 from egovernments/FEATURE/HCMPRE-0001
ayubeemd Nov 27, 2025
c6634a2
FEATURE/DUCE-0000 : Fixed multiselectdropdown css issue
Swathi-eGov Nov 28, 2025
631c52f
Merge pull request #352 from egovernments/FEATURE/DUCE-0000
ayubeemd Nov 28, 2025
bd97909
Updated * position
Swathi-eGov Dec 2, 2025
0798523
Merge pull request #353 from egovernments/FEATURE/DUCE-0001
ayubeemd Dec 2, 2025
187c4eb
git r
NabeelAyubee Dec 2, 2025
2bf6b95
Merge pull request #354 from egovernments/3384
ayubeemd Dec 2, 2025
3435a7c
refactor
NabeelAyubee Dec 3, 2025
979119e
Tag missing props animation fix
NabeelAyubee Dec 3, 2025
42886aa
Merge pull request #355 from egovernments/3384
ayubeemd Dec 3, 2025
a30bc63
loader fix
NabeelAyubee Dec 3, 2025
4a48f11
Merge branch 'develop' into 3384
NabeelAyubee Dec 3, 2025
6c1812f
Merge pull request #356 from egovernments/3384
ayubeemd Dec 3, 2025
b963b22
Added border-radius for inputs,buttons,tag and card
Swathi-eGov Dec 8, 2025
2636236
Merge pull request #359 from egovernments/css-fixes
ayubeemd Dec 8, 2025
d1c1e4c
Migrated localization caching from localStorage to IndexedDB (#360)
Swathi-eGov Dec 8, 2025
2601164
css fixes
Swathi-eGov Dec 8, 2025
7afd03b
Merge pull request #361 from egovernments/NEW-CSS-FIXES
ayubeemd Dec 8, 2025
a123262
Updated card component
Dec 11, 2025
8bcbd71
FEATURE/DUCE-0002 : Added disablePortal prop
Swathi-eGov Dec 12, 2025
520a722
Merge pull request #362 from egovernments/FEATURE/DUCE-0002
ayubeemd Dec 12, 2025
89abfbe
Dropdown fixes when option and mdms is empty
ayubeemd Dec 17, 2025
10e467b
package bump: update ui-components, storybook and react-components to…
ayubeemd Dec 17, 2025
9e537c6
Merge pull request #363 from egovernments/3559
ayubeemd Dec 17, 2025
da66906
BUGFIX-3596:: Added disable Clear All prop in MultiselectDropdown com…
Ramkrishna-egov Dec 18, 2025
37dd320
Merge pull request #364 from Ramkrishna-egov/BUGFIX-3596
ayubeemd Dec 18, 2025
287418b
BUGFIX/DUCE-2222 : Updated react-components version
Swathi-eGov Dec 19, 2025
be002ba
Merge pull request #365 from egovernments/BUGFIX/DUCE-2222
Swathi-eGov Dec 19, 2025
13a204d
Multiselect Dropdown on Chip Close Fix
Ramkrishna-egov Dec 19, 2025
a9e5466
Merge pull request #366 from Ramkrishna-egov/multiselect-dropdown-fix
Swathi-eGov Dec 19, 2025
400f715
Fixed MDMS Custom Hook Call when master or module name is empty
Ramkrishna-egov Dec 22, 2025
69bb219
Merge pull request #367 from Ramkrishna-egov/MDMS-safe-call
Swathi-eGov Dec 22, 2025
6c3049b
DUCE-0000 : Added suffix for number type
Swathi-eGov Dec 26, 2025
f09c41f
Merge pull request #368 from egovernments/DUCE-0000
Swathi-eGov Dec 26, 2025
94ce965
Adding portal support in date component
Swathi-eGov Dec 26, 2025
2365b61
Merge pull request #369 from egovernments/DUCE-0001
Swathi-eGov Dec 26, 2025
42c0c4d
Update CODEOWNERS paths for frontend libraries
jagankumar-egov Dec 26, 2025
b990c83
useCustomMDMS update, date component css fix, multitab click fix in I…
Swathi-eGov Dec 29, 2025
515728a
useCustomMDMS Issue check (#371)
Swathi-eGov Dec 29, 2025
32c10ee
Fix IndexedDB error handling to prevent localization failures (#372)
Swathi-eGov Jan 5, 2026
3676970
testing addition of unique ID generation (#374)
Swathi-eGov Jan 8, 2026
1c8ca56
not a function issue fix (#375)
Swathi-eGov Jan 9, 2026
51dddb7
Added radius
rachana-egov Jan 13, 2026
1179064
Added radius in privacy component
rachana-egov Jan 13, 2026
da9c0c6
Added radius in card component
rachana-egov Jan 13, 2026
3e99553
Fixed issues related to component
rachana-egov Jan 19, 2026
c79185f
Added nested options search,tooltip for options, removed outline for …
Swathi-eGov Jan 19, 2026
b8484ca
Fixed showTooltip issue (#377)
Swathi-eGov Jan 19, 2026
42e3217
Changes related to privacy policy
rachana-egov Jan 20, 2026
ce13711
Updated clear all condition (#378)
Swathi-eGov Jan 20, 2026
6fa9592
Updated number type handling (#379)
Swathi-eGov Jan 21, 2026
d76c36f
Testing portal issue (#380)
Swathi-eGov Jan 21, 2026
d4578fb
Added id for each link in lanindg page card (#382)
Swathi-eGov Jan 28, 2026
dc30783
Updated to new versions (#383)
Swathi-eGov Jan 28, 2026
5a889a7
added border-radius for dropdown options card, toast , added undo ico…
Swathi-eGov Jan 29, 2026
7b28ca6
Added '-' handling logic in textinput (#385)
Swathi-eGov Jan 30, 2026
f8d8a9e
Develop studio UI comp upgrade (#381)
piyushraj-egov Feb 3, 2026
6ac2b67
FIX added missing export (#387)
piyushraj-egov Feb 3, 2026
9afbafe
fixed import issues of DependentFieldsWrapper (#388)
piyushraj-egov Feb 3, 2026
149f8f2
Published new version
rachana-egov Feb 6, 2026
8261c43
Added Visibility expression logic in document upload and download han…
Tulika-eGov Feb 10, 2026
c6a135d
Added devices icon in the custom svg (#390)
Tulika-eGov Feb 17, 2026
f148976
updated the viewbox of the devices icon (#391)
Tulika-eGov Feb 17, 2026
09af94e
Feature / Added countrycode dropdown support for mobilenumber (#392)
Swathi-eGov Feb 20, 2026
66d7ffb
Fixed icon issue and added new icons (#393)
Swathi-eGov Feb 20, 2026
d61984a
Added Mobile number input as a new atom component - to show country c…
Ramkrishna-egov Feb 24, 2026
97d5552
Bugfix/ccsd 1624 (#394)
piyushraj-egov Feb 25, 2026
649a1b2
Published new version
rachana-egov Feb 26, 2026
6297f8f
Merge branch 'develop' into beneficiary-idgen
rachana-egov Feb 26, 2026
d6a6a34
removed react changes
rachana-egov Feb 27, 2026
ecd1cc0
Resolved coderabbit comments
rachana-egov Feb 27, 2026
def8cd2
Resolved comments
rachana-egov Feb 27, 2026
a28bb2d
Resolved comments
rachana-egov Feb 27, 2026
81959f0
Merge pull request #395 from egovernments/beneficiary-idgen
rachana-egov Feb 27, 2026
83accec
Added max item selection and callback
rachana-egov Mar 3, 2026
9d3fd71
Published new version
rachana-egov Mar 3, 2026
2f2b8c3
Merge pull request #396 from egovernments/HDDF-4956-multiselect-dropdown
naveen-egov Mar 3, 2026
15c2b81
Updated dropdown and tag component
rachana-egov Mar 6, 2026
80facd8
Merge pull request #397 from egovernments/HDDF-multiselect-dropdown
naveen-egov Mar 6, 2026
702ee49
Updated the popup parent div to not include role as button (#398)
Tulika-eGov Mar 13, 2026
1455789
Updated pop up and dropdown component
rachana-egov Mar 17, 2026
0a7c51e
Merge pull request #399 from egovernments/ui-inhancement
naveen-egov Mar 17, 2026
81c49bf
CCSD-1705 : Added Disable Portal param to custom dropdown from FieldV…
Tulika-eGov Mar 18, 2026
6c287e7
upgraded the version of ui components (#401)
Tulika-eGov Mar 18, 2026
ef0056b
Fix for localization not loading on initial page load (#402)
Swathi-eGov Apr 7, 2026
057a666
Fix localization not loading on initial load and not updating after c…
Swathi-eGov Apr 8, 2026
28c2a53
Added Manage Users Icons (#404)
Tulika-eGov Apr 15, 2026
ad66aac
Formcomposerstudio bugfix for edit mode (#405)
piyushraj-egov Apr 16, 2026
0de82c1
Feature/hcmpre 3969 (#406)
Swathi-eGov May 6, 2026
f609fc9
newly added SVGs from studio (#407)
piyushraj-egov May 12, 2026
a9f97d2
FEATURE/HCMPRE-0003 : Button fix (#408)
Swathi-eGov May 13, 2026
648ea6e
Temp branch svg studio (#409)
piyushraj-egov May 14, 2026
8e142c9
BUGFIX/HCMPRE-3969 : Rendering fields below submit bar in forms (#413)
Swathi-eGov May 20, 2026
fd7a402
BUGFIX/HCMPRE-0023 : Version change (#414)
Swathi-eGov May 20, 2026
7b47459
FEATURE/HCMPRE-3434 : Layout issue fix (#415)
Swathi-eGov May 20, 2026
1bf15ed
FEATURE/HCMPRE-5656 : Fields rendering in formcomposer fix (#416)
Swathi-eGov May 21, 2026
087b14a
Studio svg 1 (#417)
Tulika-eGov May 22, 2026
e2bee6a
Fixed React 19 getOwner runtime error by externalizing react/jsx-runt…
Ramkrishna-egov May 22, 2026
32aee99
BUGFIX/HCMPRE-3969-Fix run time error for react instance initialization
Ramkrishna-egov May 22, 2026
e695a34
Upgraded libraries package
Ramkrishna-egov May 22, 2026
ed2f6f1
Upgraded digit-ui components
Ramkrishna-egov May 22, 2026
5ff8e39
Merge pull request #419 from egovernments/BUGFIX/HCMPRE-3969-runtime-fix
Ramkrishna-egov May 22, 2026
263ef45
Added ServicePreview svg for studio usecase (#420)
Tulika-eGov May 25, 2026
41db78d
Develop bugfix svg (#421)
piyushraj-egov May 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
55 changes: 55 additions & 0 deletions .github/scripts/check-package-availability.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/bin/bash

# Script to check if npm packages are available
# Usage: ./check-package-availability.sh <package-name> <version> [timeout-minutes]

set -e

PACKAGE_NAME="$1"
VERSION="$2"
TIMEOUT_MINUTES="${3:-15}" # Default to 15 minutes

if [ -z "$PACKAGE_NAME" ] || [ -z "$VERSION" ]; then
echo "❌ Usage: $0 <package-name> <version> [timeout-minutes]"
echo " Example: $0 '@egovernments/digit-ui-libraries' '1.9.0' 10"
exit 1
fi

MAX_ATTEMPTS=$((TIMEOUT_MINUTES * 2)) # Check every 30 seconds
ATTEMPT=1

echo "🔍 Checking availability of $PACKAGE_NAME@$VERSION..."
echo "⏰ Timeout: $TIMEOUT_MINUTES minutes ($MAX_ATTEMPTS attempts)"

while [ $ATTEMPT -le $MAX_ATTEMPTS ]; do
if npm view "$PACKAGE_NAME@$VERSION" version &>/dev/null; then
echo "✅ $PACKAGE_NAME@$VERSION is available on npm!"

# Get additional package info
PUBLISHED_VERSION=$(npm view "$PACKAGE_NAME@$VERSION" version 2>/dev/null)
PUBLISH_TIME=$(npm view "$PACKAGE_NAME@$VERSION" time 2>/dev/null | grep "\"$VERSION\"" | cut -d'"' -f4)

echo "📦 Confirmed version: $PUBLISHED_VERSION"
if [ -n "$PUBLISH_TIME" ]; then
echo "📅 Published at: $PUBLISH_TIME"
fi

exit 0
else
MINUTES_ELAPSED=$((($ATTEMPT - 1) / 2))
echo "⏳ Attempt $ATTEMPT/$MAX_ATTEMPTS ($MINUTES_ELAPSED min elapsed): $PACKAGE_NAME@$VERSION not yet available..."

if [ $ATTEMPT -lt $MAX_ATTEMPTS ]; then
sleep 30
fi

((ATTEMPT++))
fi
done

echo "❌ $PACKAGE_NAME@$VERSION is still not available after $TIMEOUT_MINUTES minutes"
echo "💡 This might indicate:"
echo " - Publishing failed"
echo " - npm registry propagation delay"
echo " - Version mismatch"
exit 1
171 changes: 171 additions & 0 deletions .github/scripts/validate-dependency-chain.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
#!/bin/bash

# Script to validate the dependency chain for DIGIT UI packages
# This helps ensure the publish order is correct

set -e

echo "🔍 Validating DIGIT UI Package Dependency Chain..."
echo "=================================================="

# Define package paths
WEBPACK_DIR="webpack"

# Function to get package info
get_package_info() {
local package_dir=$1
local package_json="$WEBPACK_DIR/$package_dir/package.json"

if [ ! -f "$package_json" ]; then
echo "❌ Package.json not found: $package_json"
return 1
fi

local name=$(node -p "require('./$package_json').name" 2>/dev/null)
local version=$(node -p "require('./$package_json').version" 2>/dev/null)

echo "$name@$version"
}

# Function to get dependencies
get_internal_deps() {
local package_dir=$1
local package_json="$WEBPACK_DIR/$package_dir/package.json"

if [ ! -f "$package_json" ]; then
return 0
fi

# Get dependencies and peerDependencies that are internal DIGIT packages
node -e "
const pkg = require('./$package_json');
const deps = {...(pkg.dependencies || {}), ...(pkg.peerDependencies || {})};
const internalDeps = Object.keys(deps).filter(dep => dep.startsWith('@egovernments/digit-ui-'));
if (internalDeps.length > 0) {
console.log(internalDeps.join(' '));
}
" 2>/dev/null || true
}

echo "📦 Package Analysis:"
echo "==================="

# Analyze each package
echo "📋 libraries: $(get_package_info 'libraries')"
LIBS_DEPS=$(get_internal_deps 'libraries')
if [ -n "$LIBS_DEPS" ]; then
echo " 📎 Internal dependencies: $LIBS_DEPS"
else
echo " 📎 No internal dependencies ✅"
fi

echo ""
echo "📋 svg-components: $(get_package_info 'svg-components')"
SVG_DEPS=$(get_internal_deps 'svg-components')
if [ -n "$SVG_DEPS" ]; then
echo " 📎 Internal dependencies: $SVG_DEPS"
else
echo " 📎 No internal dependencies ✅"
fi

echo ""
echo "📋 ui-components: $(get_package_info 'ui-components')"
UI_DEPS=$(get_internal_deps 'ui-components')
if [ -n "$UI_DEPS" ]; then
echo " 📎 Internal dependencies: $UI_DEPS"
else
echo " 📎 No internal dependencies"
fi

echo ""
echo "📋 react-components: $(get_package_info 'react-components')"
REACT_DEPS=$(get_internal_deps 'react-components')
if [ -n "$REACT_DEPS" ]; then
echo " 📎 Internal dependencies: $REACT_DEPS"
else
echo " 📎 No internal dependencies"
fi

echo ""
echo "🏗️ Recommended Publish Order:"
echo "============================="

echo "1. 🟢 Stage 1 - Base packages (can publish in parallel):"
if [ -z "$LIBS_DEPS" ]; then
echo " ✅ libraries - $(get_package_info 'libraries')"
fi
if [ -z "$SVG_DEPS" ]; then
echo " ✅ svg-components - $(get_package_info 'svg-components')"
fi

echo ""
echo "2. 🟡 Stage 2 - Packages with base dependencies:"
if [ -n "$UI_DEPS" ]; then
echo " ✅ ui-components - $(get_package_info 'ui-components')"
echo " 📎 Wait for: $UI_DEPS"
fi

echo ""
echo "3. 🔴 Stage 3 - Packages with complex dependencies:"
if [ -n "$REACT_DEPS" ]; then
echo " ✅ react-components - $(get_package_info 'react-components')"
echo " 📎 Wait for: $REACT_DEPS"
fi

echo ""
echo "⚠️ GitHub Actions Workflow Validation:"
echo "======================================"

# Check if workflow file exists and analyze it
WORKFLOW_FILE=".github/workflows/publishComponents.yml"
if [ -f "$WORKFLOW_FILE" ]; then
echo "✅ Workflow file exists: $WORKFLOW_FILE"

# Check for dependency management
if grep -q "needs:" "$WORKFLOW_FILE"; then
echo "✅ Workflow uses job dependencies (needs:)"
else
echo "❌ Workflow missing job dependencies - all jobs will run in parallel!"
fi

if grep -q "npm view.*version" "$WORKFLOW_FILE"; then
echo "✅ Workflow includes package availability checks"
else
echo "⚠️ Workflow missing package availability checks"
fi

if grep -q "sleep" "$WORKFLOW_FILE"; then
echo "✅ Workflow includes wait/retry logic"
else
echo "⚠️ Workflow missing wait/retry logic"
fi

# Count stages in workflow
STAGE_COUNT=$(grep -c "publish-.*:" "$WORKFLOW_FILE" | head -1)
echo "📊 Workflow stages found: $STAGE_COUNT"

else
echo "❌ Workflow file not found: $WORKFLOW_FILE"
fi

echo ""
echo "💡 Summary & Recommendations:"
echo "============================"
echo "✅ Publish Order: libraries & svg-components → ui-components → react-components"
echo "⏰ Wait Strategy: Check npm availability with 30s intervals, 15min timeout"
echo "🔄 Retry Logic: Essential for npm registry propagation delays"
echo "📦 Tag Strategy: Use consistent tags across all packages"
echo ""

# Generate quick publish commands
echo "🚀 Manual Publish Commands (for testing):"
echo "=========================================="
echo "# Stage 1 (parallel)"
echo "cd webpack/libraries && npm publish --tag beta"
echo "cd webpack/svg-components && npm publish --tag beta"
echo ""
echo "# Stage 2 (wait for Stage 1)"
echo "cd webpack/ui-components && npm publish --tag beta"
echo ""
echo "# Stage 3 (wait for Stage 2)"
echo "cd webpack/react-components && npm publish --tag beta"
23 changes: 8 additions & 15 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Deploy Storybook to GitHub Pages

on:
push:
branches: [storybook-fix]
paths: ['webpack/storybook/**', 'webpack/ui-components/**']
branches: [develop]
paths: ['react/storybook/**', 'react/ui-components/**']
workflow_dispatch:

permissions:
Expand All @@ -25,23 +25,16 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: webpack/storybook/package-lock.json

- name: Install ui-components dependencies
run: |
cd webpack/ui-components
npm ci
node-version: 20

- name: Install storybook dependencies
run: |
cd webpack/storybook
npm ci
cd react/storybook
npm install --legacy-peer-deps

- name: Build Storybook
run: |
cd webpack/storybook
cd react/storybook
npm run build-storybook

- name: Setup Pages
Expand All @@ -50,7 +43,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: webpack/storybook/storybook-static
path: react/storybook/storybook-static

deploy:
environment:
Expand All @@ -61,4 +54,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
Loading
Loading