Skip to content

Updated dependencies and cleaned up code#39

Merged
spietras merged 1 commit intomainfrom
update
Mar 24, 2026
Merged

Updated dependencies and cleaned up code#39
spietras merged 1 commit intomainfrom
update

Conversation

@spietras
Copy link
Member

No description provided.

@spietras spietras requested a review from Copilot March 24, 2026 21:04
@spietras spietras self-assigned this Mar 24, 2026
@spietras spietras added the cleanup Stay fresh label Mar 24, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates frontend dependencies and performs small API/type cleanups across the isomorphic hooks, UI components, localization templates, and an auto-generated API client.

Changes:

  • Bumped several dependencies (TanStack Query, Mantine, Lingui, hey-api/openapi-ts, etc.) and updated the lockfile.
  • Improved type structure and hook return stability (memoized return objects, extracted NowState, added onValuesChange plumbing to useForm).
  • Adjusted templated app description strings used in metadata and localization templates.

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/src/isomorphic/state/types.ts Extracts NowState for reuse and simplifies State.now typing.
src/src/isomorphic/generic/hooks/use-hydrated/main.ts Memoizes hook return object for stable reference.
src/src/isomorphic/core/hooks/use-form/types.ts Adds onValuesChange type and exposes it on UseFormInput.
src/src/isomorphic/core/hooks/use-form/main.ts Passes onValuesChange through to Mantine form config.
src/src/common/localization/locales/pl.po.jinja Switches layout description msgid/msgstr to templated {{ description }}.
src/src/common/localization/locales/en.po.jinja Switches layout description msgid/msgstr to templated {{ description }}.
src/src/common/core/components/generic/loading-widget/types.ts Replaces object input type with a typed type?: LoaderProps["type"].
src/src/common/core/components/generic/loading-widget/main.tsx Allows configuring Mantine <Loader> type via props.
src/src/common/apis/icanhazdadjoke/core/bodySerializer.ts Tightens serializer types to unknown, with casts in implementations.
src/src/common/apis/icanhazdadjoke/clnt.ts Narrows CreateClientConfig to sync return type.
src/src/common/apis/icanhazdadjoke/client/types.ts Narrows CreateClientConfig to sync return type.
src/src/common/apis/icanhazdadjoke/client/clnt.ts Adjusts serializedBody typing/casts and wraps buildUrl to include base config.
src/src/client/generic/hooks/use-now/main.ts Memoizes hook return object for stable reference.
src/src/app/global-error.tsx.jinja Uses templated {{ description }} for meta description.
src/src/app/(root)/layout.tsx.jinja Uses templated {{ description }} for localized description message.
src/package.json.jinja Bumps dependency versions.
src/package-lock.json.jinja Updates lockfile entries to match new dependency versions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@spietras spietras merged commit ec7ced3 into main Mar 24, 2026
6 checks passed
@spietras spietras deleted the update branch March 24, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Stay fresh

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants