Skip to content

AB#134566: ABC - Allow outdated files in file(s) fields#1248

Open
Joselgc1 wants to merge 3 commits into
nextfrom
AB#134566
Open

AB#134566: ABC - Allow outdated files in file(s) fields#1248
Joselgc1 wants to merge 3 commits into
nextfrom
AB#134566

Conversation

@Joselgc1

@Joselgc1 Joselgc1 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Description

Adds configurable outdated-file handling for file upload fields.

This change allows form builders to enable a field-level option for file upload questions so existing files cannot be removed, but can instead be marked as outdated or restored. The behavior applies to both single-file and multi-file fields. Outdated files remain attached to the record and continue to count toward upload limits.

It also adds display controls for outdated files in HTML questions and grid/layout fields, so each widget/layout can decide whether outdated files should be visible. Outdated files are visually marked with a warning icon wherever they are displayed.

Fixes: AB#134566 - ABC - Allow outdated files in file(s) fields

Useful links

Type of change

  • New feature (non-breaking change which adds functionality)
  • Improvement (refactor or addition to existing functionality)

How Has This Been Tested?

The following checks were run locally:

  • Frontend lint: npx nx lint shared
  • Frontend tests: npx nx test shared --runInBand
  • Backend lint: npm run lint
  • Backend build: npm run build

Manual verification performed:

  • Enabled Allow marking files as outdated on single-file and multi-file upload fields.
  • Verified existing files cannot be removed when the option is enabled.
  • Verified files can be marked as outdated and restored.
  • Verified outdated status persists after saving and reopening a record.
  • Verified single-file upload limits are respected.
  • Verified multi-file upload limits are respected.
  • Verified outdated files are marked with a warning icon in record edit mode, detail mode, HTML questions, and grids.
  • Verified Show outdated files can hide outdated files in HTML questions.
  • Verified Show outdated files can hide outdated files in grid layout fields.

Screenshots

Single and multi-file fields now have the options to mark files as outdated:

image

Adding the mark to any file:

image image

These fields can be referenced on HTML fields and Grids. Configuration allows for them to show (or not) the outdated files.

image image

How outdated files are shown in Grids and HTML fields:

image

Outdated files on view mode:

image

When the Show Outdated Files toggle is off:

image image

Checklist:

( * == Mandatory )

  • * I have set myself as assignee of the pull request
  • * My code follows the style guidelines of this project
  • * Linting does not generate new warnings
  • * I have performed a self-review of my own code
  • * I have put the ticket for review, adding the oort-backend team to the list of reviewers
  • * I have commented my code, particularly in hard-to-understand areas
  • * I have put JSDoc comment in all required places
  • * My changes generate no new warnings
  • * I have included screenshots describing my changes if relevant
  • * I have selected labels in the Pull Request, according to the changes with code brings
  • I have made corresponding changes to the documentation ( if required )
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@Joselgc1
Joselgc1 requested a review from AntoineRelief July 2, 2026 14:34
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.

2 participants