Skip to content

feat: add submission counts to templates view (closes #617)#671

Open
Sushanth012 wants to merge 1 commit into
docusealco:masterfrom
Sushanth012:master
Open

feat: add submission counts to templates view (closes #617)#671
Sushanth012 wants to merge 1 commit into
docusealco:masterfrom
Sushanth012:master

Conversation

@Sushanth012

Copy link
Copy Markdown

Closes #617

What's changed

  • Added submissions_count counter cache column to the templates table via migration (with backfill)
  • Added submissions_count method to TemplateFolder that aggregates counts from all nested templates and subfolders
  • Updated _template.html.erb to display submission count next to each template (non-archived only)
  • Updated _folder.html.erb to display aggregated submission count next to folder icon
  • Added system spec coverage for the new counts display

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.

[FEATURE REQUEST]: Add submissions counts in templates view

1 participant