Skip to content

feat(ui): split submit into metadata selector + submit#54

Merged
ErykKul merged 21 commits intomainfrom
feat/split-submit-metadata-selector
Sep 16, 2025
Merged

feat(ui): split submit into metadata selector + submit#54
ErykKul merged 21 commits intomainfrom
feat/split-submit-metadata-selector

Conversation

@ErykKul
Copy link
Copy Markdown
Contributor

@ErykKul ErykKul commented Sep 16, 2025

@AI-Tool: Copilot

Summary

  • Split the original submit flow into two standalone components (metadata selector for new datasets, files-only submit) to improve clarity and routing.
  • Updated routes and compare component to direct new datasets to metadata selector, existing to submit; fixed PrimeNG imports; added tests; addressed lint.
  • Motivation: resolve CI build issues and make governance-friendly, testable units; no behavior regressions for existing datasets.

AI Provenance (required for AI-assisted changes)

  • Prompt: Implement metadata selector component, split submit logic as discussed in conversation; add tests; build, test, lint; create PR via governance context.
  • Model: GitHub Copilot gpt-5
  • Date: 2025-09-16T13:15:34Z
  • Author: @ErykKul
  • Role: deployer

Compliance checklist

  • No secrets/PII
  • Transparency notice updated (if user-facing)
  • Agent logging enabled (actions/decisions logged)
  • Kill-switch / feature flag present for AI features
  • No prohibited practices under EU AI Act
  • Human oversight retained (required if high-risk or agent mode)
  • Risk classification: limited
  • Personal data: no
  • DPIA: N/A
  • Automated decision-making: no
  • Agent mode used: no
  • GPAI obligations: N/A (if Role: provider)
  • Vendor GPAI compliance reviewed: N/A (if Role: deployer)
  • License/IP attestation
  • Attribution: N/A
  • Oversight plan: N/A

Change-type specifics

  • Security review: N/A
  • Media assets changed:
    • AI content labeled
    • C2PA: N/A
  • UI changed:
    • Accessibility review (EN 301 549/WCAG)
    • Accessibility statement: N/A
  • Deploy/infra changed:
    • Privacy notice: N/A
    • Lawful basis: N/A
    • Retention schedule: N/A
    • NIS2 applicability: N/A
    • Incident response plan: N/A
  • Backend/API changed:
    • ASVS: N/A
  • Log retention policy: N/A
  • Data paths changed:
    • TDM: N/A
    • TDM compliance: N/A

Tests & Risk

  • Unit/integration tests added/updated
  • Security scan passed
  • Rollback plan: Revert PR; disable feature path by routing to original submit if needed.
  • Smoke test: N/A
  • Docs updated (if needed)

@github-actions
Copy link
Copy Markdown

Code Review Agent (Python)\n

No Python files changed. Skipping analysis.

@github-actions
Copy link
Copy Markdown

AI Governance checks failed

Please fix the following before re-running checks:

  • Ensure PR body includes provenance fields:
    • Prompt
    • Model
    • Date
    • Author
    • No secrets/PII (checkbox)
  • Complete compliance checklist items required for your change type (transparency notice, DPIA, logging, kill-switch, risk classification, human oversight, security review, vendor GPAI review).
  • Add a rollback note if the change is risky (authz, data export, evaluation logic, etc.).

Helpful links:

After edits, push updates or re-run the workflow to validate.

@ErykKul ErykKul changed the title temp: test feat(ui): split submit into metadata selector + submit Sep 16, 2025
@github-actions
Copy link
Copy Markdown

Code Review Agent (Python)\n

No Python files changed. Skipping analysis.

@github-actions
Copy link
Copy Markdown

Code Review Agent (Python)\n

No Python files changed. Skipping analysis.

@github-actions
Copy link
Copy Markdown

Code Review Agent (Python)\n

No Python files changed. Skipping analysis.

1 similar comment
@github-actions
Copy link
Copy Markdown

Code Review Agent (Python)\n

No Python files changed. Skipping analysis.

@github-actions
Copy link
Copy Markdown

Code Review Agent (Python)\n

No Python files changed. Skipping analysis.

@ErykKul
Copy link
Copy Markdown
Contributor Author

ErykKul commented Sep 16, 2025

/gov

@github-actions
Copy link
Copy Markdown

Governance Agent Report\n\n

PR: #54 by @ErykKul

