(status)
| 226 | }; |
| 227 | |
| 228 | export const deriveCodeFromGuacStatus = (status) => { |
| 229 | const code = status?.code; |
| 230 | switch (code) { |
| 231 | case GUAC_STATUS_CLIENT_UNAUTHORIZED: |
| 232 | case GUAC_STATUS_CLIENT_FORBIDDEN: |
| 233 | return "rdp_auth_failed"; |
| 234 | case GUAC_STATUS_RESOURCE_NOT_FOUND: |
| 235 | return "rdp_unknown"; |
| 236 | case GUAC_STATUS_UPSTREAM_NOT_FOUND: |
| 237 | return "rdp_port_unreachable"; |
| 238 | case GUAC_STATUS_UPSTREAM_UNAVAILABLE: |
| 239 | return classifyGuacUpstreamFailure(status?.message); |
| 240 | default: |
| 241 | return "rdp_unknown"; |
| 242 | } |
| 243 | }; |
| 244 | |
| 245 | const Requirement = ({ children }) => ( |
| 246 | <li className="flex items-start gap-2 text-sm text-secondary-300"> |
no test coverage detected