Upgrade Bahmni Design System to latest published version#125
Open
sumaztwcode wants to merge 163 commits into
Open
Upgrade Bahmni Design System to latest published version#125sumaztwcode wants to merge 163 commits into
sumaztwcode wants to merge 163 commits into
Conversation
* BN-168 | Add. React 17 And Associated Dependencies * BN-168 | Fix. Use NPM As Dependency Manager For Validate Workflow * BN-168 | Fix. Use NPM As Dependency Manager For Publish Workflow * BN-168 | Fix. react/addon From Webpack
* BN-171 | Add. Jest + RTL Setup * BN-171 | Add. Button RTL Test * BN-171 | Add. AddMore RTL Test * BN-171 | Add. Label RTL Test * BN-171 | Add. TextBox RTL Test * BN-171 | Add. Comment RTL Test * BN-171 | Add. Image RTL Test * BN-171 | Add. Video RTL Test * BN-171 | Add. RadioButton RTL Test * BN-171 | Add. BooleanControl RTL Test * BN-171 | Add. NumericBox RTL Test * BN-171 | Add. Date RTL Test * BN-171 | Add. DateTime RTL Test * BN-171 | Add. ComplexControl RTL Test * BN-171 | Add. UnSupportedComponent RTL Test * BN-171 | Add. Row RTL Test * BN-171 | Add. Provider RTL Test * BN-171 | Add. Location RTL Test * BN-171 | Add. Component Store Helper RTL Test * BN-171 | Add. Concept Helper RTL Test * BN-171 | Add. Control Record Helper RTL Test * BN-171 | Add. Abnormal Obs Group Mapper RTL Test * BN-171 | Add. Translation Service RTL Test * BN-171 | Add. Table Mapper RTL Test * BN-171 | Add. Section Mapper RTL Test * BN-171 | Add. Obs Mapper RTL Test * BN-171 | Add. Obs List Mapper RTL Test * BN-171 | Add. Obs Group Mapper RTL Test * BN-171 | Add. Coded Value Mapper RTL Test * BN-171 | Add. Coded Multiselect Value Mapper RTL Test * BN-171 | Add. Boolean Value Mapper RTL Test * BN-171 | Add. Value Mapper Store RTL Test * BN-171 | Add. Validator Helper RTL Test * BN-171 | Add. Util Helper RTL Test * BN-171 | Add. Spinner Helper RTL Test * BN-171 | Add. Script Runner RTL Test * BN-171 | Add. Obs List Helper RTL Test * BN-171 | Add. Observation Mapper Helper RTL Test * BN-171 | Add. Obs Helper RTL Test * BN-171 | Add. Notification Helper RTL Test * BN-171 | Add. Metadata Helper RTL Test * BN-171 | Add. MapperStore Helper RTL Test * BN-171 | Add. ID Generator Helper RTL Test * BN-171 | Add. HTTP Interceptor Helper RTL Test * BN-171 | Add. Form Renderer Helper RTL Test * BN-171 | Add. Form Namespace Helper RTL Test * BN-171 | Add. Form Context Helper RTL Test * BN-171 | Add. Execute Events Helper RTL Test * BN-171 | Add. Descriptor Parser Helper RTL Test * BN-171 | Add. Control Util Helper RTL Test * BN-171 | Add. Controls Parser Helper RTL Test * BN-171 | Add. Controls Helper RTL Test * BN-171 | Add. Controls Record Wrapper RTL Test * BN-171 | Add. Controls Record Tree Manager RTL Test * BN-171 | Add. Controls Record Tree Builder RTL Test * BN-171 | Add. Add More Designer RTL Test * BN-171 | Add. Boolean Controls Designer RTL Test * BN-171 | Add. Button Designer RTL Test * BN-171 | Add. Comment Designer RTL Test * BN-171 | Add. Complex Control Designer RTL Test * BN-171 | Add. Date Designer RTL Test * BN-171 | Add. DateTime Designer RTL Test * BN-171 | Add. Jest Tests Validation To GHA * BN-171 | Add. Image Designer RTL Test * BN-171 | Add. Location Designer RTL Test * BN-171 | Add. Numeric Box Designer RTL Test * BN-171 | Add. Video Designer RTL Test * BN-171 | Add. TextBox Designer RTL Test * BN-171 | Add. RadioButton Designer RTL Test * BN-171 | Add. Cell Designer RTL Test * BN-171 | Add. CodedControl Designer RTL Test * BN-171 | Add. Draggable RTL Test * BN-171 | Add. AutoComplete Designer RTL Test * BN-171 | Add. ControlState RTL Test * BN-171 | Add. Container RTL Test * BN-171 | Add. Dropdown RTL Test * BN-171 | Add. DropTarget RTL Test * BN-171 | Add. FreeTextAutoComplete RTL Test * BN-171 | Add. ObsGroupControl RTL Test * BN-171 | Add. Section RTL Test * BN-171 | Add. Table RTL Test * BN-171 | Add. CodedControls Designer RTL Test * BN-171 | Add. Grid Designer RTL Test * BN-171 | Add. Label Designer RTL Test * BN-171 | Add. ObsControlDesigner Designer RTL Test * BN-171 | Add. Provider Designer RTL Test * BN-171 | Add. Row Designer RTL Test * BN-171 | Add. Section Designer RTL Test * BN-171 | Add. Table Designer RTL Test * BN-171 | Fix. Run Jest Tests First * BN-171 | Fix. Jest Run Step In GHA Workflow
* BN-172 | Refactor. Remove Obsolete Enzyme Tests * BN-172 | Refactor. Remove Unused Enzyme Test Dependencies * BN-172 | Refactor. Remove Unused Enzyme Test Setup Files * BN-172 | Refactor. Remove Unused Enzyme Scripts * BN-172 | Refactor. Update EsLint Config * Add. Eslint And Babel Latest Config * Fix. Lint Issues * Fix. Update Webpack And Babel Config * Add. Bump Package Minor Version
…migration with webpack,babel version upgrades and testing framework migration.
* BN-149 | Upgrade core react packages and testing dependecies * BN-149 | Fix pre-existing deprecation warning for IntlShape * BN-149 | Fix pre-existing warning for reexporting TranslationKeyGenerator for a defalut export class * BN-149: Remove loader image-webpack-loader, as it is not used * Button/ Date component deprecated lifecycle methods removed/ modified * TextBox component deprecated lifecycle method removed/ modified * BN-149-new | Updated from deprecated functions to newer functions * BN-149-new | Updated components and test cases * BN-149-new | Update deprecated method in Section file, test cases were failing and need some more changes in componentDidUpdate * BN-149-new | Lint update * BN-149 | Added formRenderer changes * Revert "BN-149 | Added formRenderer changes" This reverts commit 7ee5fc2. * BN-149 | Rohit, Suma | Patch file, Prettier and minor lint fixes * BN-149-new | added examples folder with a sample React18 application to use form-controls library * Revert "BN-149 | Rohit, Suma | Patch file, Prettier and minor lint fixes" This reverts commit 70d97a7. * BN-149 | Update depricated ReactDOM APIs and use new craeteRoot for automatic batching for better performance * BN-149-new | Removed examples for React 19 * BN-149 | Add sample metadata from existing bahmni observation forms * BN-149 | Add yarn.lock file for example react-18 consumer app * BN-149 | Update library version for react upgrade to v18 and related documentation and migration guide * BN-149-new | React18 Consumer App Cleanup, modified Fix-Summary * BN-149 | Updated Node.js version to 18 in validate-pr for compatibility with Jest 29.7.0 * Fixed CL problems --------- Co-authored-by: Pratiti Shah <pratiti.shah@thoughtworks.com> Co-authored-by: sumaztwcode <suma.karanth@thoughtworks.com>
… dependency conflict
… dependency conflict
…on frontend monorepo consumer
…rting changelog and documentation
… react-select to latest versions, Replaced macOS13 image runners to Ubuntu-Latest BN-199 | Upgrade React18 to React19 and we updated the packages react-textarea-autosize and react-select to latest versions and also updated test cases and were able to render the container in the UI. We have also replaced the macOS13 image runners as they will be deprecated by git on December 8th 2025.
There was a warning thrown, as the syntax is now deprecated so I've updated syntax of a few gradients to be up-to-date. If more gradients are there might have to create and resolve that in another card in the future
…h workflow to publish dev versions (#7) * Changed library name to forms2-control and updated npm publish workflow to publish dev versions * BAH-4274 | Update package base version * BAH-4274 | Update documentation for new name and initial version after complete react upgrade, Added the leagacy library details --------- Co-authored-by: Pratiti Shah <pratiti.shah@thoughtworks.com>
…m publish commands
BAH-4603 | Fix add-more clone positioning and form field layout for C…
- Fix clone buttons overlapping textarea: increase clearance from $spacing-09 (3rem) to $spacing-11 (5rem) to fit two sm icon buttons - Fix dropdown menu truncation: add min-width: max-content on .cds--list-box__menu and allow option text to wrap - Replace hardcoded 600px max-width with Carbon spacing tokens ($spacing-13 * 3 + $spacing-12 + $spacing-06) - Reduce gap between 'Add more' text and '+' icon in obs-group-add-btn by setting padding-inline-end: 1.75rem Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…etadata on prop update
- Add min-width: $spacing-13 (160px) to dropdown/combo-box so the trigger no longer collapses to just the ∨ icon when nothing is selected - Swap numeric field button order: override Carbon's default (.down-icon order:1, .up-icon order:2) so + appears first and − second Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
- Show teal border (--cds-focus) when selected as visual indicator - Suppress mouse-click focus outline so border clears cleanly on deselect - Keyboard focus ring preserved for accessibility Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
BAH-4748 | Fix UI layout issues in Carbon form controls
… and fix blur scope
Bah 4767|Form2 control component issues
BAH-4767|Add @carbon/styles support to webpack CSS loader rule
BAH-4727|Fix Form metadata saving issue in form2-controls due to html escape from payload
* BAH-4746 | Add autodocs Overview pages with TOC for atomic controls - Enable autodocs on all 16 Atomic Control stories and rename the generated docs page to 'Overview' (Carbon-style layout) - Restructure each control's description into Overview / When to use / Accessibility sections so the content is self-explanatory - Add a per-page Table of Contents to each atomic Overview page - Remove design-library references that the controls do not actually use * BAH-4746 | Fix jest CSS moduleNameMapper resolution in CI The css/scss moduleNameMapper pointed at identity-obj-proxy, which is not a declared dependency. A newer @bahmni/design-system build imports '@carbon/styles/css/styles.css' from its entry file, which triggers the mapper and fails every suite importing @bahmni/design-system with 'Could not locate module ... mapped as identity-obj-proxy'. Replace the mapper target with a local style mock that mirrors identity-obj-proxy behaviour, removing the dependency on an uninstalled package. * BAH-4746 | Remove Accessibility (WCAG) sections from atomic control docs The Accessibility (WCAG 2.1 AA) sections were unverified claims carried over from the original stories (BAH-4585). Removed from all 16 Atomic Control docs since the controls have not been audited against the cited success criteria. * BAH-4746 | Use text + Controls only on atomic Overview pages Add a custom autodocs page (Title + Description + Controls) and apply it via docs.page so the Atomic Control Overview pages show the written documentation and the props table without the rendered component preview/canvas boxes. Applies only to pages that opt into autodocs (the Atomic Controls). * Revert "BAH-4746 | Use text + Controls only on atomic Overview pages" This reverts commit b4269a5. * Delete. test/mocks/styleMock.js --------- Co-authored-by: sumaztwcode <109588018+sumaztwcode@users.noreply.github.com>
BAH-4767|Remove carbon styles from webpack
BAH-4767|Add.carbon/bahmni in webpack
BAH-4767|Add.externals to webpack
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Upgrade Bahmni Design System @bahmni/design-system v271