- Add Loading... message for NPCs
- Don't reload if tab already has data, unless you reset filters
compendium-browser.js
- replaceList(): Add options.force to force reload even if there's data (e.g. if you reset filters)
NPC initial load working and subsequent filtering/ordering
compendium-browser.js
- Fix NPCs to use loadAndFilterNpcs
loadAndFilterNpcs(): ADDED
- On settings changed, just do new render()
- decorateCompendiumEntry() -> decorateItem()
npc-browser.html
- Use correct css (cr vs cr-display etc)
- Simplify hidden filtering data fields
module.json
- Version bump
Display static "Loading..." message the first time tab is shown
-> Want it with dynamic results and to not replace existing data
feat-browser.html, spell-browser.html
- Use items array on first load so that we pick up "Loading..." message
Auto-populates the visible tab (based on what is meant to be displayed)
- Needs a Loading... progress indicator in the data area + remember if data has been loaded already
compendium-browser.js
- afterRender(): Hook called after app is rendered to populate initial data
- _onChangeTab(): Override to load data in this tab when you switch tabs
- Move observer to be an instance property
en.json
- Add tab name tags
template.html
- Use tab name tags
- Correct compactItem for feats and items required display items
- Rename itemType -> browserTab to differentiate candidate item's type from the tab it appears on (spell, feat/class, item, NPC)
- Fixed: Was calling the wrong sort for feat and NPC
All tabs now showing values (although missing correct decorations)
compendium-browser.js
- loadAndFilterItems(): test for item5e was skipping items called loot, equipment etc.
Feats seem to be working (missing fields)
Items now showing
NPCs operating erratically
compendium-browser.js
- Add the partials for npc, feat, item and the backing code
*-browser-list.html: ADDED
(partials for changing data)
Generalize the spell list reload and confirm spells still working
compendium-browser.js
- triggerSortSpells() -> triggerSort()
- replaceSpells() -> replaceList()
- renderSpellData() -> renderItemData()
- Remove list/subjects settings and replace with this.replaceList() throughout
-Spell panel working except for initial and sorting
compendium-browser.js
- Don't save the filter data (which is most of the memory) and remove the preload limit; instead just save the minimal amount of data
- loadAndFilterItems(): Only load the tab you're on - for now just spells
-- store compactItems instead of whole decoratedItem (which was used for filtering)
-activateListeners(): Split out activateItemListListeners() so we can call them when we reload
spell-browser.html
Basic POC for on-demand query from Compendia
for spell-filters only
- Other filters are broken right now
spell-browser.html
- Split out spell-browser-list.html so we can render this separately with refreshed data
compendium-browser.js
- replaceSPells(), renderSpellData(): ADDED
- Fixed: loadAndFilterItems(), loadItems(): await checkListsLoaded() or we get a null error
- activateListeners(): Use replaceSpells() instead of filterElements or full render
Fixed: Issue #2: Was loading items twice (once as this.items, once as this.spells)
compendium-browser.js
- Add numToPreload (default 100, in Settings)
- loadItems(), loadNPCs() load "preload" number of spells, feats, items, NPCs each
- initialize(): Was setting this.spells and then setting this.items in getData()
- Move load back to "ready" hook, but limit number loaded
- Added CMPBrowser constants
- Fixed minor eslint problems
- getData(): Cleaned up data initialization
- Defer spell/item and NPC loading until you use the Compendium Browser
compendium-browser.js
- Switch to not pre-loading the indexes, and instead do that at browsing time, to reduce server load and memory usage
- getData(): Check spellsLoaded, npcsLoaded
- loadItems(): Deprecated spellsLoading
- addSpellFilters(), addFeatFilters(), addItemFilters(), addNpcFilters(): Added just for easier reading
- Refactor some of the eslint warnings
module.json
- Version bump to 0.4.0
fixed alidgnment issues with multiSelect filters
fixed misplaced translation files
put the spell-class association list into its own file for easy translation/editing
added japanese translation. Thanks Brother Sharp for that one