nextcloud / nextcloud/calendar

Clicking "today" in monthly view should scroll to the current day

Open
#2,845 14 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug Feature: Fullcalendar
Dominant language
JavaScript
Stars
1.2k
Forks
332
Avg merge
16h 13m
Merged PRs (30d)
137

Description

Steps to reproduce
  1. Wait until a later day in the month ;-)
  2. Switch to monthly view
  3. Klick "Today" button
  4. observe that you can't see today in the view
Expected behaviour

Clicking today in monthly view should not only display the current month, but scroll to the current day.
Related issue: #2076

Actual behaviour

The view scrolls to day 1 of the current month. The actual day ("today") may not be visible. The user has to scroll down to find it.

Calendar app

Calendar app version: 2.1.3

CalDAV-clients used: happens with native Nextcloud calendars

Server configuration detail

Operating system: Linux 5.4.0-64-generic #72-Ubuntu SMP Fri Jan 15 10:27:54 UTC 2021 x86_64

Webserver: Apache (fpm-fcgi)

Database: mysql 5.7.32

PHP version: 7.4.14

Modules loaded: Core, date, libxml, openssl, pcre, zlib, bcmath, bz2, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gmp, SPL, iconv, intl, json, ldap, mbstring, pcntl, PDO, session, posix, Reflection, standard, SimpleXML, mysqlnd, exif, tokenizer, xml, xmlreader, xmlwriter, zip, pdo_mysql, cgi-fcgi, redis, Zend OPcache

Nextcloud version: 20.0.4 - 20.0.4.0

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status

Array
(
)

List of activated apps
Enabled:
 - accessibility: 1.6.0
 - activity: 2.13.4
 - admin_audit: 1.10.0
 - audioplayer: 3.0.0
 - bbb: 1.1.4
 - bookmarks: 4.0.6
 - calendar: 2.1.3
 - cloud_federation_api: 1.3.0
 - comments: 1.10.0
 - contacts: 3.4.3
 - contactsinteraction: 1.1.0
 - cospend: 1.2.8
 - dashboard: 7.0.0
 - dav: 1.16.2
 - external: 3.7.1
 - federatedfilesharing: 1.10.2
 - federation: 1.10.1
 - files: 1.15.0
 - files_external: 1.11.1
 - files_external_gdrive: 0.4.0
 - files_pdfviewer: 2.0.1
 - files_rightclick: 0.17.0
 - files_sharing: 1.12.1
 - files_trashbin: 1.10.1
 - files_versions: 1.13.0
 - files_videoplayer: 1.9.0
 - firstrunwizard: 2.9.0
 - integration_dropbox: 0.0.17
 - integration_github: 0.0.17
 - integration_gitlab: 0.0.10
 - integration_google: 0.1.5
 - integration_moodle: 0.0.5
 - logreader: 2.5.0
 - lookup_server_connector: 1.8.0
 - maps: 0.1.8
 - metadata: 0.12.0
 - nextcloud_announcements: 1.9.0
 - notes: 4.0.2
 - notifications: 2.8.0
 - oauth2: 1.8.0
 - password_policy: 1.10.1
 - passwords: 2020.12.2
 - photos: 1.2.1
 - privacy: 1.4.0
 - provisioning_api: 1.10.0
 - recommendations: 0.8.0
 - serverinfo: 1.10.0
 - settings: 1.2.0
 - sharebymail: 1.10.0
 - spreed: 10.0.5
 - support: 1.3.0
 - survey_client: 1.8.0
 - systemtags: 1.10.0
 - talk_matterbridge: 1.21.0
 - text: 3.1.0
 - theming: 1.11.0
 - twofactor_backupcodes: 1.9.0
 - twofactor_totp: 5.0.0
 - user_status: 1.0.1
 - viewer: 1.4.0
 - weather_status: 1.0.0
 - workflowengine: 2.2.0
Disabled:
 - documentserver_community
 - encryption
 - onlyoffice
 - radio
 - richdocuments
 - richdocumentscode
 - user_ldap
 - workflow_script

Configuration (config/config.php)
{
    "apps_paths": [
        {
            "path": "\/snap\/nextcloud\/current\/htdocs\/apps",
            "url": "\/apps",
            "writable": false
        },
        {
            "path": "\/var\/snap\/nextcloud\/current\/nextcloud\/extra-apps",
            "url": "\/extra-apps",
            "writable": true
        }
    ],
    "supportedDatabases": [
        "mysql"
    ],
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "memcache.local": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 0
    },
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "rcloud",
        "helge",
        "helge.local",
        "192.168.1.5",
        "localhost",
        "127.0.0.1",
        "rcloud.dynv6.net",
        "rkupper.dynv6.net",
        "nextcloud.rkupper.dynv6.net",
        "helge.rkupper.dynv6.net"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "overwrite.cli.url": "https:\/\/rcloud.dynv6.net",
    "dbtype": "mysql",
    "version": "20.0.4.0",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "logtimezone": "UTC",
    "installed": true,
    "mail_smtpmode": "smtp",
    "mail_smtpsecure": "ssl",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtpauth": 1,
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "loglevel": 0,
    "maintenance": false,
    "singleuser": false,
    "log_rotate_size": 1073741824,
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "465",
    "mail_sendmailmode": "smtp",
    "theme": "",
    "app_install_overwrite": [
        "files_external_gdrive",
        "radio"
    ],
    "mysql.utf8mb4": true,
    "ldapIgnoreNamingRules": false,
    "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
    "data-fingerprint": "8d4bf1ee4c4ab05af27ce70fabed3675",
    "default_language": "de",
    "default_locale": "de_DE"
}

External storages: yes

External storage configuration
+----------+------------------+--------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------+------------------+-------------------+----------+
| Mount ID | Mount Point      | Storage      | Authentication Type       | Configuration                                                                                                                                 | Options                               | Applicable Users | Applicable Groups | Type     |
+----------+------------------+--------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------+------------------+-------------------+----------+
| 1        | /Data            | Lokal        | Keine                     | datadir: "\/media\/Data\/Data"                                                                                                                | enable_sharing: true, readonly: false | ruediger         |                   | Admin    |
| 4        | /GoogleDrive     | Google Drive | OAuth2                    | configured: "true", client_id: "960189903180-6i40ggjd63a95ibkior6pdvla7rvhmsk.apps.googleusercontent.com", client_secret: "***", token: "***" | readonly: false                       | ruediger         |                   | Personal |
| 5        | /Opendesktop.org | Nextcloud    | Benutzername und Passwort | host: "my.opendesktop.org", root: "", secure: true, user: "ruediger", password: "***"                                                         | readonly: false                       | ruediger         |                   | Personal |
+----------+------------------+--------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------+------------------+-------------------+----------+

Encryption: no

User-backends:

  • OC\User\Database

Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36

Client configuration

Browser: Chromium version 88.0.4324.96 (Offizieller Build) snap (64-Bit)

Operating system: Ubuntu Linux

Contributor guide

Open the contributing guide

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.

Research direction

Start by reproducing the issue in the calendar's monthly view and trace the Today button's navigation and scrolling behavior. Done means clicking Today shows the current month with the current day visible, rather than scrolling to day 1.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.