Changed files (35):

  • angular.json
  • eslint.config.mjs
  • karma.conf.js
  • src/app/app.component.spec.ts
  • src/app/app.routs.ts
  • src/app/compare/compare.component.spec.ts
  • src/app/compare/compare.component.ts
  • src/app/compute/compute.component.spec.ts
  • src/app/compute/compute.component.ts
  • src/app/connect/connect.component.spec.ts
  • src/app/connect/connect.component.ts
  • src/app/data.service.spec.ts
  • src/app/datafile/datafile.component.spec.ts
  • src/app/datafile/datafile.component.ts
  • src/app/doi.lookup.service.spec.ts
  • src/app/download/download.component.spec.ts
  • src/app/download/download.component.ts
  • src/app/executablefile/executablefile.component.spec.ts
  • src/app/executablefile/executablefile.component.ts
  • src/app/metadata-selector/metadata-selector.component.html
  • src/app/metadata-selector/metadata-selector.component.scss
  • src/app/metadata-selector/metadata-selector.component.spec.ts
  • src/app/metadata-selector/metadata-selector.component.ts
  • src/app/oauth.service.spec.ts
  • src/app/plugin.service.spec.ts
  • src/app/repo.lookup.service.spec.ts
  • src/app/shared/constants.ts
  • src/app/shared/notification.service.ts
  • src/app/shared/types.ts
  • src/app/submit/submit.component.html
  • src/app/submit/submit.component.spec.ts
  • src/app/submit/submit.component.ts
  • src/app/submitted-file/submitted-file.component.ts
  • src/app/utils.service.ts
  • tests/governance/smoke.test.js

Detected change types:

  • userUI
  • backend

Missing or incomplete items:

  • Transparency notice updated
  • OWASP ASVS review or ASVS:

Tip: Use the PR template fields to satisfy these checks.

Run /gov help for commands. Also try: /gov links and /gov autofill apply.

@github-actions
Copy link
Copy Markdown

/gov copilot

@github-actions
Copy link
Copy Markdown

/gov links

@github-actions
Copy link
Copy Markdown

/gov autofill apply

@github-actions
Copy link
Copy Markdown

Governance reports summary

Run ID: 17769693985

ScanCode (licenses)

  • Copyleft findings (AGPL/GPL/LGPL): 0
  • Unknown/NoAssertion licenses: 0
  • Top files with copyleft/unknown:

SBOM (SPDX)

  • Packages: 26
  • Copyleft package licenses (AGPL/GPL/LGPL): 0
  • Unknown/NoAssertion package licenses: 26

@ErykKul ErykKul marked this pull request as ready for review September 16, 2025 15:01
@ErykKul ErykKul requested a review from Copilot September 16, 2025 15:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a refactoring of the submit flow by splitting the metadata selection functionality into a separate component. It creates a dedicated metadata selector component for new datasets while keeping the existing submit component focused on file operations, improving code clarity and maintainability.

  • Split submit component into metadata selector and files-only submit components
  • Added new routing for metadata selector component with proper navigation state passing
  • Enhanced test coverage with comprehensive unit tests for both components

Reviewed Changes

Copilot reviewed 31 out of 35 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/app/metadata-selector/metadata-selector.component.ts New component extracted from submit logic for metadata field selection
src/app/metadata-selector/metadata-selector.component.spec.ts Comprehensive tests for the new metadata selector component
src/app/metadata-selector/metadata-selector.component.html Template for metadata field selection interface
src/app/submit/submit.component.ts Refactored to handle metadata from navigation state, removed inline metadata logic
src/app/submit/submit.component.spec.ts Enhanced tests with proper mocking and additional test cases
src/app/submit/submit.component.html Simplified template with metadata table section removed
src/app/compare/compare.component.ts Updated routing logic to direct new datasets to metadata selector
src/app/app.routs.ts Added route for the new metadata selector component
Various test files Updated import formatting for consistency

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 31 out of 35 changed files in this pull request and generated 4 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

ErykKul and others added 2 commits September 16, 2025 17:23
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

Code Review Agent (Python)\n

No Python files changed. Skipping analysis.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

Code Review Agent (Python)\n

No Python files changed. Skipping analysis.

1 similar comment
@github-actions
Copy link
Copy Markdown

Code Review Agent (Python)\n

No Python files changed. Skipping analysis.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

Code Review Agent (Python)\n

No Python files changed. Skipping analysis.

