ToDo R6.1 ūüďĆ


R 6.1

Roadmap
dev repo [bitbucket.org]
ChangeLog
https://github.com/WackoWiki/w[...]mpare/6.1.5...master ‚Äď Diff since last release


Main Focus: Implement new PHP 8 functionality and improve GUI usability.


Please look here for open issues from R6.0.

1. PHP

1.1. PHP 8.0

  1. https://stitcher.io/blog/new-in-php-8
  2. https://php.watch/versions/8.0
  3. https://github.com/php/php-src/blob/php-8.0.0/UPGRADING
  4. https://php.watch/articles/php-regex-readability

1.2. PHP 8.1

  1. https://stitcher.io/blog/new-in-php-81
  2. https://github.com/php/php-src/blob/php-8.1.0/UPGRADING
  3. https://github.com/rectorphp/r[...]es_overview.md#php81
  4. https://php.watch/versions/8.1/gd-avif

Deprecated:

  1. Passing null to non-nullable internal function parameters

2. Features

  • customizable secondary navigation (Menu) out¬†of¬†the¬†box apart from the¬†so¬†called bookmarks
    • most users won't fiddle with the¬†theme to¬†create their own¬†navigation, see¬†theme section

3. Core

  1. set more strict write and create default ACLs for system and user pages
    • user pages: only the¬†user should be¬†able to¬†write and¬†create sub-pages by¬†default in¬†his¬†namespace
    • system pages: no¬†sub-page creation for¬†users
    • requires a¬†option to¬†pass custom ACLs in¬†page creation, e.g. $permissions = [ 'write' => 'Admins', 'create' => 'Admins']
  2. improve mixed directionality of text support
    • set¬†dir in¬†user elements when dir differs from content, e.g content is¬†in Persian and¬†GUI is¬†Greek
    • how¬†to¬†determine the¬†use of¬†the¬†<bdi> tag, e.g. for¬†breadcrumbs or¬†lists
  3. made time format depended from localization and user preferences
    • DateTime::format()
    • IntlDateFormatter::format()
  4. Why does it store interwiki in session and not as JSON in _cache/config/interwiki.conf?
    • get_inter_wiki_url($name, $tag)
  5. move interwiki.conf and antispam.conf into table & _cache/config/*
  6. add option to enforce email validation before a user can login
  7. notify_watcher(): add direct link to diff mode in email body
  8. it sucks to see again and over again all these random session_notice(s), add a option to turn it off for daily work.
  9. COLLATE utf8mb4_bin for¬†tag eats ūĚď¶ūĚď≤ūĚďīūĚď≤ūĚď¶ūĚďłūĚďĽūĚď≠ūĚďľ in¬†LIKE '/%' query, without slash it¬†finds it, whO_Ot
  10. UTF-8 text must be checked for well-formedness
    • static function is_utf8($string)
      {
        return (bool) preg_match('//u', $string);
      }
  11. localize default date formats
  12. improve and foster message sets
  13. set return type declarations : (array | bool | float | int | mixed | string | void | ... )
  14. fix client side JS input validation patterns
    1. new, clone and rename handler, import action
    2. $tpl->pattern = $this->language['TAG'] . '+';
  15. Replace all HTML-Entities except HTML special chars
    1. nbsp; ‚ÄĒ to¬†indent or¬†add¬†extra spacing to¬†a paragraph, sentence, or¬†another portion, better using CSS¬†instead of¬†multiple non-breaking spaces.
  16. allow also login with email address instead of user name
  17. move link and notifications functions in own class
    • $this->msg->notify_user()
    • $this->ref->link()

4. Installer

  1. commented out¬†auto-creation of¬†empty help, terms and¬†privacy page ‚Äď needs FEEDBACK
    • make creation optional, the¬†default theme shows the¬†links when set¬†in¬†the¬†config
    • either the¬†user defines them individually in¬†the¬†admin panel or¬†sets an¬†additional option in¬†the¬†installer to¬†create them
  2. normalize tags in insert_page function DONE
    • ŔÜōßŔÖŔÜŔąŘĆō≥ŘĆ
    • ŔÜōßŔÖ‚ÄĆŔÜŔąŘĆō≥ŘĆ
    • ŕĮōĪŔąŔáŔáōß
    • ŕĮōĪŔąŔá‚ÄĆŔáōß
  3. validate username
  4. Nginx: installer seems to activate rewrite_mode ?
  5. use dbal also for installer: $db->sql_query($sql)

5. Handler

  • rename: add¬†utf8_ucwords() like in¬†new handler, however it¬†must deal with slashes from cluster tags
  • auto-save function on¬†the¬†edit and¬†_comments handler by¬†applying the¬†localStorage function
  • saved discarded comment due¬†invalidated token to¬†avoid data loss
  • send notice on¬†comment edit and¬†make change visible in¬†actions like it¬†is done for¬†pages, to¬†not¬†miss possible important content changes
  • increase the¬†default size of¬†the¬†comment textarea in¬†the¬†default theme
  • add¬†option to¬†send a¬†copy of¬†the¬†personal message also to¬†the¬†sender
  • edit: set¬†custom textarea size (user settings/JS)
  • diff: add¬†page title to¬†diff
  • print: pass arguments? e.g. ?phrase=canonical&lang=&p=2

6. Action

  • allow multi-line actions -> Regex
  • registration: add¬†option to¬†enforce certain user name patterns
  • registration: add¬†white and¬†blacklist for¬†allowed email domains
  • poll: improve actions and¬†add templates
  • blog: improve options, sorting and¬†filtering, set¬†namespace patterns, add¬†content templates

7. Formatter

  • add¬†option to¬†wrap caption around code blocks
    • <figure>
        <figcaption>Language of code</figcaption>
        <pre>
          <code>
            <!-- your code here -->
          </code>
        </pre>
      </figure>
  • indenting text in¬†quote breaks page
    • <p id="p291-1" class="auto">
      <br>
      <blockquote>Where authority fails in its duties and indeed betrays the purpose for which it has been established, disobedience is not only lawful but obligatory: non-violent disobedience, at least for now, but determined and courageous.</p>
      <div class="indent">.</blockquote>
      <p id="p291-2" class="auto"></div>
  • auto-paragraph did¬†not terminates correctly in¬†indent div¬†having a¬†code wrapper
    • <div class="indent"><pre class="code">su</pre>
      <p id="p86658-7" class="auto"></div>
  • add¬†support for¬†AVIF ‚Äď GD lib¬†support pending! -> LibGD 2.3.2 -> PHP¬†8.1
  • str_replace("\xc2\xa0", "¬†", $string);
    (nbsp;)
  • text inside ##code formatter## is¬†processed as¬†wikitext with possibly undesired results
    • the¬†text must be¬†escaped to¬†be taken as¬†is
  • removes intentional left empty lines inside info formatter
  • parse also anchor with dash, e.g. tag#one-two
  • ((../ Go¬†Back)) goes back two¬†levels, but¬†should go¬†to parent page only
  • interwiki links are¬†not tracked
  • relative links were not¬†parsed in¬†the¬†context of¬†the¬†page they are¬†included, what is¬†the¬†default behavior?
  • re-parsing all¬†pages and¬†links may¬†result in¬†wrong toc¬†references, when the¬†included page gets parsed after the¬†page which includes them
    • HOTFIX: save all¬†included pages with wrong toc¬†reference again, this will update body_toc

8. Cache


9. Admin Panel

  • support templates
  • restore: process may¬†fail while restoring page with certain Unicode
    • needs further investigation, backup seems to¬†works while restoring may¬†fail
    • creates empty REPLACE queries for¬†page table until it¬†causes a¬†script termination due¬†timeout

10. Database

11. WikiEdit

  1. Autocomplete seems broken, shows possible pages ‚Äď but¬†selection does not¬†work
  2. use only one popup for new link, having link and link description together
  3. select and remember the color of the highlighter or marker, keep selected color in session
  4. popup for tables
    1. select rows and columns
    2. set table header
  5. select color for text and highlighting
  6. resize textarea
  7. undo / redo
  8. JavaScript search & replace
  9. ECMAScript 2018

12. Libs

  1. https://github.com/pear/Text_Highlighter/pull/5

13. Refactoring


14. Themes

  • CSS: [dir=rtl]
  • defer scripts defer></script>
  • default theme
    • background body: #ebeef2
    • code
      border-style: solid;
      border-color: lightgray;
      border-width: 1px;
      border-radius: 4px;

Idea: porting Just the Docs as theme for WackoWiki: https://github.com/pmarsceill/just-the-docs (MIT License)


15. Ideas

16. Documentation

  • add¬†README.md file to¬†action, handler and¬†formatter folder with a¬†short introduction and¬†HowTo
  • differentiate update instructions between minor and¬†major upgrade
  • add¬†a¬†page for¬†Terms in¬†WackoWiki
    • cluster, free link, wikilink, etc.
  • add CSP¬†help page
  • order config page according the¬†sections in¬†the¬†Admin panel via¬†sub-headings
  • write your own¬†action
  • write your own¬†formatter
  • write your own¬†theme
  • When a¬†upgrade should be¬†done?
  • How¬†I¬†reduce the¬†applications footprint?
  1. add¬†example for¬†rewrite with Nginx ‚Äď HELP needed
    1. Converting Apache Rewrite Rules to NGINX Rewrite Rules
    2. Pitfalls and Common Mistakes
    3. Creating NGINX Rewrite Rules

17. Feedback

17.1. Polls

The polls class and actions have been removed from the core. They can be added again to the community folder after evaluation and improvement. Additionally a guide as well as further documentation is needed. See 6.0 branch for source code.


module

  • content_class

class

  • polls

actions

  • polls
  • pollsadd
  • pollsarchive
  • pollspreview

translations
database table

18. Testing

18.1. Debug

https://app.codacy.com/gh/WackoWiki/wackowiki/dashboard


declare(strict_types=1);


Show Files (2 files)