Skip to content

Commit

Permalink
Updated notices and manifest version to 0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
daledesilva committed Jan 5, 2025
1 parent 529cffe commit 8e1015e
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 33 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Ink",
"author": "Dale de Silva",
"description": "Hand write or draw directly between paragraphs in your notes using a digital pen, stylus, or Apple pencil. Useful for handwriting, sketches, scribbles, or even math equations and scientific notation. Runs on the tldraw framework and drawing provides an infinite canvas.",
"version": "0.2.6",
"version": "0.3.3",
"minAppVersion": "1.00.0",
"authorUrl": "https://designdebt.club",
"fundingUrl": "https://ko-fi.com/daledesilva",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian_ink",
"version": "0.0.1",
"version": "0.3.3",
"description": "",
"main": "main.js",
"scripts": {
Expand Down
10 changes: 5 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,19 @@ function implementWritingEmbedActions(plugin: InkPlugin) {
plugin.addCommand({
id: 'create-handwritten-section',
name: 'New handwriting section',
icon: 'pen-line',
icon: 'signature',
editorCallback: (editor: Editor) => insertNewWritingFile(plugin, editor)
});
plugin.addCommand({
id: 'embed-writing-file',
name: 'Existing handwriting section',
icon: 'pen-line',
icon: 'folder-pen',
editorCallback: (editor: Editor) => insertExistingWritingFile(plugin, editor)
});
plugin.addCommand({
id: 'insert-copied-writing',
name: 'Copied handwriting section',
icon: 'pen-line',
icon: 'clipboard-pen',
editorCallback: (editor: Editor) => insertRememberedWritingFile(plugin, editor)
});
}
Expand All @@ -114,13 +114,13 @@ function implementDrawingEmbedActions(plugin: InkPlugin) {
plugin.addCommand({
id: 'embed-drawing-file',
name: 'Existing drawing',
icon: 'shapes',
icon: 'folder-dot',
editorCallback: (editor: Editor) => insertExistingDrawingFile(plugin, editor)
});
plugin.addCommand({
id: 'insert-copied-drawing',
name: 'Copied drawing',
icon: 'shapes',
icon: 'clipboard-pen-line',
editorCallback: (editor: Editor) => insertRememberedDrawingFile(plugin, editor)
});
}
Expand Down
36 changes: 17 additions & 19 deletions src/notices/version-notices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import InkPlugin from "src/main";
///////////

export function showVersionNotice(plugin: InkPlugin) {
const curVersion = plugin.manifest.version;
let curVersion = plugin.manifest.version;
if (curVersion.endsWith('-beta')) {
curVersion = curVersion.replace('-beta', '');
}

const lastVersionTipRead = plugin.settings.onboardingTips.lastVersionTipRead;
const noLastVersionTipRead = !semVer.valid(lastVersionTipRead)
Expand All @@ -22,26 +25,21 @@ export function showVersionNotice(plugin: InkPlugin) {
function showChanges(plugin: InkPlugin) {

const noticeBody = createInkNoticeTemplate(1,3);
noticeBody.createEl('h1').setText(`Changes in Ink v0.3.2`);
noticeBody.createEl('h1').setText(`Changes in Ink v0.3.3`);
const listEl = noticeBody.createEl('ul');
// v0.3
// listEl.createEl('li').setText(`Single click unlock for embeds (This is a test, let's see how everyone likes it).`);
// listEl.createEl('li').setText(`More seamless transitions between locked and unlocked writing embeds.`);
// listEl.createEl('li').setText(`Unlock multiple writing embeds at once (This is a test. Performance impact is unknown).`);
// listEl.createEl('li').setText(`Visible grid in drawing mode (Will be optional in the future).`);
// listEl.createEl('li').setText(`Many changes under the hood to lay groundwork for future updates and better efficiency.`);
// v0.3.1
// listEl.createEl('li').setText(`Resize drawing embeds (Lock them to save the size).`);
// listEl.createEl('li').setText(`Toggle the grid on and off from the dropdown.`);
// listEl.createEl('li').setText(`Insert commands now have icons.`);
// v0.3.2
listEl.createEl('li').setText(`Bugfixes.`);

// const link = noticeBody.createEl('a');
// link.setAttribute('href', 'https://www.youtube.com/live/gLserf5LLD0?si=mS95cP0fK0d0bryo')
// link.setText(`View release video`);
// // Prevent clicking link from closing notice
// link.onClickEvent( e => e.stopPropagation())
listEl.createEl('li').setText(`Resize drawing embeds (Lock them to save the size).`);
listEl.createEl('li').setText(`Single click unlock for embeds & multiple embeds unlocked at once.`);
listEl.createEl('li').setText(`More seamless transitions between locked and unlocked writing embeds.`);
listEl.createEl('li').setText(`Visible grid in drawing mode (Toggle from dropdown).`);
listEl.createEl('li').setText(`Insert commands now have temporary icons.`);
listEl.createEl('li').setText(`Many bug fixes and tweaks under the hood to lay groundwork for future updates and better efficiency.`);

const link = noticeBody.createEl('a');
link.setAttribute('href', 'https://www.youtube.com/live/_B2a9zTxb28?si=Ovkwao2EW479JRK6')
link.setText(`View release video`);
// Prevent clicking link from closing notice
link.onClickEvent( e => e.stopPropagation())

const {
tertiaryBtnEl
Expand Down
20 changes: 13 additions & 7 deletions src/notices/welcome-notice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function showWelcomeTips(plugin: InkPlugin) {
tertiaryBtnEl
} = createNoticeCtaBar(noticeBody, {
primaryLabel: `Read now`,
tertiaryLabel: 'Read later',
tertiaryLabel: 'Remind me later',
})

const notice = launchPersistentInkNotice(noticeBody);
Expand All @@ -49,7 +49,7 @@ function showHandwritingWelcomeTip(plugin: InkPlugin) {
const noticeBody = createInkNoticeTemplate();
noticeBody.createEl('h1').setText(`Inserting handwriting sections...`);
noticeBody.createEl('p').setText(`In any markdown note, run the following command to begin writing where your cursor is.`);
noticeBody.createEl('blockquote').setText(`"Insert new handwriting section"`);
noticeBody.createEl('blockquote').setText(`"Ink: New handwriting section"`);
noticeBody.createEl('p').setText(`( Cmd+P or swipe down )`);

const {
Expand All @@ -74,8 +74,8 @@ function showHandwritingWelcomeTip(plugin: InkPlugin) {
function showDrawingWelcomeTip(plugin: InkPlugin) {
const noticeBody = createInkNoticeTemplate();
noticeBody.createEl('h1').setText(`Drawing sections...`);
noticeBody.createEl('p').setText(`Drawing sections are in early development.`);
noticeBody.createEl('p').setText(`You can turn them on in the settings (and restart Obsidian) if you'd like to begin using them.`);
noticeBody.createEl('p').setText(`These can be added too and can be resized right in your markdown file.`);
noticeBody.createEl('blockquote').setText(`"Ink: New drawing"`);

const {
primaryBtnEl,
Expand Down Expand Up @@ -124,9 +124,15 @@ function showSyncingWelcomeTip(plugin: InkPlugin) {

function showDevelopmentWelcomeTip(plugin: InkPlugin) {
const noticeBody = createInkNoticeTemplate();
noticeBody.createEl('h1').setText(`Help improve Ink...`);
noticeBody.createEl('p').setText(`Ink is under construction. This means it has features missing and sometimes has bugs.`);
noticeBody.createEl('p').setText(`If you notice any, please report them through the link in the settings.`);
noticeBody.createEl('h1').setText(`Get involved...`);
noticeBody.createEl('p').setText(`If you notice any bugs, please report them through the link in the settings.`);
noticeBody.createEl('p').setText(`You can also follow along with development and let me know which features are important to you at the link below.`);

const link = noticeBody.createEl('a');
link.setAttribute('href', 'https://youtube.com/playlist?list=PLAiv7XV4xFx2NMRSCxdGiVombKO-TiMAL&si=GVp9ILvCAaRTwyYd')
link.setText(`Ink development diaries`);
// Prevent clicking link from closing notice
link.onClickEvent( e => e.stopPropagation())

const {
tertiaryBtnEl
Expand Down

0 comments on commit 8e1015e

Please sign in to comment.