dify/web/utils
CodingOnStar d66b0d2d11 refactor(tests): reorganize test files and enhance test coverage for utility functions
- Moved test files for completion parameters, clipboard, app redirection, and emoji utilities to the appropriate directory structure.
- Added comprehensive tests for clipboard functionality, including modern and legacy methods.
- Implemented tests for app redirection logic based on user permissions and app modes.
- Enhanced tests for completion parameters validation and error handling.
- Introduced tests for emoji search functionality with various scenarios.
- Updated icon utility tests to cover edge cases and security concerns.
- Improved formatting tests for numbers, file sizes, and time representation.
2026-03-26 09:42:09 +08:00
..
__tests__ refactor(tests): reorganize test files and enhance test coverage for utility functions 2026-03-26 09:42:09 +08:00
app-redirection.ts feat: introduce trigger functionality (#27644) 2025-11-12 17:59:37 +08:00
classnames.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
client.ts refactor(web): extract isServer/isClient utility & upgrade Node.js to 22.12.0 (#30803) 2026-01-12 12:57:43 +08:00
clipboard.ts fix: copy to clipboard failed in non-secure (HTTP) contexts (#32287) 2026-03-10 15:46:17 +08:00
completion-params.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
context.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
download.ts feat: Download the uploaded files (#31068) 2026-01-19 16:48:13 +08:00
draft-07.json feat: Add customized json schema validation (#25408) 2025-09-09 15:15:32 +08:00
emoji.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
encryption.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
error-parser.ts refactor(web): replace String.match() with RegExp.exec() for non-global regex (#32386) 2026-02-18 17:46:38 +09:00
format.ts refactor(web): replace String.match() with RegExp.exec() for non-global regex (#32386) 2026-02-18 17:46:38 +09:00
get-icon.ts Introduce Plugins (#13836) 2025-02-17 17:05:13 +08:00
gtag.ts refactor(web): extract isServer/isClient utility & upgrade Node.js to 22.12.0 (#30803) 2026-01-12 12:57:43 +08:00
index.ts feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00
mcp.ts removing horus eye and adding mcp icon (#25323) 2025-10-10 17:00:03 +08:00
model-config.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
navigation.ts CI: add TS indentation check via esLint (#24810) 2025-09-01 15:31:59 +08:00
object.ts chore: fix type for useTranslation in #i18n (#32134) 2026-02-09 16:47:23 +08:00
permission.ts fix: add dataset edit permissions (#13223) 2025-02-06 14:26:16 +08:00
plugin-version-feature.ts feat: the frontend part of mcp (#22131) 2025-07-10 14:14:02 +08:00
semver.ts test(workflow): add unit tests for workflow components (#33741) 2026-03-19 18:35:16 +08:00
server-only-context.ts feat: init rsc support for translation (#30596) 2026-01-06 13:23:03 +08:00
setup-status.ts Revert "refactor!: replace Zustand global store with TanStack Query for systemFeatures" 2026-02-01 19:06:45 +08:00
storage.ts feat(web): add resizable sidebar to skill page with localStorage persistence 2026-01-28 15:12:11 +08:00
time.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
timezone.json chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
timezone.ts Fix/app logs today filter (#689) 2023-07-31 13:30:04 +08:00
tool-call.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
urlValidation.ts refactor(web): replace String.match() with RegExp.exec() for non-global regex (#32386) 2026-02-18 17:46:38 +09:00
validators.ts feat: Add customized json schema validation (#25408) 2025-09-09 15:15:32 +08:00
var.ts fix: pass all CI quality checks - ESLint, TypeScript, basedpyright, pyrefly, lint-imports 2026-03-24 10:54:58 +08:00