This component makes it possible to conditionally hide validation errors
in a subset of form fields. It is required by an upcoming PR to the role
editor that satisfies the UX requirement of not showing validation
errors on newly added sections until the next explicit validation is
requested.
Also: add type information to useRule.
* Update type for targetSubresourceName on DocumentGateway
The way DocumentsService.createGatewayDocument is implemented means that
the targetSubresourceName property is always present, but it can be undefined.
* Use "local port" instead of "port" in DocumentGatewapApp
* Rewrite gateway FieldInputs to use styled components
* Update comments in protos
* useGateway: Stabilize useAsync functions of ports
* Add padding to menu label if it's first child
* Add support for required prop to Input and FieldInput
* Add UI for changing target port
* ActionButtons: Show ports of multi-port apps when VNet is not supported
Now that we have support for the target port in Connect's gateways, we
can show the ports and then open a gateway for that specific port on
click.
* Add RWMutex to gateways
* Clear app gateway cert on target port change
* Remove gateways/app.LocalProxyURL
It was used only in tests and it made sense only for web apps anyway.
* TestTCP: Close connections when test ends
* Create context with timeout in testGatewayCertRenewal
…instead of in each function that uses it.
* Add tests for changing the target port of a TCP gateway
* Parallelize app gateway tests within MFA/non-MFA groups
* Make testGatewayConnection take ctx as first arg
This will be needed in tests that check target port validation.
* Validate target port of app gateways
* Increase timeouts in app gateway tests
* Change icons from medium to small
* Use consistent spacing in AppGateway
* Add godoc for ValidateTargetPort
* Add retry with relogin to change target port
* Validation
Adds a model-level validation capability to our validation library.
* Move tooltips to the design package
They will be later required in the SlideTabs component
* Review
* Also, rename the tooltip directory
* Also, rename the tooltip component
* review
* Never return undefined from useValidation()
* Implement the new inputs and fix all type issues
* Implement select controls and fix build problems
* Fix UI issues after updating inputs and selects
* Replace old in-page alerts with the new design
* Update snapshots
* Remove a commented out test
* Review
* Update snapshots
* Fix the alert in the DB auto-enrollment
* Finalize switch to the new typography
Implements H3 and beyond, new subitiles, new text body styles, and paragraphs.
* Update snapshots
* Change the resource enrollment workflow headings to H1
* Minor tweaks
- Set body2 line height to 24px
- Set input font weight to 300
- Correct the typography of small text in a couple of places
* Update snapshots
* Fix ResourceIcon story
* Add ButtonWithMenu
* Use ButtonWithMenu in DocumentCluster/ActionButtons
* Reorganize DocumentCluster story
Put ActionButtons into a separate category. Move the happy path as the
first story for DocumentCluster.
* Import ComponentType
* Update snapshots
* Enable muting tooltip info icon
* Require user group field
* Update snapshot as a result of changing css for tooltip
* Fix user group setting for UI
* Address CR
* Make pagination icons a little more visible
* Use different color for `tr` border
* Use `opacity: 1` for placeholders
* Include `borderRadius` in `StyledPanel` to fix rounded corners in Connect custom tables
* Use `colors.text.primary` for items in `MenuLogin`
* Adjust Connect theme to the updated dark theme
* Remove unused component
* Update snapshots
* Remove `surfaceSecondary` and `sunkenSecondary` colors
* Remove unneeded `inherit`
* Do not hardcode bg color in `TextArea`
* Expand comment
* Simplify the look of top bar elements
* Remove unused component
* Remove `text.contrast`
* Use the same dark theme for WebUI and Connect
* Revert "Make pagination icons a little more visible"
This reverts commit 1fe1d7baec.
* Add shadow for the tabs
* Post-merge fixes
* Do not use Arial on custom buttons
* Revert snapshot changes
* Fix colors in `ActionPicker`
* Apply hover styles directly on `SearchBar` input
* Use white color for "Database Connection" header
* Add shadow directly to `StyledTabs`
* Run prettier
* Update e
* Add some top padding to the terminal
* Review fixes
* Move SearchBar hover to the Flex element
* Table-related improvements (#25333)
* Use a better icon for the reverse tunnel cell
* Use `ButtonIcon` for pagination icons
* Fix rendering table border on Safari
* Manually add a visual separator between the table and the element below it
* Add bottom padding to resource tables in Connect
* Update snapshots
* Update snapshots
* Revert e
* Respect route exactness in TopNav
* Allow submitting CSRF token via form
* Skip "safe" methods in CSRF checks
* Export getXCSRFToken
* Add WithAuth2
* Passthrough "name" of FieldInput
Allows it to be used in an actual form
* icomoon: add hashtag icon
* Add GetAvailablePluginTypes to PluginService proto
* Expose ProxyPublicAddr
For use in Enterprise web Plugin
* Run prettier
* Factor out app.MetaRedirect
* Rename: WithAuth2 -> WithAuthCookieAndCSRF
* Run GCI
* Renegerate protos
* [Backend]: allow more db fields to be updatable
* Add preventing duplicate keys for label creator
* Add sort compare fn helper
* Update db request update object
* Update CreateDatabase component
- Uncomment and touch up db service checker
- Fix db service label checking
- Allow user to make changes to updatable db fields
- Split defining db name and the other fields into
two views, to prevent user from changing the db name
which is not allowed with the update action
* Address CR: use nil value to determine CACert update
* Few more touch ups
- address CR: don't OR update db request field CACert
and use consistent camelCasing
- remove the skip button for deploying service since
we have the service checker now, which auto skips it
for user if detects service
- refactor label matching for both register database
and deploy service steps
* Address CR: make all fields updatable
* Update service polling after rebase
* Allow for inputs to be disabled
* Remove timeouts from the discover workflows
* Correct the resource type to be cleared on unmount
* Update test snapshots
* Rename useJoinToken to useJoinTokenSuspender
* Remove TODO
* Simplify usePoll
* Simplify the hint box code, add a shared hook
* Add the generte command button back to db flow
* Store the joinToken in PingTeleportContext state instead of using the hook
* Fix rebase diff mistake
* Fix bug with polling for result
- once we get the result, we set the result
back to null, so we can't proceed to next step
---------
Co-authored-by: Lisa Kim <lisa@goteleport.com>
* Create ToolTipInfo component
* Update FieldInput to accept optional tool tip content
* Temp fix for story viewing timed out polling state
* Support different informational texts depending on database
* Add database service checker to determine if we can skip next step
* Enable AWS RDS postgres flow
* Refactor `DocumentGateway`
* Update protobuf files
* Do not hide port input on reconnect
* Update port of gateway connection when doc gets updated
Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>
* add import order lint rule.
* auto fix import order and spacing.
* prettier fix.
* manual fix of import order.
* update failing snapshots.
* bump e submodule for import order fixes.
* Create/Use buttons for text button so users can focus with keyboard
* Various small tweaks
- Add a refocus indicator to FieldInput
- Tweaked StepSlider to handle edge cases like growing height
from error dialogues on initial render
- Pass on deviceName to reset endpoints
* Update e-ref
- Display primary and secondary logins on different cards
- Use sliding transitions
- Allow to add passwordless device through dashboard
- Update e-ref
* New Top Nav (#136)
* Moves AuthConnectors/TrustedClusters/Roles to the Dashboard Top Nav
* Add feature to allow user in context to perform operations on other users (#137)
* Added List/Create/Update/Delete/Reset user functionality
* Added enterprise api endpoint to OSS config
Co-authored-by: Alexey Kontsevoy <biz.kovoy@gmail.com>
* Fix handling of feature flags (#138)
* Prevent closing when there is an error with deleting user (#142)
* Alexey/v5nav (#155)
* Touch Ups (#157)
* Create a story for Teleport App (#158)
* Add Application Launcher (AAP) (#162)
* use publicAddr and clusterName URL parameters to launch apps. (#169)
* Update sideNav styles and ssh input box (#170)
* [teleport] Implement add node dialog (#165)
* [teleport] Change NodeJoinToken prop expires to expiry (#176)
* Remove empty state from NodesList (#179)
* [teleport] Add -f flag to add node curl command (#180)
* [teleport] Add app session chunk and start events (#181)
* Add Application Dialog
* Delete Force
Co-authored-by: Lisa Kim <lisa@gravitational.com>