Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion frontend/modules/ask_posnic.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="vertical-layout page_loader" id="askposnic" style="display:none">
<div class="contentbar">
<div id="ask_posnic_disabled" class="card"><div class="card-body"><h4><lang class="lang_ask_posnic_is_off">Ask Posnic is off</lang></h4><p><lang class="lang_an_owner_can_enable_ask_posnic_in_settings">An owner can enable Ask Posnic in Settings → Features. Your normal POS workflows remain available.</lang></p><a class="btn btn-primary" href="#/settings/modules"><lang class="lang_open_features">Open Features</lang></a></div></div>
<div id="ask_posnic_disabled" class="card"><div class="card-body"><h4><lang class="lang_ask_posnic_is_off">Ask Posnic is off</lang></h4></div></div>
<div class="ask-workspace" style="display:none">
<header class="ask-workspace-header">
<div class="ask-workspace-title">
Expand Down
16 changes: 4 additions & 12 deletions frontend/modules/settings_write.html
Original file line number Diff line number Diff line change
Expand Up @@ -2993,17 +2993,9 @@ <h6 class="fg-head-title"><lang class="lang_fg_workspace">Workspace</lang></h6>
<p class="module-desc"><lang class="lang_model_assistance_for_item_descriptions_and">Model assistance for item descriptions and other enabled workflows. Configure your connection and usage limits in AI settings.</lang></p>
</div>

<div class="module-card" style="--fg-accent: #6d28d9;">
<div class="module-card-head">
<span class="module-ico"><i class="feather icon-message-circle"></i></span>
<div class="module-title"><lang class="lang_ask_posnic">Ask Posnic</lang></div>
<div class="custom-control custom-switch module-switch">
<input type="checkbox" class="custom-control-input" id="ask_posnic_enabled" name="ask_posnic_enabled">
<label class="custom-control-label" for="ask_posnic_enabled"><span class="sr-only"><lang class="lang_enable_ask_posnic">Enable Ask Posnic</lang></span></label>
</div>
</div>
<p class="module-desc"><lang class="lang_optional_help_shop_insights_and_confirmed">Optional help, shop insights and confirmed actions. Off by default. Enable it to show Ask Posnic; manage its knowledge and access in AI settings.</lang></p>
</div>
<!-- Ask Posnic is not ready for public opt-in. Keep the saved value
through legacy full-form saves without a discoverable feature card. -->
<input type="checkbox" id="ask_posnic_enabled" name="ask_posnic_enabled" aria-label="Ask Posnic" data-t-aria-label="lang_ask_posnic" hidden style="display:none">

