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

src/components: add ability to create organization and subsidiary in FormFieldSelectTable #804

Merged
merged 20 commits into from
Dec 25, 2024

Conversation

maceksimon
Copy link
Contributor

Add ability to create organization and subsidiary in FormFieldSelectTable

  • Use createOrganization and createSubsidiary API functions in FormFieldSelectTable.
  • To simplify manipulation subsidiary options (reloading after organizationId change and modifying after subsidiary create), save them in registerChallenge store.
  • Add commands waitForOrganizationPostApi (intercept is already defined in /support/commonTests.ts) and for filling in organization form.
  • FormSelectOrganization.cy.js: intercept organizations and subsidiaries requests in existing tests to avoid error messages.
  • Update fixtures (incorrect count, mismatch between request-response).

@tmszi tmszi added the enhancement New feature or request label Dec 25, 2024
@maceksimon maceksimon force-pushed the feature/create-organization branch from 6147ef6 to ea3f9f7 Compare December 25, 2024 08:07
@tmszi tmszi merged commit a2ef801 into auto-mat:main Dec 25, 2024
0 of 6 checks passed
maceksimon added a commit to maceksimon/ride-to-work-by-bike-frontend that referenced this pull request Dec 25, 2024
…FormFieldSelectTable (auto-mat#804)

* create organization

* create organization + subsidiary

* remove outdated comment

* add test for creating organization in SelectTable

* remove only

* organization and subsidiary creation

* update loading subsidiaries via store and post-creation update

* do not persist subsidiaries

* add comments

* update docs and remove unrelated test

* update onChangeOption handler

* docs update

* add docs

* remove unused fixture

* fix FormFieldCompanyAddress test (simulate onMounted hook)

* src/components/form: fix logger info/debug message text

* src/components/form: refactor onCreateOption() evt handler func with prepeding new organization option into all options

* src/components/form: add logger debug messages

* src/components/form: fix position of logger info message

* src/components/form: add logger debug messages

---------

Co-authored-by: Šimon Macek <[email protected]>
Co-authored-by: Tomas Zigo <[email protected]>
tmszi added a commit that referenced this pull request Dec 26, 2024
…ble component (#800)

* add team members to SelectTable

* update team icon color

* remove duplicate test

* fix e2e test register_challenge

* src/components: add ability to create organization and subsidiary in FormFieldSelectTable (#804)

* create organization

* create organization + subsidiary

* remove outdated comment

* add test for creating organization in SelectTable

* remove only

* organization and subsidiary creation

* update loading subsidiaries via store and post-creation update

* do not persist subsidiaries

* add comments

* update docs and remove unrelated test

* update onChangeOption handler

* docs update

* add docs

* remove unused fixture

* fix FormFieldCompanyAddress test (simulate onMounted hook)

* src/components/form: fix logger info/debug message text

* src/components/form: refactor onCreateOption() evt handler func with prepeding new organization option into all options

* src/components/form: add logger debug messages

* src/components/form: fix position of logger info message

* src/components/form: add logger debug messages

---------

Co-authored-by: Šimon Macek <[email protected]>
Co-authored-by: Tomas Zigo <[email protected]>

* add team members to SelectTable

* update team icon color

* fix resetting the model value in component tests

* use campaign max members for team max generation

* Remove unnecessary defaultMaxTeamMembers global app config var

Max team members value is readed from the REST API URL this_campaign/
endpoint.

---------

Co-authored-by: Šimon Macek <[email protected]>
Co-authored-by: Tomas Zigo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants