Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
2e37a06
add form files
oskarhurst Jul 18, 2025
f62c0d1
Add component docs
oskarhurst Aug 7, 2025
ccdd90e
add form files
oskarhurst Jul 18, 2025
eb55d8a
Add component docs
oskarhurst Aug 7, 2025
7be9402
Merge branch 'entryForm' of https://github.com/oskarhurst/groundwork-…
oskarhurst Aug 7, 2025
97927b0
add watch
oskarhurst Aug 7, 2025
f42a1e9
submit test
oskarhurst Aug 7, 2025
41cd313
Update formwrapper
oskarhurst Aug 15, 2025
b139e5f
Update to fix CDA calls
oskarhurst Aug 29, 2025
a80bd89
Updates from Meeting
oskarhurst Sep 6, 2025
7b64980
PR Review Changes
oskarhurst Sep 16, 2025
914037a
update invalidateQueries
oskarhurst Sep 22, 2025
587a806
Update package-lock files
oskarhurst Sep 22, 2025
af75896
update doc to be able to toggle on/off interactive test page
oskarhurst Oct 15, 2025
ff44677
add nav-link ot test page
oskarhurst Oct 15, 2025
b373ae1
Update toast id bug
oskarhurst Oct 15, 2025
9353de7
Update cwms checkbox to add custom values
oskarhurst Oct 15, 2025
00ceca3
Fix CWMS-input table last row bug
oskarhurst Oct 16, 2025
d8b9c50
fix cwms Spreadsheet and update docs
oskarhurst Oct 16, 2025
319be50
Added CWMS Radio Group
oskarhurst Oct 16, 2025
6265106
update getTimestampForInput
oskarhurst Oct 16, 2025
62e8a70
clean up cwms spreadsheet
oskarhurst Oct 16, 2025
3d7e697
Merge branch 'main' into entryForm
oskarhurst Oct 16, 2025
2a1663a
Set interactive page to fasle
oskarhurst Nov 19, 2025
c09404f
fix typo in package.json
oskarhurst Nov 19, 2025
0b0f904
update package-lock.json
oskarhurst Nov 19, 2025
fd12511
Update to use Link
oskarhurst Nov 19, 2025
25f99ad
add changeset
oskarhurst Nov 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/warm-lies-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@usace-watermanagement/groundwork-water": minor
---

Adds a squite of form components to easily allow users to create and maintain manual data entry forms to the CWMS database. Components include text, number, dropdown, radio, and checkbox, fields, along with a seemless intregration with existing Auth contexts.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dist-ssr
types

# Editor directories and files
.venv/*
.vscode/*
!.vscode/extensions.json
.idea
Expand Down
3,147 changes: 1,892 additions & 1,255 deletions docs/package-lock.json

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions docs/src/bundles/route-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ import UseCdaBlob from "../pages/docs/hooks/use-cda-blob";
import useCdaBlobs from "../pages/docs/hooks/use-cda-blobs";
import useDebounce from "../pages/docs/utilities/use-debounce";

import FormsDocs from "../pages/docs/forms";
import CWMSFormDocs from "../pages/docs/forms/cwms-form";
import CWMSInputDocs from "../pages/docs/forms/cwms-input";
import CWMSTextareaDocs from "../pages/docs/forms/cwms-textarea";
import CWMSCheckboxesDocs from "../pages/docs/forms/cwms-checkboxes";
import CWMSRadioGroupDocs from "../pages/docs/forms/cwms-radio-group";
import CWMSDropdownDocs from "../pages/docs/forms/cwms-dropdown";
import CWMSInputTableDocs from "../pages/docs/forms/cwms-input-table";
import CWMSSpreadsheetDocs from "../pages/docs/forms/cwms-spreadsheet";
import InteractiveFormTest from "../pages/docs/forms/interactive-test";
import { docsConfig } from "../config/docs.config";

export default createRouteBundle(
{
"/": Home,
Expand Down Expand Up @@ -63,6 +75,19 @@ export default createRouteBundle(
"/docs/plots/cwms-plot": CWMSPlotDocs,
"/docs/maps": Maps,
"/docs/tables": Tables,
"/docs/forms": FormsDocs,
"/docs/forms/cwms-form": CWMSFormDocs,
"/docs/forms/cwms-input": CWMSInputDocs,
"/docs/forms/cwms-textarea": CWMSTextareaDocs,
"/docs/forms/cwms-checkboxes": CWMSCheckboxesDocs,
"/docs/forms/cwms-radio-group": CWMSRadioGroupDocs,
"/docs/forms/cwms-dropdown": CWMSDropdownDocs,
"/docs/forms/cwms-input-table": CWMSInputTableDocs,
"/docs/forms/cwms-spreadsheet": CWMSSpreadsheetDocs,
// Conditionally add interactive test route
...(docsConfig.features.showInteractiveTestPage && {
"/docs/forms/interactive-test": InteractiveFormTest,
}),
"/docs/utilities": UtilitiesDocs,
"/docs/utilities/use-debounce": useDebounce,
"/docs/utilities/cda-url-provider": CdaUrlProviderDocs,
Expand Down
17 changes: 17 additions & 0 deletions docs/src/config/docs.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export const docsConfig = {
features: {
// Toggle visibility of the interactive test page
// Set to true to show in navigation, false to hide
showInteractiveTestPage: false,

// Other feature flags can be added here
},

// Test page configuration
testPage: {
id: "interactive-test",
text: "Interactive Test",
href: "/docs/forms/interactive-test",
warning: "⚠️ Test Environment Only",
},
};
59 changes: 59 additions & 0 deletions docs/src/nav-links.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { docsConfig } from "./config/docs.config";

export default [
{
id: "get-started",
Expand Down Expand Up @@ -158,6 +160,63 @@ export default [
},
],
},
{
id: "forms",
text: "Forms",
href: "/docs/forms",
children: [
{
id: "cwms-form",
text: "CWMSForm",
href: "/docs/forms/cwms-form",
},
{
id: "cwms-checkboxes",
text: "CWMS Checkboxes",
href: "/docs/forms/cwms-checkboxes",
},
{
id: "cwms-radio-group",
text: "CWMS Radio Group",
href: "/docs/forms/cwms-radio-group",
},
{
id: "cwms-dropdown",
text: "CWMS Dropdown",
href: "/docs/forms/cwms-dropdown",
},
{
id: "cwms-input",
text: "CWMS Input",
href: "/docs/forms/cwms-input",
},
{
id: "cwms-input-table",
text: "CWMS Input Table",
href: "/docs/forms/cwms-input-table",
},
{
id: "cwms-spreadsheet",
text: "CWMS Spreadsheet",
href: "/docs/forms/cwms-spreadsheet",
},
{
id: "cwms-textarea",
text: "CWMS Textarea",
href: "/docs/forms/cwms-textarea",
},
// Conditionally add interactive test page
...(docsConfig.features.showInteractiveTestPage
? [
{
id: docsConfig.testPage.id,
text: docsConfig.testPage.text,
href: docsConfig.testPage.href,
},
]
: []),
],
},
{
id: "tables",
text: "Tables",
Expand Down
Loading