Closed benloh closed 1 year ago
In GitLab by @daveseah on Jul 25, 2022, 12:27
added 1 commit
In GitLab by @daveseah on Jul 25, 2022, 12:41
marked this merge request as ready
Very cool! Tested adding help for _directive and that seemed to work. I guess we should discuss how codex-features works?
mentioned in commit 359dcf4d2006a80e0a448b25c8a29aed485dd486
In GitLab by @daveseah on Jul 24, 2022, 23:30
Merges dev-sri/next-gui-slothelper -> dev-next-gui
WHAT'S NEW
The Help Manager provides a centralized way to define help string for various features of the UI. There are three parts to help:
These are available as strings dictionaries defined in
YAML
files inapp/help
. The main module isapp/help/codex
; searching forimport * as HELP from 'app/help/confex'
will show you all the existing uses of this module. Currently we have this string support in place:This merge request provides help based on keyword and keyword/method argument type in the GUI. For help on features and rollover hints, this will require additional work post-merge by the GUI and feature implementor.
See Sri for help with acessing/adding strings for your GUI.
INSTALLATION
node --version
and compare to.nvmrc
. If you change node versions, you will have to do a fullnpm ci; npm run boostrap; npm run build
cycle again.npm run bootstrap
to ensure theyaml-loader
webpack plugin is installed!!!NOTE - the coverage is not yet perfect, but having the guts of the system in place will make it possible to continue refinement of the overall system.
EDITABLE FILES
app/help/codex-keywords
- descriptive text and syntax for the keyword, currently displayed in the SlotEditorapp/help/codex-types
- descriptive text for arguments in a keyword statement, currently displayed in the SlotEditorapp/help/codex-features
- descriptive text for feature methods (WIP) for some kind of UIapp/help/codex-gsargs
- gsArgs prompts used in symbol-interpreter, keyed by name of method. not all methods have an entry in this dict for technical reasons.TECHNICAL CHANGES IN PROGRESS
class-validation-token
now supports thegsArg
property to replacegsType
. It creates thegsName
andgsType
symbol properties from it, which makesgsName
available to the GUI to properly label keyword and method arguments.{noncode}
for comments and whitespace typingblock
token forifExpr
now emits a new symbol propertyui_action
that can be detected and used to do some kind of followup when the GSymbolToken is selected. The routing is a bit unclear, but the intent is to be able to click the token to insert a block as needed.