Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4206 - Data History #4277

Draft
wants to merge 39 commits into
base: development
Choose a base branch
from
Draft

4206 - Data History #4277

wants to merge 39 commits into from

Conversation

sorja
Copy link
Contributor

@sorja sorja commented Jan 28, 2025

@sorja sorja linked an issue Jan 28, 2025 that may be closed by this pull request
@minotogna minotogna changed the title 4206 data history 4206 - Data History Jan 28, 2025
yaguzmang and others added 4 commits January 30, 2025 13:48
* 4206 - Add Authorizer canViewHistoryLastApproved

* 4206 - Add missing nullish check
)

* 4249 - Descriptions history: Dummy API

* 4249 - Descriptions history: Fetch and update store

* 4249 - Descriptions history: useLastApprovedHistoryDescriptions hook and getLastApprovedDescriptions selector

* 4249 - Descriptions history: common component DiffText

* 4249 - Descriptions history: DescriptionDiffView component

* 4249 - 'react/require-default-props': 'off'

* 4249 - DiffText: Remove default prop declaration

* 4249 - useGetDescriptionValues: separate fetching history values

* 4249 - history selectors: use getHistoryLastApproved

* 4249 - Add reminder for data sources
minotogna and others added 23 commits January 30, 2025 14:34
…set) (#4301)

* 4250 - Data sources history: History buttons behavior

* 4250 - Data sources history: Rename useDataSourcesHistoryActivities hook

* 4250 - Data sources history: Add types file

* 4250 - Data sources history: show (empty) last approved diffs

* 4250 - Data sources history: increment diff indexes

---------

Co-authored-by: Mino Togna <[email protected]>
…== notStarted (#4314)

* 4313:Data History auth:if (user is admin or reviewer) and status !== notStarted

* 4313 - use Areas.getStatus
…4297)

* 4251 - Data history table UI

* 4251 - Data history table API

* 4251 - Data history table API (sample data)

* 4251 - Fetch data and populate store

* 4251 - Validation is hidden when history is active

* 4251 - useLastApprovedHistoryTableData: return RecordAssessmentData

* 4251 - use utils to get NodeValue

* 4251 - API empty

* 4251 - API empty

* 4251 - Merge data

* 4251 - Simplify

* 4251 - dont check print

* 4251 - use RecordAssessmentDatas mergeData

---------

Co-authored-by: Mino Togna <[email protected]>
* 4304 - hide validations when history active

* 4304 - fix padding for calculated cells

* 4304 - Cycles: introduce getPreviousCycle

* 4304 - API/table/history: return previous cycleData

* 4304 - fix application crash on null value

* 4304 - history/table: formatting

* 4304 - clean code

* 4304 - deepscan

* 4304 - Cols: isNumeric

* 4304 - History: clean up and handle select options translation

* 4304 - PropsGetTableData

* 4304 - history/lastApproved: HistoryLastApprovedInfo | undefined

* 4304 - API/getTableDataLastApproved

* 4304 - use classNames

* 4304 - remove comment

* 4304 - use getPreviousCycle

* 4321 - fix history cell style

---------

Co-authored-by: Mino Togna <[email protected]>
#4317) (#4331)

* 4253 - ODP history: Dummy API

* 4253 - ODP history: Fetch and update store

* 4253 - ODP history: data sources diffs

* 4253 - ODP history: NationalClass diffs

* 4253 - ODP history: update new reducer imports

* 4253 - ODP history: move odp history store definitions under store->data

* 4253 - ODP history: fix diff text and conditional renders

* 4253 - ODP history: Rename DiffView to ODPDiffText and add paddings

* 4253 - ODP history: Remove unnecessary type cast

* 4253 - ODP history: make history store var plural

* 4253 - ODP history: odp history return empty obj

* 4253 - ODP history: add DOMs getHtmlTextContent utility
… layout (#4333)

* 4253 - ODP history: Add comment diffs

* 4253 - ODP history: Handle ODPDiffText layout from outside component
…t non-calculated diffs (#4334)

* 4253 - ODP history: Add Extent of Forest non-calculated diffs

* 4253 - ODP history: Format Extent of Forest diffs
#4335)

* 4302 - introduce CycleDataController.Description

* 4302 - use diffLines for meaningful changes

* 4302 - getDescriptionsHistory: prevCycle and getDescriptionsLastApproved
…4332)

* 4305 - Data History: Data table (with ODP) comparison (Prev cycle)

* 4305 - review comments
…t calculated totals (#4336)

* 4253 - ODP history: Add variables for calculations

* 4253 - ODP history: Add Extent of Forest calculated col total diffs
…t: other land percent diffs (#4337)

* 4253 - ODP history: Add calculate other land percent util

* 4253 - ODP history: Add other land percent diffs

* 4253 - ODP history: Keep percent symbol out of diffs
…ristics non calculated diffs (#4338)

* 4253 - ODP history: Hide validation toolips in Extent of forest

* 4253 - ODP history: Add ForestCharacteristicsRow non-calculated value diffs

* 4253 - ODP history: Move national class forest area calculation to a util
)

* 4302 - API: getValuesLastApproved

* 4302 - Show DB errors in terminal

* 4308 - Merge datas
…ristics: National class Forest Area diffs (#4340)

* 4253 - ODP history: Move diff formatting fns to common hook

* 4253 - ODP history: Add National class Forest Area diffs
…ristics calculated diffs (#4343)

* 4253 - ODP history: Add ForestCharacteristics calculated field variables

* 4253 - ODP history: Add Forest characteristics totals diffs
…4341)

* 4310 - getValuesLastApproved: use ActivityLogMessage.descriptionUpdate

* 4310 - table history: merge the last approved data

* 4310 - clean up

* 4310 - remove cloneCycle file
sorja and others added 12 commits February 10, 2025 09:31
* 4206 - Data History: Data table w/ ODP lastAccepted preparation

* deepscan
* 4347 - raw year for select

* 4347 - introduce getSelectOptionLabel
* 4345 - Check table names exist when fetching history

* 4345 - cleanup

* 4345 - clean up the cleanup

* 4345 - reset file

* 4345 - Fix empty tableNames issue
…ristics - naturally regenerating (#4352)

* 4253 - ODP history: Add calculateNationalClassNaturalForestPercentArea util

* 4253 - ODP history: Add naturalForestPercentAreaChange calculated diffs

* 4253 - ODP history: Hide validation when historyLastApprovedIsActive

* 4253 - ODP history: Rename useNaturalForestPercentAreaChange

* 4253 - ODP history: Add naturalForestPercent diffs
…y regenerating totals diffs (#4353)

* 4253 - ODP history: Add name diffs

* 4253 - ODP history: Remove existing ternary render

* 4253 - ODP history: Add primaryForestPercentChange diffs

* 4253 - ODP history: Add ForestCharacteristicsNaturallyRegenerating total vars

* 4253 - ODP history: Add ForestCharacteristicsNaturallyRegenerating totals diffs
* 4310 - add historyFetched hooks

* 4310 - Cell: show history after fetch

* 4310 - Descriptions: show history after fetch

* 4310 - Data Sources: show history after fetch
* 4306 - 4311 - Data History: ODP Prev Cycle + LastAccepted

Co-authored-by: sorja <[email protected]>

* 4306 - 4311 - fix test

* 4306 - 4311 - fix odp logic

---------

Co-authored-by: sorja <[email protected]>
)

* 4253 - ODP history: Hide validation

* 4253 - ODP history: Add calculateNationalClassPlantationForestPercentArea util

* 4253 - ODP history: Add Plantation forest row calculated diffs

* 4253 - ODP history: Add missing odp values null check
…4362)

* 4253 - ODP history: Add plantation totals vars

* 4253 - ODP history: Add plantation totals diffs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data History
3 participants