Skip to content

Created collapsible record and collapsible record list#2309

Open
Toocky wants to merge 16 commits into
cortezaproject:2024.9.xfrom
Toocky:2024.9.x-feature-collapsable-record-history-blocks
Open

Created collapsible record and collapsible record list#2309
Toocky wants to merge 16 commits into
cortezaproject:2024.9.xfrom
Toocky:2024.9.x-feature-collapsable-record-history-blocks

Conversation

@Toocky
Copy link
Copy Markdown

@Toocky Toocky commented Mar 21, 2026

The following changes are implemented

New block types

Collapsible Record:

configurable header with title and subtitle ( subtitle is selectable to include when minimised)
able to specify title alignment left centre right
3 choices for the main part of the record,
Single body of rich text the full width of the block
A collection of record fields ie current record
both body of text and selection of fields, with configurable position above below
can default collapsed
Collapsible Record List:

As the above collapses into a single header its possible to create a list of collapsed items
all the other features of a record list, sorting paging etc
This could allow for the creation of effective history record lists, ie a case history with the records sorted by date

#2308
https://forum.cortezaproject.org/t/collapsible-record-collapsible-record-list-blocks/3080

Changes in the user interface:

image

to allow manipulating the alignment in the title and subtitle i have modified the expressions to handle L[], C[], R[] to adjust alignment.
i.e.
L[${record.values.title}] to align left
C[example text] to align centre
R[${record.values.status} ${record.values.date}] to align right

all of these can be used in a single title, but they must be used once each and in the correct order, you can not use C[], R[], L[], it will ignore them and default to all left alignment

image image image image image

The single record block when collapsed will also redraw the page and draw up blocks below it assuming there is nothing else blocking the blocks below it

the list block is intended to be identical to the above just a list of the records collapsed to be expanded as the user wishes
image

image

There is room for improvement theres currently no editing options but for now i'm putting the PR in for any comments / suggestions as i want to get this pushed for my own use to see how it works in production also i need to rebase now there's been a new release

Checklist when submitting a final (!draft) PR

  • Commits are tidied up, squashed if needed and follow guidelines in CONTRIBUTING.md
  • Code builds
  • All existing tests pass
  • All new critical code is covered by tests
  • PR is linked to the relevant issue(s)
  • Rebased with the target branch

@gitguardian
Copy link
Copy Markdown

gitguardian Bot commented Mar 22, 2026

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them.
While these secrets were previously flagged, we no longer have a reference to the
specific commits where they were detected. Once a secret has been leaked into a git
repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@Toocky
Copy link
Copy Markdown
Author

Toocky commented Mar 22, 2026

Rebased to 2024.9.8

@Toocky Toocky changed the title Creted collapsable record and collapseable record list Created collapsible record and collapseable record list Mar 25, 2026
@Toocky Toocky changed the title Created collapsible record and collapseable record list Created collapsible record and collapsible record list Mar 25, 2026
@Toocky Toocky force-pushed the 2024.9.x-feature-collapsable-record-history-blocks branch from 4eda56b to f775bb1 Compare April 13, 2026 23:43
@Fajfa Fajfa force-pushed the 2024.9.x branch 2 times, most recently from b8536d1 to b7d6d27 Compare May 21, 2026 14:25
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.

1 participant