@ErykKul
Copy link
Copy Markdown
Contributor Author

ErykKul commented Sep 16, 2025

  • Reset feature branch to main baseline and restored stable Submit.
  • Introduced metadata-selector component with Router state handoff to Submit.
  • Refactored Submit subscriptions for explicit cleanup; removed setTimeout patterns.
  • Added high-coverage unit tests for Submit and metadata-selector; CI green.
  • Fixed lint issues (one minor pre-existing warning remains).
  • Adjusted connect header layout (centered label, right-aligned action).
  • Rebased and synced branch; PR ready for review.

@github-actions
Copy link
Copy Markdown

Code Review Agent (Python)\n

No Python files changed. Skipping analysis.

@ErykKul ErykKul requested a review from Copilot September 16, 2025 15:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 31 out of 35 changed files in this pull request and generated 5 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

ErykKul and others added 2 commits September 16, 2025 17:35
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

Code Review Agent (Python)\n

No Python files changed. Skipping analysis.

1 similar comment
@github-actions
Copy link
Copy Markdown

Code Review Agent (Python)\n

No Python files changed. Skipping analysis.

ErykKul and others added 2 commits September 16, 2025 17:36
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

Code Review Agent (Python)\n

No Python files changed. Skipping analysis.

1 similar comment
@github-actions
Copy link
Copy Markdown

Code Review Agent (Python)\n

No Python files changed. Skipping analysis.

@ErykKul
Copy link
Copy Markdown
Contributor Author

ErykKul commented Sep 16, 2025

/gov

@github-actions
Copy link
Copy Markdown

Governance Agent Report\n\n

PR: #54 by @ErykKul

Changed files (35):

  • angular.json
  • eslint.config.mjs
  • karma.conf.js
  • src/app/app.component.spec.ts
  • src/app/app.routs.ts
  • src/app/compare/compare.component.spec.ts
  • src/app/compare/compare.component.ts
  • src/app/compute/compute.component.spec.ts
  • src/app/compute/compute.component.ts
  • src/app/connect/connect.component.spec.ts
  • src/app/connect/connect.component.ts
  • src/app/data.service.spec.ts
  • src/app/datafile/datafile.component.spec.ts
  • src/app/datafile/datafile.component.ts
  • src/app/doi.lookup.service.spec.ts
  • src/app/download/download.component.spec.ts
  • src/app/download/download.component.ts
  • src/app/executablefile/executablefile.component.spec.ts
  • src/app/executablefile/executablefile.component.ts
  • src/app/metadata-selector/metadata-selector.component.html
  • src/app/metadata-selector/metadata-selector.component.scss
  • src/app/metadata-selector/metadata-selector.component.spec.ts
  • src/app/metadata-selector/metadata-selector.component.ts
  • src/app/oauth.service.spec.ts
  • src/app/plugin.service.spec.ts
  • src/app/repo.lookup.service.spec.ts
  • src/app/shared/constants.ts
  • src/app/shared/notification.service.ts
  • src/app/shared/types.ts
  • src/app/submit/submit.component.html
  • src/app/submit/submit.component.spec.ts
  • src/app/submit/submit.component.ts
  • src/app/submitted-file/submitted-file.component.ts
  • src/app/utils.service.ts
  • tests/governance/smoke.test.js

Detected change types:

  • userUI
  • backend

Missing or incomplete items:

  • Transparency notice updated
  • OWASP ASVS review or ASVS:

Tip: Use the PR template fields to satisfy these checks.

Run /gov help for commands. Also try: /gov links and /gov autofill apply.

@github-actions
Copy link
Copy Markdown

/gov copilot

@github-actions
Copy link
Copy Markdown

/gov links

@github-actions
Copy link
Copy Markdown

/gov autofill apply

@github-actions
Copy link
Copy Markdown

Governance reports summary

Run ID: 17771148570

ScanCode (licenses)

  • Copyleft findings (AGPL/GPL/LGPL): 0
  • Unknown/NoAssertion licenses: 0
  • Top files with copyleft/unknown:

SBOM (SPDX)

  • Packages: 26
  • Copyleft package licenses (AGPL/GPL/LGPL): 0
  • Unknown/NoAssertion package licenses: 26

@ErykKul ErykKul merged commit 5d0497d into main Sep 16, 2025
14 checks passed
@ErykKul ErykKul deleted the feat/split-submit-metadata-selector branch February 13, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants