Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
57cc977
Dashboard: responsive task / Interactive Processing dialog
dwertheimer Nov 19, 2026
c935af6
Dashboard task dialog: consistent sizing, keyboard state, calendar, m…
dwertheimer Nov 19, 2026
a06f673
Dashboard task dialog: pixel-checked alignment, dirty-only Update
dwertheimer Nov 19, 2026
a83641c
Merge remote-tracking branch 'origin/main' into dashboard-ip-dialog-r…
dwertheimer Dec 3, 2026
608d59e
Dashboard v2.6.1: version bump, changelog and screenshots for the tas…
dwertheimer Dec 3, 2026
7ed1509
Dashboard task dialog: calendar keeps the top fixed; swipe and slide …
dwertheimer Dec 3, 2026
006a239
Dashboard 2.7.0: New Task opens the Dashboard's Add dialog in place o…
dwertheimer Dec 3, 2026
cee16df
Dashboard task dialog: formatted item text, click-to-edit, and Update…
dwertheimer Dec 3, 2026
c66f271
Dashboard task dialog: keep the dialog's line text in step after prio…
dwertheimer Dec 3, 2026
388e2c2
Merge remote-tracking branch 'origin/main' into dashboard-ip-dialog-r…
dwertheimer Dec 3, 2026
87a3bf8
Layout tweaks to icons
jgclark Dec 4, 2026
f7376bb
Merge branch 'dashboard-ip-dialog-redesign' of https://github.com/Not…
jgclark Dec 4, 2026
251ca56
Update docs to match #801 on priority markers
jgclark Dec 4, 2026
524fdc2
Styled Project Dialog to match newer Task Dialog
jgclark Dec 4, 2026
97003e7
Dashboard reminder dialog: same look as the redesigned task dialog
dwertheimer Dec 4, 2026
d94f3ef
Update on .children() and .indents API bugs
jgclark Dec 4, 2026
a077b39
Add 'add text note' to Task Dialog.
jgclark Dec 4, 2026
528fe80
Merge in DBW work on Reminders Dialog. Fix bugs in it.
jgclark Dec 4, 2026
3d05760
Refactor Dialog CSS
jgclark Dec 4, 2026
c6bf19f
Tweaks to layout of note titles and their icons, and tidy up its CSS.
jgclark Dec 4, 2026
bb0fbf2
Fix flow error
jgclark Dec 4, 2026
af4ec78
Couple more tweaks
jgclark Dec 5, 2026
bbf83ac
Add an Add row to the task and reminder dialogs.
jgclark Dec 5, 2026
2bcd1e5
Always exclude @Templates from Dashboard tag and search sections.
jgclark Dec 6, 2026
6192837
Fix Add text note so the typed text reaches the plugin.
jgclark Dec 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion flow-typed/Noteplan.js
Original file line number Diff line number Diff line change
Expand Up @@ -1721,6 +1721,7 @@ lineIndex: number;
/**
* Paragraph.indents
* Get/Set the amount of indentations.
* WARNING: Long-standing BUG: updateParagraph() keeps .indents for type 'text', and drops it when the line is recognized as 'list' or 'quote' (content starts with `- ` or `> `). See https://github.com/NotePlan/plugins/issues/803, raised 2026-12-04
*/
indents: number;
/**
Expand Down Expand Up @@ -1754,7 +1755,8 @@ lineIndex: number;
* If it returns undefined, it means there has been a failure.
* Note: Available from v3.3
* Note: this can become inaccurate if other content changes in the note; it is not automatically recalculated. Re-fetch paragraphs to avoid this.
* BUG (NotePlan Beta 3.22.1, 2026-12-03): after note.updateParagraph() on this same object, if the new content is shorter than the old content (priority `!!` -> `!`, `!` -> none, `>>` -> none), contentRange is left at the old end. children() then returns one phantom child: the next line, indent 0, empty content and rawContent, and a zero-width contentRange (start === end). Lengthening the line does not do this. Loading the paragraph again from the note returns the real children.
* WARNING: BUG (NotePlan Beta 3.22.1, 2026-12-03): after note.updateParagraph() on this same object, if the new content is shorter than the old content (priority `!!` -> `!`, `!` -> none, `>>` -> none), contentRange is left at the old end. children() then returns one phantom child: the next line, indent 0, empty content and rawContent, and a zero-width contentRange (start === end). Lengthening the line does not do this. Loading the paragraph again from the note returns the real children.
* TODO: @EduardMe reports that is fixed in the next beta after b1556 (3.22.1). Test and then remove workarounds and this warning.
* Workaround: helpers/parentsAndChildren.js childrenExcludingStalePhantoms() drops entries whose content and rawContent are both empty. Callers that have just written the paragraph should also re-read it from the note before calling children() (Dashboard rereadParagraph()).
* WARNING: appears to be unreliable on iOS.
* @return {$ReadOnlyArray<TParagraph> | void}
Expand Down
35 changes: 35 additions & 0 deletions helpers/__tests__/headings.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,41 @@ describe('helpers/headings', () => {
})
})

describe('getHeadingHierarchyForThisPara', () => {
test('walks from the paragraph position when lineIndex is stale after an insert', () => {
const note = {
filename: '20261204.md',
paragraphs: [
{ type: 'title', content: 'Home', headingLevel: 2, lineIndex: 0 },
{ type: 'open', content: 'older', lineIndex: 1 },
{ type: 'open', content: 'Give feedback on Books app manual tracking', lineIndex: 4 },
{ type: 'title', content: 'NotePlan', headingLevel: 2, lineIndex: 3 },
{ type: 'open', content: 'other', lineIndex: 4 },
],
}
note.paragraphs.forEach((p) => {
p.note = note
})
// lineIndex 4 is the following section. The task itself sits under Home.
expect(h.getHeadingHierarchyForThisPara(note.paragraphs[2])).toEqual(['Home'])
})

test('falls back to lineIndex when the paragraph object is not in the note array', () => {
const note = {
filename: '20261204.md',
paragraphs: [
{ type: 'title', content: 'Home', headingLevel: 2, lineIndex: 0 },
{ type: 'open', content: 'older', lineIndex: 1 },
],
}
note.paragraphs.forEach((p) => {
p.note = note
})
const orphan = { type: 'open', content: 'x', lineIndex: 1, note }
expect(h.getHeadingHierarchyForThisPara(orphan)).toEqual(['Home'])
})
})

describe('stripFoldedHeadingEllipsis', () => {
test('strips unicode ellipsis', () => {
expect(h.stripFoldedHeadingEllipsis('Done …')).toBe('Done')
Expand Down
7 changes: 5 additions & 2 deletions helpers/headings.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export function isParaAMatchForHeading(para: TParagraph, headingName: string, he
* @returns {Array<string>} array of headings, lowest (e.g. H4) to highest (e.g. H1)
*/
export function getHeadingHierarchyForThisPara(para: TParagraph): Array<string> {
let lineIndex = para.lineIndex
const noteFilename = para.note?.filename ?? '?'
// logDebug('getHeadingHierarchyForThisPara', `Finding headings for line #${String(lineIndex)} in note ${noteFilename}:`)
const thisNote = para.note
Expand All @@ -61,11 +60,15 @@ export function getHeadingHierarchyForThisPara(para: TParagraph): Array<string>
logWarn('getHeadingHierarchyForThisPara', `-> no note paras found for ${noteFilename}`)
return []
}
// lineIndex is not recalculated when another line is inserted, and Editor vs Note differ when the note has frontmatter.
// Walk from this paragraph's place in note.paragraphs so a just-added task is still under its real heading.
let lineIndex = noteParas.indexOf(para)
if (lineIndex < 0 && typeof para.lineIndex === 'number') lineIndex = para.lineIndex
let currentHeadingLevel = 5
const theseHeadings = []
while (lineIndex >= 0) {
const thisPara = noteParas[lineIndex]
if (thisPara.type === 'title') {
if (thisPara && thisPara.type === 'title') {
const thisHeadingLevel = thisPara.headingLevel
if (thisHeadingLevel < currentHeadingLevel) {
theseHeadings.push(thisPara.content)
Expand Down
7 changes: 7 additions & 0 deletions helpers/react/EditableInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ type Props = {
onEnterPress?: () => void,
/** Optional boolean to automatically focus the input when mounted */
autofocusMe?: boolean,
/** Optional callbacks when the input gains / loses focus */
onFocus?: () => void,
onBlur?: () => void,
}

type RefType = {
Expand Down Expand Up @@ -91,13 +94,15 @@ const EditableInputBox: any = React.forwardRef<Props, RefType>((props, ref) => {
if (divRef.current && !divRef.current.textContent) {
divRef.current.innerHTML = `<span class="placeholder">${props.placeholder || ''}</span>`
}
if (props.onBlur) props.onBlur()
}

const handleFocus = () => {
if (divRef.current && divRef.current.querySelector('.placeholder')) {
// Cast: the `querySelector()` call in the guard invalidates Flow's null-refinement of divRef.current; it is still non-null here
(divRef.current: any).innerHTML = ''
}
if (props.onFocus) props.onFocus()
}

React.useImperativeHandle(ref, () => ({
Expand Down Expand Up @@ -131,6 +136,8 @@ const EditableInputBox: any = React.forwardRef<Props, RefType>((props, ref) => {
value={inputValue}
onChange={handleChange}
onKeyDown={onKeyDown}
onFocus={props.onFocus}
onBlur={props.onBlur}
/>
)
})
Expand Down
19 changes: 19 additions & 0 deletions jgclark.Dashboard/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@ For more details see the [plugin's documentation](https://noteplan.co/plugins/jg

<!-- "Not calling init(): Automatic plugin updates are disabled in preferences." -->

## [2.7.0] 2026-12-04
### Changes
- Fix: #tag and Search sections no longer include tasks from the `@Templates` folder. This aligns with all other sections. (thanks, @dwertheimer; closes #802)
- Change: Redesigned Edit / Interactive Processing dialog for Tasks, Reminders and Projects items. It should be more responsive on smaller devices, and provides clearer button labels. (Thanks for the code, @dwertheimer.) Changes include:
- The item text shows more formatting, as on Dashboard rows (links, tags and priorities styled). Click the text to edit the raw text, with the cursor where you clicked (or use the pencil in its footer); the eye button, Revert or Update go back to the formatted view.
- Some move/reschedule-to dates are now in a "Later" sub-menu.
- On iPhone/iPad the dialog no longer opens with the keyboard showing.
- The 'Type' and 'Later' menus open upward when there isn't room below.
- The editor footer shows when the item is due or how overdue it is, using the due date (`!date`) when there is one.
- New: 'Add text note' asks for text, then inserts it under the item (after any children it already has), indented one level deeper. (for @Doug)
- 'Complete' is now the primary button, and 'Complete then' instead shows the date it was scheduled to (e.g. 'Done Jul 15') if available.
- On iPhone/iPad, swipe the Interactive Processing dialog left to skip to the next item.
- Interactive Processing now animates between items, not just into the first item.
- Opening the date picker keeps the top of the dialog where it is and only extends it downward.
- 'New Task' now opens the Dashboard's own Add dialog instead of the Quick Capture command sheet. The button is labelled 'Add item', and on a checklist it opens with Checklist selected. 'Add item' and 'Add text note' sit on their own 'Add' row.
- The reminder dialog has an 'Add item' button on its own 'Add' row. It opens the same Add dialog as the top bar, with Reminder already selected, then returns to this reminder. That Add dialog stays where the reminder dialog was, shifted up only far enough that the whole form stays on screen.
- Fix: A task added from Dashboard's Add dialog now shows in Today (or the other section that was refreshed) without waiting for a full refresh. The refresh was reading the note before the new line's heading was reliable, so a perspective that only shows one calendar heading (such as Home) left the task out.
- Change: To match Priority markers in the main app, more than three leading `!`s are no longer are treated as a priority indicator. For NotePlan only recognises `!`, `!!`, `!!!` and `>>`.

## [2.6.2] 2026-12-03
- Fix: Automatic refresh could stop working if the Time Block section was on after waking the device from sleep or changing to being the foreground window. dev: A second Time Block refresh was allowed to start while the first was still running, and both then stuck the plugin thread. The idle timer also skipped a refresh when its check ran late (sleep, or the window in the background) and started the wait over.
- Fix: A task that starts with a due date (e.g. `!>date`) is no longer treated as priority 1.
Expand Down
6 changes: 3 additions & 3 deletions jgclark.Dashboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ This is a Dashboard-wide setting (the same for all Perspectives), not stored per
The settings in "What to Include and Exclude" control what Spaces, folders and items are included and excluded in Dashboard's many sections. It includes the folders from the first setting, and then removes any specified from the next setting. Reminder list selection lives under **Reminders Section** (below). Finally, individual lines in notes can be ignored by adding terms:

- **Folders to Include**: Comma-separated list of folder(s) to include when searching for open or closed tasks/checklists. The matches ared partial, so 'Home' will include 'Home' and 'The Home Areas' etc. If left blank, all folders are included. Note: Calendar notes are always included, where relevant.
- **Folders to Exclude**: Comma-separated list of folder(s) to ignore when searching for open or closed tasks/checklists. The matches are partial, so 'Work' will exclude 'Work' and 'Work/CompanyA' etc. Where there is a conflict, exclusions will take precedence over inclusions. To ignore notes at the top-level (not in a folder), include '/' in the list. (@Trash is always ignored, but other special folders need to be specified, e.g. @Archive, @Templates.)
- **Folders to Exclude**: Comma-separated list of folder(s) to ignore when searching for open or closed tasks/checklists. The matches are partial, so 'Work' will exclude 'Work' and 'Work/CompanyA' etc. Where there is a conflict, exclusions will take precedence over inclusions. To ignore notes at the top-level (not in a folder), include '/' in the list. (@Trash and @Templates are always ignored. Other special folders need to be specified where a section can show them, e.g. @Archive in a #tag section.)
- **Calendar note terms to include**: Comma-separated list of terms for calendar notes only. A task is included if any heading above it starts with one of these values (case-insensitive prefix; e.g. `Wins` matches `Wins for 2026 Q2`), or if the task text itself contains the term (e.g. `#acme`, `@acme`, or `acme`). The destination of a labeled markdown link `[label](url)` is ignored (the label is still matched), and the contents of `[[note links]]` are ignored. If left blank, all calendar items are included. Short terms can over-match. When this is set and Hide Duplicates is on, matching items stay in calendar / Overdue sections rather than only in a TAG section. Useful for Perspective focus (e.g. an ACME perspective with `acme` or `#acme`).
- **Ignore items in notes with these term(s)**: If set, open tasks/checklists with this word or tag will be ignored, and not counted as open or closed. (This check is not case sensitive.) This is useful for situations where completing the item is outside your control.
- Apply to sections under headings in Calendar notes? If turned on, then all content in Calendar notes under headings that contains any of those phrases will be ignored. This applies to the preceding headings all the way up the H5->H1 hierarchy of section headings for that line. For example in the following note:
Expand All @@ -343,7 +343,7 @@ _The settings in the 'Moving/Scheduling Items' section are covered above_.
- Show referenced items in separate section? Whether to show Today's open tasks and checklists in two separate sections: first from the daily note itself, and second referenced from project notes. The same also goes for Weekly/Monthly/Quarterly notes.
- Show completed task count?: Show the number of tasks completed today at the top of the Dashboard. This total is not filtered by the current Perspective (see [Other notes about the Dashboard display](#other-notes-about-the-dashboard-display)). Note: For this to work, you need to have enabled "Append Completion Date" in the NotePlan Preferences/Todo section.
- How to show progress in Calendar sections?: If set to 'number closed', shows how many tasks were completed in the section heading (with a progress circle). If set to 'number open', shows how many tasks are still open instead. These counts are not filtered by the current Perspective. Today’s progress is tasks for today completed today; other calendar periods use `@done` dates inside that period in that calendar note. The header total remains all tasks completed today anywhere. Set to 'none' to hide.
- Hide priority markers? Hide the `>>`, `!!`, `!`, and `!!` priority markers (if your theme uses priorities markers).
- Hide priority markers? Hide the `>>`, `!!!`, `!!`, and `!` priority markers (if your theme uses priorities markers).
- Show note link for tasks? Whether to show the note link for an open task or checklist.
- Show folder name in note link? Whether to include the folder name when showing a note link
- Show scheduled date for tasks? Whether to display scheduled >dates for tasks in dashboard view.
Expand Down Expand Up @@ -371,7 +371,7 @@ _The settings in the 'Moving/Scheduling Items' section are covered above_.
### Interactive Processing settings
- Enable interactive processing for each section? If enabled, the Dashboard will display a button that will loop through all the open items in a given section and prompt you to act on them.
- Open note and highlight task when processing? If enabled, the Dashboard will open the note in the Editor and highlight the task in the note when it is processed. If this is turned, off, you can always open the note by clicking the task title in the dialog window
- Show interactive processing transitions? By default, interactive processing will show a shrink/grow transition between each item to be processed. You can turn these off if you prefer.
- Show interactive processing transitions? By default, interactive processing animates each change of item: the dialog grows in when it opens, and each new item slides in from the side. You can turn these off if you prefer. On iPhone/iPad you can also swipe the dialog left to skip to the next item.

### Filter Menu
The Filter menu includes the following toggles:
Expand Down
4 changes: 2 additions & 2 deletions jgclark.Dashboard/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"plugin.iconColor": "red-600",
"plugin.description": "A Dashboard for NotePlan, that in one place can show:\n- a compact list of open tasks and checklists from today's note, and scheduled ones from other notes.\n- similarly for yesterday's note, tomorrow's note, and the weekly, monthly and quarterly notes too (if used)\n- open Apple Reminders\n- any timeblocks for today\n- all overdue tasks\n- all open tasks and checklists that contain particular @tags or #mentions of your choosing\n- the next notes ready to review (if you use the 'Projects and Reviews' plugin).\nIt includes many other ways of speeding up managing your tasks: see the website for more details.",
"plugin.author": "@jgclark",
"plugin.version": "2.6.2",
"plugin.version": "2.7.0",
"plugin.releaseStatus": "full",
"plugin.hidden": false,
"plugin.lastUpdateInfo": "2.6.2: Changing a task's priority no longer deletes due dates or other '!' in the line. A due date at the start of a line is not treated as priority 1. A priority marker counts only with whitespace after it.\n2.6.1: Calendar-note !date deadlines follow the same start-through-due rules as !>. Improvements to display and handling of indented sub-tasks; new parent/child markers.\n2.6.0: Add support for Due dates. The 'add' button on topbar now offers Task, Checklist, or Reminder in one dialog. More reliable perspective switching, and related Dashboard fixes.\n2.5.2: Add Interactive Processing for Reminders/Timeblock section.\nThe task dialog 'Change to' button is now a 'Change type' menu.\nTwo small bug fixes.\n2.5.1: Minor bug fixes and performance improvements.\n2.5.0: Performance improvements on Priority note-index cache.\nNew 'Compact' Display mode.\nInteractive Processing for Active/Review Projects.\nLots of other small UX improvements.\n2.4.6: Overdue move-all fix; auto-load Shared Resources.\n2.4.5: Responsive while tag/mention cache rebuilds.\n2.4.4: Tag/mention cache in np.Shared; TAG refresh performance.\n2.4.2: Reminder edit dialog and IP for Reminders.\n2.4.0: Reminders, Active Projects, Wins, Spaces. See changelog.",
"plugin.lastUpdateInfo": "2.7.0: Redesigned task / Interactive Processing dialog: text wraps, phone-friendly layout, 'Later' menu, due/overdue footer, 'Complete' as primary action, progress and swipe-to-skip in Interactive Processing, and 'New Task' uses the Dashboard's Add dialog.\n2.6.2: Changing a task's priority no longer deletes due dates or other '!' in the line. A due date at the start of a line is not treated as priority 1. A priority marker counts only with whitespace after it.\n2.6.1: Calendar-note !date deadlines follow the same start-through-due rules as !>. Improvements to display and handling of indented sub-tasks; new parent/child markers.\n2.6.0: Add support for Due dates. The 'add' button on topbar now offers Task, Checklist, or Reminder in one dialog. More reliable perspective switching, and related Dashboard fixes.\n2.5.2: Add Interactive Processing for Reminders/Timeblock section.\nThe task dialog 'Change to' button is now a 'Change type' menu.\nTwo small bug fixes.\n2.5.1: Minor bug fixes and performance improvements.\n2.5.0: Performance improvements on Priority note-index cache.\nNew 'Compact' Display mode.\nInteractive Processing for Active/Review Projects.\nLots of other small UX improvements.\n2.4.6: Overdue move-all fix; auto-load Shared Resources.\n2.4.5: Responsive while tag/mention cache rebuilds.\n2.4.4: Tag/mention cache in np.Shared; TAG refresh performance.\n2.4.2: Reminder edit dialog and IP for Reminders.\n2.4.0: Reminders, Active Projects, Wins, Spaces. See changelog.",
"plugin.script": "script.js",
"plugin.url": "https://noteplan.co/plugins/jgclark.Dashboard",
"plugin.changelog": "https://github.com/NotePlan/plugins/blob/main/jgclark.Dashboard/CHANGELOG.md",
Expand Down
Loading
Loading