Skip to content

Commit

Permalink
Merge pull request #4420 from nulib/deploy/staging
Browse files Browse the repository at this point in the history
Deploy v9.7.0 to production
  • Loading branch information
bmquinn authored Feb 21, 2025
2 parents 74cc5f4 + fd151e3 commit 59ade10
Show file tree
Hide file tree
Showing 46 changed files with 1,948 additions and 1,664 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
MIX_ENV: test
services:
db:
image: ghcr.io/nulib/postgres:10-alpine
image: postgres:16-alpine
env:
POSTGRES_USER: docker
POSTGRES_PASSWORD: d0ck3r
Expand Down Expand Up @@ -231,6 +231,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: app
- name: Test DB Rollback
run: mix ecto.rollback --all
working-directory: app
# - name: Test DB Rollback
# run: mix ecto.rollback --all
# working-directory: app
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import React, { useEffect } from "react";
import PropTypes from "prop-types";
import { Button } from "@nulib/design-system";
import { useForm, FormProvider } from "react-hook-form";
Expand All @@ -12,6 +12,10 @@ function DashboardsLocalAuthoritiesModalAdd({
}) {
const methods = useForm();

useEffect(() => {
if (isOpen) methods.reset();
}, [isOpen]);

const onSubmit = (data) => {
handleAddLocalAuthority(data);
methods.reset();
Expand Down
19 changes: 6 additions & 13 deletions app/assets/js/components/Dashboards/LocalAuthorities/ModalEdit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,14 @@ function DashboardsLocalAuthoritiesModalEdit({
isOpen,
}) {
if (!currentAuthority) return null;
const [defaultValues, setDefaultValues] = React.useState({
hint: "",
label: "",
});
const methods = useForm();
const { isDirty } = methods.formState;

React.useEffect(() => {
setDefaultValues({
const methods = useForm({
defaultValues: {
hint: currentAuthority.hint,
label: currentAuthority.label,
});
}, [currentAuthority]);
},
});

const { isDirty } = methods.formState;

const onSubmit = (data) => {
handleUpdate(data);
Expand Down Expand Up @@ -59,7 +54,6 @@ function DashboardsLocalAuthoritiesModalEdit({
required
>
<UIFormInput
defaultValue={defaultValues.label}
isReactHookForm
required
id="nul-authority-edit-label"
Expand All @@ -70,7 +64,6 @@ function DashboardsLocalAuthoritiesModalEdit({
</UIFormField>
<UIFormField label="Hint" forId="nul-authority-edit-hint">
<UIFormInput
defaultValue={defaultValues.hint}
isReactHookForm
id="nul-authority-edit-hint"
name="hint"
Expand Down
2 changes: 1 addition & 1 deletion app/assets/js/components/UI/MeadowVersion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from "prop-types";

function UIMeadowVersion({ showHoneyVersion }) {
if (!__MEADOW_VERSION__) {
return "v.dev";
return "v.walex.dev";
}

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ const WorkTabsAdministrative = ({ work }) => {
) : null}
</UIFormField>

<UIFormField label="Project / Job Tasker Number">
<UIFormField label="Project/Job Task Number">
{isEditing ? (
<UIFormInput
data-testid="project-task-number"
Expand All @@ -319,7 +319,7 @@ const WorkTabsAdministrative = ({ work }) => {
onClick={() =>
handleFacetLinkClick(
"ProjectTaskNumber",
projectTaskNumber
projectTaskNumber,
)
}
>
Expand Down
Loading

0 comments on commit 59ade10

Please sign in to comment.