Skip to content

Custom form views for Creating/Updating HTTPRoutes#21

Merged
jasonmadigan merged 34 commits intomainfrom
gh-issue-246
Oct 23, 2025
Merged

Custom form views for Creating/Updating HTTPRoutes#21
jasonmadigan merged 34 commits intomainfrom
gh-issue-246

Conversation

@Anton-Fil
Copy link
Copy Markdown
Contributor

@Anton-Fil Anton-Fil commented Aug 20, 2025

closes #12
Verification

In one terminal window, run:

  • yarn install
  • yarn run start

In another terminal window, run:

In browser:

Screenshot 2025-10-22 at 12 43 14
  • press create:
Screenshot 2025-10-22 at 12 45 40 -http rout should be created: Screenshot 2025-10-22 at 12 46 58

Implemented:

  • Form for creating HTTPRoute name
  • Dynamic hostname generation
  • Dynamic Gateway selection with validation
  • Synchronization and switch between YAML editor and form
  • Dynamic creation of rules with smart validation
  • Edit mode
  • UI/UX created by figma design

@Anton-Fil Anton-Fil requested a review from R-Lawton August 20, 2025 15:42
@Anton-Fil
Copy link
Copy Markdown
Contributor Author

@R-Lawton

Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
<TextInput
value={match.pathValue}
onChange={(_, value) => {
value = '/' + value.replace(/^\/+/, '');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For regular expression, it doesn't make sense to have the path as a placeholder in the input field it can cause confusion

Patryk-Stefanski and others added 18 commits September 23, 2025 13:27
Signed-off-by: Patryk Stefanski <pstefans@redhat.com>

Add validation to httprule wizard - filter

Signed-off-by: Patryk Stefanski <pstefans@redhat.com>
Signed-off-by: Patryk Stefanski <pstefans@redhat.com>
Signed-off-by: Patryk Stefanski <pstefans@redhat.com>
Signed-off-by: Patryk Stefanski <pstefans@redhat.com>
Signed-off-by: Patryk Stefanski <pstefans@redhat.com>
Signed-off-by: Patryk Stefanski <pstefans@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
…ing servise

Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
Addition of backendRef to the rule wizard for HTTPRoute
Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
Gh issue 246 review and create wizard step
Signed-off-by: Anton-Fil <afil@redhat.com>
Signed-off-by: Anton-Fil <afil@redhat.com>
@Anton-Fil Anton-Fil changed the title Gh issue 246 Custom form views for Creating/Updating HTTPRoutes Oct 22, 2025
Signed-off-by: Anton-Fil <afil@redhat.com>
@Anton-Fil Anton-Fil marked this pull request as ready for review October 22, 2025 11:48
@Anton-Fil
Copy link
Copy Markdown
Contributor Author

Copy link
Copy Markdown
Member

@jasonmadigan jasonmadigan left a comment

Choose a reason for hiding this comment

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

small dupe in console-extensions which we should fixup

otherwise, seems to work pretty good from my local testing

Comment thread src/components/httproute/review/ReviewStep.tsx Outdated
Comment thread console-extensions.json Outdated
Signed-off-by: Anton-Fil <afil@redhat.com>
Copy link
Copy Markdown
Member

@jasonmadigan jasonmadigan left a comment

Choose a reason for hiding this comment

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

LGTM

@jasonmadigan jasonmadigan merged commit 5878e56 into main Oct 23, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom form views for Creating/Updating HTTPRoutes

4 participants