Compare commits

..

14 commits

Author SHA1 Message Date
2d646d773f
fix: listen on 127.0.0.1
Some checks failed
container-scan / Container Scan (pull_request) Failing after 9s
docker-build / docker (pull_request) Failing after 2s
tests / Tests (pull_request) Failing after 8m11s
2025-05-14 00:07:02 +02:00
2fed76b5b7
fix(tests): start server for e2e tests 2025-05-14 00:07:01 +02:00
fd50cf9f75
chore(ci): improve docker cleanup 2025-05-14 00:07:00 +02:00
21b21c9c78
chore(ci): run e2e tests in workflow 2025-05-14 00:06:59 +02:00
d3865605c4
chore(ci): docker cleanup 2025-05-14 00:06:58 +02:00
8ad493f96e
test(e2e): test login page 2025-05-14 00:06:46 +02:00
3f8dd2ac3f
chore: add testing workflow 2025-05-14 00:04:49 +02:00
1bc17581ec
test: theme-picker 2025-05-14 00:04:48 +02:00
21834d83db
test: icon-button 2025-05-14 00:04:47 +02:00
5ce5ebb3b6
test: helper functions 2025-05-14 00:04:46 +02:00
2249424b2e
test: initialize cypress e2e testing library 2025-05-14 00:04:45 +02:00
bc59e78bd5 Merge pull request 'refactor: update labels and placeholders in login form inputs' (#59)
All checks were successful
docker-build / docker (push) Successful in 7m29s
container-scan / Container Scan (push) Successful in 2m40s
Reviewed-on: #59
Reviewed-by: Dominik <mail@dominikstahl.dev>
2025-05-13 21:59:45 +00:00
aebf89a83e refactor: update labels and placeholders in login form inputs
All checks were successful
docker-build / docker (pull_request) Successful in 3m24s
container-scan / Container Scan (pull_request) Successful in 4m40s
2025-05-13 23:52:50 +02:00
398c1f7abb feat: add Radix UI label component and update dependencies 2025-05-13 23:49:06 +02:00
3 changed files with 16 additions and 15 deletions

View file

@ -6,15 +6,15 @@ export default function LabeledInput({
label,
placeholder,
value,
name,
...props
}: {
type: 'text' | 'email' | 'password';
label: string;
placeholder?: string;
name: string;
value?: string;
} & React.InputHTMLAttributes<HTMLInputElement>) {
const elementId = Math.random().toString(36).substring(2, 15);
return (
<div className='flex flex-col gap-1'>
<Label htmlFor={name}>{label}</Label>
@ -23,7 +23,8 @@ export default function LabeledInput({
type={type}
placeholder={placeholder}
defaultValue={value}
id={elementId}
id={name}
name={name}
{...props}
/>
</div>

View file

@ -25,15 +25,15 @@ export default function LoginForm() {
>
<LabeledInput
type='email'
label='E-Mail'
placeholder='Enter your E-Mail'
label='E-Mail or Username'
placeholder='What you are known as.'
name='email'
data-cy='email-input'
/>
<LabeledInput
type='password'
label='Password'
placeholder='Enter your Password'
placeholder="Let's hope you remember it."
name='password'
data-cy='password-input'
/>

View file

@ -2686,9 +2686,9 @@ __metadata:
linkType: hard
"caniuse-lite@npm:^1.0.30001579":
version: 1.0.30001717
resolution: "caniuse-lite@npm:1.0.30001717"
checksum: 10c0/6c0bb1e5182fd578ebe97ee2203250849754a4e17d985839fab527ad27e125a4c4ffce3ece5505217fedf30ea0bbc17ac9f93e9ac525c0389ccba61c6e8345dc
version: 1.0.30001718
resolution: "caniuse-lite@npm:1.0.30001718"
checksum: 10c0/67f9ad09bc16443e28d14f265d6e468480cd8dc1900d0d8b982222de80c699c4f2306599c3da8a3fa7139f110d4b30d49dbac78f215470f479abb6ffe141d5d3
languageName: node
linkType: hard
@ -3047,14 +3047,14 @@ __metadata:
linkType: hard
"debug@npm:4, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4, debug@npm:^4.3.5, debug@npm:^4.4.0":
version: 4.4.0
resolution: "debug@npm:4.4.0"
version: 4.4.1
resolution: "debug@npm:4.4.1"
dependencies:
ms: "npm:^2.1.3"
peerDependenciesMeta:
supports-color:
optional: true
checksum: 10c0/db94f1a182bf886f57b4755f85b3a74c39b5114b9377b7ab375dc2cfa3454f09490cc6c30f829df3fc8042bc8b8995f6567ce5cd96f3bc3688bd24027197d9de
checksum: 10c0/d2b44bc1afd912b49bb7ebb0d50a860dc93a4dd7d946e8de94abc957bb63726b7dd5aa48c18c2386c379ec024c46692e15ed3ed97d481729f929201e671fcd55
languageName: node
linkType: hard
@ -5617,11 +5617,11 @@ __metadata:
linkType: hard
"napi-postinstall@npm:^0.2.2":
version: 0.2.3
resolution: "napi-postinstall@npm:0.2.3"
version: 0.2.4
resolution: "napi-postinstall@npm:0.2.4"
bin:
napi-postinstall: lib/cli.js
checksum: 10c0/125cb677d59f284e61cd9b4cd840cf735edd4c325ffc54af4fad16c8726642ffeddaa63c5ca3533b5e7023be4d8e9ff223484c5eea2a8efe2e2498fd063cabbd
checksum: 10c0/e8c357d7e27848c4af7becf2796afff245a2fc8ba176e1b133410bb1c9934a66d4bc542d0c9f04c73b0ba34ee0486b30b6cd1c62ed3aa36797d394200c9a2a8b
languageName: node
linkType: hard