Generate-time toggle for organizations that may have stopped, with an investigation view

Open
#278 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
swift
Domain
backend, web-dev

Research direction

Read PreferencesViewModelHTML and OrganizationsPage+makeOrgTable.swift, using showFormerMembers as the stated example. First confirm Data#91 is released and resolved in Package.resolved, and check the iOS issue for the expected organization statuses and warning details. Done when generated sites hide flagged organizations by default, the investigation view shows the specified details without linking badWebsite, and the published site uses the toggle off.

Written by the indexing model from the issue text.

Description

Enhancement Ignite

Status

Planned alongside iOS 3.0.5. Hiding former organizations on the public website is HTML#279, which comes first, together with the Data package (Data#91) and the iOS filter (#891). The details below are a starting point, to be settled when the work starts.

What maintainers get

A static site has no runtime settings, so seeing the former organizations is a choice made when the site is generated. A localhost build with the toggle on becomes the investigation view: every former organization is listed with a visible warning and its full logbook from Data#91 (date, author and text of each log entry). Apart from a future editor, that is the one place the logbook is shown.

Proposed change

  • A generate-time preference in PreferencesViewModelHTML, modelled on showFormerMembers, off by default.
  • OrganizationsPage+makeOrgTable.swift: when the preference is on, include former organizations (which HTML#279 skips) with the warning and logbook.
  • badWebsites from Data#91 may be shown as plain text, for whoever is re-checking the club. It is never a link, also not in the investigation view.
  • The published site at fcdegender.nl/hub is always generated with the toggle off.

Depends on

HTML#279.

Dominant language
Swift
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vdhamer/Photo-Club-Hub-HTML

All issues in vdhamer/Photo-Club-Hub-HTML

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.