<div class="module-card" style="--fg-accent: #57534e;">
<div class="module-card-head">
Expand Down Expand Up @@ -3608,7 +3600,7 @@ <h5 class="card-title mb-0"><lang class="lang_delivery_and_fees">Delivery and ot
<div class="tab-pane fade" id="v-pills-ai" role="tabpanel" aria-labelledby="v-pills-ai-tab">
<p class="text-muted" id="ask_settings_access" role="status"><lang class="lang_ask_checking_access">Checking access to Ask Posnic settings…</lang></p>
<div id="ask_posnic_admin" class="card ask-settings-card" style="display:none"><div class="card-body">
<div id="ask_feature_notice" class="alert alert-info"><lang class="lang_ask_posnic_is_off_enable_it_in">Ask Posnic is off. Enable it in</lang> <a href="#/settings/modules"><lang class="lang_modules">Features</lang></a> <lang class="lang_to_use_questions_insights_actions_and_sche">to use questions, insights, actions and schedules.</lang></div>
<div id="ask_feature_notice" class="alert alert-info"><lang class="lang_ask_posnic_is_off">Ask Posnic is off</lang></div>
<div class="ask-settings-heading"><div><h5><lang class="lang_ask_posnic">Ask Posnic</lang></h5><p class="text-muted mb-0"><lang class="lang_ask_settings_hint">Manage how Ask Posnic helps your team. These settings apply to your shop account.</lang></p></div><a class="btn btn-outline-primary" data-ask-entry style="display:none" href="#/askposnic"><lang class="lang_ask_open_chat">Open Ask Posnic</lang></a></div>
<div class="ask-settings-tabs" role="tablist" aria-label="Ask Posnic settings" data-t-aria-label="lang_ask_settings_label"><button type="button" role="tab" id="ask-tab-general" data-ask-tab="general" aria-controls="ask-settings-general" aria-selected="true" tabindex="0"><lang class="lang_ask_tab_general">General</lang></button><button type="button" role="tab" id="ask-tab-knowledge" data-ask-tab="knowledge" aria-controls="ask-settings-knowledge" aria-selected="false" tabindex="-1"><lang class="lang_ask_tab_knowledge">Knowledge</lang></button><button type="button" role="tab" id="ask-tab-access" data-ask-tab="access" aria-controls="ask-settings-access" aria-selected="false" tabindex="-1"><lang class="lang_ask_tab_access">Access &amp; actions</lang></button><button type="button" role="tab" id="ask-tab-usage" data-ask-tab="usage" aria-controls="ask-settings-usage" aria-selected="false" tabindex="-1"><lang class="lang_ask_tab_usage">AI &amp; usage</lang></button><button type="button" role="tab" id="ask-tab-schedules" data-ask-tab="schedules" aria-controls="ask-settings-schedules" aria-selected="false" tabindex="-1"><lang class="lang_ask_tab_schedules">Schedules</lang></button></div>
<form id="ask_posnic_preferences_form"></form>
Expand Down
5 changes: 0 additions & 5 deletions languages/_english.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@
"lang_an_hour_ago": "1 hour ago",
"lang_an_item_needs_a_name": "An item needs a name.",
"lang_an_item_price_overrides_the_percentage_adj": "An item price overrides the percentage adjustment.",
"lang_an_owner_can_enable_ask_posnic_in_settings": "An owner can enable Ask Posnic in Settings → Features. Your normal POS workflows remain available.",
"lang_and_begin_your_service": "and begin your service!",
"lang_another_posnic_account": "Another posnic account ?",
"lang_any": "Any",
Expand Down Expand Up @@ -359,7 +358,6 @@
"lang_ask_posnic": "Ask Posnic",
"lang_ask_posnic_about_your_shop": "Ask Posnic about your shop…",
"lang_ask_posnic_is_off": "Ask Posnic is off",
"lang_ask_posnic_is_off_enable_it_in": "Ask Posnic is off. Enable it in",
"lang_ask_prepare_sale": "Prepare sale for checkout",
"lang_ask_provider_hint": "With your own provider account, usage is billed directly by that provider. Managed AI uses your Posnic subscription and allowance. Keys are stored on the server and never shown again after saving.",
"lang_ask_provider_off": "Off - direct reports and local help remain available",
Expand Down Expand Up @@ -1434,7 +1432,6 @@
"lang_empty_return": "Return Items Order Empty",
"lang_en_in": "en-IN",
"lang_en_us": "en_US",
"lang_enable_ask_posnic": "Enable Ask Posnic",
"lang_enable_cashback": "Enable cashback",
"lang_enable_disable_stock_log": "Enable/Disable Stock Log",
"lang_enable_expiry_reminders": "Enable expiry reminders",
Expand Down Expand Up @@ -2864,7 +2861,6 @@
"lang_optional_dietary_label_serving_periods_and": "Optional · dietary label, serving periods and modifiers",
"lang_optional_for_own_key_accounts_sends_publis": "Optional for own-key accounts. Sends published knowledge and help questions to OpenAI for embeddings, billed to your key. Vectors stay in this installation. Supports up to 5,000 published passages. Cloud managed search uses your managed allowance.",
"lang_optional_for_the_payout_report": "(optional - for the payout report)",
"lang_optional_help_shop_insights_and_confirmed": "Optional help, shop insights and confirmed actions. Off by default. Enable it to show Ask Posnic; manage its knowledge and access in AI settings.",
"lang_optional_printed_on_the_invoice": "Optional - printed on the invoice",
"lang_optional_swipe_to_clock_in_approve": "(optional - swipe to clock in / approve)",
"lang_options": "Options",
Expand Down Expand Up @@ -4562,7 +4558,6 @@
"lang_to_3": "&nbsp;&nbsp;&nbsp;&nbsp;To :&nbsp;",
"lang_to_date": "To date",
"lang_to_email_address": "To email address",
"lang_to_use_questions_insights_actions_and_sche": "to use questions, insights, actions and schedules.",
"lang_today_and_upcoming": "Today and upcoming",
"lang_token": "Token",
"lang_token_copied": "Token copied",
Expand Down
2 changes: 1 addition & 1 deletion tests/features-page-groups.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const SWITCHES = [
'module_online_ordering_enable', 'module_kiosk_enable',
'module_delivery_partners_enable', 'module_webshop_enable',
'staff_shifts_enable', 'till_lock_enable',
'module_themes_enable', 'ai_enabled', 'ask_posnic_enabled', 'module_recyclebin_enable', 'module_demo_data_enable',
'module_themes_enable', 'ai_enabled', 'module_recyclebin_enable', 'module_demo_data_enable',
];

const groups = () => PANE.split('<section class="module-group"').slice(1);
Expand Down
Loading