Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
2d8e50bf
authored
Aug 21, 2026
by
Seefs
Committed by
GitHub
Aug 21, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(web): prevent credential autofill in usage log filters (#6966)
parent
f1164142
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
web/src/features/usage-logs/components/common-logs-filter-bar.tsx
+6
-4
web/src/features/usage-logs/components/logs-filter-toolbar.tsx
+1
-0
No files found.
web/src/features/usage-logs/components/common-logs-filter-bar.tsx
View file @
2d8e50bf
...
...
@@ -251,7 +251,9 @@ export function CommonLogsFilterBar<TData>(
filters
.
requestId
,
filters
.
upstreamRequestId
,
].
filter
(
Boolean
).
length
const
sensitiveType
=
sensitiveVisible
?
'text'
:
'password'
const
sensitiveInputClass
=
sensitiveVisible
?
undefined
:
'[-webkit-text-security:disc]'
const
logTypeItems
=
useMemo
(
()
=>
LOG_TYPE_FILTERS
.
map
((
type
)
=>
({
...
...
@@ -315,7 +317,7 @@ export function CommonLogsFilterBar<TData>(
<
LogsFilterField
>
<
LogsFilterInput
placeholder=
{
t
(
'Group'
)
}
type=
{
sensitiveType
}
className=
{
sensitiveInputClass
}
value=
{
filters
.
group
||
''
}
onChange=
{
(
e
)
=>
handleChange
(
'group'
,
e
.
target
.
value
)
}
onKeyDown=
{
handleKeyDown
}
...
...
@@ -363,7 +365,7 @@ export function CommonLogsFilterBar<TData>(
<
LogsFilterField
>
<
LogsFilterInput
placeholder=
{
t
(
'Token Name'
)
}
type=
{
sensitiveType
}
className=
{
sensitiveInputClass
}
value=
{
filters
.
token
||
''
}
onChange=
{
(
e
)
=>
handleChange
(
'token'
,
e
.
target
.
value
)
}
onKeyDown=
{
handleKeyDown
}
...
...
@@ -373,7 +375,7 @@ export function CommonLogsFilterBar<TData>(
<
LogsFilterField
>
<
LogsFilterInput
placeholder=
{
t
(
'Username'
)
}
type=
{
sensitiveType
}
className=
{
sensitiveInputClass
}
value=
{
filters
.
username
||
''
}
onChange=
{
(
e
)
=>
handleChange
(
'username'
,
e
.
target
.
value
)
}
onKeyDown=
{
handleKeyDown
}
...
...
web/src/features/usage-logs/components/logs-filter-toolbar.tsx
View file @
2d8e50bf
...
...
@@ -79,6 +79,7 @@ export function LogsFilterInput(props: ComponentProps<typeof Input>) {
return
(
<
Input
{
...
props
}
autoComplete=
'off'
className=
{
cn
(
'h-8 min-w-0 text-sm leading-5'
,
props
.
className
)
}
/>
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment