deck icon indicating copy to clipboard operation
deck copied to clipboard

Pressing tab to indent an item in an unordered list within the description of a card moves focues out of the description

Open PatrickJosh opened this issue 1 year ago • 4 comments

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Describe the bug When trying to indent an item in an unordered list by pressing tab, the item is not shifted but the focus is moved out of the description editor. This makes creating indented subitems impossible.

To Reproduce Steps to reproduce the behavior:

  1. Create an unordered list in the description of a card
  2. Try to indent an item

Expected behavior Item is indented.

Screenshots Not really applicable.

Client details:

  • OS: Fedora Linux 40
  • Browser: Firefox 125.0.3, Chromium 124
  • Device: Desktop
Server details

Operating system: Fedora Linux 39

Web server: Apache/2.4.59 (Fedora Linux)

Database: mariadb Ver 15.1 Distrib 10.5.23-MariaDB, for Linux (x86_64) using EditLine wrapper

PHP version: 8.3

Nextcloud version: 29.0.1

Where did you install Nextcloud from: Archive

Signing status: No errors have been found.

List of activated apps:

Enabled:             
  - activity: 2.21.1
  - announcementcenter: 6.8.1
  - calendar: 4.7.4
  - circles: 29.0.0-dev
  - cloud_federation_api: 1.12.0
  - comments: 1.19.0             
  - contacts: 6.0.0           
  - contactsinteraction: 1.10.0
  - cospend: 1.6.1            
  - dashboard: 7.9.0  
  - dav: 1.30.1  
  - deck: 1.13.0         
  - federatedfilesharing: 1.19.0
  - federation: 1.19.0
  - files: 2.1.0       
  - files_downloadlimit: 2.0.0                 
  - files_external: 1.21.0           
  - files_pdfviewer: 2.10.0               
  - files_reminders: 1.2.0
  - files_sharing: 1.21.0           
  - files_trashbin: 1.19.0                    
  - files_versions: 1.22.0           
  - firstrunwizard: 2.18.0         
  - forms: 4.2.3                                 
  - guests: 3.1.0                              
  - logreader: 2.14.0                          
  - lookup_server_connector: 1.17.0                  
  - mail: 3.6.1                  
  - memories: 7.3.1                    
  - music: 1.11.0                  
  - nextcloud_announcements: 1.18.0    
  - notes: 4.10.0                     
  - notifications: 2.17.0                       
  - notify_push: 0.6.11    
  - oauth2: 1.17.0   
  - password_policy: 1.19.0                
  - phonetrack: 0.8.1                         
  - photos: 2.5.0
  - polls: 7.0.3                                                                                                                                                                                                                              
  - previewgenerator: 5.5.0    
  - privacy: 1.13.0
  - provisioning_api: 1.19.0
  - qownnotesapi: 24.4.0
  - recommendations: 2.1.0
  - related_resources: 1.4.0
  - serverinfo: 1.19.0
  - settings: 1.12.0
  - sharebymail: 1.19.0
  - spreed: 19.0.1
  - support: 1.12.0
  - survey_client: 1.17.0
  - systemtags: 1.19.0
  - tables: 0.7.2
  - tasks: 0.16.0
  - text: 3.10.0
  - theming: 2.4.0
  - twofactor_admin: 4.5.0
  - twofactor_backupcodes: 1.18.0
  - twofactor_totp: 11.0.0-dev
  - twofactor_webauthn: 1.4.0
  - updatenotification: 1.19.1
  - user_status: 1.9.0
  - viewer: 2.3.0
  - weather_status: 1.9.0
  - workflowengine: 2.11.0
Disabled:
  - admin_audit: 1.19.0
  - bruteforcesettings: 2.9.0 (installed 2.4.0)
  - checksum: 1.2.4 (installed 1.2.4)
  - collectives: 2.11.0 (installed 2.11.0)
  - encryption: 2.17.0
  - extract: 1.3.6 (installed 1.3.6)
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - gpxpod: 5.0.18 (installed 5.0.18)
  - health: 2.2.2 (installed 2.2.2)
  - integration_gitlab: 1.0.19 (installed 1.0.19)
  - integration_google: 2.2.0 (installed 2.2.0)
  - integration_moodle: 1.0.2 (installed 1.0.2)
  - integration_whiteboard: 0.0.14 (installed 0.0.14)
  - maps: 1.4.0 (installed 1.4.0)
  - metadata: 0.19.0 (installed 0.19.0)
  - news: 24.0.0 (installed 24.0.0)
  - onlyoffice: 9.2.0 (installed 9.2.0)
  - recognize: 6.1.1 (installed 6.1.1)
  - socialsharing_email: 3.1.0 (installed 3.1.0)
  - suspicious_login: 7.0.0
  - user_ldap: 1.20.0
  - user_migration: 5.0.0 (installed 5.0.0)
  - workflow_script: 1.13.1 (installed 1.13.1)

Nextcloud configuration:

{                               
    "system": {                     
        "instanceid": "***REMOVED SENSITIVE VALUE***", 
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***",                        
            "***REMOVED SENSITIVE VALUE***",
            "127.0.0.1"                                  
        ],                                                                                                             
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "29.0.1.1",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",                       
        "dbtableprefix": "oc_",                   
        "default_language": "en_GB", 
        "mysql.utf8mb4": true,          
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "enabledPreviewProviders": [
            "OC\\Preview\\BMP",
            "OC\\Preview\\GIF",                                                                                        
            "OC\\Preview\\JPEG",           
            "OC\\Preview\\MarkDown",                                                                                   
            "OC\\Preview\\MP3",                     
            "OC\\Preview\\PNG",                       
            "OC\\Preview\\TXT",
            "OC\\Preview\\XBitmap",     
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\Krita",       
            "OC\\Preview\\HEIC",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MKV",                                                                                                                                                                                                               
            "OC\\Preview\\MP4",                                           
            "OC\\Preview\\AVI",        
            "OC\\Preview\\Image"      
        ],                                      
        "default_phone_region": "DE",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",       
        "redis": {                                                                                                                                                                                                                            
            "host": "***REMOVED SENSITIVE VALUE***",                                                                                                                                                                                          
            "port": "0"                                                                                                
        },                                                 
        "htaccess.RewriteBase": "\/",                                                                                                                                                                                                         
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",                                                                                                                                                                                 
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",                       
        "mail_smtpauthtype": "LOGIN",             
        "mail_smtpauth": 1, 
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",     
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",                                                          
        "maintenance": false,                            
        "theme": "",      
        "loglevel": 1,        
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",                                                             
        "logfilemode": 384,                       
        "lost_password_link": "disabled",         
        "updater.release.channel": "stable",
        "trashbin_retention_obligation": "60, 61",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [   
            "guest_app",                              
            "Testing"               
        ],                     
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",                                                            
        "memories.exiftool_no_local": true,
        "memories.vod.path": "\/var\/www\/nextcloud-subvolume\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",      
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "defaultapp": "",      
        "maintenance_window_start": "1",
        "memories.gis_type": 1,         
        "memories.db.triggers.fcu": true
    }                           
}

Are you using an external user-backend, if yes which one: No

Logs

Nextcloud log (data/nextcloud.log)

{
  "reqId": "bUyFbbNp24BYYhVcZMBK",
  "level": 3,
  "time": "2024-05-24T08:30:52+00:00",
  "remoteAddr": "",
  "user": "--",
  "app": "PHP",
  "method": "",
  "url": "--",
  "message": "Optional parameter $userId declared before required parameter $path is implicitly treated as a required parameter at /var/www/nextcloud-subvolume/nextcloud/apps/deck/lib/Service/ConfigService.php#234",
  "userAgent": "--",
  "version": "29.0.1.1",
  "data": {
    "app": "PHP"
  },
  "id": "665050469c34b"
}

No other logs with level info or higher related to deck.

Browser log

console-export-2024-5-27_18-14-52.txt

PatrickJosh avatar May 27 '24 16:05 PatrickJosh

I think this is because you're using a browser, and that should be the default behavior. I would suggest using Markdown for this as described in the documentation docu | markdown-it, but it seems to me that markdown-it is not fully implemented. At least I haven't found a way to create indented lists. In general, it would be desirable to be able to switch between formatted text and Markdown input. The way it currently works, where Markdown input is automatically and immediately converted to formatted text, makes it really limited in its usability. And btw, it would also be useful if you had to enable editing first and otherwise just stay in view mode.

456634 avatar May 28 '24 13:05 456634

Nextcloud has moved away from direct editing of Markdown in favour of their own rich-text editor (nextcloud/text) and automatic processing of Markdown, and that's not up to debate here; at least that's not what I am trying to achieve with this issue. The default behaviour in Text is that tab indents the current item in an unordered list, and it's still working in the stand-alone editor. And although Text is embedded into deck cards for the description – or that's at least what it looks like to me, correct me if I am wrong –, there, pressing tab does behave differently. If you want to discuss switching to separate editing and visualisation of Markdown, please open a separate issue.

PatrickJosh avatar May 28 '24 13:05 PatrickJosh

I confirm this issue. Tested with LibreWolf (Firefox) and Brave browser. Currently I don't know how to bypass it as I don't see a toggle to the MarkDown mode within the description window/field nor there are icons to de/indent manually. Shift+Tab to de-indent works.

apoeteo avatar Aug 12 '24 19:08 apoeteo

Issue also occurs in Firefox.

A workaround mentioned in #6214 is to use sidebar view.

  1. In "big" card view, click the ... button in the top right corner
  2. Click "Open in sidebar view"

narFnarF avatar Aug 24 '24 01:08 narFnarF

Issue also occurs in Edge.

I never had this problems though until this week, when our hosted Nextcloud (IONOS, if it makes any difference) was updated from 27.1.x to 28.0.7.5 - so there must be a way to solve this (again) independent from the browser one is using 🤔

@narFnarF Thanks for pointing to the "sidebar view" workaround!

LukasFreeze avatar Sep 04 '24 07:09 LukasFreeze

The issue still persists (with FF 134). Why does the sidebar behave differently?

nimra98 avatar Jan 31 '25 10:01 nimra98

For me this issue seems to be fixed LibreWolf 134.0.1-1, Nextcloud AIO with Nextcloud Hub 9 (30.0.5), Deck 1.14.3

apoeteo avatar Jan 31 '25 11:01 apoeteo