Skip to content

Commit 64946a9

Browse files
feat: implement Create New component with form validation and submission logic
feat: add Result component to display NDVI process results feat: create Results component to list job statuses with pagination and sorting refactor: remove unused Dashboard and Table components fix: update UserService to handle API configuration with new auth methods chore: add PreventDefaultOnSubmitEventPlugin to prevent form submission reload chore: clean up frontend dependencies and update OpenAPI schema references test: add unit tests for Create New, Result, and Results components
1 parent 552b4ab commit 64946a9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1008
-339
lines changed

api-client/post-process.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@
1818
def file_modifications() -> Generator[tuple[Path, FileModifier], None, None]:
1919
yield Path("types/ObjectParamAPI.ts"), object_param_api_ts
2020
yield Path("types/PromiseAPI.ts"), promise_api_ts
21+
yield Path("apis/ProcessesApi.ts"), processes_api_ts
2122

2223

2324
def main():
2425
logging.basicConfig(level=logging.INFO, format="[%(levelname)s] %(message)s")
2526

2627
subdir = Path("typescript")
2728
for file_path, modify_fn in file_modifications():
28-
logging.info(f"Modifying {file_path}…")
29+
logging.info("Modifying %s…", file_path)
2930

3031
file_path = subdir / file_path
3132

@@ -37,7 +38,7 @@ def main():
3738
for line in modify_fn(file_contents):
3839
f.write(line)
3940
except Exception as e:
40-
logging.error(f"Error modifying {file_path}: {e}")
41+
logging.error("Error modifying %s: %s", file_path, e)
4142

4243

4344
def object_param_api_ts(file_contents: list[str]) -> Generator[str, None, None]:
@@ -56,5 +57,17 @@ def promise_api_ts(file_contents: list[str]) -> Generator[str, None, None]:
5657
yield line
5758

5859

60+
def processes_api_ts(file_contents: list[str]) -> Generator[str, None, None]:
61+
"""Modify the ProcessesAPI.ts file."""
62+
for line in file_contents:
63+
# TODO: fix in ogcapi's OpenAPI spec instead of patching the generated code
64+
if dedent(line).startswith('"{ [key: string]: InlineOrRefData; }", ""'):
65+
line = line.replace(
66+
'"{ [key: string]: InlineOrRefData; }", ""',
67+
'"any", ""',
68+
)
69+
yield line
70+
71+
5972
if __name__ == "__main__":
6073
main()

api-client/typescript/.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api-client/typescript/apis/ProcessesApi.ts

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api-client/typescript/docs/ProcessesApi.md

Lines changed: 18 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api-client/typescript/models/NDVIProcessOutputs.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api-client/typescript/models/NDVIProcessParams.ts

Lines changed: 57 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api-client/typescript/models/ObjectSerializer.ts

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api-client/typescript/models/all.ts

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api-client/typescript/types/ObjectParamAPI.ts

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api-client/typescript/types/ObservableAPI.ts

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)