Skip to content

Feature/#9108 year list view - #9290

Open
SeDi343 wants to merge 3 commits into
nextcloud:mainfrom
SeDi343:feature/#9108-year-list
Open

SeDi343 wants to merge 3 commits into
nextcloud:mainfrom
SeDi343:feature/#9108-year-list

Conversation

@SeDi343

@SeDi343 SeDi343 commented Nov 26, 2026 •

Copy link
Copy Markdown

We’d like a single chronological list of upcoming events from today through the next 12 months, including events after New Year. The range should move forward automatically each day, so visitors can see upcoming events without clicking through individual months.

Context

Closes #9108

Approach

  • Which approach did you take and why? I am a developer but I am unfamiliar with the repository and the programming language. Therefore I asked ChatGPT GPT-6.2 Sol Max what its approach would be and implement them. I reviewed the code changes and asked why it did something when I was unsure why it did that.
  • Which alternatives did you consider and why did you discard them? -
  • What did you intentionally leave out? I only concentrated on the listYear/now instead of giving a time frame for a list, I concentrated on a scrollable list which starts from now for a full year.

Screenshots

Before After
grafik grafik

Testing

Build

composer install --no-dev --no-scripts
npm run build
tar -czf ../calendar-custom.tar.gz --transform='flags=r;s,^,calendar/,'  appinfo composer css img js l10n lib templates vendor COPYING LICENSES

Copy calendar-custom.tar.gz to home directory of nextcloud instance

cd /var/www/html/nextcloud
nc_occ() { sudo -u apache php occ "$@"; }

nc_occ status
nc_occ app:getpath calendar
nc_occ config:app:get calendar installed_version
nc_occ config:app:get calendar enabled
(
  set -e
  calendar_dir="$(nc_occ app:getpath calendar)"
  stage_dir="$(sudo mktemp -d "$(dirname -- "$calendar_dir")/.calendar-stage.XXXXXX")"

  sudo tar -xzf "$HOME/calendar-custom.tar.gz" -C "$stage_dir" --no-same-owner
  sudo test -f "$stage_dir/calendar/appinfo/info.xml"
  sudo test -f "$stage_dir/calendar/vendor/autoload.php"
  sudo test -f "$stage_dir/calendar/js/calendar-main.js"
  sudo chown -R --reference="$calendar_dir" "$stage_dir/calendar"

  sudo mkdir -p /var/backups
  backup_dir="$(sudo mktemp -d /var/backups/nextcloud-calendar.XXXXXX)"
  printf 'Old Calendar files: %s/calendar\n' "$backup_dir"

  nc_occ app:disable calendar
  sudo mv -T -- "$calendar_dir" "$backup_dir/calendar"
  sudo mv -T -- "$stage_dir/calendar" "$calendar_dir"

  if command -v restorecon >/dev/null; then
    sudo restorecon -R "$calendar_dir"
  fi

  nc_occ app:enable calendar
  sudo rmdir -- "$stage_dir"
  nc_occ config:app:get calendar installed_version
)

AI assistance

GPT-6.2 Sol Max

@SeDi343
SeDi343 force-pushed the feature/#9108-year-list branch from 0769571 to 7451d03 Compare November 26, 2026 16:40
@SeDi343 SeDi343 changed the title Feature/#9108 year list Feature/#9108 year list view Nov 26, 2026
Signed-off-by: Sebastian Dichler <sedi343@gmail.com>
Signed-off-by: Sebastian Dichler <sedi343@gmail.com>
Signed-off-by: Sebastian Dichler <sedi343@gmail.com>
@SeDi343
SeDi343 force-pushed the feature/#9108-year-list branch from 7451d03 to eddab15 Compare November 26, 2026 17:19
@SebastianKrupinski

Copy link
Copy Markdown
Contributor

Hi @SeDi343

Thank you for the PR, please remove all the translations

@SeDi343

SeDi343 commented Nov 26, 2026 •

Copy link
Copy Markdown
Author

Hi @SeDi343

Thank you for the PR, please remove all the translations

Hey @SebastianKrupinski should I remove only translations in eddab15 or also remove the "Jahresliste" in d745ecc, in which I originally created that Button or should the Button be removed as well (whole commit d745ecc)?

This branch has not been deployed

No deployments
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.

Select timerange of the "list view" of events

2 participants